1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

avoid passing a char[] as snprintf first argument. implemented

* encoding.c parserInternals.c: avoid passing a char[] as snprintf
  first argument.
* threads.c include/libxml/threads.h: implemented xmlIsThreadsEnabled()
  based on Andrew W. Nosenko idea.
* doc/* elfgcchack.h: regenerated the API
Daniel
This commit is contained in:
Daniel Veillard
2005-09-02 12:28:34 +00:00
parent c2f7056adb
commit 2e7598cb06
19 changed files with 76 additions and 7 deletions

View File

@@ -164,6 +164,24 @@ static xmlRMutexPtr xmlLibraryLock = NULL;
static void xmlOnceInit(void);
#endif
/**
* xmlIsThreadsEnabled:
*
* Run-time information about whether multithread support is compiled in
*
* Returns 1 (true) if library was compiled with multithread support
* enabled or 0 (false) otherwise.
*/
int
xmlIsThreadsEnabled(void)
{
#ifdef LIBXML_THREAD_ENABLED
return 1;
#else
return 0;
#endif
}
/**
* xmlNewMutex:
*