Changeset 92fc397
- Timestamp:
- May 12, 2011, 4:39:27 PM (14 years ago)
- Children:
- c6c51d2
- Parents:
- c72f884
- git-author:
- David Benjamin <davidben@mit.edu> (05/07/11 15:23:49)
- git-committer:
- David Benjamin <davidben@mit.edu> (05/12/11 16:39:27)
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
cmd.c
r55b2de8 r92fc397 12 12 13 13 int owl_cmddict_setup(owl_cmddict *cd) { 14 if (0 != owl_cmddict_init(cd)) return(-1);14 owl_cmddict_init(cd); 15 15 if (0 != owl_cmddict_add_from_list(cd, commands_to_init)) return(-1); 16 16 return(0); 17 17 } 18 18 19 int owl_cmddict_init(owl_cmddict *cd) { 20 if (owl_dict_create(cd)) return(-1); 21 return(0); 19 void owl_cmddict_init(owl_cmddict *cd) { 20 owl_dict_create(cd); 22 21 } 23 22 -
dict.c
rc72f884 r92fc397 15 15 #define GROWBY 3 / 2 16 16 17 intowl_dict_create(owl_dict *d) {17 void owl_dict_create(owl_dict *d) { 18 18 d->size=0; 19 19 d->els=g_new(owl_dict_el, INITSIZE); 20 20 d->avail=INITSIZE; 21 if (d->els==NULL) return(-1);22 return(0);23 21 } 24 22 -
keymap.c
r7fd0bf7 r92fc397 179 179 /* NOTE: keyhandler has private access to the internals of keymap */ 180 180 181 intowl_keyhandler_init(owl_keyhandler *kh)182 { 183 if (0 != owl_dict_create(&kh->keymaps)) return(-1);181 void owl_keyhandler_init(owl_keyhandler *kh) 182 { 183 owl_dict_create(&kh->keymaps); 184 184 kh->active = NULL; 185 185 owl_keyhandler_reset(kh); 186 return(0);187 186 } 188 187 -
tester.c
rc72f884 r92fc397 233 233 234 234 printf("# BEGIN testing owl_dict\n"); 235 FAIL_UNLESS("create", 0==owl_dict_create(&d));235 owl_dict_create(&d); 236 236 FAIL_UNLESS("insert b", 0==owl_dict_insert_element(&d, "b", bv, owl_dict_noop_delete)); 237 237 FAIL_UNLESS("insert d", 0==owl_dict_insert_element(&d, "d", dv, owl_dict_noop_delete)); -
variable.c
r55b2de8 r92fc397 559 559 int owl_variable_dict_setup(owl_vardict *vd) { 560 560 owl_variable *var, *cur; 561 if (owl_dict_create(vd)) return(-1);561 owl_dict_create(vd); 562 562 for (var = variables_to_init; var->name != NULL; var++) { 563 563 cur = g_new(owl_variable, 1);
Note: See TracChangeset
for help on using the changeset viewer.