Changeset 836ea3a3 for variable.c
- Timestamp:
- Oct 17, 2003, 5:20:48 PM (21 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 6a50af2
- Parents:
- ec6ff52
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
variable.c
rf1e629d r836ea3a3 477 477 v = owl_dict_find_element(d, name); 478 478 if (v == NULL) { 479 if (msg) owl_function_ makemsg("Unknown variable %s", name);479 if (msg) owl_function_error("Unknown variable %s", name); 480 480 return -1; 481 481 } 482 482 if (!v->set_fromstring_fn) { 483 if (msg) owl_function_ makemsg("Variable %s is read-only", name);483 if (msg) owl_function_error("Variable %s is read-only", name); 484 484 return -1; 485 485 } 486 486 if (requirebool && v->type!=OWL_VARIABLE_BOOL) { 487 if (msg) owl_function_ makemsg("Variable %s is not a boolean", name);487 if (msg) owl_function_error("Variable %s is not a boolean", name); 488 488 return -1; 489 489 } 490 490 if (0 != v->set_fromstring_fn(v, value)) { 491 if (msg) owl_function_ makemsg("Unable to set %s (must be %s)", name,491 if (msg) owl_function_error("Unable to set %s (must be %s)", name, 492 492 owl_variable_get_validsettings(v)); 493 493 return -1;
Note: See TracChangeset
for help on using the changeset viewer.