(do_include): For "..." case, leave fend pointing at terminating 0.

Distinct error msgs for empty file name and for bad syntax.

From-SVN: r3880
This commit is contained in:
Richard Stallman 1993-03-25 21:51:47 +00:00
parent 2e2863d49f
commit 50f151047d

View File

@ -3820,7 +3820,7 @@ get_filename:
goto fail;
}
}
*fend++ = 0;
*fend = 0;
/* We have "filename". Figure out directory this source
file is coming from and put it on the front of the list. */
@ -3877,8 +3877,8 @@ get_filename:
default:
fail:
if (retried) {
fend = fbeg;
break;
error ("`#%s' expects \"FILENAME\" or <FILENAME>", keyword->name);
return 0;
} else {
trybuf = expand_to_temp_buffer (buf, limit, 0, 0);
buf = (U_CHAR *) alloca (trybuf.bufp - trybuf.buf + 1);
@ -3908,7 +3908,7 @@ get_filename:
if (flen == 0)
{
error ("`#%s' expects \"fname\" or <fname>", keyword->name);
error ("empty file name in `#%s'", keyword->name);
return 0;
}