Yuichi Nishiwaki
0592c977da
GC_DEBUG off by default
2014-01-19 01:14:45 -08:00
Yuichi Nishiwaki
122c09d91e
add logic flaw gate in pic_type_repr
2014-01-19 00:55:19 -08:00
Yuichi Nishiwaki
ec00ec0257
add pic_test macro
2014-01-19 00:33:33 -08:00
Yuichi Nishiwaki
ab411cc298
gcc complains that he can't assure if switch-enum is complete
2014-01-19 00:32:43 -08:00
Yuichi Nishiwaki
4a01b8296f
emit OP_NOT
2014-02-02 14:55:46 +09:00
Yuichi Nishiwaki
0fec56362d
add OP_NOT instruction
2014-02-02 14:54:47 +09:00
Yuichi Nishiwaki
116a65cdee
add pic_receive
2014-02-02 12:38:46 +09:00
Yuichi Nishiwaki
19db4bb6b2
rest array got by pic_get_args has a dynamic extent; that is, we cannot
...
store it to a heap object when we are going to rewind that stack and
restore an old continuation.
2014-02-02 12:27:48 +09:00
Yuichi Nishiwaki
f2507b5cbf
rename ..._from_... to ..._by_...
2014-02-02 12:26:43 +09:00
Yuichi Nishiwaki
2373e7a067
continuation now can take more than 1 arguments
2014-02-02 12:11:15 +09:00
Yuichi Nishiwaki
7547b83515
add pic_values functions
2014-02-02 12:10:31 +09:00
Yuichi Nishiwaki
b19631f18f
use submodule
2014-02-01 22:16:09 +09:00
Yuichi Nishiwaki
d48ae9227a
impl strdup and strndup by myself
2014-02-01 19:31:59 +09:00
Yuichi Nishiwaki
a4a63314a9
add pic_for_each macro
2014-02-01 16:04:57 +09:00
Yuichi Nishiwaki
47f4060086
rewrite deflibrary using gensym
2014-02-01 15:41:30 +09:00
Yuichi Nishiwaki
c789200f5b
add gensym macro
2014-02-01 15:40:43 +09:00
Yuichi Nishiwaki
3b53cc8a6b
get struct pic_code diet
2014-01-31 03:14:02 +09:00
Yuichi Nishiwaki
53fe18a94e
delete OP_PUSHFLOAT
2014-01-31 03:11:28 +09:00
Yuichi Nishiwaki
d70d96cb34
cosmetic changes
2014-01-31 03:04:00 +09:00
Yuichi Nishiwaki
9172dc9f31
remove old pic_symbol_p macro
2014-01-31 03:03:36 +09:00
Yuichi Nishiwaki
52fc58b55e
use a portable way: append 'static' designator everywhere 'inline' is added
2014-01-31 02:58:53 +09:00
Yuichi Nishiwaki
beca90cdf0
remove forward declarations of inline functions. gcc provide inline keyword by
...
their own way with major differences from C99.
2014-01-31 02:53:09 +09:00
Yuichi Nishiwaki
2dd8d2746d
move all contents in value.c to value.h
2014-01-30 21:51:26 +09:00
Yuichi Nishiwaki
f29e7b9cf1
inline definitions for pic_*_value()s
2014-01-30 20:58:27 +09:00
Yuichi Nishiwaki
8ae55bd9b6
unification uses of int and size_t. use size_t for every variable that
...
can possibly be used as an array index.
2014-01-30 18:14:33 +09:00
Yuichi Nishiwaki
223c531a3c
add UNUSED macro
2014-01-30 18:11:41 +09:00
Yuichi Nishiwaki
4d95707db5
add FALLTHROUGH macro
2014-01-30 14:13:01 +09:00
Yuichi Nishiwaki
7c35e50260
add NORETURN macro
2014-01-30 14:08:36 +09:00
Yuichi Nishiwaki
6de7d610ee
Merge branch 'analyzer'
2014-01-30 13:28:44 +09:00
Yuichi Nishiwaki
b1ccc54151
rename include guards
2014-01-23 16:47:13 +09:00
Yuichi Nishiwaki
2e28f604a6
Merge branch 'master' into analyzer
...
Conflicts:
include/picrin/pair.h
src/pair.c
2014-01-23 16:21:10 +09:00
Yuichi Nishiwaki
5dd66cbcd1
replace list-copy and make-list impls by scheme with ones by C
2014-01-22 22:37:27 +09:00
Yuichi Nishiwaki
74088d0130
replace list-set! impl with C impl
2014-01-22 21:35:13 +09:00
Yuichi Nishiwaki
7865cfe9b3
add pic_append
2014-01-22 20:57:14 +09:00
Yuichi Nishiwaki
a443d9e3f6
add pic_list_ref and pic_list_tail
2014-01-22 20:57:05 +09:00
Yuichi Nishiwaki
799e26cff0
increate gc header alignment size
2014-01-22 20:44:55 +09:00
Yuichi Nishiwaki
655eb7a3bd
add pic_compile
2014-01-20 16:57:39 +09:00
Yuichi Nishiwaki
293fef5235
add pic_list_ref
2014-01-20 16:43:54 +09:00
OGINO Masanori
9be7ffc5fc
Define the type of marking flags as unsigned int.
...
We could define it as _Bool since we are going to use C99, but unsigned
int is more portable (even in C89!) and extensible (when we decide to
use tri-color marking GC.)
Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2014-01-20 14:31:01 +09:00
Yuichi Nishiwaki
ae933252c9
add analyzer prototype
2014-01-18 20:20:28 -08:00
Yuichi Nishiwaki
0ceb9c9953
add sSYMBOLs to pic_state
2014-01-18 11:47:32 -08:00
Yuichi Nishiwaki
395f48bc81
move rSYMBOLs from pic_state to codegen_state
2014-01-18 11:47:18 -08:00
Yuichi Nishiwaki
c85e07b7ee
shrink default pool/irep size
2014-01-18 23:02:08 +09:00
Yuichi Nishiwaki
a315f518d2
auto-extend constant pool array
2014-01-18 22:56:43 +09:00
Yuichi Nishiwaki
9fadf16fdb
make iseq length configurable
2014-01-18 22:54:28 +09:00
Yuichi Nishiwaki
494989ff3e
embed constant pool into irep object
2014-01-18 22:32:41 +09:00
Yuichi Nishiwaki
5e616e7774
store irep objects inside parent irep object
2014-01-18 21:48:50 +09:00
Yuichi Nishiwaki
53e3e019de
ccapa property no longer used
2014-01-18 21:03:12 +09:00
Yuichi Nishiwaki
11e4f1644b
irep object is now controlled under GC
2014-01-18 16:53:39 +09:00
Yuichi Nishiwaki
586b228156
add PIC_TT_IREP
2014-01-18 16:51:54 +09:00