summaryrefslogtreecommitdiff
path: root/plugins/MirOTR/ekhtml/include/ekhtml.h
diff options
context:
space:
mode:
authorRené Schümann <white06tiger@gmail.com>2015-03-20 12:30:48 +0000
committerRené Schümann <white06tiger@gmail.com>2015-03-20 12:30:48 +0000
commit90171f125f36488dc08f5cfe0b0d4b78d995f08d (patch)
treee65a38bd8ba391fc800cecc896379a7fb76a0608 /plugins/MirOTR/ekhtml/include/ekhtml.h
parent190307ca7aee92d6b862db0bf78cde10acfc95d0 (diff)
MirOTR: updated ekhtml from 0.3.2 to 0.3.3-pre (Git 0092d9d), this fixes a memory leak and improves attribute parsing
git-svn-id: http://svn.miranda-ng.org/main/trunk@12448 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirOTR/ekhtml/include/ekhtml.h')
-rw-r--r--plugins/MirOTR/ekhtml/include/ekhtml.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/MirOTR/ekhtml/include/ekhtml.h b/plugins/MirOTR/ekhtml/include/ekhtml.h
index 1bed8eaa70..ba4b196649 100644
--- a/plugins/MirOTR/ekhtml/include/ekhtml.h
+++ b/plugins/MirOTR/ekhtml/include/ekhtml.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2002, Jon Travis
+ * Copyright (c) 2002-2004, Jon Travis
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -57,14 +57,15 @@ typedef struct ekhtml_string_t {
* When ekhtml parses tags containing key/value attributes, it will pass
* this structure representing those values into the callbacks. Note, for
* speed reasons, things such as the 'name' and 'value' fields are not
- * terminated with '\0', and therefore have an associated length
- * field (namelen, vallen).
+ * terminated with '\0', the length is in name->len, and val->len
*/
typedef struct ekhtml_attr_t {
ekhtml_string_t name; /**< Name of the attribute */
ekhtml_string_t val; /**< Value of the attribute */
- unsigned int isBoolean; /**< True of the attribute is boolean */
+ unsigned int isBoolean; /**< True if the attribute is boolean */
+ char quoteChar; /**< The character used to quote 'val'.
+ If no quoting was used, '\0' */
struct ekhtml_attr_t *next; /**< Pointer to next attribute in the list */
} ekhtml_attr_t;