diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-07-07 10:56:51 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-07-07 10:56:51 +0100 |
commit | eec1716bbd8a692aa260c24db57c0465fcb9fb43 (patch) | |
tree | 051286c5c2601533d8b0ec70065c39c10a959968 /src/html/html_document_strings.h | |
parent | 4e99ad2213dba5244f2df0f73d8c32c16f995840 (diff) | |
download | libdom-eec1716bbd8a692aa260c24db57c0465fcb9fb43.tar.gz libdom-eec1716bbd8a692aa260c24db57c0465fcb9fb43.tar.bz2 |
HTML: Make Document memoise more generically and port HTMLElement to that interface
Diffstat (limited to 'src/html/html_document_strings.h')
-rw-r--r-- | src/html/html_document_strings.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/html/html_document_strings.h b/src/html/html_document_strings.h new file mode 100644 index 0000000..a45ed0d --- /dev/null +++ b/src/html/html_document_strings.h @@ -0,0 +1,43 @@ +/* + * This file is part of libdom. + * Licensed under the MIT License, + * http://www.opensource.org/licenses/mit-license.php + * Copyright 2012 Daniel Silverstone <dsilvers@netsurf-browser.org> + */ + +/* Note, this file deliberately lacks guards since it's included many times + * in many places in order to correctly handle the loading of the strings. + */ + +#ifndef HTML_DOCUMENT_STRINGS_ACTION +#define HTML_DOCUMENT_STRINGS_INTERNAL_ACTION 1 +#define HTML_DOCUMENT_STRINGS_PREFIX \ + typedef enum { +#define HTML_DOCUMENT_STRINGS_SUFFIX \ + hds_COUNT \ + } html_document_memo_string_e; +#define HTML_DOCUMENT_STRINGS_ACTION(tag) \ + hds_##tag, +#endif + +#ifdef HTML_DOCUMENT_STRINGS_PREFIX +HTML_DOCUMENT_STRINGS_PREFIX +#endif + +HTML_DOCUMENT_STRINGS_ACTION(id) +HTML_DOCUMENT_STRINGS_ACTION(title) +HTML_DOCUMENT_STRINGS_ACTION(lang) +HTML_DOCUMENT_STRINGS_ACTION(dir) +HTML_DOCUMENT_STRINGS_ACTION(class) + +#ifdef HTML_DOCUMENT_STRINGS_SUFFIX +HTML_DOCUMENT_STRINGS_SUFFIX +#endif + + +#ifdef HTML_DOCUMENT_STRINGS_INTERNAL_ACTION +#undef HTML_DOCUMENT_STRINGS_INTERNAL_ACTION +#undef HTML_DOCUMENT_STRINGS_PREFIX +#undef HTML_DOCUMENT_STRINGS_SUFFIX +#undef HTML_DOCUMENT_STRINGS_ACTION +#endif |