Whitespace cleanup
This commit is contained in:
parent
038bf419ff
commit
16995c5ee1
@ -20,6 +20,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: amxargs.c 3649 2006-10-12 13:13:57Z thiadmer $
|
* Version: $Id: amxargs.c 3649 2006-10-12 13:13:57Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined _UNICODE || defined __UNICODE__ || defined UNICODE
|
#if defined _UNICODE || defined __UNICODE__ || defined UNICODE
|
||||||
# if !defined UNICODE /* for Windows */
|
# if !defined UNICODE /* for Windows */
|
||||||
# define UNICODE
|
# define UNICODE
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: amxaux.c 3612 2006-07-22 09:59:46Z thiadmer $
|
* Version: $Id: amxaux.c 3612 2006-07-22 09:59:46Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: amxaux.h 3612 2006-07-22 09:59:46Z thiadmer $
|
* Version: $Id: amxaux.h 3612 2006-07-22 09:59:46Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef AMXAUX_H_INCLUDED
|
#ifndef AMXAUX_H_INCLUDED
|
||||||
#define AMXAUX_H_INCLUDED
|
#define AMXAUX_H_INCLUDED
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: amxcore.c 3657 2006-10-24 20:09:50Z thiadmer $
|
* Version: $Id: amxcore.c 3657 2006-10-24 20:09:50Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined _UNICODE || defined __UNICODE__ || defined UNICODE
|
#if defined _UNICODE || defined __UNICODE__ || defined UNICODE
|
||||||
# if !defined UNICODE /* for Windows */
|
# if !defined UNICODE /* for Windows */
|
||||||
# define UNICODE
|
# define UNICODE
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: amxdbg.c 3612 2006-07-22 09:59:46Z thiadmer $
|
* Version: $Id: amxdbg.c 3612 2006-07-22 09:59:46Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: amxdgram.c 3664 2006-11-08 12:09:25Z thiadmer $
|
* Version: $Id: amxdgram.c 3664 2006-11-08 12:09:25Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#if defined LINUX
|
#if defined LINUX
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: amxfile.c 3660 2006-11-05 13:05:09Z thiadmer $
|
* Version: $Id: amxfile.c 3660 2006-11-05 13:05:09Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined _UNICODE || defined __UNICODE__ || defined UNICODE
|
#if defined _UNICODE || defined __UNICODE__ || defined UNICODE
|
||||||
# if !defined UNICODE /* for Windows */
|
# if !defined UNICODE /* for Windows */
|
||||||
# define UNICODE
|
# define UNICODE
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: amxgc.c 3660 2006-11-05 13:05:09Z thiadmer $
|
* Version: $Id: amxgc.c 3660 2006-11-05 13:05:09Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <stdlib.h> /* for malloc()/free() */
|
#include <stdlib.h> /* for malloc()/free() */
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: amxprocess.c 3664 2006-11-08 12:09:25Z thiadmer $
|
* Version: $Id: amxprocess.c 3664 2006-11-08 12:09:25Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined _UNICODE || defined __UNICODE__ || defined UNICODE
|
#if defined _UNICODE || defined __UNICODE__ || defined UNICODE
|
||||||
# if !defined UNICODE /* for Windows */
|
# if !defined UNICODE /* for Windows */
|
||||||
# define UNICODE
|
# define UNICODE
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: amxstring.c 3656 2006-10-24 07:20:26Z thiadmer $
|
* Version: $Id: amxstring.c 3656 2006-10-24 07:20:26Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: amxtime.c 3649 2006-10-12 13:13:57Z thiadmer $
|
* Version: $Id: amxtime.c 3649 2006-10-12 13:13:57Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include "amx.h"
|
#include "amx.h"
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: fixed.c 3662 2006-11-07 08:44:33Z thiadmer $
|
* Version: $Id: fixed.c 3662 2006-11-07 08:44:33Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h> /* for NULL */
|
#include <stdio.h> /* for NULL */
|
||||||
#include "amx.h"
|
#include "amx.h"
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
* 2004-01-09: Adaptions for 64-bit cells (using "double precision"), by
|
* 2004-01-09: Adaptions for 64-bit cells (using "double precision"), by
|
||||||
* Thiadmer Riemersma
|
* Thiadmer Riemersma
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h> /* for atof() */
|
#include <stdlib.h> /* for atof() */
|
||||||
#include <stdio.h> /* for NULL */
|
#include <stdio.h> /* for NULL */
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
@ -50,6 +50,7 @@
|
|||||||
* needs only to transfer a file:
|
* needs only to transfer a file:
|
||||||
* pawndbg myprog.amx -rs232=1 -transfer -quit
|
* pawndbg myprog.amx -rs232=1 -transfer -quit
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: pawnrun.c 3615 2006-07-27 07:49:08Z thiadmer $
|
* Version: $Id: pawnrun.c 3615 2006-07-27 07:49:08Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
*
|
*
|
||||||
* This file may be freely used. No warranties of any kind.
|
* This file may be freely used. No warranties of any kind.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h> /* for exit() */
|
#include <stdlib.h> /* for exit() */
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
*
|
*
|
||||||
* This file may be freely used. No warranties of any kind.
|
* This file may be freely used. No warranties of any kind.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
*
|
*
|
||||||
* This file may be freely used. No warranties of any kind.
|
* This file may be freely used. No warranties of any kind.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h> /* for exit() */
|
#include <stdlib.h> /* for exit() */
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
*
|
*
|
||||||
* This file may be freely used. No warranties of any kind.
|
* This file may be freely used. No warranties of any kind.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h> /* for exit() */
|
#include <stdlib.h> /* for exit() */
|
||||||
#include <string.h> /* for memset() (on some compilers) */
|
#include <string.h> /* for memset() (on some compilers) */
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
*
|
*
|
||||||
* This file may be freely used. No warranties of any kind.
|
* This file may be freely used. No warranties of any kind.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
* misrepresented as being the original software.
|
* misrepresented as being the original software.
|
||||||
* 3. This notice may not be removed or altered from any source distribution.
|
* 3. This notice may not be removed or altered from any source distribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: libpawnc.c 3612 2006-07-22 09:59:46Z thiadmer $
|
* Version: $Id: libpawnc.c 3612 2006-07-22 09:59:46Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: pawncc.c 3612 2006-07-22 09:59:46Z thiadmer $
|
* Version: $Id: pawncc.c 3612 2006-07-22 09:59:46Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "sc.h"
|
#include "sc.h"
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id$
|
* Version: $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: sc.h 3660 2006-11-05 13:05:09Z thiadmer $
|
* Version: $Id: sc.h 3660 2006-11-05 13:05:09Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SC_H_INCLUDED
|
#ifndef SC_H_INCLUDED
|
||||||
#define SC_H_INCLUDED
|
#define SC_H_INCLUDED
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: sc1.c 3664 2006-11-08 12:09:25Z thiadmer $
|
* Version: $Id: sc1.c 3664 2006-11-08 12:09:25Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
@ -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 */
|
error(9); /* array has zero length -> invalid size */
|
||||||
return;
|
return;
|
||||||
} /* if */
|
} /* if */
|
||||||
} /* for */
|
} /* for */
|
||||||
*size=calc_arraysize(dim,numdim,0);
|
*size=calc_arraysize(dim,numdim,0);
|
||||||
if (*size==(cell)CELL_MAX) {
|
if (*size==(cell)CELL_MAX) {
|
||||||
error(9); /* array is too big -> invalid size */
|
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);
|
assert(symname!=NULL);
|
||||||
if (!matchtag(expectedtag,actualtag,allowcoerce)) {
|
if (!matchtag(expectedtag,actualtag,allowcoerce)) {
|
||||||
constvalue *tagsym;
|
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) {
|
if(expectedtag!=0) {
|
||||||
tagsym=find_tag_byval(expectedtag);
|
tagsym=find_tag_byval(expectedtag);
|
||||||
sprintf(expected_tagname,"\"%s\",",(tagsym!=NULL) ? tagsym->name : "-unknown-");
|
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);
|
errorset(sSETPOS,errline);
|
||||||
error(229,symname,expected_tagname,actual_tagname); /* index tag mismatch */
|
error(229,symname,expected_tagname,actual_tagname); /* index tag mismatch */
|
||||||
if(errline>0)
|
if(errline>0)
|
||||||
errorset(sSETPOS,-1);
|
errorset(sSETPOS,-1);
|
||||||
} /* if */
|
} /* if */
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3439,7 +3440,7 @@ SC_FUNC void check_tagmismatch(int formaltag,int actualtag,int allowcoerce,int e
|
|||||||
{
|
{
|
||||||
if (!matchtag(formaltag,actualtag,allowcoerce)) {
|
if (!matchtag(formaltag,actualtag,allowcoerce)) {
|
||||||
constvalue *tagsym;
|
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) {
|
if(formaltag!=0) {
|
||||||
tagsym=find_tag_byval(formaltag);
|
tagsym=find_tag_byval(formaltag);
|
||||||
sprintf(formal_tagname,"\"%s\",",(tagsym!=NULL) ? tagsym->name : "-unknown-");
|
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);
|
errorset(sSETPOS,errline);
|
||||||
error(213,"tag",formal_tagname,actual_tagname); /* tag mismatch */
|
error(213,"tag",formal_tagname,actual_tagname); /* tag mismatch */
|
||||||
if(errline>0)
|
if(errline>0)
|
||||||
errorset(sSETPOS,-1);
|
errorset(sSETPOS,-1);
|
||||||
} /* if */
|
} /* if */
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3463,7 +3464,7 @@ SC_FUNC void check_tagmismatch_multiple(int formaltags[],int numtags,int actualt
|
|||||||
constvalue *tagsym;
|
constvalue *tagsym;
|
||||||
char formal_tagnames[sLINEMAX]="",actual_tagname[sNAMEMAX+2]="none (\"_\")";
|
char formal_tagnames[sLINEMAX]="",actual_tagname[sNAMEMAX+2]="none (\"_\")";
|
||||||
int notag_allowed=FALSE,add_comma=FALSE;
|
int notag_allowed=FALSE,add_comma=FALSE;
|
||||||
for (i=0; i<numtags; i++) {
|
for (i=0; i<numtags; i++) {
|
||||||
if(formaltags[i]!=0) {
|
if(formaltags[i]!=0) {
|
||||||
if((i+1)==numtags && add_comma==TRUE && notag_allowed==FALSE)
|
if((i+1)==numtags && add_comma==TRUE && notag_allowed==FALSE)
|
||||||
strlcat(formal_tagnames,", or ",sizeof(formal_tagnames));
|
strlcat(formal_tagnames,", or ",sizeof(formal_tagnames));
|
||||||
@ -3471,10 +3472,10 @@ SC_FUNC void check_tagmismatch_multiple(int formaltags[],int numtags,int actualt
|
|||||||
strlcat(formal_tagnames,", ",sizeof(formal_tagnames));
|
strlcat(formal_tagnames,", ",sizeof(formal_tagnames));
|
||||||
add_comma=TRUE;
|
add_comma=TRUE;
|
||||||
tagsym=find_tag_byval(formaltags[i]);
|
tagsym=find_tag_byval(formaltags[i]);
|
||||||
sprintf(formal_tagnames,"%s\"%s\"",formal_tagnames,(tagsym!=NULL) ? tagsym->name : "-unknown-");
|
sprintf(formal_tagnames,"%s\"%s\"",formal_tagnames,(tagsym!=NULL) ? tagsym->name : "-unknown-");
|
||||||
} else {
|
} else {
|
||||||
notag_allowed=TRUE;
|
notag_allowed=TRUE;
|
||||||
} /* if */
|
} /* if */
|
||||||
} /* for */
|
} /* for */
|
||||||
if(notag_allowed==TRUE) {
|
if(notag_allowed==TRUE) {
|
||||||
if(add_comma==TRUE)
|
if(add_comma==TRUE)
|
||||||
@ -3485,12 +3486,12 @@ SC_FUNC void check_tagmismatch_multiple(int formaltags[],int numtags,int actualt
|
|||||||
if(actualtag!=0) {
|
if(actualtag!=0) {
|
||||||
tagsym=find_tag_byval(actualtag);
|
tagsym=find_tag_byval(actualtag);
|
||||||
sprintf(actual_tagname,"\"%s\"",(tagsym!=NULL) ? tagsym->name : "-unknown-");
|
sprintf(actual_tagname,"\"%s\"",(tagsym!=NULL) ? tagsym->name : "-unknown-");
|
||||||
} /* if */
|
} /* if */
|
||||||
if(errline>0)
|
if(errline>0)
|
||||||
errorset(sSETPOS,errline);
|
errorset(sSETPOS,errline);
|
||||||
error(213,(numtags==1) ? "tag" : "tags",formal_tagnames,actual_tagname); /* tag mismatch */
|
error(213,(numtags==1) ? "tag" : "tags",formal_tagnames,actual_tagname); /* tag mismatch */
|
||||||
if(errline>0)
|
if(errline>0)
|
||||||
errorset(sSETPOS,-1);
|
errorset(sSETPOS,-1);
|
||||||
} /* if */
|
} /* if */
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4206,7 +4207,7 @@ static void doarg(char *name,int ident,int offset,int tags[],int numtags,
|
|||||||
} else {
|
} else {
|
||||||
constexpr(&arg->defvalue.val,&arg->defvalue_tag,NULL);
|
constexpr(&arg->defvalue.val,&arg->defvalue_tag,NULL);
|
||||||
assert(numtags>0);
|
assert(numtags>0);
|
||||||
check_tagmismatch(tags[0],arg->defvalue_tag,TRUE,-1);
|
check_tagmismatch(tags[0],arg->defvalue_tag,TRUE,-1);
|
||||||
} /* if */
|
} /* if */
|
||||||
} /* if */
|
} /* 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)
|
if(argsym->ident==iREFARRAY || argsym->ident==iREFERENCE)
|
||||||
argsym->usage|=uWRITTEN;
|
argsym->usage|=uWRITTEN;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fconst)
|
if (fconst)
|
||||||
argsym->usage|=uCONST;
|
argsym->usage|=uCONST;
|
||||||
} /* if */
|
} /* if */
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: sc2.c 3655 2006-10-23 20:17:52Z thiadmer $
|
* Version: $Id: sc2.c 3655 2006-10-23 20:17:52Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -524,12 +525,12 @@ static void stripcomment(unsigned char *line)
|
|||||||
while ((continuation=strchr(continuation,'\a'))!=NULL){
|
while ((continuation=strchr(continuation,'\a'))!=NULL){
|
||||||
/* don't give the error if the next line is also commented out.
|
/* 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:
|
it is quite annoying to get an error for commenting out a define using:
|
||||||
|
|
||||||
//
|
//
|
||||||
// #define LONG_MACRO\
|
// #define LONG_MACRO\
|
||||||
// did span \
|
// did span \
|
||||||
// multiple lines
|
// multiple lines
|
||||||
//
|
//
|
||||||
*/
|
*/
|
||||||
while (*continuation<=' ' && *continuation!='\0')
|
while (*continuation<=' ' && *continuation!='\0')
|
||||||
continuation++; /* skip whitespace */
|
continuation++; /* skip whitespace */
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: sc3.c 3660 2006-11-05 13:05:09Z thiadmer $
|
* Version: $Id: sc3.c 3660 2006-11-05 13:05:09Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h> /* for _MAX_PATH */
|
#include <stdlib.h> /* for _MAX_PATH */
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: sc4.c 3633 2006-08-11 16:20:18Z thiadmer $
|
* Version: $Id: sc4.c 3633 2006-08-11 16:20:18Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: sc5.c 3579 2006-06-06 13:35:29Z thiadmer $
|
* Version: $Id: sc5.c 3579 2006-06-06 13:35:29Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#if defined __WIN32__ || defined _WIN32 || defined __MSDOS__
|
#if defined __WIN32__ || defined _WIN32 || defined __MSDOS__
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: sc6.c 3648 2006-10-12 11:24:50Z thiadmer $
|
* Version: $Id: sc6.c 3648 2006-10-12 11:24:50Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h> /* for macro max() */
|
#include <stdlib.h> /* for macro max() */
|
||||||
|
@ -47,6 +47,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: sc7.c 3579 2006-06-06 13:35:29Z thiadmer $
|
* Version: $Id: sc7.c 3579 2006-06-06 13:35:29Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h> /* for atoi() */
|
#include <stdlib.h> /* for atoi() */
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: sci18n.c 3612 2006-07-22 09:59:46Z thiadmer $
|
* Version: $Id: sci18n.c 3612 2006-07-22 09:59:46Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: sclist.c 3660 2006-11-05 13:05:09Z thiadmer $
|
* Version: $Id: sclist.c 3660 2006-11-05 13:05:09Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -45,6 +45,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: scstate.c 3579 2006-06-06 13:35:29Z thiadmer $
|
* Version: $Id: scstate.c 3579 2006-06-06 13:35:29Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
*
|
*
|
||||||
* Version: $Id: scvars.c 3655 2006-10-23 20:17:52Z thiadmer $
|
* Version: $Id: scvars.c 3655 2006-10-23 20:17:52Z thiadmer $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h> /* for _MAX_PATH */
|
#include <stdlib.h> /* for _MAX_PATH */
|
||||||
#include "sc.h"
|
#include "sc.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user