hp merge changes -- too numerous to mention here; see ChangeLog and
[deliverable/binutils-gdb.git] / gdb / scm-lang.h
CommitLineData
5b4d668a
PB
1#define SICP
2#include "scm-tags.h"
3#undef SCM_NCELLP
4#define SCM_NCELLP(x) ((SCM_SIZE-1) & (int)(x))
5#define SCM_ITAG8_DATA(X) ((X)>>8)
6#define SCM_ICHR(x) ((unsigned char)SCM_ITAG8_DATA(x))
7#define SCM_ICHRP(x) (SCM_ITAG8(x) == scm_tc8_char)
8#define scm_tc8_char 0xf4
9#define SCM_IFLAGP(n) ((0x87 & (int)(n))==4)
10#define SCM_ISYMNUM(n) ((int)((n)>>9))
11#define SCM_ISYMCHARS(n) (scm_isymnames[SCM_ISYMNUM(n)])
12#define SCM_ILOCP(n) ((0xff & (int)(n))==0xfc)
13#define SCM_ITAG8(X) ((int)(X) & 0xff)
14#define SCM_TYP7(x) (0x7f & (int)SCM_CAR(x))
15#define SCM_LENGTH(x) (((unsigned long)SCM_CAR(x))>>8)
16#define SCM_NCONSP(x) (1 & (int)SCM_CAR(x))
17#define SCM_NECONSP(x) (SCM_NCONSP(x) && (1 != SCM_TYP3(x)))
18#define SCM_CAR(x) scm_get_field (x, 0)
19#define SCM_CDR(x) scm_get_field (x, 1)
20#define SCM_VELTS(x) ((SCM *)SCM_CDR(x))
21#define SCM_CLOSCAR(x) (SCM_CAR(x)-scm_tc3_closure)
22#define SCM_CODE(x) SCM_CAR(SCM_CLOSCAR (x))
3c02944a 23#define SCM_MAKINUM(x) (((x)<<2)+2L)
5b4d668a
PB
24
25#ifdef __STDC__ /* Forward decls for prototypes */
26struct value;
27#endif
28
29extern int scm_value_print PARAMS ((struct value *, GDB_FILE*,
30 int, enum val_prettyprint));
31
4ef1f467 32extern int scm_val_print PARAMS ((struct type*, char*, int, CORE_ADDR, GDB_FILE*,
5b4d668a
PB
33 int, int, int, enum val_prettyprint));
34
35extern LONGEST scm_get_field PARAMS ((LONGEST, int));
36
b607efe7 37extern void scm_scmval_print PARAMS ((LONGEST, GDB_FILE *,
5b4d668a
PB
38 int, int, int, enum val_prettyprint));
39
40extern int is_scmvalue_type PARAMS ((struct type*));
41
42extern void scm_printchar PARAMS ((int, GDB_FILE*));
43
3c02944a 44extern struct value * scm_evaluate_string PARAMS ((char*, int));
5b4d668a 45
3c02944a
PB
46extern struct type *builtin_type_scm;
47
b607efe7 48extern int scm_parse PARAMS ((void));
b52cac6b
FF
49
50extern LONGEST scm_unpack PARAMS ((struct type *, char *, enum type_code));
This page took 0.170821 seconds and 4 git commands to generate.