check value len

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8415 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-13 18:09:05 +00:00
commit 609d1e6a5c

View file

@ -363,8 +363,9 @@ static void add_symbols(Node *n) {
Setattr(n,k_kind,"typedef");
} else {
SwigType *type = Getattr(n, k_type);
String *value = Getattr(n,k_value);
Setattr(n,k_kind,"variable");
if (Getattr(n,k_value)) {
if (value && Len(value)) {
Setattr(n,"hasvalue","1");
}
if (type && !SwigType_ismutable(type)) {