Changeset 17
- Timestamp:
- 07/08/05 21:38:21 (8 years ago)
- Files:
-
- trunk/fastxsl.c (modified) (4 diffs)
- trunk/fl_hash.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/fastxsl.c
r16 r17 75 75 wrapper->persistant = 1; 76 76 #else 77 wrapper = (php_ss_wrapper *) calloc(1, sizeof(php_ss_wrapper));78 wrapper->persistant = 1;77 wrapper = (php_ss_wrapper *) calloc(1, sizeof(php_ss_wrapper)); 78 wrapper->persistant = 1; 79 79 #endif 80 80 } else { … … 913 913 int output = 0; 914 914 va_list args; 915 TSRMLS_FETCH();915 TSRMLS_FETCH(); 916 916 917 917 va_start(args, msg); … … 1019 1019 int param_count = nargs - 1; 1020 1020 int i; 1021 TSRMLS_FETCH();1021 TSRMLS_FETCH(); 1022 1022 1023 1023 tctxt = (xsltTransformContextPtr) xsltXPathGetTransformContext(ctxt); … … 1190 1190 php_info_print_table_row(2, "libxslt Version", LIBXSLT_DOTTED_VERSION); 1191 1191 #if HAVE_DOMEXSLT 1192 php_info_print_table_row(2, "libexslt Version", LIBEXSLT_DOTTED_VERSION);1192 php_info_print_table_row(2, "libexslt Version", LIBEXSLT_DOTTED_VERSION); 1193 1193 #endif 1194 1194 php_info_print_table_end(); trunk/fl_hash.c
r1 r17 62 62 static unsigned int hash_hash(const char *key, int length) 63 63 { 64 unsigned int hash = 0;64 unsigned int hash = 0; 65 65 66 while (--length)67 hash = hash * 65599 + *key++;66 while (--length) 67 hash = hash * 65599 + *key++; 68 68 69 return hash;69 return hash; 70 70 } 71 71 … … 75 75 unsigned int hash = hash_hash(key, length) % FL_HASH_SIZE; 76 76 77 for (b = table->buckets[ hash ]; b; b = b->next) {77 for (b = table->buckets[ hash ]; b; b = b->next) { 78 78 if (hash != b->hash) continue; 79 79 if (length != b->length) continue; … … 81 81 82 82 return b->data; 83 }83 } 84 84 85 return NULL;85 return NULL; 86 86 } 87 87 … … 114 114 115 115 hash = hash_hash(key, length) % FL_HASH_SIZE; 116 for (b = table->buckets[ hash ]; b; b = b->next) {116 for (b = table->buckets[ hash ]; b; b = b->next) { 117 117 if (hash != b->hash || length != b->length || memcmp(key, b->key, length)) { 118 118 prev = b; … … 132 132 133 133 break; 134 }134 } 135 135 } 136 136
