comparison libmpcodecs/ad_realaud.c @ 30564:2b9abdf8f6bf

Revert marking seemingly unused RealAudio/RealVideo-related functions as static. The functions are required to load binary Real codecs, so they need to be kept. Group all functions together in ad_realaud.c because all the functions are used to load audio binaries and only some to load video binaries.
author diego
date Wed, 17 Feb 2010 19:21:28 +0000
parents ad6740b58b0d
children 72ae3dd3aa6e
comparison
equal deleted inserted replaced
30563:007b3397591f 30564:2b9abdf8f6bf
39 "binary real audio codecs" 39 "binary real audio codecs"
40 }; 40 };
41 41
42 LIBAD_EXTERN(realaud) 42 LIBAD_EXTERN(realaud)
43 43
44 static void *__builtin_new(unsigned long size) 44 /* These functions are required for loading Real binary libs.
45 * Add forward declarations to avoid warnings with -Wmissing-prototypes. */
46 void *__builtin_new(unsigned long size);
47 void __builtin_delete(void *ize);
48 void *__builtin_vec_new(unsigned long size);
49 void __builtin_vec_delete(void *mem);
50 void __pure_virtual(void);
51
52 void *__builtin_new(unsigned long size)
45 { 53 {
46 return malloc(size); 54 return malloc(size);
47 } 55 }
48 56
49 // required for cook's uninit: 57 void __builtin_delete(void* ize)
50 static void __builtin_delete(void* ize)
51 { 58 {
52 free(ize); 59 free(ize);
53 } 60 }
54 61
62 void *__builtin_vec_new(unsigned long size)
63 {
64 return malloc(size);
65 }
66
67 void __builtin_vec_delete(void *mem)
68 {
69 free(mem);
70 }
71
72 void __pure_virtual(void)
73 {
74 printf("FATAL: __pure_virtual() called!\n");
75 // exit(1);
76 }
77
55 #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) 78 #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
79 void ___brk_addr(void);
80 void ___brk_addr(void) {exit(0);}
81 char **__environ={NULL};
82 #undef stderr
83 FILE *stderr=NULL;
56 void *__ctype_b=NULL; 84 void *__ctype_b=NULL;
57 #endif 85 #endif
58 86
59 static unsigned long (*raCloseCodec)(void*); 87 static unsigned long (*raCloseCodec)(void*);
60 static unsigned long (*raDecode)(void*, char*,unsigned long,char*,unsigned int*,long); 88 static unsigned long (*raDecode)(void*, char*,unsigned long,char*,unsigned int*,long);