浏览代码

Export prim_parseFrom to meta language.

master
Ian Piumarta 2 年前
父节点
当前提交
720c2c141d
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      src/ccmeta.leg

+ 2
- 1
src/ccmeta.leg 查看文件

@ -3,7 +3,7 @@
# Copyright (c) 2016-2021 Ian Piumarta and other contributors (see AUTHORS) # Copyright (c) 2016-2021 Ian Piumarta and other contributors (see AUTHORS)
# All rights reserved (see LICENSE) # All rights reserved (see LICENSE)
# #
# Last edited: 2023-03-22 18:11:54 by piumarta on zora-10.local
# Last edited: 2023-03-22 18:14:50 by piumarta on zora-10.local
%{ %{
/* compile: leg -o ccmeta.c ccmeta.leg /* compile: leg -o ccmeta.c ccmeta.leg
@ -4813,6 +4813,7 @@ void init(void)
map_set(globals, intern("microseconds"), makeFunction(prim_microseconds, intern("microseconds"), null, null, globals, null)); map_set(globals, intern("microseconds"), makeFunction(prim_microseconds, intern("microseconds"), null, null, globals, null));
map_set(globals, intern("string" ), makeFunction(prim_String, intern("string" ), null, null, globals, null)); map_set(globals, intern("string" ), makeFunction(prim_String, intern("string" ), null, null, globals, null));
map_set(globals, intern("scope" ), makeFunction(prim_scope, intern("scope" ), null, null, globals, null)); map_set(globals, intern("scope" ), makeFunction(prim_scope, intern("scope" ), null, null, globals, null));
map_set(globals, intern("parseFrom" ), makeFunction(prim_parseFrom, intern("parseFrom" ), null, null, globals, null));
#define _DO(NAME) NAME##_symbol=intern(#NAME); #define _DO(NAME) NAME##_symbol=intern(#NAME);
DO_SYMBOLS() DO_SYMBOLS()

正在加载...
取消
保存