mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
applied a patch from Peter Jacobi to solve a problem when compiling with
* hash.c: applied a patch from Peter Jacobi to solve a problem when compiling with the Watcom C on Win32 * result/schemas/*.err: the change of hashing algo generated permutations in the output Daniel
This commit is contained in:
18
hash.c
18
hash.c
@@ -507,9 +507,25 @@ xmlHashLookup3(xmlHashTablePtr table, const xmlChar *name,
|
||||
*
|
||||
* Scan the hash @table and applied @f to each value.
|
||||
*/
|
||||
typedef struct {
|
||||
xmlHashScanner hashscanner;
|
||||
void *data;
|
||||
} stubData;
|
||||
|
||||
static void
|
||||
stubHashScannerFull (void *payload, void *data, const xmlChar *name,
|
||||
const xmlChar *name2, const xmlChar *name3
|
||||
) {
|
||||
stubData *stubdata = (stubData *) data;
|
||||
stubdata->hashscanner (payload, stubdata->data, (xmlChar *) name);
|
||||
}
|
||||
|
||||
void
|
||||
xmlHashScan(xmlHashTablePtr table, xmlHashScanner f, void *data) {
|
||||
xmlHashScanFull (table, (xmlHashScannerFull) f, data);
|
||||
stubData stubdata;
|
||||
stubdata.data = data;
|
||||
stubdata.hashscanner = f;
|
||||
xmlHashScanFull (table, stubHashScannerFull, &stubdata);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user