@@ -29,36 +29,36 @@ XMLPUBFUN void xmlCheckVersion(int version);
29
29
*
30
30
* the version string like "1.2.3"
31
31
*/
32
- #define LIBXML_DOTTED_VERSION "2.11.4 "
32
+ #define LIBXML_DOTTED_VERSION "2.12.3 "
33
33
34
34
/**
35
35
* LIBXML_VERSION:
36
36
*
37
37
* the version number: 1.2.3 value is 10203
38
38
*/
39
- #define LIBXML_VERSION 20114
39
+ #define LIBXML_VERSION 20123
40
40
41
41
/**
42
42
* LIBXML_VERSION_STRING:
43
43
*
44
44
* the version number string, 1.2.3 value is "10203"
45
45
*/
46
- #define LIBXML_VERSION_STRING "20114 "
46
+ #define LIBXML_VERSION_STRING "20123 "
47
47
48
48
/**
49
49
* LIBXML_VERSION_EXTRA:
50
50
*
51
51
* extra version information, used to show a git commit description
52
52
*/
53
- #define LIBXML_VERSION_EXTRA "-GITv2.11.4 "
53
+ #define LIBXML_VERSION_EXTRA "-GITv2.12.3 "
54
54
55
55
/**
56
56
* LIBXML_TEST_VERSION:
57
57
*
58
58
* Macro to check that the libxml version in use is compatible with
59
59
* the version the software has been compiled against
60
60
*/
61
- #define LIBXML_TEST_VERSION xmlCheckVersion(20114 );
61
+ #define LIBXML_TEST_VERSION xmlCheckVersion(20123 );
62
62
63
63
#ifndef VMS
64
64
#if 0
@@ -449,43 +449,27 @@ XMLPUBFUN void xmlCheckVersion(int version);
449
449
#endif
450
450
451
451
#if defined(__clang__ ) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 406 )
452
- #define XML_IGNORE_FPTR_CAST_WARNINGS \
453
- _Pragma("GCC diagnostic push") \
454
- _Pragma("GCC diagnostic ignored \"-Wpedantic\"") \
455
- _Pragma("GCC diagnostic ignored \"-Wcast-function-type\"")
456
- #define XML_POP_WARNINGS \
452
+ #if defined(__clang__ ) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 800 )
453
+ #define XML_IGNORE_FPTR_CAST_WARNINGS \
454
+ _Pragma("GCC diagnostic push") \
455
+ _Pragma("GCC diagnostic ignored \"-Wpedantic\"") \
456
+ _Pragma("GCC diagnostic ignored \"-Wcast-function-type\"")
457
+ #else
458
+ #define XML_IGNORE_FPTR_CAST_WARNINGS \
459
+ _Pragma("GCC diagnostic push") \
460
+ _Pragma("GCC diagnostic ignored \"-Wpedantic\"")
461
+ #endif
462
+ #define XML_POP_WARNINGS \
457
463
_Pragma("GCC diagnostic pop")
458
464
#else
459
- #define XML_IGNORE_FPTR_CAST_WARNINGS
460
- #define XML_POP_WARNINGS
465
+ #define XML_IGNORE_FPTR_CAST_WARNINGS
466
+ #define XML_POP_WARNINGS
461
467
#endif
462
468
463
- /** DOC_ENABLE */
464
469
#else /* ! __GNUC__ */
465
- /**
466
- * ATTRIBUTE_UNUSED:
467
- *
468
- * Macro used to signal to GCC unused function parameters
469
- */
470
470
#define ATTRIBUTE_UNUSED
471
- /**
472
- * LIBXML_ATTR_ALLOC_SIZE:
473
- *
474
- * Macro used to indicate to GCC this is an allocator function
475
- */
476
471
#define LIBXML_ATTR_ALLOC_SIZE (x )
477
- /**
478
- * LIBXML_ATTR_FORMAT:
479
- *
480
- * Macro used to indicate to GCC the parameter are printf like
481
- */
482
472
#define LIBXML_ATTR_FORMAT (fmt ,args )
483
- /**
484
- * XML_DEPRECATED:
485
- *
486
- * Macro used to indicate that a function, variable, type or struct member
487
- * is deprecated.
488
- */
489
473
#ifndef XML_DEPRECATED
490
474
# if defined (IN_LIBXML ) || !defined (_MSC_VER )
491
475
# define XML_DEPRECATED
@@ -494,21 +478,11 @@ XMLPUBFUN void xmlCheckVersion(int version);
494
478
# define XML_DEPRECATED __declspec(deprecated)
495
479
# endif
496
480
#endif
497
- /**
498
- * LIBXML_IGNORE_FPTR_CAST_WARNINGS:
499
- *
500
- * Macro used to ignore pointer cast warnings that can't be worked around.
501
- */
502
481
#if defined (_MSC_VER ) && (_MSC_VER >= 1400 )
503
482
# define XML_IGNORE_FPTR_CAST_WARNINGS __pragma(warning(push))
504
483
#else
505
484
# define XML_IGNORE_FPTR_CAST_WARNINGS
506
485
#endif
507
- /**
508
- * XML_POP_WARNINGS:
509
- *
510
- * Macro used to restore warnings state.
511
- */
512
486
#ifndef XML_POP_WARNINGS
513
487
# if defined (_MSC_VER ) && (_MSC_VER >= 1400 )
514
488
# define XML_POP_WARNINGS __pragma(warning(pop))
@@ -518,6 +492,17 @@ XMLPUBFUN void xmlCheckVersion(int version);
518
492
#endif
519
493
#endif /* __GNUC__ */
520
494
495
+ #define XML_NO_ATTR
496
+
497
+ #ifdef LIBXML_THREAD_ENABLED
498
+ #define XML_DECLARE_GLOBAL (name , type , attrs ) \
499
+ attrs XMLPUBFUN type *__##name(void);
500
+ #define XML_GLOBAL_MACRO (name ) (*__##name())
501
+ #else
502
+ #define XML_DECLARE_GLOBAL (name , type , attrs ) \
503
+ attrs XMLPUBVAR type name;
504
+ #endif
505
+
521
506
#ifdef __cplusplus
522
507
}
523
508
#endif /* __cplusplus */
0 commit comments