removed the limitation on number of include directories

This commit is contained in:
ceriel
1987-05-11 14:30:12 +00:00
parent aab8234e55
commit b3d24d4ec2
6 changed files with 130 additions and 32 deletions

View File

@@ -5,12 +5,12 @@
*/
/* MAIN PROGRAM */
#include <alloc.h>
#include "file_info.h"
#include "idfsize.h"
extern char *symbol2str();
extern char *getwdir();
extern char *inctable[];
extern int err_occurred;
int idfsize = IDFSIZE;
@@ -18,6 +18,9 @@ int ifval;
char *prog_name;
extern char **inctable;
extern int inc_max, inc_total;
main(argc, argv)
char *argv[];
{
@@ -25,6 +28,12 @@ main(argc, argv)
prog_name = argv[0];
init_idf();
inctable = (char **) Malloc(10 * sizeof(char *));
inc_max = 10;
inc_total = 2;
inctable[0] = ".";
inctable[1] = "/usr/include";
init_pp(); /* initialise the preprocessor macros */
/* Note: source file "-" indicates that the source is supplied