Changeset 2955
- Timestamp:
- 2007-06-16 02:24:45 (1 year ago)
- Files:
-
- liboggz/trunk/configure.ac (modified) (1 diff)
- liboggz/trunk/src/examples/Makefile.am (modified) (1 diff)
- liboggz/trunk/src/liboggz/Makefile.am (modified) (1 diff)
- liboggz/trunk/src/liboggz/oggz_auto.c (modified) (2 diffs)
- liboggz/trunk/src/liboggz/oggz_comments.c (modified) (1 diff)
- liboggz/trunk/src/liboggz/oggz_private.h (modified) (2 diffs)
- liboggz/trunk/src/liboggz/oggz_vector.c (modified) (3 diffs)
- liboggz/trunk/src/liboggz/oggz_vector.h (modified) (1 diff)
- liboggz/trunk/src/tests/Makefile.am (modified) (1 diff)
- liboggz/trunk/src/tools/Makefile.am (modified) (1 diff)
- liboggz/trunk/src/tools/oggz-scan.c (modified) (1 diff)
- liboggz/trunk/src/tools/oggz_tools.c (modified) (2 diffs)
- liboggz/trunk/src/tools/oggzdump.c (modified) (1 diff)
- liboggz/trunk/src/tools/oggzrip.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
liboggz/trunk/configure.ac
r2608 r2955 287 287 dnl changequote(,)dnl 288 288 if test "x$ac_cv_prog_gcc" = xyes ; then 289 CFLAGS="$CFLAGS -Wall -g "289 CFLAGS="$CFLAGS -Wall -g -std=c99 -Wdeclaration-after-statement" 290 290 fi 291 291 dnl changequote([,])dnl 292 292 293 293 case "$target_os" in 294 darwin* | rhapsody*)295 dnl Disable -Wall and -pedantic for Apple Darwin/Rhapsody.296 dnl System headers on these systems are broken.297 temp_CFLAGS=`echo $CFLAGS | sed "s/-Wall -pedantic//"`298 CFLAGS=$temp_CFLAGS299 ;;300 294 linux* | solaris*) 301 295 SHLIB_VERSION_ARG="-Wl,--version-script=Version_script" liboggz/trunk/src/examples/Makefile.am
r2563 r2955 1 1 ## Process this file with automake to produce Makefile.in 2 3 AM_CFLAGS = -Wall -pedantic -g4 2 5 3 INCLUDES = -I$(top_srcdir)/include @OGG_CFLAGS@ liboggz/trunk/src/liboggz/Makefile.am
r2608 r2955 1 1 ## Process this file with automake to produce Makefile.in 2 3 AM_CFLAGS = -Wall -pedantic4 2 5 3 INCLUDES = $(INCLTDL) -I$(top_srcdir)/include @OGG_CFLAGS@ liboggz/trunk/src/liboggz/oggz_auto.c
r2942 r2955 680 680 int mode; 681 681 int size; 682 int prev_bit;683 int next_bit;684 682 int result; 685 683 … … 877 875 int 878 876 oggz_auto_get_granulerate (OGGZ * oggz, ogg_packet * op, long serialno, 879 void * user_data) {880 OggzReadPacket read_packet; 877 void * user_data) 878 { 881 879 int content = 0; 882 880 liboggz/trunk/src/liboggz/oggz_comments.c
r2608 r2955 36 36 #include <stdlib.h> 37 37 #include <string.h> 38 #include <strings.h> 38 39 39 40 #include "oggz_private.h" liboggz/trunk/src/liboggz/oggz_private.h
r2608 r2955 264 264 int oggz_purge (OGGZ * oggz); 265 265 266 int oggz_auto_get_granulerate (OGGZ * oggz, ogg_packet * op, long serialno, 267 void * user_data); 266 /* metric_internal */ 268 267 269 268 int … … 277 276 ogg_int64_t * granulerate_d); 278 277 278 int oggz_set_granuleshift (OGGZ * oggz, long serialno, int granuleshift); 279 280 int oggz_get_granuleshift (OGGZ * oggz, long serialno); 281 282 /* oggz_auto */ 283 284 int 285 oggz_auto_get_granulerate (OGGZ * oggz, ogg_packet * op, long serialno, 286 void * user_data); 287 279 288 int 280 289 oggz_auto_read_comments (OGGZ * oggz, oggz_stream_t * stream, long serialno, 281 290 ogg_packet * op); 291 292 int oggz_auto_identify (OGGZ *oggz, ogg_page *og, long serialno); 282 293 283 294 /* comments */ liboggz/trunk/src/liboggz/oggz_vector.c
r2563 r2955 41 41 typedef int (*OggzFunc) (void * data); 42 42 typedef int (*OggzFindFunc) (void * data, long serialno); 43 typedef int (*OggzCmpFunc) ( void * a,void * b, void * user_data);43 typedef int (*OggzCmpFunc) (const void * a, const void * b, void * user_data); 44 44 45 45 typedef struct _OggzVector OggzVector; … … 142 142 int i; 143 143 144 if (vector->compare == NULL) -1;144 if (vector->compare == NULL) return NULL; 145 145 146 146 for (i = 0; i < vector->nr_elements; i++) { … … 159 159 int i; 160 160 161 if (vector->compare == NULL) -1;161 if (vector->compare == NULL) return -1; 162 162 163 163 for (i = 0; i < vector->nr_elements; i++) { liboggz/trunk/src/liboggz/oggz_vector.h
r2563 r2955 38 38 typedef int (*OggzFunc) (void * data); 39 39 typedef int (*OggzFindFunc) (void * data, long serialno); 40 typedef int (*OggzCmpFunc) ( void * a,void * b, void * user_data);40 typedef int (*OggzCmpFunc) (const void * a, const void * b, void * user_data); 41 41 42 42 OggzVector * liboggz/trunk/src/tests/Makefile.am
r2855 r2955 1 1 ## Process this file with automake to produce Makefile.in 2 3 AM_CFLAGS = -Wall -pedantic4 2 5 3 INCLUDES = -I$(top_srcdir)/include @OGG_CFLAGS@ liboggz/trunk/src/tools/Makefile.am
r2855 r2955 1 1 ## Process this file with automake to produce Makefile.in 2 3 AM_CFLAGS = -Wall -pedantic -g4 2 5 3 EXTRA_DIST = oggzdiff liboggz/trunk/src/tools/oggz-scan.c
r2339 r2955 36 36 #include <stdlib.h> 37 37 #include <string.h> 38 #include <strings.h> 38 39 39 40 #include <getopt.h> liboggz/trunk/src/tools/oggz_tools.c
r2883 r2955 189 189 samplerate = (ogg_int64_t) (data[27] << 12) | (data[28] << 4) | 190 190 ((data[29] >> 4)&0xf); 191 channels = 1 + ( data[29] >> 1)&0x7;191 channels = 1 + ((data[29] >> 1)&0x7); 192 192 193 193 snprintf (buf, 60, … … 273 273 */ 274 274 275 serial_no = ogg_page_serialno( og);275 serial_no = ogg_page_serialno((ogg_page *)og); 276 276 277 277 content = oggz_stream_get_content(oggz, serial_no); liboggz/trunk/src/tools/oggzdump.c
r2883 r2955 36 36 #include <stdlib.h> 37 37 #include <string.h> 38 #include <strings.h> 38 39 #include <ctype.h> 39 40 liboggz/trunk/src/tools/oggzrip.c
r2339 r2955 40 40 #include <stdlib.h> 41 41 #include <string.h> 42 #include <strings.h> 42 43 #include <fcntl.h> 43 44 #include <assert.h>