add NewStringEmpty, use more StringEuqual and less Strcmp
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7897 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
255296362f
commit
628dc6b32b
24 changed files with 253 additions and 218 deletions
|
|
@ -455,7 +455,7 @@ DohGetVoid(DOH *obj, const DOH *name) {
|
|||
void
|
||||
DohSetInt(DOH *obj, const DOH *name, int value) {
|
||||
DOH *temp;
|
||||
temp = NewString("");
|
||||
temp = NewStringEmpty();
|
||||
Printf(temp,"%d",value);
|
||||
Setattr(obj,(DOH *) name,temp);
|
||||
}
|
||||
|
|
@ -467,7 +467,7 @@ DohSetInt(DOH *obj, const DOH *name, int value) {
|
|||
void
|
||||
DohSetDouble(DOH *obj, const DOH *name, double value) {
|
||||
DOH *temp;
|
||||
temp = NewString("");
|
||||
temp = NewStringEmpty();
|
||||
Printf(temp,"%0.17f",value);
|
||||
Setattr(obj,(DOH *) name,temp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue