diff options
| author | Aarne Ranta <aarne@chalmers.se> | 2017-08-21 16:20:27 +0300 |
|---|---|---|
| committer | Aarne Ranta <aarne@chalmers.se> | 2017-08-21 16:20:27 +0300 |
| commit | 38fd84a28c08ec1bc2b8dba84b4bbf09039cd794 (patch) | |
| tree | aa95ce96599ecedbbccb29c840ccac3c75a67520 /src/runtime/c | |
| parent | f7312b3f4cf68064335bfce0e93811974505f3bd (diff) | |
| parent | dbac0b184f7aad3df33a28983937d5f2de8ae920 (diff) | |
Merge branch 'master' of https://github.com/GrammaticalFramework/GF
Diffstat (limited to 'src/runtime/c')
| -rw-r--r-- | src/runtime/c/pgf/linearizer.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/runtime/c/pgf/linearizer.c b/src/runtime/c/pgf/linearizer.c index a921de61a..f18a3e55a 100644 --- a/src/runtime/c/pgf/linearizer.c +++ b/src/runtime/c/pgf/linearizer.c @@ -1125,7 +1125,17 @@ pgf_file_lzn_symbol_meta(PgfLinFuncs** funcs, PgfMetaId id) flin->capit = PGF_CAPIT_NONE; } - gu_putc('?', flin->out, flin->err); + gu_putc('?', flin->out, flin->err); + + switch (flin->capit) { + case PGF_CAPIT_FIRST: + flin->capit = PGF_CAPIT_NONE; + break; + case PGF_CAPIT_ALL: + flin->capit = PGF_CAPIT_NEXT; + break; + default:; + } } static PgfLinFuncs pgf_file_lin_funcs = { |
