diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-05 20:38:39 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-05 20:38:39 +0000 |
commit | 36be54817fe1d8879f26b7f0e1797e8ba23e8a0f (patch) | |
tree | dcb1e1716e40880ec68883fdc0a50123eea77293 /nuttx/include/nuttx/compiler.h | |
parent | 152b278e70541d86a06e76c25f37c9588526c6fa (diff) | |
download | nuttx-36be54817fe1d8879f26b7f0e1797e8ba23e8a0f.tar.gz nuttx-36be54817fe1d8879f26b7f0e1797e8ba23e8a0f.tar.bz2 nuttx-36be54817fe1d8879f26b7f0e1797e8ba23e8a0f.zip |
Re-design vsprintf so that it does not use so much stack; handle 8051's 2-byte generic pointers.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@38 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/nuttx/compiler.h')
-rw-r--r-- | nuttx/include/nuttx/compiler.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/compiler.h b/nuttx/include/nuttx/compiler.h index 640129bed..304759065 100644 --- a/nuttx/include/nuttx/compiler.h +++ b/nuttx/include/nuttx/compiler.h @@ -80,6 +80,14 @@ # undef CONFIG_SMALL_MEMORY +/* Long and int are (probably) the same size */ + +# undef CONFIG_LONG_IS_NOT_INT + +/* The pointers and int are the same size */ + +# undef CONFIG_PTR_IS_NOT_INT + /* GCC supports inlined functions */ # define CONFIG_HAVE_INLINE 1 @@ -140,6 +148,14 @@ # define CONFIG_SMALL_MEMORY 1 +/* Long and int are not the same size */ + +# define CONFIG_LONG_IS_NOT_INT 1 + +/* The generic point and int are not the same size */ + +# define CONFIG_PTR_IS_NOT_INT 1 + /* SDCC does not support inline functions */ # undef CONFIG_HAVE_INLINE @@ -172,6 +188,8 @@ # define CODE # undef CONFIG_SMALL_MEMORY +# undef CONFIG_LONG_IS_NOT_INT +# undef CONFIG_PTR_IS_NOT_INT # undef CONFIG_HAVE_INLINE # undef CONFIG_HAVE_LONG_LONG # undef CONFIG_HAVE_DOUBLE |