Overview
| Artifact ID: | 10e35b82b6c1856fbf25c6830defa8becb69e656 |
|---|---|
| Ticket: | 951168ffffffffffffffffffffffffffffffffff
strcmp in CompareStringKeys |
| User & Date: | nobody on 2004-05-10 10:38:01 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
Hi, my proposal is to use the strcmp function in tclHash.c for comparing two strings, instead of the custom loop: this should give more options to optimize the code. Giambattista Bloisi static int CompareStringKeys(keyPtr, hPtr) VOID *keyPtr;/* New key to compare. */ Tcl_HashEntry *hPtr;/* Existing key to compare. */ { register CONST char *p1 = (CONST char *) keyPtr; register CONST char *p2 = (CONST char *) hPtr- >key.string; if (strcmp(p1, p2) == 0) { return 1; } return 0; } - foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "None"
- title changed to: "strcmp in CompareStringKeys"
- type changed to: "RFE"