Add major/minor version numbers (Bug #461)

pull/193/head
Michael R Sweet 11 years ago
parent 129525f2b4
commit b6c73fe01c
  1. 3
      CHANGES
  2. 11
      mxml.h

@ -6,7 +6,8 @@ CHANGES IN Mini-XML 2.8
- Now call docsetutil using xcrun on OS X. - Now call docsetutil using xcrun on OS X.
- mxmldoc did not escape special HTML characters inside @code foo@ - mxmldoc did not escape special HTML characters inside @code foo@
comments. comments.
- Fixed a memory leak in mxmlElementDeleteAttr (STR #452) - Fixed a memory leak in mxmlElementDeleteAttr (Bug #452)
- Added MXML_MAJOR/MINOR_VERSION definitions to mxml.h (Bug $461)
CHANGES IN Mini-XML 2.7 CHANGES IN Mini-XML 2.7

@ -3,7 +3,7 @@
* *
* Header file for Mini-XML, a small XML-like file parsing library. * Header file for Mini-XML, a small XML-like file parsing library.
* *
* Copyright 2003-2011 by Michael R Sweet. * Copyright 2003-2013 by Michael R Sweet.
* *
* These coded instructions, statements, and computer programs are the * These coded instructions, statements, and computer programs are the
* property of Michael R Sweet and are protected by Federal copyright * property of Michael R Sweet and are protected by Federal copyright
@ -36,6 +36,9 @@
* Constants... * Constants...
*/ */
# define MXML_MAJOR_VERSION 2 /* Major version number */
# define MXML_MINOR_VERSION 8 /* Minor version number */
# define MXML_TAB 8 /* Tabs every N columns */ # define MXML_TAB 8 /* Tabs every N columns */
# define MXML_NO_CALLBACK 0 /* Don't use a type callback */ # define MXML_NO_CALLBACK 0 /* Don't use a type callback */
@ -93,7 +96,7 @@ typedef enum mxml_type_e /**** The XML node type. ****/
typedef void (*mxml_custom_destroy_cb_t)(void *); typedef void (*mxml_custom_destroy_cb_t)(void *);
/**** Custom data destructor ****/ /**** Custom data destructor ****/
typedef void (*mxml_error_cb_t)(const char *); typedef void (*mxml_error_cb_t)(const char *);
/**** Error callback function ****/ /**** Error callback function ****/
typedef struct mxml_attr_s /**** An XML element attribute value. @private@ ****/ typedef struct mxml_attr_s /**** An XML element attribute value. @private@ ****/
@ -161,7 +164,7 @@ typedef struct mxml_index_s mxml_index_t;
typedef int (*mxml_custom_load_cb_t)(mxml_node_t *, const char *); typedef int (*mxml_custom_load_cb_t)(mxml_node_t *, const char *);
/**** Custom data load callback function ****/ /**** Custom data load callback function ****/
typedef char *(*mxml_custom_save_cb_t)(mxml_node_t *); typedef char *(*mxml_custom_save_cb_t)(mxml_node_t *);
/**** Custom data save callback function ****/ /**** Custom data save callback function ****/
typedef int (*mxml_entity_cb_t)(const char *); typedef int (*mxml_entity_cb_t)(const char *);
@ -173,7 +176,7 @@ typedef mxml_type_t (*mxml_load_cb_t)(mxml_node_t *);
typedef const char *(*mxml_save_cb_t)(mxml_node_t *, int); typedef const char *(*mxml_save_cb_t)(mxml_node_t *, int);
/**** Save callback function ****/ /**** Save callback function ****/
typedef void (*mxml_sax_cb_t)(mxml_node_t *, mxml_sax_event_t, void *); typedef void (*mxml_sax_cb_t)(mxml_node_t *, mxml_sax_event_t, void *);
/**** SAX callback function ****/ /**** SAX callback function ****/

Loading…
Cancel
Save