library: this is why we hate those darn tab characters
Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
10824b0655
commit
126b14470e
@ -56,7 +56,7 @@ static __thread char buf[8192];
|
|||||||
* It also reads the current contents of the file into the global buf.
|
* It also reads the current contents of the file into the global buf.
|
||||||
*/
|
*/
|
||||||
#define FILE_TO_BUF(filename, fd) do{ \
|
#define FILE_TO_BUF(filename, fd) do{ \
|
||||||
static __thread int local_n; \
|
static __thread int local_n; \
|
||||||
if (fd == -1 && (fd = open(filename, O_RDONLY)) == -1) { \
|
if (fd == -1 && (fd = open(filename, O_RDONLY)) == -1) { \
|
||||||
fputs(BAD_OPEN_MESSAGE, stderr); \
|
fputs(BAD_OPEN_MESSAGE, stderr); \
|
||||||
fflush(NULL); \
|
fflush(NULL); \
|
||||||
|
Loading…
Reference in New Issue
Block a user