Changed Swig_typemap_attach_kwargs to have global scope
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4934 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b03c08d211
commit
1a1e8e0cc2
2 changed files with 5 additions and 2 deletions
|
|
@ -473,7 +473,7 @@ extern String *Swig_typemap_lookup(const String_or_char *op, SwigType *type, Str
|
|||
String_or_char *source, String_or_char *target, Wrapper *f);
|
||||
|
||||
extern String *Swig_typemap_lookup_new(const String_or_char *op, Node *n, const String_or_char *lname, Wrapper *f);
|
||||
|
||||
extern void Swig_typemap_attach_kwargs(Hash *tm, const String_or_char *op, Parm *p);
|
||||
extern String *Swig_typemap_lookup_multi(const String_or_char *op, ParmList *parms, String_or_char *source, Wrapper *f, int *nmatch);
|
||||
extern void Swig_typemap_new_scope();
|
||||
extern Hash *Swig_typemap_pop_scope();
|
||||
|
|
|
|||
|
|
@ -1206,9 +1206,12 @@ String *Swig_typemap_lookup_new(const String_or_char *op, Node *node, const Stri
|
|||
* If this hash (tm) contains a linked list of parameters under its "kwargs"
|
||||
* attribute, add keys for each of those named keyword arguments to this
|
||||
* parameter for later use.
|
||||
* For example, attach the typemap attributes to p:
|
||||
* %typemap(in, foo="xyz") ...
|
||||
* A new attribute called "tmap:in:foo" with value "xyz" is attached to p.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
static void
|
||||
void
|
||||
Swig_typemap_attach_kwargs(Hash *tm, const String_or_char *op, Parm *p) {
|
||||
String *temp = NewString("");
|
||||
Parm *kw = Getattr(tm,"kwargs");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue