File: lev_lex.h

package info (click to toggle)
glhack 1.2-8.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 26,744 kB
  • sloc: ansic: 208,571; cpp: 13,139; yacc: 2,005; makefile: 1,152; lex: 377; sh: 121; awk: 89; sed: 11
file content (25 lines) | stat: -rw-r--r-- 824 bytes parent folder | download | duplicates (23)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*	SCCS Id: @(#)lev_lex.h	3.4	1999/08/08	*/
/* "vms/lev_lex.h" copied into "util/stdio.h" for use in *_lex.c only!
 * This is an awful kludge to allow util/*_lex.c made by SunOS's `lex'
 * to be compiled as is.  (It isn't needed with `flex' or VMS POSIX
 * `lex' and is benign when either of those configurations are used.)
 * It works because the actual setup of yyin & yyout is performed in
 * src/lev_main.c, where stdin & stdout are still correctly defined.
 *
 * The troublesome code is
 *	#include "stdio.h"
 *		...
 *	FILE *yyin = stdin, *yyout = stdout;
 * The file scope initializers with non-constant values require this
 * hack, and the quotes instead of brackets makes it easy to do.
 */

#include <stdio.h>
#ifdef stdin
# undef stdin
#endif
#define stdin  0
#ifdef stdout
# undef stdout
#endif
#define stdout 0