Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | use symbols for tokens instead of numeric. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
9f6302c601c7c19accd0fcac38afe1da |
User & Date: | jamesbond 2015-05-05 02:30:20 |
Context
2015-05-19
| ||
15:07 | enable console output either with vt100 codes or plain text. check-in: 48120ca488 user: jamesbond tags: trunk | |
2015-05-05
| ||
02:30 | use symbols for tokens instead of numeric. check-in: 9f6302c601 user: jamesbond tags: trunk | |
2015-05-04
| ||
19:44 | add a little state-machine to work out quoting in exec mode. check-in: 33f5df3cd5 user: jamesbond tags: trunk | |
Changes
Changes to egg-markdown.c.
︙ | ︙ | |||
492 493 494 495 496 497 498 | gchar *copy = NULL; gchar *data = NULL; // a silly state-machine to "parse" quoting #define NQ 0 #define SQ 1 #define DQ 2 | | | | | | | 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 | gchar *copy = NULL; gchar *data = NULL; // a silly state-machine to "parse" quoting #define NQ 0 #define SQ 1 #define DQ 2 int next[3][3] = { // state, input-token {NQ, SQ, DQ}, // no-quote with input of no-quote, single, double-quotes {SQ, NQ, SQ}, // single-quote with input of no-quote, single, double-quotes {DQ, DQ, NQ} // double-quote with input of no-quote, single, double-quotes }; int quote_allowed[3] = { // state 1, 0, 1 // quote only allowed during no-quote and double-quotes }; int state; // as #defined above: 0=no quote, 1=in-single-quote, 2=in-double-quote int next_token_is_never_quote; int tok; /* find sections */ copy = g_strdup (line); |
︙ | ︙ |