X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcc65%2Finput.h;h=dfa0ad03b92eaabd56bfa7b863fde985cc1682cc;hb=112ae0e3db511ddd92e769c11328646ebe2a6240;hp=27ccce77aeec53ec8a89405b4dad677270c80c3d;hpb=96cf7f62716a2dbfd8fc7c551708f74246eed4fd;p=cc65 diff --git a/src/cc65/input.h b/src/cc65/input.h index 27ccce77a..dfa0ad03b 100644 --- a/src/cc65/input.h +++ b/src/cc65/input.h @@ -51,6 +51,15 @@ +/* An enum that describes different types of input files. The members are + * choosen so that it is possible to combine them to bitsets + */ +typedef enum { + IT_MAIN = 0x01, /* Main input file */ + IT_SYSINC = 0x02, /* System include file (using <>) */ + IT_USRINC = 0x04, /* User include file (using "") */ +} InputType; + /* Forward for an IFile structure */ struct IFile; @@ -72,7 +81,7 @@ extern char NextC; void OpenMainFile (const char* Name); /* Open the main file. Will call Fatal() in case of failures. */ -void OpenIncludeFile (const char* Name, unsigned DirSpec); +void OpenIncludeFile (const char* Name, InputType IT); /* Open an include file and insert it into the tables. */ void NextChar (void);