upload libetonyek 0.1.5
Change-Id: I3d9ffbdd8246d7dee6b49393dd6875cab8565dc0
This commit is contained in:
+2
-2
@@ -27,8 +27,8 @@ export DBGHELP_DLL := 13fbc2e8b37ddf28181dd6d8081c2b8e-dbghelp.dll
|
||||
export EBOOK_MD5SUM := 6b48eda57914e6343efebc9381027b78
|
||||
export EBOOK_TARBALL := libe-book-0.1.2.tar.bz2
|
||||
export EPM_TARBALL := 3ade8cfe7e59ca8e65052644fed9fca4-epm-3.7.tar.gz
|
||||
export ETONYEK_MD5SUM := b542e4d3072e89d0c627956d6747e1d2
|
||||
export ETONYEK_VERSION_MICRO := 4
|
||||
export ETONYEK_MD5SUM := ed825557476c00ec989b452b4aef13a7
|
||||
export ETONYEK_VERSION_MICRO := 5
|
||||
export ETONYEK_TARBALL := libetonyek-0.1.$(ETONYEK_VERSION_MICRO).tar.bz2
|
||||
export EXPAT_TARBALL := dd7dab7a5fea97d2a6a43f511449b7cd-expat-2.1.0.tar.gz
|
||||
export FIREBIRD_MD5SUM := 7a17ec9889424b98baa29e001a054434
|
||||
|
||||
-58
@@ -1,58 +0,0 @@
|
||||
From 0beaf8ae8d9fc9049ac684ca169295357275eb85 Mon Sep 17 00:00:00 2001
|
||||
From: David Tardon <dtardon@redhat.com>
|
||||
Date: Wed, 18 Nov 2015 13:19:17 +0100
|
||||
Subject: [PATCH] std containers of incomplete types are not allowed
|
||||
|
||||
Change-Id: Icd916b4b0e2e2ae87014b6b53dbba5e56aa43846
|
||||
---
|
||||
configure.ac | 1 +
|
||||
src/lib/IWAField.h | 11 +++++++----
|
||||
2 files changed, 8 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/src/lib/IWAField.h b/src/lib/IWAField.h
|
||||
index 3566513..46c2e4c 100644
|
||||
--- a/src/lib/IWAField.h
|
||||
+++ b/src/lib/IWAField.h
|
||||
@@ -13,6 +13,7 @@
|
||||
#include <deque>
|
||||
#include <stdexcept>
|
||||
|
||||
+#include <boost/container/deque.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
@@ -71,7 +72,7 @@ namespace detail
|
||||
template<IWAField::Tag TagV, typename ValueT, typename Reader>
|
||||
class IWAFieldImpl : public IWAField
|
||||
{
|
||||
- typedef std::deque<ValueT> container_type;
|
||||
+ typedef boost::container::deque<ValueT> container_type;
|
||||
|
||||
public:
|
||||
typedef ValueT value_type;
|
||||
@@ -143,9 +144,11 @@ public:
|
||||
|
||||
// conversions
|
||||
|
||||
- const std::deque<value_type> &repeated() const
|
||||
+ // TODO: remove this or replace direct use of std::deque by a typedef
|
||||
+ const std::deque<value_type> repeated() const
|
||||
{
|
||||
- return m_values;
|
||||
+ const std::deque<value_type> values(m_values.begin(), m_values.end());
|
||||
+ return values;
|
||||
}
|
||||
|
||||
const boost::optional<value_type> optional() const
|
||||
@@ -166,7 +169,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
- std::deque<ValueT> m_values;
|
||||
+ container_type m_values;
|
||||
};
|
||||
|
||||
}
|
||||
--
|
||||
2.5.0
|
||||
|
||||
+2
-1
@@ -26,7 +26,6 @@ $(eval $(call gb_Library_set_include,etonyek,\
|
||||
-I$(call gb_UnpackedTarball_get_dir,libetonyek)/inc \
|
||||
-I$(call gb_UnpackedTarball_get_dir,libetonyek)/src/lib \
|
||||
-I$(call gb_UnpackedTarball_get_dir,libetonyek)/src/lib/contexts \
|
||||
-I$(SRCDIR)/external/libetonyek/inc \
|
||||
$$(INCLUDE) \
|
||||
))
|
||||
|
||||
@@ -103,7 +102,9 @@ $(eval $(call gb_Library_add_generated_exception_objects,etonyek,\
|
||||
UnpackedTarball/libetonyek/src/lib/contexts/IWORKBrContext \
|
||||
UnpackedTarball/libetonyek/src/lib/contexts/IWORKChartInfoElement \
|
||||
UnpackedTarball/libetonyek/src/lib/contexts/IWORKColorElement \
|
||||
UnpackedTarball/libetonyek/src/lib/contexts/IWORKCoreImageFilterDescriptorElement \
|
||||
UnpackedTarball/libetonyek/src/lib/contexts/IWORKDataElement \
|
||||
UnpackedTarball/libetonyek/src/lib/contexts/IWORKFilteredImageElement \
|
||||
UnpackedTarball/libetonyek/src/lib/contexts/IWORKFoElement \
|
||||
UnpackedTarball/libetonyek/src/lib/contexts/IWORKGeometryElement \
|
||||
UnpackedTarball/libetonyek/src/lib/contexts/IWORKGroupElement \
|
||||
|
||||
@@ -17,7 +17,6 @@ $(eval $(call gb_UnpackedTarball_add_patches,libetonyek,\
|
||||
external/libetonyek/win_build.patch.1 \
|
||||
external/libetonyek/ubsan.patch \
|
||||
external/libetonyek/rpath.patch \
|
||||
external/libetonyek/0001-std-containers-of-incomplete-types-are-not-allowed.patch.1 \
|
||||
))
|
||||
|
||||
ifneq ($(OS),MACOSX)
|
||||
|
||||
-1016
File diff suppressed because it is too large
Load Diff
-540
@@ -1,540 +0,0 @@
|
||||
/* C++ code produced by gperf version 3.0.4 */
|
||||
/* Command-line: gperf --compare-strncmp --enum --null-strings --readonly-tables --language C++ KEY1Token.gperf */
|
||||
/* Computed positions: -k'1,3,6,9,14' */
|
||||
|
||||
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
|
||||
&& ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
|
||||
&& (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
|
||||
&& ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
|
||||
&& ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
|
||||
&& ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
|
||||
&& ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
|
||||
&& ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
|
||||
&& ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
|
||||
&& ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
|
||||
&& ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
|
||||
&& ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
|
||||
&& ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
|
||||
&& ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
|
||||
&& ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
|
||||
&& ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
|
||||
&& ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
|
||||
&& ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
|
||||
&& ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
|
||||
&& ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
|
||||
&& ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
|
||||
&& ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
|
||||
&& ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
|
||||
/* The character set is not based on ISO-646. */
|
||||
#error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
|
||||
#endif
|
||||
|
||||
#line 10 "KEY1Token.gperf"
|
||||
|
||||
#if defined __GNUC__
|
||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||
#endif
|
||||
|
||||
using namespace KEY1Token;
|
||||
#line 18 "KEY1Token.gperf"
|
||||
struct Token
|
||||
{
|
||||
const char *name;
|
||||
int id;
|
||||
};
|
||||
#include <string.h>
|
||||
/* maximum key range = 368, duplicates = 0 */
|
||||
|
||||
class Perfect_Hash
|
||||
{
|
||||
private:
|
||||
static inline unsigned int hash (const char *str, unsigned int len);
|
||||
public:
|
||||
static const struct Token *in_word_set (const char *str, unsigned int len);
|
||||
};
|
||||
|
||||
inline unsigned int
|
||||
Perfect_Hash::hash (register const char *str, register unsigned int len)
|
||||
{
|
||||
static const unsigned short asso_values[] =
|
||||
{
|
||||
371, 371, 371, 371, 371, 371, 371, 371, 371, 371,
|
||||
371, 371, 371, 371, 371, 371, 371, 371, 371, 371,
|
||||
371, 371, 371, 371, 371, 371, 371, 371, 371, 371,
|
||||
371, 371, 371, 371, 371, 371, 371, 371, 371, 371,
|
||||
371, 371, 371, 371, 371, 85, 115, 371, 371, 371,
|
||||
371, 371, 371, 371, 371, 371, 371, 371, 371, 371,
|
||||
371, 371, 371, 371, 371, 371, 0, 0, 5, 15,
|
||||
0, 0, 0, 371, 371, 371, 371, 371, 15, 30,
|
||||
50, 371, 5, 5, 0, 371, 25, 371, 371, 371,
|
||||
371, 371, 371, 371, 371, 10, 371, 0, 25, 110,
|
||||
10, 10, 10, 20, 75, 60, 105, 0, 15, 5,
|
||||
0, 85, 50, 15, 80, 5, 10, 40, 35, 85,
|
||||
371, 65, 0, 40, 371, 371, 371, 371, 371, 371,
|
||||
371, 371, 371, 371, 371, 371, 371, 371, 371, 371,
|
||||
371, 371, 371, 371, 371, 371, 371, 371, 371, 371,
|
||||
371, 371, 371, 371, 371, 371, 371, 371, 371, 371,
|
||||
371, 371, 371, 371, 371, 371, 371, 371, 371, 371,
|
||||
371, 371, 371, 371, 371, 371, 371, 371, 371, 371,
|
||||
371, 371, 371, 371, 371, 371, 371, 371, 371, 371,
|
||||
371, 371, 371, 371, 371, 371, 371, 371, 371, 371,
|
||||
371, 371, 371, 371, 371, 371, 371, 371, 371, 371,
|
||||
371, 371, 371, 371, 371, 371, 371, 371, 371, 371,
|
||||
371, 371, 371, 371, 371, 371, 371, 371, 371, 371,
|
||||
371, 371, 371, 371, 371, 371, 371, 371, 371, 371,
|
||||
371, 371, 371, 371, 371, 371, 371, 371, 371, 371,
|
||||
371, 371, 371, 371, 371, 371, 371
|
||||
};
|
||||
register int hval = len;
|
||||
|
||||
switch (hval)
|
||||
{
|
||||
default:
|
||||
hval += asso_values[(unsigned char)str[13]];
|
||||
/*FALLTHROUGH*/
|
||||
case 13:
|
||||
case 12:
|
||||
case 11:
|
||||
case 10:
|
||||
case 9:
|
||||
hval += asso_values[(unsigned char)str[8]];
|
||||
/*FALLTHROUGH*/
|
||||
case 8:
|
||||
case 7:
|
||||
case 6:
|
||||
hval += asso_values[(unsigned char)str[5]];
|
||||
/*FALLTHROUGH*/
|
||||
case 5:
|
||||
case 4:
|
||||
case 3:
|
||||
hval += asso_values[(unsigned char)str[2]+1];
|
||||
/*FALLTHROUGH*/
|
||||
case 2:
|
||||
case 1:
|
||||
hval += asso_values[(unsigned char)str[0]];
|
||||
break;
|
||||
}
|
||||
return hval;
|
||||
}
|
||||
|
||||
const struct Token *
|
||||
Perfect_Hash::in_word_set (register const char *str, register unsigned int len)
|
||||
{
|
||||
enum
|
||||
{
|
||||
TOTAL_KEYWORDS = 149,
|
||||
MIN_WORD_LENGTH = 2,
|
||||
MAX_WORD_LENGTH = 35,
|
||||
MIN_HASH_VALUE = 3,
|
||||
MAX_HASH_VALUE = 370
|
||||
};
|
||||
|
||||
static const struct Token wordlist[] =
|
||||
{
|
||||
{(char*)0}, {(char*)0}, {(char*)0},
|
||||
#line 79 "KEY1Token.gperf"
|
||||
{"key",key},
|
||||
#line 101 "KEY1Token.gperf"
|
||||
{"name",name},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
#line 103 "KEY1Token.gperf"
|
||||
{"null",null},
|
||||
#line 29 "KEY1Token.gperf"
|
||||
{"array",array},
|
||||
{(char*)0}, {(char*)0}, {(char*)0},
|
||||
#line 30 "KEY1Token.gperf"
|
||||
{"axes",axes},
|
||||
#line 126 "KEY1Token.gperf"
|
||||
{"serie",serie},
|
||||
#line 145 "KEY1Token.gperf"
|
||||
{"styles",styles},
|
||||
{(char*)0}, {(char*)0},
|
||||
#line 58 "KEY1Token.gperf"
|
||||
{"file",file},
|
||||
#line 140 "KEY1Token.gperf"
|
||||
{"steps",steps},
|
||||
#line 127 "KEY1Token.gperf"
|
||||
{"series",series},
|
||||
{(char*)0}, {(char*)0},
|
||||
#line 53 "KEY1Token.gperf"
|
||||
{"dict",dict},
|
||||
#line 151 "KEY1Token.gperf"
|
||||
{"theme",theme},
|
||||
#line 146 "KEY1Token.gperf"
|
||||
{"symbol",symbol},
|
||||
{(char*)0}, {(char*)0},
|
||||
#line 162 "KEY1Token.gperf"
|
||||
{"type",type},
|
||||
#line 157 "KEY1Token.gperf"
|
||||
{"time-stamp",time_stamp},
|
||||
{(char*)0},
|
||||
#line 54 "KEY1Token.gperf"
|
||||
{"display-name",display_name},
|
||||
#line 94 "KEY1Token.gperf"
|
||||
{"majorTickPositions",majorTickPositions},
|
||||
{(char*)0},
|
||||
#line 130 "KEY1Token.gperf"
|
||||
{"shape",shape},
|
||||
#line 141 "KEY1Token.gperf"
|
||||
{"string",string},
|
||||
#line 138 "KEY1Token.gperf"
|
||||
{"spacing",spacing},
|
||||
{(char*)0},
|
||||
#line 33 "KEY1Token.gperf"
|
||||
{"body",body},
|
||||
{(char*)0},
|
||||
#line 93 "KEY1Token.gperf"
|
||||
{"locked",locked},
|
||||
#line 143 "KEY1Token.gperf"
|
||||
{"stroke-style",stroke_style},
|
||||
{(char*)0},
|
||||
#line 61 "KEY1Token.gperf"
|
||||
{"fill-type",fill_type},
|
||||
#line 60 "KEY1Token.gperf"
|
||||
{"fill-style",fill_style},
|
||||
#line 35 "KEY1Token.gperf"
|
||||
{"bullet",bullet},
|
||||
#line 38 "KEY1Token.gperf"
|
||||
{"bullets",bullets},
|
||||
{(char*)0},
|
||||
#line 133 "KEY1Token.gperf"
|
||||
{"size",size},
|
||||
#line 45 "KEY1Token.gperf"
|
||||
{"dash-style",dash_style},
|
||||
{(char*)0},
|
||||
#line 92 "KEY1Token.gperf"
|
||||
{"lock-aspect-ratio",lock_aspect_ratio},
|
||||
#line 99 "KEY1Token.gperf"
|
||||
{"metadata",metadata},
|
||||
#line 46 "KEY1Token.gperf"
|
||||
{"data",data},
|
||||
#line 158 "KEY1Token.gperf"
|
||||
{"title",title},
|
||||
{(char*)0},
|
||||
#line 102 "KEY1Token.gperf"
|
||||
{"natural-size",natural_size},
|
||||
#line 37 "KEY1Token.gperf"
|
||||
{"bullet-indentation",bullet_indentation},
|
||||
#line 147 "KEY1Token.gperf"
|
||||
{"symbolFillMode",symbolFillMode},
|
||||
#line 83 "KEY1Token.gperf"
|
||||
{"layerElementsForShadowing",layerElementsForShadowing},
|
||||
{(char*)0},
|
||||
#line 71 "KEY1Token.gperf"
|
||||
{"id",id},
|
||||
#line 66 "KEY1Token.gperf"
|
||||
{"gradient",gradient},
|
||||
#line 160 "KEY1Token.gperf"
|
||||
{"transformation",transformation},
|
||||
#line 154 "KEY1Token.gperf"
|
||||
{"tickLabelsAngle",tickLabelsAngle},
|
||||
#line 164 "KEY1Token.gperf"
|
||||
{"userMaximum",userMaximum},
|
||||
#line 171 "KEY1Token.gperf"
|
||||
{"visible",visible},
|
||||
{(char*)0},
|
||||
#line 152 "KEY1Token.gperf"
|
||||
{"thumbnail",thumbnail},
|
||||
#line 153 "KEY1Token.gperf"
|
||||
{"thumbnails",thumbnails},
|
||||
{(char*)0},
|
||||
#line 52 "KEY1Token.gperf"
|
||||
{"DefaultLegendSize",DefaultLegendSize},
|
||||
#line 132 "KEY1Token.gperf"
|
||||
{"showZero",showZero},
|
||||
#line 55 "KEY1Token.gperf"
|
||||
{"drawables",drawables},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
#line 166 "KEY1Token.gperf"
|
||||
{"useUserMaximum",useUserMaximum},
|
||||
#line 26 "KEY1Token.gperf"
|
||||
{"angle",angle},
|
||||
{(char*)0},
|
||||
#line 117 "KEY1Token.gperf"
|
||||
{"presentation",presentation},
|
||||
#line 56 "KEY1Token.gperf"
|
||||
{"duration",duration},
|
||||
#line 51 "KEY1Token.gperf"
|
||||
{"DefaultLegendRelativePosition",DefaultLegendRelativePosition},
|
||||
{(char*)0},
|
||||
#line 104 "KEY1Token.gperf"
|
||||
{"number",number},
|
||||
{(char*)0}, {(char*)0},
|
||||
#line 39 "KEY1Token.gperf"
|
||||
{"byte-size",byte_size},
|
||||
#line 73 "KEY1Token.gperf"
|
||||
{"image",image},
|
||||
{(char*)0},
|
||||
#line 144 "KEY1Token.gperf"
|
||||
{"stroke-width",stroke_width},
|
||||
#line 91 "KEY1Token.gperf"
|
||||
{"location",location},
|
||||
#line 124 "KEY1Token.gperf"
|
||||
{"rect",rect},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
#line 63 "KEY1Token.gperf"
|
||||
{"font",font},
|
||||
#line 172 "KEY1Token.gperf"
|
||||
{"width",width},
|
||||
#line 123 "KEY1Token.gperf"
|
||||
{"radius",radius},
|
||||
{(char*)0}, {(char*)0},
|
||||
#line 86 "KEY1Token.gperf"
|
||||
{"line",line},
|
||||
#line 85 "KEY1Token.gperf"
|
||||
{"level",level},
|
||||
#line 84 "KEY1Token.gperf"
|
||||
{"legend",legend},
|
||||
{(char*)0}, {(char*)0},
|
||||
#line 31 "KEY1Token.gperf"
|
||||
{"axis",axis},
|
||||
{(char*)0},
|
||||
#line 76 "KEY1Token.gperf"
|
||||
{"interBarGap",interBarGap},
|
||||
#line 156 "KEY1Token.gperf"
|
||||
{"tickLabelsVisible",tickLabelsVisible},
|
||||
{(char*)0},
|
||||
#line 64 "KEY1Token.gperf"
|
||||
{"font-name",font_name},
|
||||
#line 135 "KEY1Token.gperf"
|
||||
{"slide",slide},
|
||||
{(char*)0},
|
||||
#line 142 "KEY1Token.gperf"
|
||||
{"stroke-color",stroke_color},
|
||||
#line 100 "KEY1Token.gperf"
|
||||
{"minorTickPositions",minorTickPositions},
|
||||
#line 65 "KEY1Token.gperf"
|
||||
{"font-size",font_size},
|
||||
#line 43 "KEY1Token.gperf"
|
||||
{"color",color},
|
||||
#line 106 "KEY1Token.gperf"
|
||||
{"offset",offset},
|
||||
#line 96 "KEY1Token.gperf"
|
||||
{"master-slide",master_slide},
|
||||
#line 98 "KEY1Token.gperf"
|
||||
{"master-slides",master_slides},
|
||||
#line 25 "KEY1Token.gperf"
|
||||
{"altLineVisible",altLineVisible},
|
||||
#line 170 "KEY1Token.gperf"
|
||||
{"visibility",visibility},
|
||||
#line 165 "KEY1Token.gperf"
|
||||
{"userMinimum",userMinimum},
|
||||
#line 107 "KEY1Token.gperf"
|
||||
{"opacity",opacity},
|
||||
{(char*)0},
|
||||
#line 125 "KEY1Token.gperf"
|
||||
{"reference",reference},
|
||||
#line 69 "KEY1Token.gperf"
|
||||
{"guide",guide},
|
||||
{(char*)0},
|
||||
#line 168 "KEY1Token.gperf"
|
||||
{"version",version},
|
||||
{(char*)0},
|
||||
#line 119 "KEY1Token.gperf"
|
||||
{"prototype-data",prototype_data},
|
||||
{(char*)0},
|
||||
#line 70 "KEY1Token.gperf"
|
||||
{"guides",guides},
|
||||
#line 129 "KEY1Token.gperf"
|
||||
{"shadow-style",shadow_style},
|
||||
{(char*)0},
|
||||
#line 167 "KEY1Token.gperf"
|
||||
{"useUserMinimum",useUserMinimum},
|
||||
{(char*)0},
|
||||
#line 139 "KEY1Token.gperf"
|
||||
{"start-color",start_color},
|
||||
#line 36 "KEY1Token.gperf"
|
||||
{"bullet-characters",bullet_characters},
|
||||
#line 131 "KEY1Token.gperf"
|
||||
{"showGrid",showGrid},
|
||||
#line 148 "KEY1Token.gperf"
|
||||
{"tab-stops",tab_stops},
|
||||
{(char*)0}, {(char*)0},
|
||||
#line 159 "KEY1Token.gperf"
|
||||
{"titleVisible",titleVisible},
|
||||
{(char*)0},
|
||||
#line 105 "KEY1Token.gperf"
|
||||
{"numberOfPoints",numberOfPoints},
|
||||
#line 41 "KEY1Token.gperf"
|
||||
{"chartFrame",chartFrame},
|
||||
#line 32 "KEY1Token.gperf"
|
||||
{"background-fill-style",background_fill_style},
|
||||
#line 118 "KEY1Token.gperf"
|
||||
{"prototype-bullets",prototype_bullets},
|
||||
#line 34 "KEY1Token.gperf"
|
||||
{"buildChunkingStyle",buildChunkingStyle},
|
||||
#line 134 "KEY1Token.gperf"
|
||||
{"size-technique",size_technique},
|
||||
#line 89 "KEY1Token.gperf"
|
||||
{"line-tail-style",line_tail_style},
|
||||
#line 121 "KEY1Token.gperf"
|
||||
{"prototype-plugin",prototype_plugin},
|
||||
#line 122 "KEY1Token.gperf"
|
||||
{"prototype-plugins",prototype_plugins},
|
||||
{(char*)0},
|
||||
#line 50 "KEY1Token.gperf"
|
||||
{"dataFormatterSuffix",dataFormatterSuffix},
|
||||
{(char*)0},
|
||||
#line 109 "KEY1Token.gperf"
|
||||
{"page-number",page_number},
|
||||
#line 155 "KEY1Token.gperf"
|
||||
{"tickLabelsOpacity",tickLabelsOpacity},
|
||||
#line 163 "KEY1Token.gperf"
|
||||
{"ui-state",ui_state},
|
||||
#line 67 "KEY1Token.gperf"
|
||||
{"gradient-angle",gradient_angle},
|
||||
{(char*)0},
|
||||
#line 95 "KEY1Token.gperf"
|
||||
{"marker-type",marker_type},
|
||||
#line 150 "KEY1Token.gperf"
|
||||
{"textbox",textbox},
|
||||
{(char*)0},
|
||||
#line 24 "KEY1Token.gperf"
|
||||
{"altLineOpacity",altLineOpacity},
|
||||
#line 47 "KEY1Token.gperf"
|
||||
{"dataFormatterHasThousandsSeparators",dataFormatterHasThousandsSeparators},
|
||||
{(char*)0}, {(char*)0}, {(char*)0},
|
||||
#line 114 "KEY1Token.gperf"
|
||||
{"pieSliceOffset",pieSliceOffset},
|
||||
{(char*)0}, {(char*)0},
|
||||
#line 113 "KEY1Token.gperf"
|
||||
{"pattern",pattern},
|
||||
{(char*)0},
|
||||
#line 48 "KEY1Token.gperf"
|
||||
{"dataFormatterNumberOfDecimals",dataFormatterNumberOfDecimals},
|
||||
#line 149 "KEY1Token.gperf"
|
||||
{"text-attributes",text_attributes},
|
||||
#line 75 "KEY1Token.gperf"
|
||||
{"image-scale",image_scale},
|
||||
{(char*)0}, {(char*)0}, {(char*)0},
|
||||
#line 97 "KEY1Token.gperf"
|
||||
{"master-slide-id",master_slide_id},
|
||||
{(char*)0},
|
||||
#line 116 "KEY1Token.gperf"
|
||||
{"point_at_top",point_at_top},
|
||||
{(char*)0}, {(char*)0},
|
||||
#line 74 "KEY1Token.gperf"
|
||||
{"image-data",image_data},
|
||||
#line 72 "KEY1Token.gperf"
|
||||
{"id-ref",id_ref},
|
||||
#line 115 "KEY1Token.gperf"
|
||||
{"pieSlicePercentVisible",pieSlicePercentVisible},
|
||||
{(char*)0},
|
||||
#line 57 "KEY1Token.gperf"
|
||||
{"end-color",end_color},
|
||||
#line 128 "KEY1Token.gperf"
|
||||
{"seriesDirection",seriesDirection},
|
||||
#line 90 "KEY1Token.gperf"
|
||||
{"lineVisible",lineVisible},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
#line 27 "KEY1Token.gperf"
|
||||
{"application-name",application_name},
|
||||
#line 44 "KEY1Token.gperf"
|
||||
{"content",content},
|
||||
{(char*)0},
|
||||
#line 49 "KEY1Token.gperf"
|
||||
{"dataFormatterPrefix",dataFormatterPrefix},
|
||||
#line 137 "KEY1Token.gperf"
|
||||
{"slide-size",slide_size},
|
||||
{(char*)0}, {(char*)0}, {(char*)0},
|
||||
#line 78 "KEY1Token.gperf"
|
||||
{"is-filled",is_filled},
|
||||
#line 136 "KEY1Token.gperf"
|
||||
{"slide-list",slide_list},
|
||||
{(char*)0}, {(char*)0}, {(char*)0},
|
||||
#line 28 "KEY1Token.gperf"
|
||||
{"application-version",application_version},
|
||||
#line 87 "KEY1Token.gperf"
|
||||
{"line-head-style",line_head_style},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
#line 59 "KEY1Token.gperf"
|
||||
{"fill-color",fill_color},
|
||||
#line 88 "KEY1Token.gperf"
|
||||
{"lineOpacity",lineOpacity},
|
||||
#line 82 "KEY1Token.gperf"
|
||||
{"labelVisible",labelVisible},
|
||||
{(char*)0},
|
||||
#line 120 "KEY1Token.gperf"
|
||||
{"prototype-drawables",prototype_drawables},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
#line 77 "KEY1Token.gperf"
|
||||
{"interSeriesGap",interSeriesGap},
|
||||
{(char*)0},
|
||||
#line 62 "KEY1Token.gperf"
|
||||
{"floating-content",floating_content},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0},
|
||||
#line 112 "KEY1Token.gperf"
|
||||
{"paragraph-head-indent",paragraph_head_indent},
|
||||
#line 111 "KEY1Token.gperf"
|
||||
{"paragraph-first-line-indent",paragraph_first_line_indent},
|
||||
{(char*)0}, {(char*)0}, {(char*)0},
|
||||
#line 68 "KEY1Token.gperf"
|
||||
{"gridOpacity",gridOpacity},
|
||||
{(char*)0},
|
||||
#line 81 "KEY1Token.gperf"
|
||||
{"labelPosition",labelPosition},
|
||||
#line 110 "KEY1Token.gperf"
|
||||
{"paragraph-alignment",paragraph_alignment},
|
||||
{(char*)0}, {(char*)0}, {(char*)0},
|
||||
#line 169 "KEY1Token.gperf"
|
||||
{"vertical-alignment",vertical_alignment},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0},
|
||||
#line 161 "KEY1Token.gperf"
|
||||
{"transition-style",transition_style},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0},
|
||||
#line 108 "KEY1Token.gperf"
|
||||
{"orientation",orientation},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0},
|
||||
#line 80 "KEY1Token.gperf"
|
||||
{"labelOpacity",labelOpacity},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
#line 40 "KEY1Token.gperf"
|
||||
{"character-bullet-style",character_bullet_style},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0},
|
||||
#line 42 "KEY1Token.gperf"
|
||||
{"chart-prototype",chart_prototype}
|
||||
};
|
||||
|
||||
if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
|
||||
{
|
||||
register int key = hash (str, len);
|
||||
|
||||
if (key <= MAX_HASH_VALUE && key >= 0)
|
||||
{
|
||||
register const char *s = wordlist[key].name;
|
||||
|
||||
if (s && *str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')
|
||||
return &wordlist[key];
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#line 173 "KEY1Token.gperf"
|
||||
|
||||
-224
@@ -1,224 +0,0 @@
|
||||
/* C++ code produced by gperf version 3.0.4 */
|
||||
/* Command-line: gperf --compare-strncmp --enum --null-strings --readonly-tables --language C++ KEY2Token.gperf */
|
||||
/* Computed positions: -k'1,4-5' */
|
||||
|
||||
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
|
||||
&& ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
|
||||
&& (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
|
||||
&& ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
|
||||
&& ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
|
||||
&& ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
|
||||
&& ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
|
||||
&& ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
|
||||
&& ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
|
||||
&& ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
|
||||
&& ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
|
||||
&& ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
|
||||
&& ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
|
||||
&& ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
|
||||
&& ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
|
||||
&& ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
|
||||
&& ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
|
||||
&& ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
|
||||
&& ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
|
||||
&& ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
|
||||
&& ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
|
||||
&& ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
|
||||
&& ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
|
||||
/* The character set is not based on ISO-646. */
|
||||
#error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
|
||||
#endif
|
||||
|
||||
#line 10 "KEY2Token.gperf"
|
||||
|
||||
#if defined __GNUC__
|
||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||
#endif
|
||||
|
||||
using namespace KEY2Token;
|
||||
#line 18 "KEY2Token.gperf"
|
||||
struct Token
|
||||
{
|
||||
const char *name;
|
||||
int id;
|
||||
};
|
||||
#include <string.h>
|
||||
/* maximum key range = 71, duplicates = 0 */
|
||||
|
||||
class Perfect_Hash
|
||||
{
|
||||
private:
|
||||
static inline unsigned int hash (const char *str, unsigned int len);
|
||||
public:
|
||||
static const struct Token *in_word_set (const char *str, unsigned int len);
|
||||
};
|
||||
|
||||
inline unsigned int
|
||||
Perfect_Hash::hash (register const char *str, register unsigned int len)
|
||||
{
|
||||
static const unsigned char asso_values[] =
|
||||
{
|
||||
72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
|
||||
72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
|
||||
72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
|
||||
72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
|
||||
72, 72, 72, 72, 72, 5, 72, 72, 5, 10,
|
||||
15, 72, 20, 15, 72, 15, 0, 0, 0, 72,
|
||||
72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
|
||||
72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
|
||||
72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
|
||||
72, 72, 72, 72, 72, 72, 72, 0, 0, 10,
|
||||
25, 5, 72, 72, 0, 0, 72, 15, 0, 10,
|
||||
20, 0, 25, 72, 72, 0, 0, 72, 5, 0,
|
||||
72, 0, 72, 72, 72, 72, 72, 72, 72, 72,
|
||||
72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
|
||||
72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
|
||||
72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
|
||||
72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
|
||||
72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
|
||||
72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
|
||||
72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
|
||||
72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
|
||||
72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
|
||||
72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
|
||||
72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
|
||||
72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
|
||||
72, 72, 72, 72, 72, 72
|
||||
};
|
||||
register int hval = len;
|
||||
|
||||
switch (hval)
|
||||
{
|
||||
default:
|
||||
hval += asso_values[(unsigned char)str[4]];
|
||||
/*FALLTHROUGH*/
|
||||
case 4:
|
||||
hval += asso_values[(unsigned char)str[3]];
|
||||
/*FALLTHROUGH*/
|
||||
case 3:
|
||||
case 2:
|
||||
case 1:
|
||||
hval += asso_values[(unsigned char)str[0]];
|
||||
break;
|
||||
}
|
||||
return hval;
|
||||
}
|
||||
|
||||
const struct Token *
|
||||
Perfect_Hash::in_word_set (register const char *str, register unsigned int len)
|
||||
{
|
||||
enum
|
||||
{
|
||||
TOTAL_KEYWORDS = 33,
|
||||
MIN_WORD_LENGTH = 1,
|
||||
MAX_WORD_LENGTH = 46,
|
||||
MIN_HASH_VALUE = 1,
|
||||
MAX_HASH_VALUE = 71
|
||||
};
|
||||
|
||||
static const struct Token wordlist[] =
|
||||
{
|
||||
{(char*)0},
|
||||
#line 35 "KEY2Token.gperf"
|
||||
{"i",i},
|
||||
{(char*)0}, {(char*)0},
|
||||
#line 51 "KEY2Token.gperf"
|
||||
{"text",text},
|
||||
{(char*)0}, {(char*)0},
|
||||
#line 29 "KEY2Token.gperf"
|
||||
{"authors",authors},
|
||||
{(char*)0},
|
||||
#line 44 "KEY2Token.gperf"
|
||||
{"size",size},
|
||||
#line 54 "KEY2Token.gperf"
|
||||
{"title",title},
|
||||
#line 31 "KEY2Token.gperf"
|
||||
{"c",c},
|
||||
#line 56 "KEY2Token.gperf"
|
||||
{"version",version},
|
||||
{(char*)0}, {(char*)0},
|
||||
#line 50 "KEY2Token.gperf"
|
||||
{"stylesheet",stylesheet},
|
||||
#line 28 "KEY2Token.gperf"
|
||||
{"92008102400",VERSION_STR_5},
|
||||
{(char*)0},
|
||||
#line 36 "KEY2Token.gperf"
|
||||
{"key",key},
|
||||
{(char*)0},
|
||||
#line 52 "KEY2Token.gperf"
|
||||
{"theme",theme},
|
||||
#line 30 "KEY2Token.gperf"
|
||||
{"body-placeholder",body_placeholder},
|
||||
#line 55 "KEY2Token.gperf"
|
||||
{"title-placeholder",title_placeholder},
|
||||
#line 37 "KEY2Token.gperf"
|
||||
{"keywords",keywords},
|
||||
{(char*)0},
|
||||
#line 53 "KEY2Token.gperf"
|
||||
{"theme-list",theme_list},
|
||||
#line 49 "KEY2Token.gperf"
|
||||
{"string",string},
|
||||
#line 38 "KEY2Token.gperf"
|
||||
{"master-slide",master_slide},
|
||||
#line 39 "KEY2Token.gperf"
|
||||
{"master-slides",master_slides},
|
||||
{(char*)0},
|
||||
#line 41 "KEY2Token.gperf"
|
||||
{"notes",notes},
|
||||
{(char*)0},
|
||||
#line 32 "KEY2Token.gperf"
|
||||
{"comment",comment},
|
||||
{(char*)0},
|
||||
#line 42 "KEY2Token.gperf"
|
||||
{"page",page},
|
||||
#line 45 "KEY2Token.gperf"
|
||||
{"slide",slide},
|
||||
#line 47 "KEY2Token.gperf"
|
||||
{"sticky-note",sticky_note},
|
||||
#line 48 "KEY2Token.gperf"
|
||||
{"sticky-notes",sticky_notes},
|
||||
{(char*)0}, {(char*)0},
|
||||
#line 46 "KEY2Token.gperf"
|
||||
{"slide-list",slide_list},
|
||||
{(char*)0},
|
||||
#line 43 "KEY2Token.gperf"
|
||||
{"presentation",presentation},
|
||||
#line 40 "KEY2Token.gperf"
|
||||
{"metadata",metadata},
|
||||
{(char*)0},
|
||||
#line 25 "KEY2Token.gperf"
|
||||
{"2005092101",COMPATIBLE_VERSION_STR_3,},
|
||||
#line 27 "KEY2Token.gperf"
|
||||
{"72007061400",VERSION_STR_4},
|
||||
#line 33 "KEY2Token.gperf"
|
||||
{"headlineParagraphStyle",headlineParagraphStyle},
|
||||
{(char*)0}, {(char*)0},
|
||||
#line 26 "KEY2Token.gperf"
|
||||
{"2005112100",VERSION_STR_3},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
#line 24 "KEY2Token.gperf"
|
||||
{"2004102100",VERSION_STR_2},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0},
|
||||
#line 34 "KEY2Token.gperf"
|
||||
{"http://developer.apple.com/namespaces/keynote2",NS_URI_KEY}
|
||||
};
|
||||
|
||||
if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
|
||||
{
|
||||
register int key = hash (str, len);
|
||||
|
||||
if (key <= MAX_HASH_VALUE && key >= 0)
|
||||
{
|
||||
register const char *s = wordlist[key].name;
|
||||
|
||||
if (s && *str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')
|
||||
return &wordlist[key];
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#line 57 "KEY2Token.gperf"
|
||||
|
||||
-147
@@ -1,147 +0,0 @@
|
||||
/* C++ code produced by gperf version 3.0.4 */
|
||||
/* Command-line: gperf --compare-strncmp --enum --null-strings --readonly-tables --language C++ NUM1Token.gperf */
|
||||
/* Computed positions: -k'1' */
|
||||
|
||||
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
|
||||
&& ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
|
||||
&& (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
|
||||
&& ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
|
||||
&& ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
|
||||
&& ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
|
||||
&& ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
|
||||
&& ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
|
||||
&& ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
|
||||
&& ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
|
||||
&& ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
|
||||
&& ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
|
||||
&& ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
|
||||
&& ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
|
||||
&& ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
|
||||
&& ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
|
||||
&& ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
|
||||
&& ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
|
||||
&& ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
|
||||
&& ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
|
||||
&& ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
|
||||
&& ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
|
||||
&& ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
|
||||
/* The character set is not based on ISO-646. */
|
||||
#error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
|
||||
#endif
|
||||
|
||||
#line 10 "NUM1Token.gperf"
|
||||
|
||||
#if defined __GNUC__
|
||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||
#endif
|
||||
|
||||
using namespace NUM1Token;
|
||||
#line 18 "NUM1Token.gperf"
|
||||
struct Token
|
||||
{
|
||||
const char *name;
|
||||
int id;
|
||||
};
|
||||
#include <string.h>
|
||||
/* maximum key range = 34, duplicates = 0 */
|
||||
|
||||
class Perfect_Hash
|
||||
{
|
||||
private:
|
||||
static inline unsigned int hash (const char *str, unsigned int len);
|
||||
public:
|
||||
static const struct Token *in_word_set (const char *str, unsigned int len);
|
||||
};
|
||||
|
||||
inline unsigned int
|
||||
Perfect_Hash::hash (register const char *str, register unsigned int len)
|
||||
{
|
||||
static const unsigned char asso_values[] =
|
||||
{
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 0, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
0, 41, 41, 41, 0, 41, 41, 41, 41, 41,
|
||||
41, 41, 5, 41, 41, 0, 41, 41, 0, 0,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41
|
||||
};
|
||||
return len + asso_values[(unsigned char)str[0]];
|
||||
}
|
||||
|
||||
const struct Token *
|
||||
Perfect_Hash::in_word_set (register const char *str, register unsigned int len)
|
||||
{
|
||||
enum
|
||||
{
|
||||
TOTAL_KEYWORDS = 8,
|
||||
MIN_WORD_LENGTH = 7,
|
||||
MAX_WORD_LENGTH = 40,
|
||||
MIN_HASH_VALUE = 7,
|
||||
MAX_HASH_VALUE = 40
|
||||
};
|
||||
|
||||
static const struct Token wordlist[] =
|
||||
{
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0},
|
||||
#line 31 "NUM1Token.gperf"
|
||||
{"version",version},
|
||||
#line 26 "NUM1Token.gperf"
|
||||
{"document",document},
|
||||
#line 29 "NUM1Token.gperf"
|
||||
{"workspace",workspace},
|
||||
#line 28 "NUM1Token.gperf"
|
||||
{"stylesheet",stylesheet},
|
||||
#line 24 "NUM1Token.gperf"
|
||||
{"92008102400",VERSION_STR_2},
|
||||
{(char*)0}, {(char*)0},
|
||||
#line 27 "NUM1Token.gperf"
|
||||
{"page-info",page_info},
|
||||
#line 30 "NUM1Token.gperf"
|
||||
{"workspace-array",workspace_array},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
#line 25 "NUM1Token.gperf"
|
||||
{"http://developer.apple.com/namespaces/ls",NS_URI_LS}
|
||||
};
|
||||
|
||||
if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
|
||||
{
|
||||
register int key = hash (str, len);
|
||||
|
||||
if (key <= MAX_HASH_VALUE && key >= 0)
|
||||
{
|
||||
register const char *s = wordlist[key].name;
|
||||
|
||||
if (s && *str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')
|
||||
return &wordlist[key];
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#line 32 "NUM1Token.gperf"
|
||||
|
||||
-180
@@ -1,180 +0,0 @@
|
||||
/* C++ code produced by gperf version 3.0.4 */
|
||||
/* Command-line: gperf --compare-strncmp --enum --null-strings --readonly-tables --language C++ PAG1Token.gperf */
|
||||
/* Computed positions: -k'1' */
|
||||
|
||||
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
|
||||
&& ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
|
||||
&& (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
|
||||
&& ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
|
||||
&& ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
|
||||
&& ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
|
||||
&& ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
|
||||
&& ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
|
||||
&& ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
|
||||
&& ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
|
||||
&& ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
|
||||
&& ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
|
||||
&& ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
|
||||
&& ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
|
||||
&& ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
|
||||
&& ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
|
||||
&& ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
|
||||
&& ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
|
||||
&& ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
|
||||
&& ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
|
||||
&& ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
|
||||
&& ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
|
||||
&& ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
|
||||
/* The character set is not based on ISO-646. */
|
||||
#error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
|
||||
#endif
|
||||
|
||||
#line 10 "PAG1Token.gperf"
|
||||
|
||||
#if defined __GNUC__
|
||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||
#endif
|
||||
|
||||
using namespace PAG1Token;
|
||||
#line 18 "PAG1Token.gperf"
|
||||
struct Token
|
||||
{
|
||||
const char *name;
|
||||
int id;
|
||||
};
|
||||
#include <string.h>
|
||||
/* maximum key range = 37, duplicates = 0 */
|
||||
|
||||
class Perfect_Hash
|
||||
{
|
||||
private:
|
||||
static inline unsigned int hash (const char *str, unsigned int len);
|
||||
public:
|
||||
static const struct Token *in_word_set (const char *str, unsigned int len);
|
||||
};
|
||||
|
||||
inline unsigned int
|
||||
Perfect_Hash::hash (register const char *str, register unsigned int len)
|
||||
{
|
||||
static const unsigned char asso_values[] =
|
||||
{
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 20, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 0, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 13, 30,
|
||||
10, 41, 5, 41, 0, 41, 41, 5, 15, 41,
|
||||
20, 41, 0, 41, 0, 5, 5, 41, 0, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
|
||||
41, 41, 41, 41, 41, 41
|
||||
};
|
||||
return len + asso_values[(unsigned char)str[0]];
|
||||
}
|
||||
|
||||
const struct Token *
|
||||
Perfect_Hash::in_word_set (register const char *str, register unsigned int len)
|
||||
{
|
||||
enum
|
||||
{
|
||||
TOTAL_KEYWORDS = 25,
|
||||
MIN_WORD_LENGTH = 4,
|
||||
MAX_WORD_LENGTH = 40,
|
||||
MIN_HASH_VALUE = 4,
|
||||
MAX_HASH_VALUE = 40
|
||||
};
|
||||
|
||||
static const struct Token wordlist[] =
|
||||
{
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
#line 40 "PAG1Token.gperf"
|
||||
{"page",page},
|
||||
#line 44 "PAG1Token.gperf"
|
||||
{"rpage",rpage},
|
||||
#line 33 "PAG1Token.gperf"
|
||||
{"header",header},
|
||||
#line 48 "PAG1Token.gperf"
|
||||
{"version",version},
|
||||
{(char*)0},
|
||||
#line 42 "PAG1Token.gperf"
|
||||
{"prototype",prototype},
|
||||
#line 41 "PAG1Token.gperf"
|
||||
{"page-group",page_group},
|
||||
#line 31 "PAG1Token.gperf"
|
||||
{"footer",footer},
|
||||
#line 47 "PAG1Token.gperf"
|
||||
{"textbox",textbox},
|
||||
#line 32 "PAG1Token.gperf"
|
||||
{"footnote",footnote},
|
||||
#line 28 "PAG1Token.gperf"
|
||||
{"date",date},
|
||||
#line 46 "PAG1Token.gperf"
|
||||
{"stylesheet",stylesheet},
|
||||
#line 43 "PAG1Token.gperf"
|
||||
{"publication-info",publication_info},
|
||||
#line 26 "PAG1Token.gperf"
|
||||
{"body",body},
|
||||
#line 29 "PAG1Token.gperf"
|
||||
{"document",document},
|
||||
#line 30 "PAG1Token.gperf"
|
||||
{"drawables",drawables},
|
||||
{(char*)0},
|
||||
#line 37 "PAG1Token.gperf"
|
||||
{"layout",layout},
|
||||
#line 25 "PAG1Token.gperf"
|
||||
{"SLCreationDateProperty",SLCreationDateProperty},
|
||||
#line 45 "PAG1Token.gperf"
|
||||
{"section-prototypes",section_prototypes},
|
||||
#line 38 "PAG1Token.gperf"
|
||||
{"note",note},
|
||||
{(char*)0},
|
||||
#line 39 "PAG1Token.gperf"
|
||||
{"number",number},
|
||||
{(char*)0}, {(char*)0},
|
||||
#line 35 "PAG1Token.gperf"
|
||||
{"kSFWPFootnoteGapProperty",kSFWPFootnoteGapProperty},
|
||||
#line 36 "PAG1Token.gperf"
|
||||
{"kSFWPFootnoteKindProperty",kSFWPFootnoteKindProperty},
|
||||
#line 24 "PAG1Token.gperf"
|
||||
{"92008102400",VERSION_STR_4},
|
||||
{(char*)0}, {(char*)0},
|
||||
#line 27 "PAG1Token.gperf"
|
||||
{"cell",cell},
|
||||
{(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
|
||||
{(char*)0},
|
||||
#line 34 "PAG1Token.gperf"
|
||||
{"http://developer.apple.com/namespaces/sl",NS_URI_SL}
|
||||
};
|
||||
|
||||
if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
|
||||
{
|
||||
register int key = hash (str, len);
|
||||
|
||||
if (key <= MAX_HASH_VALUE && key >= 0)
|
||||
{
|
||||
register const char *s = wordlist[key].name;
|
||||
|
||||
if (s && *str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')
|
||||
return &wordlist[key];
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#line 49 "PAG1Token.gperf"
|
||||
|
||||
Reference in New Issue
Block a user