Update of /cvsroot/blob/blob/src/blob
In directory usw-pr-cvs1:/tmp/cvs-serv29649/src/blob
Modified Files:
main.c uucodec.c
Log Message:
1. Backed out my printf() function again because I realised if we don't
include the C library stdarg.h there is no portable way to handle variable
arguments :P If someone comes up with a hack for this, I'll add the printf()
stuff again - would be useful...
2. Made UU Codec support optional.
Index: main.c
===================================================================
RCS file: /cvsroot/blob/blob/src/blob/main.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- main.c 2002/02/04 18:02:42 1.29
+++ main.c 2002/02/05 14:47:54 1.30
@@ -250,6 +250,7 @@
+#ifdef CONFIG_UUCODEC_SUPPORT
static int Download(int argc, char *argv[])
{
u32 startAddress;
@@ -327,7 +328,7 @@
"Download <argument> image to RAM using uuencode\n";
__commandlist(Download, "download", downloadhelp);
-
+#endif /* #ifdef CONFIG_UUCODEC_SUPPORT */
#ifdef CONFIG_XMODEM_SUPPORT
Index: uucodec.c
===================================================================
RCS file: /cvsroot/blob/blob/src/blob/uucodec.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- uucodec.c 2002/01/03 16:07:18 1.3
+++ uucodec.c 2002/02/05 14:47:54 1.4
@@ -37,6 +37,8 @@
# include <blob/config.h>
#endif
+#ifdef CONFIG_UUCODEC_SUPPORT
+
#include <blob/errno.h>
#include <blob/serial.h>
#include <blob/util.h>
@@ -195,3 +197,6 @@
} /* UUEncode */
#endif
+
+#endif /* #ifdef CONFIG_UUCODEC_SUPPORT */
+
|