summaryrefslogtreecommitdiff
path: root/hwpfilter/source/hwpeq.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'hwpfilter/source/hwpeq.cxx')
-rw-r--r--hwpfilter/source/hwpeq.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/hwpfilter/source/hwpeq.cxx b/hwpfilter/source/hwpeq.cxx
index d3bd46207469..00cf2182866c 100644
--- a/hwpfilter/source/hwpeq.cxx
+++ b/hwpfilter/source/hwpeq.cxx
@@ -68,6 +68,8 @@ enum { SCRIPT_NONE, SCRIPT_SUB, SCRIPT_SUP, SCRIPT_ALL};
static int eq_word(MzString& outs, istream *strm, int script = SCRIPT_NONE);
static bool eq_sentence(MzString& outs, istream *strm, const char *end = nullptr);
+namespace {
+
struct hwpeq {
const char *key; // hwp math keyword
const char *latex; // corresponding latex keyword
@@ -75,6 +77,8 @@ struct hwpeq {
unsigned char flag; // case sensitive?
};
+}
+
static const hwpeq eq_tbl[] = {
{ "!=", "\\equiv ", 0, 0 },
{ "#", "\\\\", 0, 0 },
@@ -452,6 +456,8 @@ static void make_keyword( char *keyword, const char *token)
}
}
+namespace {
+
// token reading function
struct eq_stack {
MzString white;
@@ -465,6 +471,8 @@ struct eq_stack {
}
};
+}
+
static eq_stack *stk = nullptr;
static void push_token(MzString const &white, MzString const &token, istream *strm)