Changeset 2166 for libswish3/trunk/src/libswish3/hash.c
- Timestamp:
- 09/21/08 21:59:57 (4 months ago)
- Files:
-
- libswish3/trunk/src/libswish3/hash.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
libswish3/trunk/src/libswish3/hash.c
r2135 r2166 58 58 59 59 return ret; 60 } 61 62 int 63 swish_hash_exists_or_add( 64 xmlHashTablePtr hash, 65 xmlChar *key, 66 xmlChar *value 67 ) 68 { 69 if (!swish_hash_exists(hash, key)) { 70 return swish_hash_add(hash, key, swish_xstrdup( value )); 71 } 72 else { 73 return 1; 74 } 60 75 } 61 76
