summaryrefslogtreecommitdiff
path: root/src/treebuilder/in_foreign_content.c
diff options
context:
space:
mode:
authorAndrew Sidwell <andy@entai.co.uk>2008-08-11 04:13:22 +0000
committerAndrew Sidwell <andy@entai.co.uk>2008-08-11 04:13:22 +0000
commit7a388e8066a94775e3e744188e51ed86ed289c50 (patch)
tree90afc17c825b6f4546129f08d0d82b475ecd9bf0 /src/treebuilder/in_foreign_content.c
parentbea1f361c83927831aa19cc136dca478cfb33f64 (diff)
downloadlibhubbub-7a388e8066a94775e3e744188e51ed86ed289c50.tar.gz
libhubbub-7a388e8066a94775e3e744188e51ed86ed289c50.tar.bz2
- Add N_ELEMENTS() macro globally rather than using sizeof(x) / sizeof(x[0]) everywhere
- In anticipation of interning tag names, make the big map of name->type store them in lowercase - Take advantage of the previous change to optimise away many calls to strlen svn path=/trunk/hubbub/; revision=5010
Diffstat (limited to 'src/treebuilder/in_foreign_content.c')
-rw-r--r--src/treebuilder/in_foreign_content.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/treebuilder/in_foreign_content.c b/src/treebuilder/in_foreign_content.c
index 2603b77..d5c3574 100644
--- a/src/treebuilder/in_foreign_content.c
+++ b/src/treebuilder/in_foreign_content.c
@@ -132,8 +132,6 @@ static const case_changes svg_tagnames[] = {
#undef S
-#define N_ELEMENTS(x) (sizeof(x) / sizeof((x)[0]))
-
/**
* Adjust SVG attributes.