119 // If this is an optional parameter, we need the default value. |
119 // If this is an optional parameter, we need the default value. |
120 if (curarg >= comm->numargs) { |
120 if (curarg >= comm->numargs) { |
121 r->MustNext ("="); |
121 r->MustNext ("="); |
122 switch (type) { |
122 switch (type) { |
123 case RETURNVAL_INT: r->MustNumber(); break; |
123 case RETURNVAL_INT: r->MustNumber(); break; |
124 case RETURNVAL_STRING: r->token = r->MustGetString(); break; |
124 case RETURNVAL_STRING: r->MustString(); break; |
125 case RETURNVAL_BOOLEAN: r->MustBool(); break; |
125 case RETURNVAL_BOOLEAN: r->MustBool(); break; |
126 } |
126 } |
127 |
127 |
128 comm->defvals[curarg] = r->token; |
128 comm->defvals[curarg] = r->token; |
129 } |
129 } |