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