minor reordering
This commit is contained in:
parent
da52154b37
commit
47aa04f4a4
28
platform.h
28
platform.h
|
@ -10,6 +10,16 @@
|
||||||
#define USE_READLINE (defined by default for UNIX_HOST)
|
#define USE_READLINE (defined by default for UNIX_HOST)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <assert.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
#include <setjmp.h>
|
||||||
|
|
||||||
|
|
||||||
#define LARGE_INT_POWER_OF_TEN (1000000000) /* the largest power of ten which fits in an int on this architecture */
|
#define LARGE_INT_POWER_OF_TEN (1000000000) /* the largest power of ten which fits in an int on this architecture */
|
||||||
#if defined(__hppa__) || defined(__sparc__)
|
#if defined(__hppa__) || defined(__sparc__)
|
||||||
|
@ -18,6 +28,10 @@
|
||||||
#define ALIGN_TYPE void * /* the default data type to use for alignment */
|
#define ALIGN_TYPE void * /* the default data type to use for alignment */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
# if defined(__powerpc__) || defined(__hppa__) || defined(__sparc__)
|
||||||
|
# define BIG_ENDIAN
|
||||||
|
# endif
|
||||||
|
|
||||||
#define GLOBAL_TABLE_SIZE (97) /* global variable table */
|
#define GLOBAL_TABLE_SIZE (97) /* global variable table */
|
||||||
#define STRING_TABLE_SIZE (97) /* shared string table size */
|
#define STRING_TABLE_SIZE (97) /* shared string table size */
|
||||||
#define STRING_LITERAL_TABLE_SIZE (97) /* string literal table size */
|
#define STRING_LITERAL_TABLE_SIZE (97) /* string literal table size */
|
||||||
|
@ -31,16 +45,6 @@
|
||||||
#define INTERACTIVE_PROMPT_STATEMENT "picoc> "
|
#define INTERACTIVE_PROMPT_STATEMENT "picoc> "
|
||||||
#define INTERACTIVE_PROMPT_LINE " > "
|
#define INTERACTIVE_PROMPT_LINE " > "
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <ctype.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <assert.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <stdarg.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
|
|
||||||
/* undocumented, but probably useful */
|
/* undocumented, but probably useful */
|
||||||
#undef DEBUG_HEAP
|
#undef DEBUG_HEAP
|
||||||
#undef DEBUG_EXPRESSIONS
|
#undef DEBUG_EXPRESSIONS
|
||||||
|
@ -60,9 +64,7 @@
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
# include <math.h>
|
# include <math.h>
|
||||||
# define USE_READLINE
|
# define USE_READLINE
|
||||||
# if defined(__powerpc__) || defined(__hppa__) || defined(__sparc__)
|
|
||||||
# define BIG_ENDIAN
|
|
||||||
# endif
|
|
||||||
#elif defined(WIN32)
|
#elif defined(WIN32)
|
||||||
# include <math.h>
|
# include <math.h>
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue