aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Knudsen <thokn@sdfe.dk>2017-11-19 23:56:17 +0100
committerThomas Knudsen <thokn@sdfe.dk>2017-11-19 23:56:17 +0100
commit370c616985d5e4465102e72bdbd15e3b6147ded8 (patch)
tree5dd73b5dfb8a9f808bdd41e09d6b62edd30df055
parent6bcba7023e52b712dde7dc348efc0b01147cb994 (diff)
downloadPROJ-370c616985d5e4465102e72bdbd15e3b6147ded8.tar.gz
PROJ-370c616985d5e4465102e72bdbd15e3b6147ded8.zip
Let gie use init-file syntax
-rw-r--r--src/gie.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gie.c b/src/gie.c
index 4b89fe8f..ac738926 100644
--- a/src/gie.c
+++ b/src/gie.c
@@ -781,7 +781,7 @@ static int dispatch (char *cmnd, char *args) {
int last_errno = proj_errno_reset (T.P);
if (0==level%2) {
- if (0==strcmp (cmnd, "BEGIN"))
+ if (0==strcmp (cmnd, "BEGIN") || 0==strcmp (cmnd, "<begin>"))
level++;
return 0;
}
@@ -807,6 +807,7 @@ static int dispatch (char *cmnd, char *args) {
if (0==strcmp (cmnd, "ECHO")) return echo (args);
if (0==strcmp (cmnd, "echo")) return echo (args);
if (0==strcmp (cmnd, "END")) return finish_previous_operation (args), level++, 0;
+ if (0==strcmp (cmnd, "<end>")) return finish_previous_operation (args), level++, 0;
if ('#'==cmnd[0]) return comment (args);
if (proj_errno(T.P))