Changeset 6a8b519
- Timestamp:
- Feb 23, 2013, 5:44:23 PM (12 years ago)
- Branches:
- master, release-1.10
- Children:
- 104a4eb
- Parents:
- 4953c44
- git-author:
- David Benjamin <davidben@mit.edu> (02/23/13 14:33:35)
- git-committer:
- David Benjamin <davidben@mit.edu> (02/23/13 17:44:23)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tester.c
r366badc r6a8b519 339 339 340 340 printf("# BEGIN testing owl_variable\n"); 341 FAIL_UNLESS("setup", 0==owl_variable_dict_setup(&vd));341 owl_variable_dict_setup(&vd); 342 342 343 343 FAIL_UNLESS("get bool var", NULL != (var = owl_variable_get_var(&vd, "rxping"))); -
variable.c
rf0a7c09 r6a8b519 93 93 validset, validate, set, get) 94 94 95 intowl_variable_add_defaults(owl_vardict *vd)95 void owl_variable_add_defaults(owl_vardict *vd) 96 96 { 97 97 OWLVAR_STRING( "personalbell" /* %OwlVarStub */, "off", … … 475 475 " user.\n", 476 476 NULL, owl_variable_exposure_set, NULL /* use default for get */ ); 477 return 0;478 477 } 479 478 … … 596 595 /**************************************************************************/ 597 596 598 intowl_variable_dict_setup(owl_vardict *vd) {597 void owl_variable_dict_setup(owl_vardict *vd) { 599 598 owl_dict_create(vd); 600 returnowl_variable_add_defaults(vd);599 owl_variable_add_defaults(vd); 601 600 } 602 601
Note: See TracChangeset
for help on using the changeset viewer.