remove debug code
This commit is contained in:
@@ -42,12 +42,3 @@
|
||||
/* #define PIC_SYMS_SIZE 32 */
|
||||
|
||||
/* #define PIC_ISEQ_SIZE 1024 */
|
||||
|
||||
/** enable all debug flags */
|
||||
/* #define DEBUG 1 */
|
||||
|
||||
/** auxiliary debug flags */
|
||||
/* #define GC_STRESS 1 */
|
||||
/* #define VM_DEBUG 1 */
|
||||
/* #define GC_DEBUG 1 */
|
||||
/* #define GC_DEBUG_DETAIL 1 */
|
||||
|
||||
@@ -119,11 +119,6 @@ pic_value pic_fdisplay(pic_state *, pic_value, xFILE *);
|
||||
|
||||
pic_value pic_library_environment(pic_state *, const char *);
|
||||
|
||||
#if DEBUG
|
||||
# define pic_debug(pic,obj) pic_fwrite(pic,obj,xstderr)
|
||||
# define pic_fdebug(pic,obj,file) pic_fwrite(pic,obj,file)
|
||||
#endif
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -52,31 +52,31 @@ enum {
|
||||
OP_STOP
|
||||
};
|
||||
|
||||
struct code {
|
||||
typedef struct {
|
||||
int insn;
|
||||
int a;
|
||||
int b;
|
||||
}
|
||||
} pic_code;
|
||||
|
||||
struct list_head {
|
||||
struct list_head *prev, *next;
|
||||
struct pic_list {
|
||||
struct pic_list *prev, *next;
|
||||
};
|
||||
|
||||
struct irep {
|
||||
struct list_head list;
|
||||
struct pic_irep {
|
||||
struct pic_list list;
|
||||
unsigned refc;
|
||||
int argc, localc, capturec;
|
||||
bool varg;
|
||||
struct code *code;
|
||||
struct irep **irep;
|
||||
pic_code *code;
|
||||
struct pic_irep **irep;
|
||||
int *ints;
|
||||
double *nums;
|
||||
struct object **pool;
|
||||
struct pic_object **pool;
|
||||
size_t ncode, nirep, nints, nnums, npool;
|
||||
};
|
||||
|
||||
void pic_irep_incref(pic_state *, struct irep *);
|
||||
void pic_irep_decref(pic_state *, struct irep *);
|
||||
void pic_irep_incref(pic_state *, struct pic_irep *);
|
||||
void pic_irep_decref(pic_state *, struct pic_irep *);
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
|
||||
@@ -83,14 +83,6 @@
|
||||
# define PIC_ISEQ_SIZE 1024
|
||||
#endif
|
||||
|
||||
#if DEBUG
|
||||
# include <stdio.h>
|
||||
# define GC_STRESS 0
|
||||
# define VM_DEBUG 1
|
||||
# define GC_DEBUG 0
|
||||
# define GC_DEBUG_DETAIL 0
|
||||
#endif
|
||||
|
||||
/* check compatibility */
|
||||
|
||||
#if __STDC_VERSION__ >= 199901L
|
||||
|
||||
Reference in New Issue
Block a user