OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [trad/] [funlike-5.c] - Rev 816

Compare with Previous | Blame | View Log

/* Test function like macro. */
/* Contributed by Devang Patel <dpatel@apple.com> */
 
/* {do-do preprocess } */
/* { dg-options "-traditional-cpp -E -dD" } */
int     __srget (char *);
#define __sgetc(p) (--(p)->_r < 0 ? __srget(p) : (int)(*(p)->_p++))
#define getc(fp)        __sgetc(fp)
#define getchar()       getc(stdin)
 
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.