ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

forbidden.h

Go to the documentation of this file.
00001 /* ScummVM - Graphic Adventure Engine
00002  *
00003  * ScummVM is the legal property of its developers, whose names
00004  * are too numerous to list here. Please refer to the COPYRIGHT
00005  * file distributed with this source distribution.
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License
00009  * as published by the Free Software Foundation; either version 2
00010  * of the License, or (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00020  *
00021  */
00022 
00023 #ifndef COMMON_FORBIDDEN_H
00024 #define COMMON_FORBIDDEN_H
00025 
00042 #ifndef FORBIDDEN_SYMBOL_ALLOW_ALL
00043 
00044 // Make sure scummsys.h is always included first
00045 #include "common/scummsys.h"
00046 
00047 
00057 #define FORBIDDEN_SYMBOL_REPLACEMENT    FORBIDDEN_look_at_common_forbidden_h_for_more_info SYMBOL !%*
00058 
00059 
00060 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_printf
00061 #undef printf
00062 #define printf  FORBIDDEN_SYMBOL_REPLACEMENT
00063 #endif
00064 
00065 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_fprintf
00066 #undef fprintf
00067 #define fprintf FORBIDDEN_SYMBOL_REPLACEMENT
00068 #endif
00069 
00070 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_vprintf
00071 #undef vprintf
00072 #define vprintf FORBIDDEN_SYMBOL_REPLACEMENT
00073 #endif
00074 
00075 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_vfprintf
00076 #undef vfprintf
00077 #define vfprintf    FORBIDDEN_SYMBOL_REPLACEMENT
00078 #endif
00079 
00080 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_FILE
00081 #undef FILE
00082 #define FILE    FORBIDDEN_SYMBOL_REPLACEMENT
00083 #endif
00084 
00085 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_stdin
00086 #undef stdin
00087 #define stdin   FORBIDDEN_SYMBOL_REPLACEMENT
00088 #endif
00089 
00090 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_stdout
00091 #undef stdout
00092 #define stdout  FORBIDDEN_SYMBOL_REPLACEMENT
00093 #endif
00094 
00095 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_stderr
00096 #undef stderr
00097 #define stderr  FORBIDDEN_SYMBOL_REPLACEMENT
00098 #endif
00099 
00100 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_fopen
00101 #undef fopen
00102 #define fopen(a,b)  FORBIDDEN_SYMBOL_REPLACEMENT
00103 #endif
00104 
00105 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_fclose
00106 #undef fclose
00107 #define fclose(a)   FORBIDDEN_SYMBOL_REPLACEMENT
00108 #endif
00109 
00110 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_fread
00111 #undef fread
00112 #define fread(a,b,c,d)  FORBIDDEN_SYMBOL_REPLACEMENT
00113 #endif
00114 
00115 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_fwrite
00116 #undef fwrite
00117 #define fwrite(a,b,c,d) FORBIDDEN_SYMBOL_REPLACEMENT
00118 #endif
00119 
00120 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_fseek
00121 #undef fseek
00122 #define fseek(a,b,c)    FORBIDDEN_SYMBOL_REPLACEMENT
00123 #endif
00124 
00125 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_ftell
00126 #undef ftell
00127 #define ftell(a)    FORBIDDEN_SYMBOL_REPLACEMENT
00128 #endif
00129 
00130 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_feof
00131 #undef feof
00132 #define feof(a) FORBIDDEN_SYMBOL_REPLACEMENT
00133 #endif
00134 
00135 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_fgetc
00136 #undef fgetc
00137 #define fgetc(a)    FORBIDDEN_SYMBOL_REPLACEMENT
00138 #endif
00139 
00140 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_fputc
00141 #undef fputc
00142 #define fputc(a,b)  FORBIDDEN_SYMBOL_REPLACEMENT
00143 #endif
00144 
00145 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_fgets
00146 #undef fgets
00147 #define fgets(a,b,c)    FORBIDDEN_SYMBOL_REPLACEMENT
00148 #endif
00149 
00150 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_fputs
00151 #undef fputs
00152 #define fputs(a,b)  FORBIDDEN_SYMBOL_REPLACEMENT
00153 #endif
00154 
00155 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_getc
00156 #undef getc
00157 #define getc(a) FORBIDDEN_SYMBOL_REPLACEMENT
00158 #endif
00159 
00160 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_putc
00161 #undef putc
00162 #define putc(a,b)   FORBIDDEN_SYMBOL_REPLACEMENT
00163 #endif
00164 
00165 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_gets
00166 #undef gets
00167 #define gets(a) FORBIDDEN_SYMBOL_REPLACEMENT
00168 #endif
00169 
00170 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_puts
00171 #undef puts
00172 #define puts(a) FORBIDDEN_SYMBOL_REPLACEMENT
00173 #endif
00174 
00175 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_getchar
00176 #undef getchar
00177 #define getchar()   FORBIDDEN_SYMBOL_REPLACEMENT
00178 #endif
00179 
00180 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_putchar
00181 #undef putchar
00182 #define putchar(a)  FORBIDDEN_SYMBOL_REPLACEMENT
00183 #endif
00184 
00185 // mingw-w64 uses [set|long]jmp in system headers
00186 #if !defined __MINGW64__ && ! defined __MINGW32__
00187 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_setjmp
00188 #undef setjmp
00189 #define setjmp(a)   FORBIDDEN_SYMBOL_REPLACEMENT
00190 #endif
00191 
00192 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_longjmp
00193 #undef longjmp
00194 #define longjmp(a,b)    FORBIDDEN_SYMBOL_REPLACEMENT
00195 #endif
00196 #endif // __MINGW64__ __MINGW32__
00197 
00198 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_system
00199 #undef system
00200 #define system(a)   FORBIDDEN_SYMBOL_REPLACEMENT
00201 #endif
00202 
00203 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_exit
00204 #undef exit
00205 #define exit(a) FORBIDDEN_SYMBOL_REPLACEMENT
00206 #endif
00207 
00208 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_abort
00209 #undef abort
00210 #define abort() FORBIDDEN_SYMBOL_REPLACEMENT
00211 #endif
00212 
00213 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_getenv
00214 #undef getenv
00215 #define getenv(a)   FORBIDDEN_SYMBOL_REPLACEMENT
00216 #endif
00217 
00218 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_putenv
00219 #undef putenv
00220 #define putenv(a)   FORBIDDEN_SYMBOL_REPLACEMENT
00221 #endif
00222 
00223 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_setenv
00224 #undef setenv
00225 #define setenv(a,b,c)   FORBIDDEN_SYMBOL_REPLACEMENT
00226 #endif
00227 
00228 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_unsetenv
00229 #undef unsetenv
00230 #define unsetenv(a) FORBIDDEN_SYMBOL_REPLACEMENT
00231 #endif
00232 
00233 
00234 //
00235 // Disable various symbols from time.h
00236 //
00237 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_time_h
00238 
00239     /*
00240     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_time_t
00241     #undef time_t
00242     #define time_t  FORBIDDEN_SYMBOL_REPLACEMENT
00243     #endif
00244     */
00245 
00246     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_asctime
00247     #undef asctime
00248     #define asctime(a)  FORBIDDEN_SYMBOL_REPLACEMENT
00249     #endif
00250 
00251     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_clock
00252     #undef clock
00253     #define clock() FORBIDDEN_SYMBOL_REPLACEMENT
00254     #endif
00255 
00256     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_ctime
00257     #undef ctime
00258     #define ctime(a)    FORBIDDEN_SYMBOL_REPLACEMENT
00259     #endif
00260 
00261     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_difftime
00262     #undef difftime
00263     #define difftime(a,b)   FORBIDDEN_SYMBOL_REPLACEMENT
00264     #endif
00265 
00266     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_getdate
00267     #undef getdate
00268     #define getdate(a)  FORBIDDEN_SYMBOL_REPLACEMENT
00269     #endif
00270 
00271     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_gmtime
00272     #undef gmtime
00273     #define gmtime(a)   FORBIDDEN_SYMBOL_REPLACEMENT
00274     #endif
00275 
00276     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_localtime
00277     #undef localtime
00278     #define localtime(a)    FORBIDDEN_SYMBOL_REPLACEMENT
00279     #endif
00280 
00281     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_mktime
00282     #undef mktime
00283     #define mktime(a)   FORBIDDEN_SYMBOL_REPLACEMENT
00284     #endif
00285 
00286     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_time
00287     #undef time
00288     #define time(a) FORBIDDEN_SYMBOL_REPLACEMENT
00289     #endif
00290 
00291 #endif // FORBIDDEN_SYMBOL_EXCEPTION_time_h
00292 
00293 //
00294 // Disable various symbols from unistd.h
00295 //
00296 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_unistd_h
00297 
00298     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_chdir
00299     #undef chdir
00300     #define chdir(a)    FORBIDDEN_SYMBOL_REPLACEMENT
00301     #endif
00302 
00303     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_getcwd
00304     #undef getcwd
00305     #define getcwd(a,b) FORBIDDEN_SYMBOL_REPLACEMENT
00306     #endif
00307 
00308     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_getwd
00309     #undef getwd
00310     #define getwd(a)    FORBIDDEN_SYMBOL_REPLACEMENT
00311     #endif
00312 
00313     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_unlink
00314     #undef unlink
00315     #define unlink(a)   FORBIDDEN_SYMBOL_REPLACEMENT
00316     #endif
00317 
00318 #endif // FORBIDDEN_SYMBOL_EXCEPTION_unistd_h
00319 
00320 
00321 //
00322 // Disable various symbols from ctype.h
00323 //
00324 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_ctype_h
00325 
00326     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_isalnum
00327     #undef isalnum
00328     #define isalnum(a)  FORBIDDEN_SYMBOL_REPLACEMENT
00329     #endif
00330 
00331     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_isalpha
00332     #undef isalpha
00333     #define isalpha(a)  FORBIDDEN_SYMBOL_REPLACEMENT
00334     #endif
00335 
00336     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_iscntrl
00337     #undef iscntrl
00338     #define iscntrl(a)  FORBIDDEN_SYMBOL_REPLACEMENT
00339     #endif
00340 
00341     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_isdigit
00342     #undef isdigit
00343     #define isdigit(a)  FORBIDDEN_SYMBOL_REPLACEMENT
00344     #endif
00345 
00346     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_isgraph
00347     #undef isgraph
00348     #define isgraph(a)  FORBIDDEN_SYMBOL_REPLACEMENT
00349     #endif
00350 
00351     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_isnumber
00352     #undef isnumber
00353     #define isnumber(a) FORBIDDEN_SYMBOL_REPLACEMENT
00354     #endif
00355 
00356     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_islower
00357     #undef islower
00358     #define islower(a)  FORBIDDEN_SYMBOL_REPLACEMENT
00359     #endif
00360 
00361     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_isprint
00362     #undef isprint
00363     #define isprint(a)  FORBIDDEN_SYMBOL_REPLACEMENT
00364     #endif
00365 
00366     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_ispunct
00367     #undef ispunct
00368     #define ispunct(a)  FORBIDDEN_SYMBOL_REPLACEMENT
00369     #endif
00370 
00371     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_isspace
00372     #undef isspace
00373     #define isspace(a)  FORBIDDEN_SYMBOL_REPLACEMENT
00374     #endif
00375 
00376     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_isupper
00377     #undef isupper
00378     #define isupper(a)  FORBIDDEN_SYMBOL_REPLACEMENT
00379     #endif
00380 
00381     #ifndef FORBIDDEN_SYMBOL_EXCEPTION_isxdigit
00382     #undef isxdigit
00383     #define isxdigit(a) FORBIDDEN_SYMBOL_REPLACEMENT
00384     #endif
00385 
00386 #endif // FORBIDDEN_SYMBOL_EXCEPTION_ctype_h
00387 
00388 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_mkdir
00389 #undef mkdir
00390 #define mkdir(a,b)  FORBIDDEN_SYMBOL_REPLACEMENT
00391 #endif
00392 
00393 /*
00394 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_setlocale
00395 #undef setlocale
00396 #define setlocale(a,b)  FORBIDDEN_SYMBOL_REPLACEMENT
00397 #endif
00398 */
00399 
00400 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_setvbuf
00401 #undef setvbuf
00402 #define setvbuf(a,b,c,d)    FORBIDDEN_SYMBOL_REPLACEMENT
00403 #endif
00404 
00405 
00406 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_tmpfile
00407 #undef tmpfile
00408 #define tmpfile()   FORBIDDEN_SYMBOL_REPLACEMENT
00409 #endif
00410 
00411 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_tmpnam
00412 #undef tmpnam
00413 #define tmpnam(a)   FORBIDDEN_SYMBOL_REPLACEMENT
00414 #endif
00415 
00416 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_tempnam
00417 #undef tempnam
00418 #define tempnam(a,b)    FORBIDDEN_SYMBOL_REPLACEMENT
00419 #endif
00420 
00421 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_rand
00422 #undef rand
00423 #define rand()  FORBIDDEN_SYMBOL_REPLACEMENT
00424 #endif
00425 
00426 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_srand
00427 #undef srand
00428 #define srand(a)    FORBIDDEN_SYMBOL_REPLACEMENT
00429 #endif
00430 
00431 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_random
00432 #undef random
00433 #define random()    FORBIDDEN_SYMBOL_REPLACEMENT
00434 #endif
00435 
00436 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_srandom
00437 #undef srandom
00438 #define srandom(a)  FORBIDDEN_SYMBOL_REPLACEMENT
00439 #endif
00440 
00441 
00442 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_stricmp
00443 #undef stricmp
00444 #define stricmp(a,b)    FORBIDDEN_SYMBOL_REPLACEMENT
00445 #endif
00446 
00447 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_strnicmp
00448 #undef strnicmp
00449 #define strnicmp(a,b,c) FORBIDDEN_SYMBOL_REPLACEMENT
00450 #endif
00451 
00452 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_strcasecmp
00453 #undef strcasecmp
00454 #define strcasecmp(a,b) FORBIDDEN_SYMBOL_REPLACEMENT
00455 #endif
00456 
00457 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_strncasecmp
00458 #undef strncasecmp
00459 #define strncasecmp(a,b,c)  FORBIDDEN_SYMBOL_REPLACEMENT
00460 #endif
00461 
00462 #ifndef FORBIDDEN_SYMBOL_EXCEPTION_strdup
00463 #undef strdup
00464 #define strdup(a)   FORBIDDEN_SYMBOL_REPLACEMENT
00465 #endif
00466 
00467 /*
00468  * We also would like to disable the following symbols;
00469  * however, these are also frequently used in regular code,
00470  * e.g. for method names, so we don't override them.
00471  * - read
00472  * - remove
00473  * - write
00474  * - ...
00475  */
00476 
00477 
00478 #endif
00479 
00480 
00481 #endif


Generated on Sat Feb 16 2019 05:00:51 for ResidualVM by doxygen 1.7.1
curved edge   curved edge