diff --git a/source/amx/amxargs.c b/source/amx/amxargs.c index b556b69..b1b00f0 100644 --- a/source/amx/amxargs.c +++ b/source/amx/amxargs.c @@ -20,6 +20,7 @@ * * Version: $Id: amxargs.c 3649 2006-10-12 13:13:57Z thiadmer $ */ + #if defined _UNICODE || defined __UNICODE__ || defined UNICODE # if !defined UNICODE /* for Windows */ # define UNICODE diff --git a/source/amx/amxaux.c b/source/amx/amxaux.c index 6a35bab..437e0ee 100644 --- a/source/amx/amxaux.c +++ b/source/amx/amxaux.c @@ -20,6 +20,7 @@ * * Version: $Id: amxaux.c 3612 2006-07-22 09:59:46Z thiadmer $ */ + #include #include #include diff --git a/source/amx/amxaux.h b/source/amx/amxaux.h index 08d9efd..b9d2148 100644 --- a/source/amx/amxaux.h +++ b/source/amx/amxaux.h @@ -20,6 +20,7 @@ * * Version: $Id: amxaux.h 3612 2006-07-22 09:59:46Z thiadmer $ */ + #ifndef AMXAUX_H_INCLUDED #define AMXAUX_H_INCLUDED diff --git a/source/amx/amxcore.c b/source/amx/amxcore.c index e1c14a2..d355e52 100644 --- a/source/amx/amxcore.c +++ b/source/amx/amxcore.c @@ -20,6 +20,7 @@ * * Version: $Id: amxcore.c 3657 2006-10-24 20:09:50Z thiadmer $ */ + #if defined _UNICODE || defined __UNICODE__ || defined UNICODE # if !defined UNICODE /* for Windows */ # define UNICODE diff --git a/source/amx/amxdbg.c b/source/amx/amxdbg.c index 69dff00..b0adcd6 100644 --- a/source/amx/amxdbg.c +++ b/source/amx/amxdbg.c @@ -22,6 +22,7 @@ * * Version: $Id: amxdbg.c 3612 2006-07-22 09:59:46Z thiadmer $ */ + #include #include #include diff --git a/source/amx/amxdgram.c b/source/amx/amxdgram.c index d1636a5..51345a2 100644 --- a/source/amx/amxdgram.c +++ b/source/amx/amxdgram.c @@ -22,6 +22,7 @@ * * Version: $Id: amxdgram.c 3664 2006-11-08 12:09:25Z thiadmer $ */ + #include #include #if defined LINUX diff --git a/source/amx/amxfile.c b/source/amx/amxfile.c index 4dab381..b183e2d 100644 --- a/source/amx/amxfile.c +++ b/source/amx/amxfile.c @@ -20,6 +20,7 @@ * * Version: $Id: amxfile.c 3660 2006-11-05 13:05:09Z thiadmer $ */ + #if defined _UNICODE || defined __UNICODE__ || defined UNICODE # if !defined UNICODE /* for Windows */ # define UNICODE diff --git a/source/amx/amxgc.c b/source/amx/amxgc.c index 06a729b..e1dc1f0 100644 --- a/source/amx/amxgc.c +++ b/source/amx/amxgc.c @@ -20,6 +20,7 @@ * * Version: $Id: amxgc.c 3660 2006-11-05 13:05:09Z thiadmer $ */ + #include #include #include /* for malloc()/free() */ diff --git a/source/amx/amxprocess.c b/source/amx/amxprocess.c index 1c2cb65..c5c7cf6 100644 --- a/source/amx/amxprocess.c +++ b/source/amx/amxprocess.c @@ -20,6 +20,7 @@ * * Version: $Id: amxprocess.c 3664 2006-11-08 12:09:25Z thiadmer $ */ + #if defined _UNICODE || defined __UNICODE__ || defined UNICODE # if !defined UNICODE /* for Windows */ # define UNICODE diff --git a/source/amx/amxstring.c b/source/amx/amxstring.c index 8651e60..e1ff9a4 100644 --- a/source/amx/amxstring.c +++ b/source/amx/amxstring.c @@ -20,6 +20,7 @@ * * Version: $Id: amxstring.c 3656 2006-10-24 07:20:26Z thiadmer $ */ + #include #include #include diff --git a/source/amx/amxtime.c b/source/amx/amxtime.c index 0340855..c63bf44 100644 --- a/source/amx/amxtime.c +++ b/source/amx/amxtime.c @@ -20,6 +20,7 @@ * * Version: $Id: amxtime.c 3649 2006-10-12 13:13:57Z thiadmer $ */ + #include #include #include "amx.h" diff --git a/source/amx/fixed.c b/source/amx/fixed.c index c5365cd..b5707b9 100644 --- a/source/amx/fixed.c +++ b/source/amx/fixed.c @@ -24,6 +24,7 @@ * * Version: $Id: fixed.c 3662 2006-11-07 08:44:33Z thiadmer $ */ + #include #include /* for NULL */ #include "amx.h" diff --git a/source/amx/float.c b/source/amx/float.c index 02cb4f6..68ca46b 100644 --- a/source/amx/float.c +++ b/source/amx/float.c @@ -17,6 +17,7 @@ * 2004-01-09: Adaptions for 64-bit cells (using "double precision"), by * Thiadmer Riemersma */ + #include /* for atof() */ #include /* for NULL */ #include diff --git a/source/amx/pawndbg.c b/source/amx/pawndbg.c index cde9942..76ada77 100644 --- a/source/amx/pawndbg.c +++ b/source/amx/pawndbg.c @@ -50,6 +50,7 @@ * needs only to transfer a file: * pawndbg myprog.amx -rs232=1 -transfer -quit */ + #include #include #include diff --git a/source/amx/pawnrun.c b/source/amx/pawnrun.c index 9bc9b9d..a345c4f 100644 --- a/source/amx/pawnrun.c +++ b/source/amx/pawnrun.c @@ -20,6 +20,7 @@ * * Version: $Id: pawnrun.c 3615 2006-07-27 07:49:08Z thiadmer $ */ + #include #include #include diff --git a/source/amx/pawnrun/prun1.c b/source/amx/pawnrun/prun1.c index d9bb5ae..c37e929 100644 --- a/source/amx/pawnrun/prun1.c +++ b/source/amx/pawnrun/prun1.c @@ -4,6 +4,7 @@ * * This file may be freely used. No warranties of any kind. */ + #include #include /* for exit() */ #include diff --git a/source/amx/pawnrun/prun2.c b/source/amx/pawnrun/prun2.c index e3b0864..465c4c5 100644 --- a/source/amx/pawnrun/prun2.c +++ b/source/amx/pawnrun/prun2.c @@ -4,6 +4,7 @@ * * This file may be freely used. No warranties of any kind. */ + #include #include #include diff --git a/source/amx/pawnrun/prun3.c b/source/amx/pawnrun/prun3.c index 657b8df..878dff1 100644 --- a/source/amx/pawnrun/prun3.c +++ b/source/amx/pawnrun/prun3.c @@ -4,6 +4,7 @@ * * This file may be freely used. No warranties of any kind. */ + #include #include /* for exit() */ #include diff --git a/source/amx/pawnrun/prun4.c b/source/amx/pawnrun/prun4.c index f308ddd..e88305c 100644 --- a/source/amx/pawnrun/prun4.c +++ b/source/amx/pawnrun/prun4.c @@ -4,6 +4,7 @@ * * This file may be freely used. No warranties of any kind. */ + #include #include /* for exit() */ #include /* for memset() (on some compilers) */ diff --git a/source/amx/pawnrun/prun5.c b/source/amx/pawnrun/prun5.c index 9301e8b..c84c09a 100644 --- a/source/amx/pawnrun/prun5.c +++ b/source/amx/pawnrun/prun5.c @@ -5,6 +5,7 @@ * * This file may be freely used. No warranties of any kind. */ + #include #include #include diff --git a/source/amx/pawnrun/prun_jit.c b/source/amx/pawnrun/prun_jit.c index 7c5e12e..7ac4ab4 100644 --- a/source/amx/pawnrun/prun_jit.c +++ b/source/amx/pawnrun/prun_jit.c @@ -19,6 +19,7 @@ * misrepresented as being the original software. * 3. This notice may not be removed or altered from any source distribution. */ + #include #include #include diff --git a/source/compiler/libpawnc.c b/source/compiler/libpawnc.c index b3d56c8..33ddc1a 100644 --- a/source/compiler/libpawnc.c +++ b/source/compiler/libpawnc.c @@ -22,6 +22,7 @@ * * Version: $Id: libpawnc.c 3612 2006-07-22 09:59:46Z thiadmer $ */ + #include #include #include diff --git a/source/compiler/pawncc.c b/source/compiler/pawncc.c index a6d19c5..bd52518 100644 --- a/source/compiler/pawncc.c +++ b/source/compiler/pawncc.c @@ -22,6 +22,7 @@ * * Version: $Id: pawncc.c 3612 2006-07-22 09:59:46Z thiadmer $ */ + #include "sc.h" int main(int argc, char *argv[]) diff --git a/source/compiler/pawndisasm.c b/source/compiler/pawndisasm.c index f5ec6f4..a5db3e6 100644 --- a/source/compiler/pawndisasm.c +++ b/source/compiler/pawndisasm.c @@ -20,6 +20,7 @@ * * Version: $Id$ */ + #include #include #include diff --git a/source/compiler/sc.h b/source/compiler/sc.h index e6e5a26..beda684 100644 --- a/source/compiler/sc.h +++ b/source/compiler/sc.h @@ -27,6 +27,7 @@ * * Version: $Id: sc.h 3660 2006-11-05 13:05:09Z thiadmer $ */ + #ifndef SC_H_INCLUDED #define SC_H_INCLUDED #include diff --git a/source/compiler/sc1.c b/source/compiler/sc1.c index 616da3c..5f76b13 100644 --- a/source/compiler/sc1.c +++ b/source/compiler/sc1.c @@ -22,6 +22,7 @@ * * Version: $Id: sc1.c 3664 2006-11-08 12:09:25Z thiadmer $ */ + #include #include #include @@ -2504,7 +2505,7 @@ static void initials(int ident,int tag,cell *size,int dim[],int numdim, error(9); /* array has zero length -> invalid size */ return; } /* if */ - } /* for */ + } /* for */ *size=calc_arraysize(dim,numdim,0); if (*size==(cell)CELL_MAX) { error(9); /* array is too big -> invalid size */ @@ -3418,7 +3419,7 @@ SC_FUNC void check_index_tagmismatch(char *symname,int expectedtag,int actualtag assert(symname!=NULL); if (!matchtag(expectedtag,actualtag,allowcoerce)) { constvalue *tagsym; - char expected_tagname[sNAMEMAX+3]="none (\"_\"),",actual_tagname[sNAMEMAX+2]="none (\"_\")"; /* two extra characters for quotes */ + char expected_tagname[sNAMEMAX+3]="none (\"_\"),",actual_tagname[sNAMEMAX+2]="none (\"_\")"; /* two extra characters for quotes */ if(expectedtag!=0) { tagsym=find_tag_byval(expectedtag); sprintf(expected_tagname,"\"%s\",",(tagsym!=NULL) ? tagsym->name : "-unknown-"); @@ -3431,7 +3432,7 @@ SC_FUNC void check_index_tagmismatch(char *symname,int expectedtag,int actualtag errorset(sSETPOS,errline); error(229,symname,expected_tagname,actual_tagname); /* index tag mismatch */ if(errline>0) - errorset(sSETPOS,-1); + errorset(sSETPOS,-1); } /* if */ } @@ -3439,7 +3440,7 @@ SC_FUNC void check_tagmismatch(int formaltag,int actualtag,int allowcoerce,int e { if (!matchtag(formaltag,actualtag,allowcoerce)) { constvalue *tagsym; - char formal_tagname[sNAMEMAX+3]="none (\"_\"),",actual_tagname[sNAMEMAX+2]="none (\"_\")"; /* two extra characters for quotes */ + char formal_tagname[sNAMEMAX+3]="none (\"_\"),",actual_tagname[sNAMEMAX+2]="none (\"_\")"; /* two extra characters for quotes */ if(formaltag!=0) { tagsym=find_tag_byval(formaltag); sprintf(formal_tagname,"\"%s\",",(tagsym!=NULL) ? tagsym->name : "-unknown-"); @@ -3452,7 +3453,7 @@ SC_FUNC void check_tagmismatch(int formaltag,int actualtag,int allowcoerce,int e errorset(sSETPOS,errline); error(213,"tag",formal_tagname,actual_tagname); /* tag mismatch */ if(errline>0) - errorset(sSETPOS,-1); + errorset(sSETPOS,-1); } /* if */ } @@ -3463,7 +3464,7 @@ SC_FUNC void check_tagmismatch_multiple(int formaltags[],int numtags,int actualt constvalue *tagsym; char formal_tagnames[sLINEMAX]="",actual_tagname[sNAMEMAX+2]="none (\"_\")"; int notag_allowed=FALSE,add_comma=FALSE; - for (i=0; iname : "-unknown-"); + sprintf(formal_tagnames,"%s\"%s\"",formal_tagnames,(tagsym!=NULL) ? tagsym->name : "-unknown-"); } else { notag_allowed=TRUE; - } /* if */ + } /* if */ } /* for */ if(notag_allowed==TRUE) { if(add_comma==TRUE) @@ -3485,12 +3486,12 @@ SC_FUNC void check_tagmismatch_multiple(int formaltags[],int numtags,int actualt if(actualtag!=0) { tagsym=find_tag_byval(actualtag); sprintf(actual_tagname,"\"%s\"",(tagsym!=NULL) ? tagsym->name : "-unknown-"); - } /* if */ + } /* if */ if(errline>0) errorset(sSETPOS,errline); error(213,(numtags==1) ? "tag" : "tags",formal_tagnames,actual_tagname); /* tag mismatch */ if(errline>0) - errorset(sSETPOS,-1); + errorset(sSETPOS,-1); } /* if */ } @@ -4206,7 +4207,7 @@ static void doarg(char *name,int ident,int offset,int tags[],int numtags, } else { constexpr(&arg->defvalue.val,&arg->defvalue_tag,NULL); assert(numtags>0); - check_tagmismatch(tags[0],arg->defvalue_tag,TRUE,-1); + check_tagmismatch(tags[0],arg->defvalue_tag,TRUE,-1); } /* if */ } /* if */ } /* if */ @@ -4232,7 +4233,7 @@ static void doarg(char *name,int ident,int offset,int tags[],int numtags, if(argsym->ident==iREFARRAY || argsym->ident==iREFERENCE) argsym->usage|=uWRITTEN; } - + if (fconst) argsym->usage|=uCONST; } /* if */ diff --git a/source/compiler/sc2.c b/source/compiler/sc2.c index ef9151e..821f2a8 100644 --- a/source/compiler/sc2.c +++ b/source/compiler/sc2.c @@ -20,6 +20,7 @@ * * Version: $Id: sc2.c 3655 2006-10-23 20:17:52Z thiadmer $ */ + #include #include #include @@ -524,12 +525,12 @@ static void stripcomment(unsigned char *line) while ((continuation=strchr(continuation,'\a'))!=NULL){ /* don't give the error if the next line is also commented out. it is quite annoying to get an error for commenting out a define using: - - // + + // // #define LONG_MACRO\ // did span \ // multiple lines - // + // */ while (*continuation<=' ' && *continuation!='\0') continuation++; /* skip whitespace */ diff --git a/source/compiler/sc3.c b/source/compiler/sc3.c index 719d054..e22de2c 100644 --- a/source/compiler/sc3.c +++ b/source/compiler/sc3.c @@ -20,6 +20,7 @@ * * Version: $Id: sc3.c 3660 2006-11-05 13:05:09Z thiadmer $ */ + #include #include #include /* for _MAX_PATH */ diff --git a/source/compiler/sc4.c b/source/compiler/sc4.c index 576c16b..0f5d1af 100644 --- a/source/compiler/sc4.c +++ b/source/compiler/sc4.c @@ -20,6 +20,7 @@ * * Version: $Id: sc4.c 3633 2006-08-11 16:20:18Z thiadmer $ */ + #include #include #include diff --git a/source/compiler/sc5.c b/source/compiler/sc5.c index 2083174..cd24e87 100644 --- a/source/compiler/sc5.c +++ b/source/compiler/sc5.c @@ -21,6 +21,7 @@ * * Version: $Id: sc5.c 3579 2006-06-06 13:35:29Z thiadmer $ */ + #include #if defined __WIN32__ || defined _WIN32 || defined __MSDOS__ #include diff --git a/source/compiler/sc6.c b/source/compiler/sc6.c index f933dea..5e95a04 100644 --- a/source/compiler/sc6.c +++ b/source/compiler/sc6.c @@ -20,6 +20,7 @@ * * Version: $Id: sc6.c 3648 2006-10-12 11:24:50Z thiadmer $ */ + #include #include #include /* for macro max() */ diff --git a/source/compiler/sc7.c b/source/compiler/sc7.c index 1f897c3..5a0ed28 100644 --- a/source/compiler/sc7.c +++ b/source/compiler/sc7.c @@ -47,6 +47,7 @@ * * Version: $Id: sc7.c 3579 2006-06-06 13:35:29Z thiadmer $ */ + #include #include #include /* for atoi() */ diff --git a/source/compiler/sci18n.c b/source/compiler/sci18n.c index fa94025..78c1a36 100644 --- a/source/compiler/sci18n.c +++ b/source/compiler/sci18n.c @@ -32,6 +32,7 @@ * * Version: $Id: sci18n.c 3612 2006-07-22 09:59:46Z thiadmer $ */ + #include #include #include diff --git a/source/compiler/sclist.c b/source/compiler/sclist.c index a9f0279..60fd248 100644 --- a/source/compiler/sclist.c +++ b/source/compiler/sclist.c @@ -26,6 +26,7 @@ * * Version: $Id: sclist.c 3660 2006-11-05 13:05:09Z thiadmer $ */ + #include #include #include diff --git a/source/compiler/scstate.c b/source/compiler/scstate.c index 53a3ebe..6e87202 100644 --- a/source/compiler/scstate.c +++ b/source/compiler/scstate.c @@ -45,6 +45,7 @@ * * Version: $Id: scstate.c 3579 2006-06-06 13:35:29Z thiadmer $ */ + #include #include #include diff --git a/source/compiler/scvars.c b/source/compiler/scvars.c index d37551f..05fefa1 100644 --- a/source/compiler/scvars.c +++ b/source/compiler/scvars.c @@ -22,6 +22,7 @@ * * Version: $Id: scvars.c 3655 2006-10-23 20:17:52Z thiadmer $ */ + #include #include /* for _MAX_PATH */ #include "sc.h"