(NewString): Declare arg const.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@261 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Thien-Thi Nguyen 2000-02-25 00:04:55 +00:00
commit b0cc2a423f
2 changed files with 42 additions and 42 deletions

View file

@ -142,7 +142,7 @@ int String_dump(DOH *so, DOH *out) {
* NewString(const char *c) - Create a new string * NewString(const char *c) - Create a new string
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
DOH * DOH *
NewString(DOH *so) NewString(const DOH *so)
{ {
int l = 0, max; int l = 0, max;
String *str; String *str;

View file

@ -326,7 +326,7 @@ typedef struct {
* Strings. * Strings.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
extern DOH *NewString(DOH *c); extern DOH *NewString(const DOH *c);
extern DOH *NewStringf(DOH *fmt, ...); extern DOH *NewStringf(DOH *fmt, ...);
extern int String_check(DOH *s); extern int String_check(DOH *s);