Files
nethack/sys/vms/lev_lex.h
Sean Hunt 8b57d96fd2 Reformat .h files.
I did my best to exempt some of the bigger aligned blocks from the reformatting
using the /* clang-format off */ and /* clang-format on */ tags. Probably some
that shouldn't have been formatted were anyway; if you encounter them, please
fix.

The clang-format tags were left in on the basis that it's much easier to prune
those out later than to put them back in, and it means that, modulo my custom
version of clang-format, I should be able to run clang-format on the source tree
again without changing anything, now that Pat has fixed the VA_DECL issues.
2015-05-25 09:21:15 +09:00

28 lines
967 B
C

/* NetHack 3.6 lev_lex.h $NHDT-Date$ $NHDT-Branch$:$NHDT-Revision$ */
/* NetHack 3.6 lev_lex.h $Date: 2009/05/06 10:51:24 $ $Revision: 1.4 $ */
/* SCCS Id: @(#)lev_lex.h 3.5 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