* No TABS !!
git-svn-id: svn://svn.zoy.org/elk/trunk@66 55e467fa-43c5-0310-a8a2-de718669efc6
This commit is contained in:
+2
-2
@@ -43,9 +43,9 @@
|
||||
#define Get_Strsym_Stack(_from,_to) {\
|
||||
int _len;\
|
||||
if (TYPE(_from) == T_Symbol)\
|
||||
(_from) = SYMBOL(_from)->name;\
|
||||
(_from) = SYMBOL(_from)->name;\
|
||||
else if (TYPE(_from) != T_String)\
|
||||
Wrong_Type_Combination ((_from), "string or symbol");\
|
||||
Wrong_Type_Combination ((_from), "string or symbol");\
|
||||
_len = STRING(_from)->size;\
|
||||
Alloca ((_to), char*, _len+1);\
|
||||
memcpy ((_to), STRING(_from)->data, _len);\
|
||||
|
||||
+2
-2
@@ -63,9 +63,9 @@ extern unsigned long Intr_Level;
|
||||
#else
|
||||
#ifdef POSIX_SIGNALS
|
||||
#define Force_Disable_Interrupts (void)sigprocmask (SIG_BLOCK, &Sigset_Block,\
|
||||
(sigset_t *)0)
|
||||
(sigset_t *)0)
|
||||
#define Force_Enable_Interrupts (void)sigprocmask (SIG_SETMASK, &Sigset_Old,\
|
||||
(sigset_t *)0)
|
||||
(sigset_t *)0)
|
||||
#else
|
||||
#define Force_Disable_Interrupts {\
|
||||
if (!Intr_Was_Ignored) (void)signal (SIGINT, SIG_IGN);\
|
||||
|
||||
+4
-4
@@ -69,7 +69,7 @@ extern GCNODE *GC_List;
|
||||
#define GC_Link4_Tag_Primitive(args,fun,env,x4) {\
|
||||
gc1.gclen = TAG_ARGS; gc1.gcobj = &args; gc1.next = GC_List;\
|
||||
gc2.gclen = Tail_Call ? TAG_TCFUN : TAG_FUN;\
|
||||
gc2.gcobj = &fun; gc2.next = &gc1;\
|
||||
gc2.gcobj = &fun; gc2.next = &gc1;\
|
||||
gc3.gclen = TAG_ENV; gc3.gcobj = &env; gc3.next = &gc2;\
|
||||
gc4.gclen = 0; gc4.gcobj = &x4; gc4.next = &gc3; GC_List = &gc4;\
|
||||
}
|
||||
@@ -104,11 +104,11 @@ extern GCNODE *GC_List;
|
||||
/* see src/proc.c */
|
||||
#define GC_Link7_Tag_Compound(args,fun,env,x4,x5,x6,x7) {\
|
||||
gc1.gclen = TAG_ARGS;\
|
||||
gc1.gcobj = &args; gc1.next = GC_List;\
|
||||
gc1.gcobj = &args; gc1.next = GC_List;\
|
||||
gc2.gclen = Tail_Call ? TAG_TCFUN : TAG_FUN;\
|
||||
gc2.gcobj = &fun; gc2.next = &gc1;\
|
||||
gc2.gcobj = &fun; gc2.next = &gc1;\
|
||||
gc3.gclen = TAG_ENV;\
|
||||
gc3.gcobj = &env; gc3.next = &gc2;\
|
||||
gc3.gcobj = &env; gc3.next = &gc2;\
|
||||
gc4.gclen = 0; gc4.gcobj = &x4; gc4.next = &gc3;\
|
||||
gc5.gclen = 0; gc5.gcobj = &x5; gc5.next = &gc4;\
|
||||
gc6.gclen = 0; gc6.gcobj = &x6; gc6.next = &gc5;\
|
||||
|
||||
+3
-3
@@ -45,9 +45,9 @@
|
||||
# define NBITS(v) ((sizeof v) * 8)
|
||||
# define HIBIT(v,n) (NBITS(v) - (n))
|
||||
# define ASR(n,s) ((n) >>= (s),\
|
||||
((n) & (1 << (HIBIT((n),(s)) - 1)) ?\
|
||||
((n) |= ~(((unsigned)1 << HIBIT((n),(s))) - 1)) :\
|
||||
(n)))
|
||||
((n) & (1 << (HIBIT((n),(s)) - 1)) ?\
|
||||
((n) |= ~(((unsigned)1 << HIBIT((n),(s))) - 1)) :\
|
||||
(n)))
|
||||
#endif
|
||||
|
||||
extern Object False2;
|
||||
|
||||
+5
-5
@@ -91,7 +91,7 @@ typedef struct {
|
||||
# define MAKEOBJ(o,t,p) (SET(o, t, p))
|
||||
# define IS_ALIVE(obj) ((WAS_FORWARDED(obj)) || \
|
||||
(STABLE(OBJ_TO_PAGE(obj))) || \
|
||||
(space[OBJ_TO_PAGE(obj)] == current_space))
|
||||
(space[OBJ_TO_PAGE(obj)] == current_space))
|
||||
# define REVIVE_OBJ(obj) Visit (&obj);
|
||||
#else
|
||||
C_LINKAGE_BEGIN
|
||||
@@ -144,13 +144,13 @@ typedef struct {
|
||||
#define AUTOLOAD(x) ((struct S_Autoload *)POINTER(x))
|
||||
#define MACRO(x) ((struct S_Macro *)POINTER(x))
|
||||
|
||||
typedef unsigned short gran_t; /* Granularity of bignums */
|
||||
typedef unsigned short gran_t; /* Granularity of bignums */
|
||||
|
||||
struct S_Bignum {
|
||||
Object minusp;
|
||||
unsigned int size; /* Number of ushorts allocated */
|
||||
unsigned int usize; /* Number of ushorts actually used */
|
||||
gran_t data[1]; /* Data, lsw first */
|
||||
unsigned int size; /* Number of ushorts allocated */
|
||||
unsigned int usize; /* Number of ushorts actually used */
|
||||
gran_t data[1]; /* Data, lsw first */
|
||||
};
|
||||
|
||||
struct S_Flonum {
|
||||
|
||||
+8
-8
@@ -78,14 +78,14 @@ extern char *Mem_Alloc P_((unsigned));
|
||||
#define Alloca_End {\
|
||||
register MEM_NODE *_p, *_q;\
|
||||
if (_mem_first != 0) {\
|
||||
_p = Mem_List;\
|
||||
do {\
|
||||
_q = _p;\
|
||||
_p = _p->next;\
|
||||
if (--_q->refcnt == 0)\
|
||||
free ((char *)_q);\
|
||||
} while (_q != _mem_first);\
|
||||
Mem_List = _p;\
|
||||
_p = Mem_List;\
|
||||
do {\
|
||||
_q = _p;\
|
||||
_p = _p->next;\
|
||||
if (--_q->refcnt == 0)\
|
||||
free ((char *)_q);\
|
||||
} while (_q != _mem_first);\
|
||||
Mem_List = _p;\
|
||||
}\
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -50,5 +50,5 @@
|
||||
|
||||
#define Check_Mutable(x) {\
|
||||
if (ISCONST(x))\
|
||||
Primitive_Error ("attempt to modify constant");\
|
||||
Primitive_Error ("attempt to modify constant");\
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user