svn commit: trunk/busybox/include

aldot at busybox.net aldot at busybox.net
Thu Jan 18 10:32:11 UTC 2007


Author: aldot
Date: 2007-01-18 02:32:09 -0800 (Thu, 18 Jan 2007)
New Revision: 17363

Log:
- move the smallint that is platform dependant to it's proper place


Modified:
   trunk/busybox/include/libbb.h
   trunk/busybox/include/platform.h


Changeset:
Modified: trunk/busybox/include/libbb.h
===================================================================
--- trunk/busybox/include/libbb.h	2007-01-18 10:26:07 UTC (rev 17362)
+++ trunk/busybox/include/libbb.h	2007-01-18 10:32:09 UTC (rev 17363)
@@ -223,18 +223,7 @@
 extern int sysinfo(struct sysinfo* info);
 
 
-/* Size-saving "small" ints (arch-dependent) */
-#if defined(i386) || defined(__x86_64__) || defined(__mips__) || defined(__cris__)
-/* add other arches which benefit from this... */
-typedef signed char smallint;
-typedef unsigned char smalluint;
-#else
-/* for arches where byte accesses generate larger code: */
-typedef int smallint;
-typedef unsigned smalluint;
-#endif
 
-
 extern void chomp(char *s);
 extern void trim(char *s);
 extern char *skip_whitespace(const char *);

Modified: trunk/busybox/include/platform.h
===================================================================
--- trunk/busybox/include/platform.h	2007-01-18 10:26:07 UTC (rev 17362)
+++ trunk/busybox/include/platform.h	2007-01-18 10:32:09 UTC (rev 17363)
@@ -172,6 +172,17 @@
 #endif
 #endif
 
+/* Size-saving "small" ints (arch-dependent) */
+#if defined(i386) || defined(__x86_64__) || defined(__mips__) || defined(__cris__)
+/* add other arches which benefit from this... */
+typedef signed char smallint;
+typedef unsigned char smalluint;
+#else
+/* for arches where byte accesses generate larger code: */
+typedef int smallint;
+typedef unsigned smalluint;
+#endif
+
 /* uclibc does not implement daemon() for no-mmu systems.
  * For 0.9.29 and svn, __ARCH_USE_MMU__ indicates no-mmu reliably.
  * For earlier versions there is no reliable way to check if we are building




More information about the busybox-cvs mailing list