summaryrefslogtreecommitdiffstats
path: root/eshtrans
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-02-23 02:12:24 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-02-23 02:12:24 (EST)
commiteaaf909f395f6ae1e7ff15fc77699c938766faa9 (patch)
tree195efeb503af354acd2a85b6d0beb7b9b45d6031 /eshtrans
parent9f7b248ef91b002b6a43429049fc41401af8bb2a (diff)
downloadeggshell-eaaf909f395f6ae1e7ff15fc77699c938766faa9.zip
eggshell-eaaf909f395f6ae1e7ff15fc77699c938766faa9.tar.gz
eggshell-eaaf909f395f6ae1e7ff15fc77699c938766faa9.tar.bz2
eshtrans/backend: Delimit func start/end calls with ";"
Diffstat (limited to 'eshtrans')
-rw-r--r--eshtrans/backend/codegen.esh4
1 files changed, 2 insertions, 2 deletions
diff --git a/eshtrans/backend/codegen.esh b/eshtrans/backend/codegen.esh
index 49b44fd..9ba6c3f 100644
--- a/eshtrans/backend/codegen.esh
+++ b/eshtrans/backend/codegen.esh
@@ -106,10 +106,10 @@ codegen_sub()
# Function start/end tokens
case "${t%${US}*}" in
T_FN_START)
- printf '__fn_start %s\n' "${fname#*${US}}"
+ printf '__fn_start %s;' "${fname#*${US}}"
;;
T_FN_END|T_RETURN)
- printf '__fn_end\n'
+ printf '__fn_end;'
;;
esac