diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-18 20:07:31 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-18 20:07:31 +0000 |
commit | 5f25853e21b9b4a88d264370de1f0a094e684656 (patch) | |
tree | 830fdb49efb57c949852b9ac17cd0acbeeb05a84 /include | |
parent | 30f66949899343a94ea9c1d0f55424b19a5ced57 (diff) | |
download | gcc-5f25853e21b9b4a88d264370de1f0a094e684656.tar.gz |
* libiberty.h (concat, concat_length, concat_copy, concat_copy2,
ACONCAT): Improve comments.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45683 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 5 | ||||
-rw-r--r-- | include/libiberty.h | 24 |
2 files changed, 20 insertions, 9 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 2a69d82cd68..c94394e2510 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2001-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * libiberty.h (concat, concat_length, concat_copy, concat_copy2, + ACONCAT): Improve comments. + 2001-09-18 Alan Modra <amodra@bigpond.net.au> * objalloc.h (OBJALLOC_ALIGN): Define using offsetof. diff --git a/include/libiberty.h b/include/libiberty.h index 43f1b7d401e..a54e3adf05e 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -85,25 +85,29 @@ extern char *basename (); extern const char *lbasename PARAMS ((const char *)); -/* Concatenate an arbitrary number of strings, up to (char *) NULL. - Allocates memory using xmalloc. */ +/* Concatenate an arbitrary number of strings. You must pass NULL as + the last argument of this function, to terminate the list of + strings. Allocates memory using xmalloc. */ extern char *concat PARAMS ((const char *, ...)) ATTRIBUTE_MALLOC; /* Determine the length of concatenating an arbitrary number of - strings, up to (char *) NULL. */ + strings. You must pass NULL as the last argument of this function, + to terminate the list of strings. */ extern unsigned long concat_length PARAMS ((const char *, ...)); /* Concatenate an arbitrary number of strings into a SUPPLIED area of - memory, up to (char *) NULL. The supplied memory is assumed to be - large enough. */ + memory. You must pass NULL as the last argument of this function, + to terminate the list of strings. The supplied memory is assumed + to be large enough. */ extern char *concat_copy PARAMS ((char *, const char *, ...)); /* Concatenate an arbitrary number of strings into a GLOBAL area of - memory, up to (char *) NULL. The supplied memory is assumed to be - large enough. */ + memory. You must pass NULL as the last argument of this function, + to terminate the list of strings. The supplied memory is assumed + to be large enough. */ extern char *concat_copy2 PARAMS ((const char *, ...)); @@ -111,8 +115,10 @@ extern char *concat_copy2 PARAMS ((const char *, ...)); extern char *libiberty_concat_ptr; -/* Concatenate an arbitrary number of strings, up to (char *) NULL. - Allocates memory using alloca. Arguments are evaluated twice!. */ +/* Concatenate an arbitrary number of strings. You must pass NULL as + the last argument of this function, to terminate the list of + strings. Allocates memory using alloca. The arguments are + evaluated twice! */ #define ACONCAT(ACONCAT_PARAMS) \ (libiberty_concat_ptr = alloca (concat_length ACONCAT_PARAMS + 1), \ concat_copy2 ACONCAT_PARAMS) |