(SwigType_str, SwigType_lstr, SwigType_rcaststr, SwigType_lcaststr)

Constified prototypes, enabling build with Solaris c++.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@720 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Matthias Köppe 2000-08-30 08:38:46 +00:00
commit b8b42a3598
2 changed files with 8 additions and 8 deletions

View file

@ -634,7 +634,7 @@ SwigType *SwigType_default(SwigType *t) {
* ----------------------------------------------------------------------------- */
String *
SwigType_str(SwigType *s, String_or_char *id)
SwigType_str(SwigType *s, const String_or_char *id)
{
String *result;
String *element = 0, *nextelement;
@ -720,7 +720,7 @@ SwigType_str(SwigType *s, String_or_char *id)
* -------------------------------------------------------------------- */
String *
SwigType_lstr(SwigType *s, String_or_char *id)
SwigType_lstr(SwigType *s, const String_or_char *id)
{
String *result;
String *element = 0, *nextelement;
@ -871,7 +871,7 @@ SwigType_ltype(SwigType *s) {
* datatype printed by str().
* ----------------------------------------------------------------------------- */
String *SwigType_rcaststr(SwigType *s, String_or_char *name) {
String *SwigType_rcaststr(SwigType *s, const String_or_char *name) {
String *result, *cast;
String *element = 0, *nextelement;
SwigType *td;
@ -971,7 +971,7 @@ String *SwigType_rcaststr(SwigType *s, String_or_char *name) {
* Casts a variable from the real type to the local datatype.
* ----------------------------------------------------------------------------- */
String *SwigType_lcaststr(SwigType *s, String_or_char *name) {
String *SwigType_lcaststr(SwigType *s, const String_or_char *name) {
String *result;
result = NewString("");

View file

@ -159,10 +159,10 @@ extern String *SwigType_pop(SwigType *t);
extern void SwigType_push(SwigType *t, SwigType *s);
extern List *SwigType_parmlist(SwigType *p);
extern String *SwigType_parm(String *p);
extern String *SwigType_str(SwigType *s, String_or_char *id);
extern String *SwigType_lstr(SwigType *s, String_or_char *id);
extern String *SwigType_rcaststr(SwigType *s, String_or_char *id);
extern String *SwigType_lcaststr(SwigType *s, String_or_char *id);
extern String *SwigType_str(SwigType *s, const String_or_char *id);
extern String *SwigType_lstr(SwigType *s, const String_or_char *id);
extern String *SwigType_rcaststr(SwigType *s, const String_or_char *id);
extern String *SwigType_lcaststr(SwigType *s, const String_or_char *id);
extern String *SwigType_manglestr(SwigType *t);
extern SwigType *SwigType_ltype(SwigType *t);
extern int SwigType_ispointer(SwigType *t);