• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/swig-12/Source/Swig/

Lines Matching refs:tmap_method

120 static String *typemap_method_name(const_String_or_char_ptr tmap_method) {
128 the "same" String *tmap_method (i.e., same object identity) but differing
135 const char *method_without_object_identity = Char(tmap_method);
141 s = NewStringf("tmap:%s", tmap_method);
179 void Swig_typemap_register(const_String_or_char_ptr tmap_method, ParmList *parms, const_String_or_char_ptr code, ParmList *locals, ParmList *kwargs) {
190 tm_method = typemap_method_name(tmap_method);
250 String *newop = NewStringf("%s-%s+%s:", tmap_method, type, pname);
258 String *typemap = NewStringf("typemap(%s) %s", tmap_method, str);
307 int Swig_typemap_copy(const_String_or_char_ptr tmap_method, ParmList *srcparms, ParmList *parms) {
318 tm_method = typemap_method_name(tmap_method);
346 Swig_typemap_register(tmap_method, parms, Getattr(tm, "code"), Getattr(tm, "locals"), Getattr(tm, "kwargs"));
362 void Swig_typemap_clear(const_String_or_char_ptr tmap_method, ParmList *parms) {
370 newop = NewString(tmap_method);
604 static Hash *typemap_search(const_String_or_char_ptr tmap_method, SwigType *type, const_String_or_char_ptr name, SwigType **matchtype) {
614 String *tm_method = typemap_method_name(tmap_method);
751 static Hash *typemap_search_multi(const_String_or_char_ptr tmap_method, ParmList *parms, int *nmatch) {
766 tm = typemap_search(tmap_method, type, name, &mtype);
772 newop = NewStringf("%s-%s+%s:", tmap_method, type, name);
1181 * prefixed with "tmap:". For example with tmap_method="in", the typemap code can be retrieved
1185 * tmap_method - typemap method, eg "in", "out", "newfree"
1194 static String *Swig_typemap_lookup_impl(const_String_or_char_ptr tmap_method, Node *node, const_String_or_char_ptr lname, Wrapper *f, String *actioncode) {
1207 char *cop = Char(tmap_method);
1214 if (node && Cmp(tmap_method, "newfree") == 0) {
1237 tm = typemap_search(tmap_method, type, qsn, &mtype);
1247 tm = typemap_search(tmap_method, type, pname, &mtype);
1362 Setattr(node, typemap_method_name(tmap_method), s);
1411 String *Swig_typemap_lookup_out(const_String_or_char_ptr tmap_method, Node *node, const_String_or_char_ptr lname, Wrapper *f, String *actioncode) {
1413 assert(Cmp(tmap_method, "out") == 0);
1414 return Swig_typemap_lookup_impl(tmap_method, node, lname, f, actioncode);
1417 String *Swig_typemap_lookup(const_String_or_char_ptr tmap_method, Node *node, const_String_or_char_ptr lname, Wrapper *f) {
1418 return Swig_typemap_lookup_impl(tmap_method, node, lname, f, 0);
1432 static void typemap_attach_kwargs(Hash *tm, const_String_or_char_ptr tmap_method, Parm *p) {
1446 Printf(temp, "%s:%s", tmap_method, Getattr(kw, "name"));
1452 Printf(temp, "%s:match_type", tmap_method);
1464 static void typemap_warn(const_String_or_char_ptr tmap_method, Parm *p) {
1465 String *temp = NewStringf("%s:warning", tmap_method);
1473 static void typemap_emit_code_fragments(const_String_or_char_ptr tmap_method, Parm *p) {
1474 String *temp = NewStringf("%s:fragment", tmap_method);
1505 * attributes on each parameter prefixed with "tmap:". For example with tmap_method="in", the typemap
1509 * tmap_method - typemap method, eg "in", "out", "newfree"
1514 void Swig_typemap_attach_parms(const_String_or_char_ptr tmap_method, ParmList *parms, Wrapper *f) {
1523 char *cop = Char(tmap_method);
1528 Printf(stdout, "Swig_typemap_attach_parms: %s\n", tmap_method);
1535 Printf(stdout, "parms: %s %s %s\n", tmap_method, Getattr(p, "name"), Getattr(p, "type"));
1537 tm = typemap_search_multi(tmap_method, p, &nmatch);
1660 Printf(stdout, "attach: %s %s %s\n", Getattr(firstp, "name"), typemap_method_name(tmap_method), s);
1662 Setattr(firstp, typemap_method_name(tmap_method), s); /* Code object */
1675 typemap_attach_kwargs(tm, tmap_method, firstp);
1678 typemap_warn(tmap_method, firstp);
1681 typemap_emit_code_fragments(tmap_method, firstp);
1687 Printf(stdout, "res: %s %s %s\n", Getattr(firstp, "name"), typemap_method_name(tmap_method), Getattr(firstp, typemap_method_name(tmap_method)));
1804 String *tmap_method;
1813 tmap_method = Getitem(l, 0);
1865 Swig_typemap_attach_parms(tmap_method, to_match_parms, f);
1869 attr = NewStringf("tmap:%s", tmap_method);
1881 Language_replace_special_variables(tmap_method, tm, to_match_parms);