Back out valueparm attribute in the csvarin typemap. Add example usage of temporary variables in the csvarin typemap into docs. Modify CDate C# example. Add in special variable expansion in the csvarin typemap.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9949 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2007-09-21 23:58:00 +00:00
commit 8a17d9dcfa
4 changed files with 197 additions and 29 deletions

View file

@ -2652,6 +2652,7 @@ public:
SwigType *pt = Getattr(p, "type");
if ((tm = Getattr(p, "tmap:csvarin"))) {
substituteClassname(pt, tm);
Replaceall(tm, "$csinput", "value");
Replaceall(tm, "$imcall", imcall);
excodeSubstitute(n, tm, "csvarin", p);
Printf(module_class_code, "%s", tm);
@ -2869,8 +2870,7 @@ public:
String *pn = Getattr(p, "name");
if (setter) {
// Note that in C# properties, the input variable name is always called 'value'
String *valueparm = Getattr(p, "tmap:csvarin:valueparm");
arg = valueparm ? Copy(valueparm) : NewString("value");
arg = NewString("value");
} else {
// Use C parameter name unless it is a duplicate or an empty parameter name
int count = 0;