Compiler: Improve the reported line number accuracy on warning 203/4 (symbol never used).
Imported from Pawn 3.1.3541+. https://code.google.com/p/pawnscript/source/detail?r=25
This commit is contained in:
@@ -356,7 +356,7 @@ SC_FUNC void delete_substtable(void)
|
||||
#endif /* !defined NO_SUBST */
|
||||
|
||||
|
||||
/* ----- input file list ----------------------------------------- */
|
||||
/* ----- input file list (explicit files)------------------------- */
|
||||
static stringlist sourcefiles = {NULL, NULL};
|
||||
|
||||
SC_FUNC stringlist *insert_sourcefile(char *string)
|
||||
@@ -376,6 +376,28 @@ SC_FUNC void delete_sourcefiletable(void)
|
||||
}
|
||||
|
||||
|
||||
/* ----- parsed file list (explicit + included files) ------------ */
|
||||
static stringlist inputfiles = {NULL, NULL};
|
||||
|
||||
SC_FUNC stringlist *insert_inputfile(char *string)
|
||||
{
|
||||
if (sc_status!=statFIRST)
|
||||
return insert_string(&inputfiles,string);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
SC_FUNC char *get_inputfile(int index)
|
||||
{
|
||||
return get_string(&inputfiles,index);
|
||||
}
|
||||
|
||||
SC_FUNC void delete_inputfiletable(void)
|
||||
{
|
||||
delete_stringtable(&inputfiles);
|
||||
assert(inputfiles.next==NULL);
|
||||
}
|
||||
|
||||
|
||||
/* ----- documentation tags -------------------------------------- */
|
||||
#if !defined SC_LIGHT
|
||||
static stringlist docstrings = {NULL, NULL};
|
||||
|
||||
Reference in New Issue
Block a user