remove debug code

This commit is contained in:
Yuichi Nishiwaki
2016-02-21 20:13:05 +09:00
parent d49e25a5b4
commit 5c7c5a69cf
8 changed files with 15 additions and 143 deletions
-9
View File
@@ -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 */
-5
View File
@@ -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
+11 -11
View File
@@ -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)
}
-8
View File
@@ -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