X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcc65%2Finput.h;h=ad291c0f82648adec2d2ea022a9c50ede3196d85;hb=dbbce2e939af8fd78f659e5c66eea8b002369ba2;hp=4524ac98bdd36043a5f1c3a7ecccc23a00eaddee;hpb=5abb3954a6abfe517a4bbe82861df22ac0af56c7;p=cc65 diff --git a/src/cc65/input.h b/src/cc65/input.h index 4524ac98b..ad291c0f8 100644 --- a/src/cc65/input.h +++ b/src/cc65/input.h @@ -38,6 +38,10 @@ +#include + + + /*****************************************************************************/ /* data */ /*****************************************************************************/ @@ -56,6 +60,16 @@ extern const char* lptr; /* ### Remove this */ extern char CurC; extern char NextC; +/* Struct that describes an input file */ +typedef struct IFile IFile; +struct IFile { + unsigned Index; /* File index */ + unsigned Usage; /* Usage counter */ + unsigned long Size; /* File size */ + unsigned long MTime; /* Time of last modification */ + char Name[1]; /* Name of file (dynamically allocated) */ +}; + /*****************************************************************************/ @@ -72,7 +86,7 @@ void OpenIncludeFile (const char* Name, unsigned DirSpec); void ClearLine (void); /* Clear the current input line */ - + void InitLine (const char* Buf); /* Initialize lptr from Buf and read CurC and NextC from the new input line */