X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fbin%2Fembryo_cc_sc.h;h=9eaf6b86e05a9f6c8d40edc70cf55ecf2548ac51;hb=b9bf26beb041831a1fdc6e97d268b068e6df3cb0;hp=53a4992ac00fa297b0cdad9392ec4fdcd4d211ce;hpb=226c11fd641bb3bdcb28c01b52b19227729878f3;p=framework%2Fuifw%2Fembryo.git diff --git a/src/bin/embryo_cc_sc.h b/src/bin/embryo_cc_sc.h index 53a4992..9eaf6b8 100644 --- a/src/bin/embryo_cc_sc.h +++ b/src/bin/embryo_cc_sc.h @@ -35,15 +35,16 @@ #include #include #include -#include "embryo_cc_osdefs.h" -#include "embryo_cc_amx.h" -#if HAVE___ATTRIBUTE__ -#define __UNUSED__ __attribute__((unused)) +#ifndef _MSC_VER +# include #else -#define __UNUSED__ +# include +# include #endif +#include "embryo_cc_amx.h" + /* Note: the "cell" and "ucell" types are defined in AMX.H */ #define PUBLIC_CHAR '@' /* character that defines a function "public" */ @@ -53,13 +54,13 @@ #define sDIMEN_MAX 2 /* maximum number of array dimensions */ #define sDEF_LITMAX 500 /* initial size of the literal pool, in "cells" */ -#define sLINEMAX 65535 /* input line length (in characters) */ +#define sLINEMAX (640 * 1024) /* input line length (in characters) */ #define sDEF_AMXSTACK 4096 /* default stack size for AMX files */ #define sSTKMAX 80 /* stack for nested #includes and other uses */ #define PREPROC_TERM '\x7f' /* termination character for preprocessor expressions (the "DEL" code) */ #define sDEF_PREFIX "default.inc" /* default prefix filename */ -typedef void *stkitem; /* type of items stored on the stack */ +typedef intptr_t stkitem; /* type of items stored on the stack */ typedef struct __s_arginfo { /* function argument info */ @@ -663,4 +664,10 @@ extern FILE *outf; /* file written to */ extern jmp_buf errbuf; /* target of longjmp() on a fatal error */ +#define sc_isspace(x) isspace ((int)((unsigned char)x)) +#define sc_isalpha(x) isalpha ((int)((unsigned char)x)) +#define sc_isdigit(x) isdigit ((int)((unsigned char)x)) +#define sc_isupper(x) isupper ((int)((unsigned char)x)) +#define sc_isxdigit(x) isxdigit((int)((unsigned char)x)) + #endif