This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Installing as obvious - the patch adding macros with variable numbers of arguments needs this. Jan gas/ 2005-05-06 Jan Beulich <jbeulich@novell.com> * sb.h (sb_add_buffer): Reintroduce. * sb.c (sb_add_buffer): Likewise. --- /home/jbeulich/src/binutils/mainline/2005-05-06/gas/sb.c 2005-05-06 08:24:27.000000000 +0200 +++ 2005-05-06/gas/sb.c 2005-05-06 09:30:54.509319296 +0200 @@ -165,6 +165,16 @@ sb_add_string (sb *ptr, const char *s) ptr->len += len; } +/* add string at s of length len to sb at ptr */ + +void +sb_add_buffer (sb *ptr, const char *s, int len) +{ + sb_check (ptr, len); + memcpy (ptr->ptr + ptr->len, s, len); + ptr->len += len; +} + /* like sb_name, but don't include the null byte in the string. */ char * --- /home/jbeulich/src/binutils/mainline/2005-05-06/gas/sb.h 2005-05-06 08:24:27.000000000 +0200 +++ 2005-05-06/gas/sb.h 2005-05-06 09:30:16.667072192 +0200 @@ -82,6 +82,7 @@ extern void sb_add_sb (sb *, sb *); extern void sb_reset (sb *); extern void sb_add_char (sb *, int); extern void sb_add_string (sb *, const char *); +extern void sb_add_buffer (sb *, const char *, int); extern char *sb_terminate (sb *); extern int sb_skip_white (int, sb *); extern int sb_skip_comma (int, sb *);
Attachment:
binutils-mainline-sb_add_buffer.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |