mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-26 10:03:34 +03:00
doc: Minor fixes for apibuild.py
This commit is contained in:
parent
56944c517f
commit
a7b037952f
4
dict.c
4
dict.c
@ -81,6 +81,8 @@ static xmlMutex xmlDictMutex;
|
||||
* xmlInitializeDict:
|
||||
*
|
||||
* DEPRECATED: Alias for xmlInitParser.
|
||||
*
|
||||
* Returns 0.
|
||||
*/
|
||||
int
|
||||
xmlInitializeDict(void) {
|
||||
@ -89,7 +91,7 @@ xmlInitializeDict(void) {
|
||||
}
|
||||
|
||||
/**
|
||||
* xmlInitializeDict:
|
||||
* xmlInitDictInternal:
|
||||
*
|
||||
* Initialize mutex.
|
||||
*/
|
||||
|
12
hash.c
12
hash.c
@ -632,6 +632,8 @@ xmlHashAddEntry(xmlHashTablePtr hash, const xmlChar *key, void *payload) {
|
||||
* Add a hash table entry with two strings as key.
|
||||
*
|
||||
* See xmlHashAddEntry.
|
||||
*
|
||||
* Returns 0 on success and -1 in case of error.
|
||||
*/
|
||||
int
|
||||
xmlHashAddEntry2(xmlHashTablePtr hash, const xmlChar *key,
|
||||
@ -650,6 +652,8 @@ xmlHashAddEntry2(xmlHashTablePtr hash, const xmlChar *key,
|
||||
* Add a hash table entry with three strings as key.
|
||||
*
|
||||
* See xmlHashAddEntry.
|
||||
*
|
||||
* Returns 0 on success and -1 in case of error.
|
||||
*/
|
||||
int
|
||||
xmlHashAddEntry3(xmlHashTablePtr hash, const xmlChar *key,
|
||||
@ -688,6 +692,8 @@ xmlHashUpdateEntry(xmlHashTablePtr hash, const xmlChar *key,
|
||||
* Add a hash table entry with two strings as key.
|
||||
*
|
||||
* See xmlHashUpdateEntry.
|
||||
*
|
||||
* Returns 0 on success and -1 in case of error.
|
||||
*/
|
||||
int
|
||||
xmlHashUpdateEntry2(xmlHashTablePtr hash, const xmlChar *key,
|
||||
@ -709,6 +715,8 @@ xmlHashUpdateEntry2(xmlHashTablePtr hash, const xmlChar *key,
|
||||
* Add a hash table entry with three strings as key.
|
||||
*
|
||||
* See xmlHashUpdateEntry.
|
||||
*
|
||||
* Returns 0 on success and -1 in case of error.
|
||||
*/
|
||||
int
|
||||
xmlHashUpdateEntry3(xmlHashTablePtr hash, const xmlChar *key,
|
||||
@ -1054,6 +1062,8 @@ int xmlHashRemoveEntry(xmlHashTablePtr hash, const xmlChar *key,
|
||||
* Remove an entry with two strings as key.
|
||||
*
|
||||
* See xmlHashRemoveEntry.
|
||||
*
|
||||
* Returns 0 on success and -1 in case of error.
|
||||
*/
|
||||
int
|
||||
xmlHashRemoveEntry2(xmlHashTablePtr hash, const xmlChar *key,
|
||||
@ -1072,6 +1082,8 @@ xmlHashRemoveEntry2(xmlHashTablePtr hash, const xmlChar *key,
|
||||
* Remove an entry with three strings as key.
|
||||
*
|
||||
* See xmlHashRemoveEntry.
|
||||
*
|
||||
* Returns 0 on success and -1 in case of error.
|
||||
*/
|
||||
ATTRIBUTE_NO_SANITIZE_INTEGER
|
||||
int
|
||||
|
13
testdict.c
13
testdict.c
@ -6,6 +6,14 @@
|
||||
|
||||
/**** dictionary tests ****/
|
||||
|
||||
#ifdef __clang__
|
||||
#define ATTRIBUTE_NO_SANITIZE_INTEGER \
|
||||
__attribute__ ((no_sanitize("unsigned-integer-overflow"))) \
|
||||
__attribute__ ((no_sanitize("unsigned-shift-base")))
|
||||
#else
|
||||
#define ATTRIBUTE_NO_SANITIZE_INTEGER
|
||||
#endif
|
||||
|
||||
/* #define WITH_PRINT */
|
||||
|
||||
static const char *seeds1[] = {
|
||||
@ -443,10 +451,7 @@ rng_state[2] = { 123, 456 };
|
||||
|
||||
#define HASH_ROL(x,n) ((x) << (n) | ((x) & 0xFFFFFFFF) >> (32 - (n)))
|
||||
|
||||
#ifdef __clang__
|
||||
__attribute__ ((no_sanitize("unsigned-integer-overflow")))
|
||||
__attribute__ ((no_sanitize("unsigned-shift-base")))
|
||||
#endif
|
||||
ATTRIBUTE_NO_SANITIZE_INTEGER
|
||||
static unsigned
|
||||
my_rand(unsigned max) {
|
||||
unsigned s0 = rng_state[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user