CVS: libraries/mspgcc hexdigits.c,NONE,1.1 escape_encode.c,1.2,1.3 hex_encode.c,1.2,1.3 makefile,1.2,1.3

Chris Liechti <[email protected]>
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.cvs
Message-ID <[email protected]>
Update of /cvsroot/mspgcc/libraries/mspgcc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24664/libraries/mspgcc

Modified Files:
	escape_encode.c hex_encode.c makefile 
Added Files:
	hexdigits.c 
Log Message:
split hex digits into an own file

--- NEW FILE: hexdigits.c ---
const unsigned char HEX_DIGITS[16] = "0123456789ABCDEF";

Index: escape_encode.c
===================================================================
RCS file: /cvsroot/mspgcc/libraries/mspgcc/escape_encode.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -d -r1.2 -r1.3
--- escape_encode.c	16 Sep 2005 13:28:39 -0000	1.2
+++ escape_encode.c	18 Sep 2005 12:22:25 -0000	1.3
@@ -1,4 +1,4 @@
-static const unsigned char HEX_DIGITS[16] = "0123456789ABCDEF";
+#include "mspgcc/util.h"
 
 unsigned int escape_encode(char *dst, unsigned int maxsize, const void *src, unsigned int size) {
     unsigned int output_size = 0;

Index: hex_encode.c
===================================================================
RCS file: /cvsroot/mspgcc/libraries/mspgcc/hex_encode.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -d -r1.2 -r1.3
--- hex_encode.c	13 Sep 2005 14:09:43 -0000	1.2
+++ hex_encode.c	18 Sep 2005 12:22:25 -0000	1.3
@@ -1,5 +1,4 @@
-
-const unsigned char HEX_DIGITS[16] = "0123456789ABCDEF";
+#include "mspgcc/util.h"
 
 unsigned int hex_encode(char *dst, unsigned int maxsize, const void *src, unsigned int size) {
     unsigned int pos = 0;

Index: makefile
===================================================================
RCS file: /cvsroot/mspgcc/libraries/mspgcc/makefile,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -d -r1.2 -r1.3
--- makefile	13 Sep 2005 14:09:43 -0000	1.2
+++ makefile	18 Sep 2005 12:22:25 -0000	1.3
@@ -4,7 +4,7 @@
                   ringbuffer_put.c ringbuffer_get.c ringbuffer_clear.c ringbuffer_len.c \
                   flash_erase_segment.c flash_write_byte.c flash_write_word.c \
                   hex_decode_inline.c hex_decode.c hex_encode.c hex_fromdigit.c \
-                  escape_encode.c escape_decode.c \
+                  hexdigits.c escape_encode.c escape_decode.c \
                   event_scheduler.c
 ASOURCES        = eventhandler.S eventhandler_idle.S delay.S
 CPU             = msp1



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.