| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I was attempting to compile the latest version of flex, 2.5.31, when it failed with three errors. All three had to do with invalid lvalues so I opened up filter.c (the offending file) and checked the lines. They were of the form:--
if ((stdin = fdopen(0, "r") == NULL)
Since I had just successfully compiled this version on linux, I decided to open /usr/include/stdio.h to see just how stdin and stdout were defined. Here is what I found:
#define stdin (&__sF[0])
#define stdout (&__sF[1])
#define stderr (&__sF[2])
I checked the stdio.h file on the linux computer to see what it contained. It had:
extern FILE *stdin; /* Standard input stream. */
extern FILE *stdout; /* Standard output stream. */
extern FILE *stderr; /* Standard error output stream. */
| References: | |
| >stdin/stdout (From: Steve Checkoway <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.