diff --git a/CHANGES b/CHANGES index 9a456a3..6f45883 100644 --- a/CHANGES +++ b/CHANGES @@ -3,6 +3,8 @@ CHANGES - 2007-09-09 CHANGES IN Mini-XML 2.3.1 + - Fixed whitespace detection with Unicode characters (STR + #48) - mxmlWalkNext() and mxmlWalkPrev() did not work correctly when called with a node with no children as the top node (STR #53) diff --git a/config.h.in b/config.h.in index d1a060d..d3b28fb 100644 --- a/config.h.in +++ b/config.h.in @@ -34,6 +34,13 @@ #define MXML_VERSION "" +/* + * Inline function support... + */ + +#define inline + + /* * Do we have the snprintf() and vsnprintf() functions? */ diff --git a/configure b/configure index e93ab86..2367a91 100755 --- a/configure +++ b/configure @@ -1673,7 +1673,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_headers="$ac_config_headers config.h" -VERSION=2.3 +VERSION=2.3.1 cat >>confdefs.h <<_ACEOF #define MXML_VERSION "Mini-XML v$VERSION" @@ -3446,8 +3446,78 @@ esac -if test "x$use_ansi" != xyes; then +{ echo "$as_me:$LINENO: checking for inline" >&5 +echo $ECHO_N "checking for inline... $ECHO_C" >&6; } +if test "${ac_cv_c_inline+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } +#endif + +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_c_inline=$ac_kw +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_inline" != no && break +done + +fi +{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 +echo "${ECHO_T}$ac_cv_c_inline" >&6; } + + +case $ac_cv_c_inline in + inline | yes) ;; + *) + case $ac_cv_c_inline in + no) ac_val=;; + *) ac_val=$ac_cv_c_inline;; + esac + cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif +_ACEOF + ;; +esac + + +if test "x$use_ansi" != xyes; then for ac_func in strdup do diff --git a/configure.in b/configure.in index 84426af..a4a09ee 100644 --- a/configure.in +++ b/configure.in @@ -23,7 +23,7 @@ dnl Set the name of the config header file... AC_CONFIG_HEADER(config.h) dnl Version number... -VERSION=2.3 +VERSION=2.3.1 AC_SUBST(VERSION) AC_DEFINE_UNQUOTED(MXML_VERSION, "Mini-XML v$VERSION") @@ -94,6 +94,9 @@ esac AC_SUBST(ARFLAGS) +dnl Inline functions... +AC_C_INLINE + dnl Checks for string functions. if test "x$use_ansi" != xyes; then AC_CHECK_FUNCS(strdup) diff --git a/doc/reference.html b/doc/reference.html index 152e88e..90d9e55 100644 --- a/doc/reference.html +++ b/doc/reference.html @@ -2,7 +2,7 @@ Documentation - +