6 /* Copyright (C) 1995,1996,1998,1999,2000,2001,2002,2004,2008,2009,2010,2011,2013,2014
7 * Free Software Foundation, Inc.
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public License
11 * as published by the Free Software Foundation; either version 3 of
12 * the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
27 #include "libguile/__scm.h"
32 SCM_API SCM scm_sym_and
;
33 SCM_API SCM scm_sym_begin
;
34 SCM_API SCM scm_sym_case
;
35 SCM_API SCM scm_sym_cond
;
36 SCM_API SCM scm_sym_define
;
37 SCM_API SCM scm_sym_do
;
38 SCM_API SCM scm_sym_if
;
39 SCM_API SCM scm_sym_lambda
;
40 SCM_API SCM scm_sym_let
;
41 SCM_API SCM scm_sym_letstar
;
42 SCM_API SCM scm_sym_letrec
;
43 SCM_API SCM scm_sym_quote
;
44 SCM_API SCM scm_sym_quasiquote
;
45 SCM_API SCM scm_sym_unquote
;
46 SCM_API SCM scm_sym_uq_splicing
;
48 SCM_API SCM scm_sym_at
;
49 SCM_API SCM scm_sym_atat
;
50 SCM_API SCM scm_sym_delay
;
51 SCM_API SCM scm_sym_eval_when
;
52 SCM_API SCM scm_sym_arrow
;
53 SCM_API SCM scm_sym_else
;
54 SCM_API SCM scm_sym_apply
;
55 SCM_API SCM scm_sym_set_x
;
56 SCM_API SCM scm_sym_args
;
61 #define SCM_MEMOIZED_TAG(x) (scm_to_uint16 (scm_car (x)))
62 #define SCM_MEMOIZED_ARGS(x) (scm_cdr (x))
75 SCM_M_CALL_WITH_VALUES
,
82 SCM_M_CALL_WITH_PROMPT
88 SCM_INTERNAL SCM
scm_memoize_expression (SCM exp
);
89 SCM_INTERNAL SCM
scm_unmemoize_expression (SCM memoized
);
90 SCM_INTERNAL SCM
scm_memoized_typecode (SCM sym
);
91 SCM_INTERNAL SCM
scm_sys_resolve_variable (SCM loc
, SCM module
);
93 SCM_INTERNAL
void scm_init_memoize (void);
96 #endif /* SCM_MEMOIZE_H */