#include <assert.h>
#include "wpp_private.h"
-#include "wpp.tab.h"
+#include "ppy.tab.h"
/*
* Make sure that we are running an appropriate version of flex.
pplval.cptr = get_string();
if (is_c_h_include(pplval.cptr, 1)) pass_data=0;
else pass_data=1;
-//fprintf(stderr, "%s pass_data %d\n", pplval.cptr, pass_data);
return tDQSTRING;
default:
put_string();
int sl=strlen(fname);
if (sl < 2 + 2 * quoted) return 0;
if ((toupper(fname[sl-1-quoted])!='H') && (toupper(fname[sl-1-quoted])!='C')) return 0;
- if (fname[sl-2-quoted]!='.') return 0;
+ if (fname[sl-2-quoted]!='.') return 0;
return 1;
}
/* Undo the effect of the quotation */
fname[n-1] = '\0';
- if((ppin = pp_open_include(fname+1, type, &newpath)) == NULL)
+ if((ppin = pp_open_include(fname+1, type ? pp_status.input : NULL, &newpath, type)) == NULL)
pperror("Unable to open include file %s", fname+1);
fname[n-1] = *fname; /* Redo the quotes */