diff options
author | Jan Dubois <jand@activestate.com> | 2007-12-24 06:58:20 -0800 |
---|---|---|
committer | Marcus Holland-Moritz <mhx-perl@gmx.net> | 2007-12-25 05:22:39 +0000 |
commit | d34ed59f585350f3dfb4fdf7eca3266cdce428a1 (patch) | |
tree | ecd4817ed4aba8b845b88d8d81a1e15784100476 /x2p/str.c | |
parent | 1f36f092f89152cd3ffb1cb9d8754c1edcc4ab53 (diff) | |
download | perl-d34ed59f585350f3dfb4fdf7eca3266cdce428a1.tar.gz |
Remove Nullch etc. from x2p
From: "Jan Dubois" <jand@activestate.com>
Message-ID: <0cca01c84680$7afc9170$70f5b450$@com>
p4raw-id: //depot/perl@32721
Diffstat (limited to 'x2p/str.c')
-rw-r--r-- | x2p/str.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -185,7 +185,7 @@ str_gets(register STR *str, register FILE *fp) * buffer, so we getc() it back out and stuff it in the buffer. */ i = getc(fp); - if (i == EOF) return Nullch; + if (i == EOF) return NULL; *(--((*fp)->_ptr)) = (unsigned char) i; (*fp)->_cnt++; #endif @@ -239,14 +239,14 @@ thats_all_folks: static char buf[4192]; - if (fgets(buf, sizeof buf, fp) != Nullch) + if (fgets(buf, sizeof buf, fp) != NULL) str_set(str, buf); else str_set(str, No); #endif /* USE_STDIO_PTR && STDIO_PTR_LVALUE && STDIO_CNT_LVALUE */ - return str->str_cur ? str->str_ptr : Nullch; + return str->str_cur ? str->str_ptr : NULL; } STR * |