Incoporate review suggestions

This commit is contained in:
Seth R Johnson 2022-02-26 06:40:37 -05:00
commit b38a6530e3
2 changed files with 3 additions and 3 deletions

View file

@ -2456,8 +2456,8 @@ The result is the following expansion
</div>
<p>
The first argument, the typemap method, can look up the keyword argument of a
typemap by appending a colon and the keyowrd. For example,
The first argument, the typemap method, can look up the attribute of a
typemap by appending a colon and the keyword. For example,
<tt>$typemap(directorin:descriptor, $type)</tt> would be replaced by <tt>"D"</tt> if <tt>type</tt> is a <tt>double</tt>.
</p>
<p>

View file

@ -2105,7 +2105,7 @@ static void replace_embedded_typemap(String *s, ParmList *parm_sublist, Wrapper
Printf(stdout, " Containing: %s\n", dtypemap);
Delete(dtypemap);
}
found_colon = Strstr(tmap_method, ":");
found_colon = Strchr(tmap_method, ':');
if (found_colon) {
String *temp_tmap_method = NewStringWithSize(Char(tmap_method), found_colon - Char(tmap_method));
Swig_typemap_attach_parms(temp_tmap_method, to_match_parms, f);