don't use stdio.h
This commit is contained in:
parent
bbf9b03ef4
commit
a2905da259
2 changed files with 2 additions and 3 deletions
|
@ -225,7 +225,7 @@ File *stream;
|
||||||
if ( characters_left == 0 ) { /* Nothing read */
|
if ( characters_left == 0 ) { /* Nothing read */
|
||||||
if ( external_bufp == buffer ) {
|
if ( external_bufp == buffer ) {
|
||||||
*external_bufp = '\0';
|
*external_bufp = '\0';
|
||||||
return(NULL); /* EOF */
|
return(0); /* EOF */
|
||||||
} else { /* Something was already copied */
|
} else { /* Something was already copied */
|
||||||
*external_bufp = '\0';
|
*external_bufp = '\0';
|
||||||
return(buffer);
|
return(buffer);
|
||||||
|
@ -241,7 +241,7 @@ getline()
|
||||||
{
|
{
|
||||||
/* get next input line */
|
/* get next input line */
|
||||||
|
|
||||||
if ( our_fgets(inputline,MAXLINELENGTH,yyin) == NULL)
|
if ( our_fgets(inputline,MAXLINELENGTH,yyin) == 0)
|
||||||
return(FALSE);
|
return(FALSE);
|
||||||
yylineno ++;
|
yylineno ++;
|
||||||
if ( strindex(inputline,'\n') == 0)
|
if ( strindex(inputline,'\n') == 0)
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <system.h>
|
#include <system.h>
|
||||||
|
|
Loading…
Reference in a new issue