Remove unneeded stuff
This commit is contained in:
parent
a603be89cd
commit
a0638ff0c7
|
@ -67,17 +67,15 @@ extern int optind, opterr, optopt;
|
|||
#endif
|
||||
|
||||
/*
|
||||
* POSIX has broken stdio so that getc must do thread-safe locking,
|
||||
* POSIX has broken stdio so that putc must do thread-safe locking,
|
||||
* this is a serious performance problem for applications doing large
|
||||
* amounts of IO with getc (as is done here). If available, use
|
||||
* the getc_unlocked varient instead.
|
||||
* amounts of IO with putc (as is done here). If available, use
|
||||
* the putc_unlocked varient instead.
|
||||
*/
|
||||
|
||||
#if defined(getc_unlocked) || defined(_IO_getc_unlocked)
|
||||
#define GETC(f) getc_unlocked(f)
|
||||
#if defined(putc_unlocked) || defined(_IO_putc_unlocked)
|
||||
#define PUTC(c,f) putc_unlocked(c,f)
|
||||
#else
|
||||
#define GETC(f) getc(f)
|
||||
#define PUTC(c,f) putc(c,f)
|
||||
#endif
|
||||
|
||||
|
|
|
@ -37,16 +37,6 @@
|
|||
* functions are also needed in slightly modified form
|
||||
*/
|
||||
|
||||
void
|
||||
FcMemAlloc (int kind, int size)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
FcMemFree (int kind, int size)
|
||||
{
|
||||
}
|
||||
|
||||
FcPrivate void
|
||||
FcCacheObjectReference (void *object)
|
||||
{
|
||||
|
@ -260,7 +250,6 @@ static int compare (const void *a, const void *b)
|
|||
#define MAX_LANG_SET_MAP ((MAX_LANG + 31) / 32)
|
||||
|
||||
#define BitSet(map, i) ((map)[(entries[i].id)>>5] |= ((FcChar32) 1 << ((entries[i].id) & 0x1f)))
|
||||
#define BitGet(map, i) ((map)[(entries[i].id)>>5] >> ((entries[i].id) & 0x1f)) & 1)
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
|
|
Loading…
Reference in New Issue