diff options
author | P. J. McDermott <pj@pehjota.net> | 2016-02-28 15:22:03 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2016-02-28 15:27:40 (EST) |
commit | d06d1dca7699cb4aad08d92f49f5ddf91b88a539 (patch) | |
tree | d678edcb07b11e5727d8a48ad51923d5552b8dfa /eshtrans/backend | |
parent | 405ff1ffad7310a04ff104284d600a066d6dd925 (diff) | |
download | eggshell-d06d1dca7699cb4aad08d92f49f5ddf91b88a539.zip eggshell-d06d1dca7699cb4aad08d92f49f5ddf91b88a539.tar.gz eggshell-d06d1dca7699cb4aad08d92f49f5ddf91b88a539.tar.bz2 |
eshtrans: Fix T_STATIC and T_LOCAL recognition and codegen
Diffstat (limited to 'eshtrans/backend')
-rw-r--r-- | eshtrans/backend/codegen.esh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/eshtrans/backend/codegen.esh b/eshtrans/backend/codegen.esh index ddd466b..9969d37 100644 --- a/eshtrans/backend/codegen.esh +++ b/eshtrans/backend/codegen.esh @@ -113,8 +113,7 @@ codegen_sub() continue ;; *) - toktext T_STATIC - printf ' ' + printf '__static ' ;; esac elif ${static_fname}; then @@ -124,8 +123,7 @@ codegen_sub() add_static_fn "${fname#*${US}}" ;; *) - toktext T_STATIC - printf ' ' + printf '__static ' toktext "${fname}" ;; esac @@ -153,6 +151,14 @@ codegen_sub() printf '__fn_end; ' fi ;; + T_STATIC) + printf '__static ' + continue + ;; + T_LOCAL) + printf '__local ' + continue + ;; esac toktext "${t}" |