Fixed const problem.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@780 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
8c88eb66a8
commit
7ccdd2fc6d
1 changed files with 5 additions and 5 deletions
|
|
@ -390,15 +390,15 @@ is_a_pointer (SwigType *t)
|
||||||
But we don't want to change it now since it is deprecated. */
|
But we don't want to change it now since it is deprecated. */
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
guile_typemap_lookup(const char *op, SwigType *type, String_or_char *pname, String_or_char *source,
|
guile_typemap_lookup(const char *op, SwigType *type, const String_or_char *pname, String_or_char *source,
|
||||||
String_or_char *target, Wrapper *f)
|
String_or_char *target, Wrapper *f)
|
||||||
{
|
{
|
||||||
char *tm;
|
char *tm;
|
||||||
tm = Swig_typemap_lookup((char*) op, type, pname, source, target, f);
|
tm = Swig_typemap_lookup((char*) op, type, (char*)pname, source, target, f);
|
||||||
if (!tm) {
|
if (!tm) {
|
||||||
SwigType *base = SwigType_typedef_resolve_all(type);
|
SwigType *base = SwigType_typedef_resolve_all(type);
|
||||||
if (strncmp(Char(base), "enum ", 5)==0)
|
if (strncmp(Char(base), "enum ", 5)==0)
|
||||||
tm = Swig_typemap_lookup((char*) op, (char*) "int", pname, source, target, f);
|
tm = Swig_typemap_lookup((char*) op, (char*) "int", (char*)pname, source, target, f);
|
||||||
}
|
}
|
||||||
return tm;
|
return tm;
|
||||||
}
|
}
|
||||||
|
|
@ -408,7 +408,7 @@ guile_typemap_lookup(const char *op, SwigType *type, String_or_char *pname, Stri
|
||||||
|
|
||||||
static int
|
static int
|
||||||
guile_do_typemap(DOHFile *file, const char *op,
|
guile_do_typemap(DOHFile *file, const char *op,
|
||||||
SwigType *type, String_or_char *arg,
|
SwigType *type, const String_or_char *arg,
|
||||||
String_or_char *source, String_or_char *target,
|
String_or_char *source, String_or_char *target,
|
||||||
int argnum, DOHString *name, Wrapper *f,
|
int argnum, DOHString *name, Wrapper *f,
|
||||||
int nonewline_p)
|
int nonewline_p)
|
||||||
|
|
@ -437,7 +437,7 @@ guile_do_typemap(DOHFile *file, const char *op,
|
||||||
|
|
||||||
static void
|
static void
|
||||||
guile_do_doc_typemap(DOHFile *file, const char *op,
|
guile_do_doc_typemap(DOHFile *file, const char *op,
|
||||||
SwigType *type, String_or_char *arg,
|
SwigType *type, const String_or_char *arg,
|
||||||
int argnum, DOHString *name, Wrapper *f)
|
int argnum, DOHString *name, Wrapper *f)
|
||||||
{
|
{
|
||||||
if (!guile_do_typemap(file, op, type, arg,
|
if (!guile_do_typemap(file, op, type, arg,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue