diff options
author | Adrian Thurston <thurston@complang.org> | 2010-04-11 01:10:38 +0000 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2010-04-11 01:10:38 +0000 |
commit | a4aaca099060e166131b1fc3f22bf3b5d546ad74 (patch) | |
tree | f371ed7a42fee8615cceaf576812dd925b52f4fd /colm/ctinput.cpp | |
parent | 049d6897a631f4f7fa5dc745a4ce8814c28cc406 (diff) | |
download | colm-a4aaca099060e166131b1fc3f22bf3b5d546ad74.tar.gz |
trying out pointer-to-func structs for the input streams
Diffstat (limited to 'colm/ctinput.cpp')
-rw-r--r-- | colm/ctinput.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/colm/ctinput.cpp b/colm/ctinput.cpp index f71ad7c2..bc45cd45 100644 --- a/colm/ctinput.cpp +++ b/colm/ctinput.cpp @@ -49,7 +49,14 @@ InputStreamPattern::InputStreamPattern( Pattern *pattern ) pattern(pattern), patItem(pattern->list->head), offset(0) -{} +{ + funcs = &patternFuncs; +} + +InputFuncs InputStreamPattern::patternFuncs = +{ + 0 +}; bool InputStreamPattern::isLangEl() { @@ -160,7 +167,14 @@ InputStreamRepl::InputStreamRepl( Replacement *replacement ) replacement(replacement), replItem(replacement->list->head), offset(0) -{} +{ + funcs = &replFuncs; +} + +InputFuncs InputStreamRepl::replFuncs = +{ + 0 +}; bool InputStreamRepl::isLangEl() { |