From f19a8d863dac9415de5acf7bee0b55a15780b4b5 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Sat, 28 Jun 2008 17:19:12 +0300 Subject: [PATCH] Documentation updates --- doc/runtime.in/manual.html.in | 5 +++++ doc/runtime.in/runtime.rc | 3 +-- lib/silcutil/silcnet.h | 2 +- lib/silcutil/silctypes.h | 2 +- lib/silcutil/silcxml.c | 5 +---- lib/silcutil/silcxml.h | 3 ++- 6 files changed, 11 insertions(+), 9 deletions(-) diff --git a/doc/runtime.in/manual.html.in b/doc/runtime.in/manual.html.in index 7c6321ec..f1e474ed 100644 --- a/doc/runtime.in/manual.html.in +++ b/doc/runtime.in/manual.html.in @@ -61,6 +61,7 @@ of the Toolkit always delivers the latest version of this reference manual.
  • Bit Operations Interface
  • Buffer Format Interface
  • Buffer Interface +
  • Buffer Stream Interface
  • Condition Variable Interface
  • Config File Interface
  • Directory Interface @@ -81,6 +82,7 @@ of the Toolkit always delivers the latest version of this reference manual.
  • Misc Utilities
  • Mutex Interface
  • Network Interface +
  • Local Network Stream Interface
  • Random Number Interface
  • Regex Interface
  • Scheduler Interface @@ -96,6 +98,9 @@ of the Toolkit always delivers the latest version of this reference manual.
  • Timer Interface
  • Types and Definitions
  • UTF-8 Interface +
  • XML Interface +
  • HTTP Server Interface +
  • HTTP PHP Translator
  • Toolkit Index
    diff --git a/doc/runtime.in/runtime.rc b/doc/runtime.in/runtime.rc index 5954c25d..8972d02f 100644 --- a/doc/runtime.in/runtime.rc +++ b/doc/runtime.in/runtime.rc @@ -1,11 +1,10 @@ options: - --src ../../lib/silcutil + --src ../../lib/ --doc . --html --sectionnameonly --syntaxcolors --nopre - --nodesc --no_subdirectories --index --documenttitle "SILC Runtime Toolkit" diff --git a/lib/silcutil/silcnet.h b/lib/silcutil/silcnet.h index 30ee1fcc..d791784e 100644 --- a/lib/silcutil/silcnet.h +++ b/lib/silcutil/silcnet.h @@ -590,7 +590,7 @@ void silc_net_gethostbyname_async(const char *name, * SilcBool silc_net_gethostbyaddr(const char *addr, char *name, * SilcUInt32 name_len); * -x * DESCRIPTION + * DESCRIPTION * * Resolves the hostname for the IP address indicated by the `addr' * This returns TRUE and the resolved hostname to the `name' buffer, diff --git a/lib/silcutil/silctypes.h b/lib/silcutil/silctypes.h index 63412c3e..5200fc9b 100644 --- a/lib/silcutil/silctypes.h +++ b/lib/silcutil/silctypes.h @@ -262,7 +262,7 @@ typedef float SilcFloat32; * 64-bit floating point number. * ***/ -typedef double SilcFloat64 +typedef double SilcFloat64; #if SILC_SIZEOF_VOID_P < 4 typedef SilcUInt32 * void *; diff --git a/lib/silcutil/silcxml.c b/lib/silcutil/silcxml.c index decadb6c..9ceb59be 100644 --- a/lib/silcutil/silcxml.c +++ b/lib/silcutil/silcxml.c @@ -74,10 +74,6 @@ static void silc_xml_expat_start_element(void *userData, silc_hash_utf8_compare, NULL, NULL, NULL, TRUE); if (!t) { - silc_set_errno(SILC_ERR_OUT_OF_MEMORY); - silc_set_errno_location(NULL, - XML_GetCurrentLineNumber(parser->parser), - XML_GetCurrentColumnNumber(parser->parser)); XML_StopParser(parser->parser, FALSE); return; } @@ -237,6 +233,7 @@ SilcBool silc_xml_parse_file(SilcXMLParser parser, ret = silc_xml_parse(parser, data, data_len); if (!ret) { + silc_free(data); silc_set_errno_reason(silc_xml_expat_error(parser->parser), silc_xml_get_error(parser)); silc_set_errno_location(filename, diff --git a/lib/silcutil/silcxml.h b/lib/silcutil/silcxml.h index e6ccce80..b15c8f48 100644 --- a/lib/silcutil/silcxml.h +++ b/lib/silcutil/silcxml.h @@ -125,6 +125,7 @@ typedef struct SilcXMLParamsObject { /* Do not process XML namespaces. */ SilcBool no_namespace; } *SilcXMLParams, SilcXMLParamsStruct; +/***/ /****f* silcutil/silc_xml_parser_create * @@ -221,7 +222,7 @@ const char *silc_xml_get_attribute(SilcXMLParser parser, SilcHashTable attributes, const char *name); -/****f* silcutil/silc_xml_get_attribute +/****f* silcutil/silc_xml_current_location * * SYNOPSIS * -- 2.24.0