- Timestamp:
- Aug 15, 2009, 7:08:18 PM (16 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 1077891a
- Parents:
- fa4562c
- git-author:
- Anders Kaseorg <andersk@mit.edu> (08/04/09 02:37:51)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:18)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
obarray.c
rfa4562c re19eb97 14 14 * the index it should be inserted at. 15 15 */ 16 int owl_obarray_lookup(owl_obarray *oa, c har * key,char ** val) /*noproto*/16 int owl_obarray_lookup(owl_obarray *oa, const char * key, const char ** val) /*noproto*/ 17 17 { 18 18 int first, last, mid; 19 c har * str;19 const char * str; 20 20 int cmp; 21 21 … … 41 41 42 42 /* Returns NULL if the string doesn't exist in the obarray */ 43 c har * owl_obarray_find(owl_obarray *oa,char * string)43 const char * owl_obarray_find(owl_obarray *oa, const char * string) 44 44 { 45 c har *v;45 const char *v; 46 46 owl_obarray_lookup(oa, string, &v); 47 47 return v; … … 49 49 50 50 /* Inserts the string into the obarray if it doesn't exist */ 51 c har * owl_obarray_insert(owl_obarray *oa,char * string)51 const char * owl_obarray_insert(owl_obarray *oa, const char * string) 52 52 { 53 c har *v;53 const char *v; 54 54 int i; 55 55 i = owl_obarray_lookup(oa, string, &v); … … 77 77 int owl_obarray_regtest(void) { 78 78 int numfailed = 0; 79 c har *p,*p2;79 const char *p,*p2; 80 80 81 81 owl_obarray oa;
Note: See TracChangeset
for help on using the changeset viewer.