gpgscm: Make tags mandatory.
[gnupg.git] / tests / gpgscm / opdefines.h
1 _OP_DEF("load",                           1,  1,       TST_STRING,                      OP_LOAD             )
2 _OP_DEF(0,                                0,  0,       0,                               OP_T0LVL            )
3 _OP_DEF(0,                                0,  0,       0,                               OP_T1LVL            )
4 _OP_DEF(0,                                0,  0,       0,                               OP_READ_INTERNAL    )
5 _OP_DEF("gensym",                         0,  0,       0,                               OP_GENSYM           )
6 _OP_DEF(0,                                0,  0,       0,                               OP_VALUEPRINT       )
7 _OP_DEF(0,                                0,  0,       0,                               OP_EVAL             )
8 #if USE_TRACING
9 _OP_DEF(0,                                0,  0,       0,                               OP_REAL_EVAL        )
10 #endif
11 _OP_DEF(0,                                0,  0,       0,                               OP_E0ARGS           )
12 _OP_DEF(0,                                0,  0,       0,                               OP_E1ARGS           )
13 #if USE_HISTORY
14 _OP_DEF(0,                                0,  0,       0,                               OP_CALLSTACK_POP    )
15 #endif
16 _OP_DEF(0,                                0,  0,       0,                               OP_APPLY_CODE       )
17 _OP_DEF(0,                                0,  0,       0,                               OP_APPLY            )
18 #if USE_TRACING
19 _OP_DEF(0,                                0,  0,       0,                               OP_REAL_APPLY       )
20 _OP_DEF("tracing",                        1,  1,       TST_NATURAL,                     OP_TRACING          )
21 #endif
22 _OP_DEF(0,                                0,  0,       0,                               OP_DOMACRO          )
23 _OP_DEF(0,                                0,  0,       0,                               OP_LAMBDA           )
24 _OP_DEF(0,                                0,  0,       0,                               OP_LAMBDA1          )
25 _OP_DEF("make-closure",                   1,  2,       TST_PAIR TST_ENVIRONMENT,        OP_MKCLOSURE        )
26 _OP_DEF(0,                                0,  0,       0,                               OP_QUOTE            )
27 _OP_DEF(0,                                0,  0,       0,                               OP_DEF0             )
28 _OP_DEF(0,                                0,  0,       0,                               OP_DEF1             )
29 _OP_DEF("defined?",                       1,  2,       TST_SYMBOL TST_ENVIRONMENT,      OP_DEFP             )
30 _OP_DEF(0,                                0,  0,       0,                               OP_BEGIN            )
31 _OP_DEF(0,                                0,  0,       0,                               OP_IF0              )
32 _OP_DEF(0,                                0,  0,       0,                               OP_IF1              )
33 _OP_DEF(0,                                0,  0,       0,                               OP_SET0             )
34 _OP_DEF(0,                                0,  0,       0,                               OP_SET1             )
35 _OP_DEF(0,                                0,  0,       0,                               OP_LET0             )
36 _OP_DEF(0,                                0,  0,       0,                               OP_LET1             )
37 _OP_DEF(0,                                0,  0,       0,                               OP_LET2             )
38 _OP_DEF(0,                                0,  0,       0,                               OP_LET0AST          )
39 _OP_DEF(0,                                0,  0,       0,                               OP_LET1AST          )
40 _OP_DEF(0,                                0,  0,       0,                               OP_LET2AST          )
41 _OP_DEF(0,                                0,  0,       0,                               OP_LET0REC          )
42 _OP_DEF(0,                                0,  0,       0,                               OP_LET1REC          )
43 _OP_DEF(0,                                0,  0,       0,                               OP_LET2REC          )
44 _OP_DEF(0,                                0,  0,       0,                               OP_COND0            )
45 _OP_DEF(0,                                0,  0,       0,                               OP_COND1            )
46 _OP_DEF(0,                                0,  0,       0,                               OP_DELAY            )
47 _OP_DEF(0,                                0,  0,       0,                               OP_AND0             )
48 _OP_DEF(0,                                0,  0,       0,                               OP_AND1             )
49 _OP_DEF(0,                                0,  0,       0,                               OP_OR0              )
50 _OP_DEF(0,                                0,  0,       0,                               OP_OR1              )
51 _OP_DEF(0,                                0,  0,       0,                               OP_C0STREAM         )
52 _OP_DEF(0,                                0,  0,       0,                               OP_C1STREAM         )
53 _OP_DEF(0,                                0,  0,       0,                               OP_MACRO0           )
54 _OP_DEF(0,                                0,  0,       0,                               OP_MACRO1           )
55 _OP_DEF(0,                                0,  0,       0,                               OP_CASE0            )
56 _OP_DEF(0,                                0,  0,       0,                               OP_CASE1            )
57 _OP_DEF(0,                                0,  0,       0,                               OP_CASE2            )
58 _OP_DEF("eval",                           1,  2,       TST_ANY TST_ENVIRONMENT,         OP_PEVAL            )
59 _OP_DEF("apply",                          1,  INF_ARG, TST_NONE,                        OP_PAPPLY           )
60 _OP_DEF("call-with-current-continuation", 1,  1,       TST_NONE,                        OP_CONTINUATION     )
61 #if USE_MATH
62 _OP_DEF("inexact->exact",                 1,  1,       TST_NUMBER,                      OP_INEX2EX          )
63 _OP_DEF("exp",                            1,  1,       TST_NUMBER,                      OP_EXP              )
64 _OP_DEF("log",                            1,  1,       TST_NUMBER,                      OP_LOG              )
65 _OP_DEF("sin",                            1,  1,       TST_NUMBER,                      OP_SIN              )
66 _OP_DEF("cos",                            1,  1,       TST_NUMBER,                      OP_COS              )
67 _OP_DEF("tan",                            1,  1,       TST_NUMBER,                      OP_TAN              )
68 _OP_DEF("asin",                           1,  1,       TST_NUMBER,                      OP_ASIN             )
69 _OP_DEF("acos",                           1,  1,       TST_NUMBER,                      OP_ACOS             )
70 _OP_DEF("atan",                           1,  2,       TST_NUMBER,                      OP_ATAN             )
71 _OP_DEF("sqrt",                           1,  1,       TST_NUMBER,                      OP_SQRT             )
72 _OP_DEF("expt",                           2,  2,       TST_NUMBER,                      OP_EXPT             )
73 _OP_DEF("floor",                          1,  1,       TST_NUMBER,                      OP_FLOOR            )
74 _OP_DEF("ceiling",                        1,  1,       TST_NUMBER,                      OP_CEILING          )
75 _OP_DEF("truncate",                       1,  1,       TST_NUMBER,                      OP_TRUNCATE         )
76 _OP_DEF("round",                          1,  1,       TST_NUMBER,                      OP_ROUND            )
77 #endif
78 _OP_DEF("+",                              0,  INF_ARG, TST_NUMBER,                      OP_ADD              )
79 _OP_DEF("-",                              1,  INF_ARG, TST_NUMBER,                      OP_SUB              )
80 _OP_DEF("*",                              0,  INF_ARG, TST_NUMBER,                      OP_MUL              )
81 _OP_DEF("/",                              1,  INF_ARG, TST_NUMBER,                      OP_DIV              )
82 _OP_DEF("quotient",                       1,  INF_ARG, TST_INTEGER,                     OP_INTDIV           )
83 _OP_DEF("remainder",                      2,  2,       TST_INTEGER,                     OP_REM              )
84 _OP_DEF("modulo",                         2,  2,       TST_INTEGER,                     OP_MOD              )
85 _OP_DEF("car",                            1,  1,       TST_PAIR,                        OP_CAR              )
86 _OP_DEF("cdr",                            1,  1,       TST_PAIR,                        OP_CDR              )
87 _OP_DEF("cons",                           2,  2,       TST_NONE,                        OP_CONS             )
88 _OP_DEF("set-car!",                       2,  2,       TST_PAIR TST_ANY,                OP_SETCAR           )
89 _OP_DEF("set-cdr!",                       2,  2,       TST_PAIR TST_ANY,                OP_SETCDR           )
90 _OP_DEF("char->integer",                  1,  1,       TST_CHAR,                        OP_CHAR2INT         )
91 _OP_DEF("integer->char",                  1,  1,       TST_NATURAL,                     OP_INT2CHAR         )
92 _OP_DEF("char-upcase",                    1,  1,       TST_CHAR,                        OP_CHARUPCASE       )
93 _OP_DEF("char-downcase",                  1,  1,       TST_CHAR,                        OP_CHARDNCASE       )
94 _OP_DEF("symbol->string",                 1,  1,       TST_SYMBOL,                      OP_SYM2STR          )
95 _OP_DEF("atom->string",                   1,  2,       TST_ANY TST_NATURAL,             OP_ATOM2STR         )
96 _OP_DEF("string->symbol",                 1,  1,       TST_STRING,                      OP_STR2SYM          )
97 _OP_DEF("string->atom",                   1,  2,       TST_STRING TST_NATURAL,          OP_STR2ATOM         )
98 _OP_DEF("make-string",                    1,  2,       TST_NATURAL TST_CHAR,            OP_MKSTRING         )
99 _OP_DEF("string-length",                  1,  1,       TST_STRING,                      OP_STRLEN           )
100 _OP_DEF("string-ref",                     2,  2,       TST_STRING TST_NATURAL,          OP_STRREF           )
101 _OP_DEF("string-set!",                    3,  3,       TST_STRING TST_NATURAL TST_CHAR, OP_STRSET           )
102 _OP_DEF("string-append",                  0,  INF_ARG, TST_STRING,                      OP_STRAPPEND        )
103 _OP_DEF("substring",                      2,  3,       TST_STRING TST_NATURAL,          OP_SUBSTR           )
104 _OP_DEF("vector",                         0,  INF_ARG, TST_NONE,                        OP_VECTOR           )
105 _OP_DEF("make-vector",                    1,  2,       TST_NATURAL TST_ANY,             OP_MKVECTOR         )
106 _OP_DEF("vector-length",                  1,  1,       TST_VECTOR,                      OP_VECLEN           )
107 _OP_DEF("vector-ref",                     2,  2,       TST_VECTOR TST_NATURAL,          OP_VECREF           )
108 _OP_DEF("vector-set!",                    3,  3,       TST_VECTOR TST_NATURAL TST_ANY,  OP_VECSET           )
109 _OP_DEF("not",                            1,  1,       TST_NONE,                        OP_NOT              )
110 _OP_DEF("boolean?",                       1,  1,       TST_NONE,                        OP_BOOLP            )
111 _OP_DEF("eof-object?",                    1,  1,       TST_NONE,                        OP_EOFOBJP          )
112 _OP_DEF("null?",                          1,  1,       TST_NONE,                        OP_NULLP            )
113 _OP_DEF("=",                              2,  INF_ARG, TST_NUMBER,                      OP_NUMEQ            )
114 _OP_DEF("<",                              2,  INF_ARG, TST_NUMBER,                      OP_LESS             )
115 _OP_DEF(">",                              2,  INF_ARG, TST_NUMBER,                      OP_GRE              )
116 _OP_DEF("<=",                             2,  INF_ARG, TST_NUMBER,                      OP_LEQ              )
117 _OP_DEF(">=",                             2,  INF_ARG, TST_NUMBER,                      OP_GEQ              )
118 _OP_DEF("symbol?",                        1,  1,       TST_ANY,                         OP_SYMBOLP          )
119 _OP_DEF("number?",                        1,  1,       TST_ANY,                         OP_NUMBERP          )
120 _OP_DEF("string?",                        1,  1,       TST_ANY,                         OP_STRINGP          )
121 _OP_DEF("integer?",                       1,  1,       TST_ANY,                         OP_INTEGERP         )
122 _OP_DEF("real?",                          1,  1,       TST_ANY,                         OP_REALP            )
123 _OP_DEF("char?",                          1,  1,       TST_ANY,                         OP_CHARP            )
124 #if USE_CHAR_CLASSIFIERS
125 _OP_DEF("char-alphabetic?",               1,  1,       TST_CHAR,                        OP_CHARAP           )
126 _OP_DEF("char-numeric?",                  1,  1,       TST_CHAR,                        OP_CHARNP           )
127 _OP_DEF("char-whitespace?",               1,  1,       TST_CHAR,                        OP_CHARWP           )
128 _OP_DEF("char-upper-case?",               1,  1,       TST_CHAR,                        OP_CHARUP           )
129 _OP_DEF("char-lower-case?",               1,  1,       TST_CHAR,                        OP_CHARLP           )
130 #endif
131 _OP_DEF("port?",                          1,  1,       TST_ANY,                         OP_PORTP            )
132 _OP_DEF("input-port?",                    1,  1,       TST_ANY,                         OP_INPORTP          )
133 _OP_DEF("output-port?",                   1,  1,       TST_ANY,                         OP_OUTPORTP         )
134 _OP_DEF("procedure?",                     1,  1,       TST_ANY,                         OP_PROCP            )
135 _OP_DEF("pair?",                          1,  1,       TST_ANY,                         OP_PAIRP            )
136 _OP_DEF("list?",                          1,  1,       TST_ANY,                         OP_LISTP            )
137 _OP_DEF("environment?",                   1,  1,       TST_ANY,                         OP_ENVP             )
138 _OP_DEF("vector?",                        1,  1,       TST_ANY,                         OP_VECTORP          )
139 _OP_DEF("eq?",                            2,  2,       TST_ANY,                         OP_EQ               )
140 _OP_DEF("eqv?",                           2,  2,       TST_ANY,                         OP_EQV              )
141 _OP_DEF("force",                          1,  1,       TST_ANY,                         OP_FORCE            )
142 _OP_DEF(0,                                0,  0,       0,                               OP_SAVE_FORCED      )
143 _OP_DEF("write",                          1,  2,       TST_ANY TST_OUTPORT,             OP_WRITE            )
144 _OP_DEF("write-char",                     1,  2,       TST_CHAR TST_OUTPORT,            OP_WRITE_CHAR       )
145 _OP_DEF("display",                        1,  2,       TST_ANY TST_OUTPORT,             OP_DISPLAY          )
146 _OP_DEF("newline",                        0,  1,       TST_OUTPORT,                     OP_NEWLINE          )
147 _OP_DEF("error",                          1,  INF_ARG, TST_NONE,                        OP_ERR0             )
148 _OP_DEF(0,                                0,  0,       0,                               OP_ERR1             )
149 _OP_DEF("reverse",                        1,  1,       TST_LIST,                        OP_REVERSE          )
150 _OP_DEF("reverse!",                       1,  1,       TST_LIST,                        OP_REVERSE_IN_PLACE )
151 _OP_DEF("list*",                          1,  INF_ARG, TST_NONE,                        OP_LIST_STAR        )
152 _OP_DEF("append",                         0,  INF_ARG, TST_NONE,                        OP_APPEND           )
153 #if USE_PLIST
154 _OP_DEF("set-symbol-property!",           3,  3,       TST_SYMBOL TST_SYMBOL TST_ANY,   OP_SET_SYMBOL_PROPERTY )
155 _OP_DEF("symbol-property",                2,  2,       TST_SYMBOL TST_SYMBOL,           OP_SYMBOL_PROPERTY  )
156 #endif
157 _OP_DEF(0,                                0,  0,       TST_NONE,                        OP_TAG_VALUE        )
158 _OP_DEF("make-tagged-value",              2,  2,       TST_ANY TST_PAIR,                 OP_MK_TAGGED        )
159 _OP_DEF("get-tag",                        1,  1,       TST_ANY,                         OP_GET_TAG          )
160 _OP_DEF("quit",                           0,  1,       TST_NUMBER,                      OP_QUIT             )
161 _OP_DEF("gc",                             0,  0,       0,                               OP_GC               )
162 _OP_DEF("gc-verbose",                     0,  1,       TST_NONE,                        OP_GCVERB           )
163 _OP_DEF("new-segment",                    0,  1,       TST_NUMBER,                      OP_NEWSEGMENT       )
164 _OP_DEF("oblist",                         0,  0,       0,                               OP_OBLIST           )
165 _OP_DEF("current-input-port",             0,  0,       0,                               OP_CURR_INPORT      )
166 _OP_DEF("current-output-port",            0,  0,       0,                               OP_CURR_OUTPORT     )
167 _OP_DEF("open-input-file",                1,  1,       TST_STRING,                      OP_OPEN_INFILE      )
168 _OP_DEF("open-output-file",               1,  1,       TST_STRING,                      OP_OPEN_OUTFILE     )
169 _OP_DEF("open-input-output-file",         1,  1,       TST_STRING,                      OP_OPEN_INOUTFILE   )
170 #if USE_STRING_PORTS
171 _OP_DEF("open-input-string",              1,  1,       TST_STRING,                      OP_OPEN_INSTRING    )
172 _OP_DEF("open-input-output-string",       1,  1,       TST_STRING,                      OP_OPEN_INOUTSTRING )
173 _OP_DEF("open-output-string",             0,  1,       TST_STRING,                      OP_OPEN_OUTSTRING   )
174 _OP_DEF("get-output-string",              1,  1,       TST_OUTPORT,                     OP_GET_OUTSTRING    )
175 #endif
176 _OP_DEF("close-input-port",               1,  1,       TST_INPORT,                      OP_CLOSE_INPORT     )
177 _OP_DEF("close-output-port",              1,  1,       TST_OUTPORT,                     OP_CLOSE_OUTPORT    )
178 _OP_DEF("interaction-environment",        0,  0,       0,                               OP_INT_ENV          )
179 _OP_DEF("current-environment",            0,  0,       0,                               OP_CURR_ENV         )
180 _OP_DEF("read",                           0,  1,       TST_INPORT,                      OP_READ             )
181 _OP_DEF("read-char",                      0,  1,       TST_INPORT,                      OP_READ_CHAR        )
182 _OP_DEF("peek-char",                      0,  1,       TST_INPORT,                      OP_PEEK_CHAR        )
183 _OP_DEF("char-ready?",                    0,  1,       TST_INPORT,                      OP_CHAR_READY       )
184 _OP_DEF("set-input-port",                 1,  1,       TST_INPORT,                      OP_SET_INPORT       )
185 _OP_DEF("set-output-port",                1,  1,       TST_OUTPORT,                     OP_SET_OUTPORT      )
186 _OP_DEF(0,                                0,  0,       0,                               OP_RDSEXPR          )
187 _OP_DEF(0,                                0,  0,       0,                               OP_RDLIST           )
188 _OP_DEF(0,                                0,  0,       0,                               OP_RDDOT            )
189 _OP_DEF(0,                                0,  0,       0,                               OP_RDQUOTE          )
190 _OP_DEF(0,                                0,  0,       0,                               OP_RDQQUOTE         )
191 _OP_DEF(0,                                0,  0,       0,                               OP_RDQQUOTEVEC      )
192 _OP_DEF(0,                                0,  0,       0,                               OP_RDUNQUOTE        )
193 _OP_DEF(0,                                0,  0,       0,                               OP_RDUQTSP          )
194 _OP_DEF(0,                                0,  0,       0,                               OP_RDVEC            )
195 _OP_DEF(0,                                0,  0,       0,                               OP_P0LIST           )
196 _OP_DEF(0,                                0,  0,       0,                               OP_P1LIST           )
197 _OP_DEF(0,                                0,  0,       0,                               OP_PVECFROM         )
198 _OP_DEF("length",                         1,  1,       TST_LIST,                        OP_LIST_LENGTH      )
199 _OP_DEF("assq",                           2,  2,       TST_NONE,                        OP_ASSQ             )
200 _OP_DEF("get-closure-code",               1,  1,       TST_NONE,                        OP_GET_CLOSURE      )
201 _OP_DEF("closure?",                       1,  1,       TST_NONE,                        OP_CLOSUREP         )
202 _OP_DEF("macro?",                         1,  1,       TST_NONE,                        OP_MACROP           )
203 _OP_DEF("*vm-history*",                   0,  0,       TST_NONE,                        OP_VM_HISTORY       )
204
205 #undef _OP_DEF