Commit Graph

105 Commits

Author SHA1 Message Date
Yuichi Nishiwaki 5b7f5ad1f9 Squashed 'extlib/benz/' changes from 414f790..057b5f2
057b5f2 Merge pull request #245 from picrin-scheme/heap-symbol
c91f6cd [bugfix] build failure in debug mode
b1849c4 pic_sym is not a pointer
e353b07 s/pic_sym/pic_sym_ptr/g
a11fb91 [bugfix] irep->name is missed to mark
1820a25 [bugfix] wrong type specified for cxt->syms
b8d2b8e better error messages against invalid use of auxiliary syntax
d9ade33 mark only interned symbols and some specisl uninterned symbols
da2217b move symbol constants to pic_state
78b035b [bugfix] pic_intern must count up reference of the return value
bbdc663 rename internal object
ba01821 s/SYMBOL_P/SYMBOLP/g, s/PAIR_P/PAIRP/g
1af32d1 improve error message
dd09fbf don't malloc in pic_interned_p
7f51070 turn on GC
7460e81 add gc on/off flag
f3742db move symbol-related macros to symbol.h
ded6759 remove pic_sym_value
ec97d07 remove pic_symbol_value
28bd059 heap symbol seems working (with GC stopped)
e0d6fe9 change pic_intern interface
6750693 remove pic_ungensym
4ea7d3c add irep->syms
ede7a99 use dictionary for senv->map
b3cb50c use dictionaries for temporary import table
fc698b5 use dictionary for rec->data
1b814d4 use dictionary for lib->exports
7ae1af4 use dictionaries for pic->globals and pic->macros
74f9979 remove 'struct pic_macro'. define-syntax spec is changed.
86136c5 some procedures are moved to contrib/
da99761 gather all includes of standard headers into picrin.h
7df8d77 add dictionary-map and dictionary-for-each
b625ff8 revert 48f0ec90. dicitonary is now symbol-to-object structure
f7657d7 [prepare] dictionary is to be changed to have only symbols for its keys

git-subtree-dir: extlib/benz
git-subtree-split: 057b5f29110ab3f75513573d291ea18acb782357
2015-01-20 17:44:06 +09:00
Yuichi Nishiwaki 536d59c7d4 Squashed 'extlib/benz/' changes from 569b1ac..414f790
414f790 Merge pull request #54 from KeenS/add-ops
f0ffe28 Merge pull request #53 from KeenS/compact-gc-header
17e1ad1 Merge pull request #233 from KeenS/restore-config
311fb62 optimize `equal?`. Don't initialize xhash until it is really needed.
c611258 safer names for utility macros
e7dc381 Merge commit '2440372c16fd1e479ad8aa346f6006dbf795a74c' into restore-config
99de906 rm miscommitted file
b85a3b7 (ref #50) add OP_SYMBOL_P and OP_PAIR_P
8048008 reduce gc header alignment for performance (both speed and space)

git-subtree-dir: extlib/benz
git-subtree-split: 414f790eef76a6a48e8100a162f6fdc8648e7513
2015-01-17 18:36:23 +09:00
Yuichi Nishiwaki 458511e231 update xhash.h (remove unsafe type-punning) 2014-09-27 08:18:43 -07:00
Yuichi Nishiwaki a22eef1060 fix comments 2014-09-27 21:29:09 +09:00
Yuichi Nishiwaki 0403ca5570 more fixes 2014-09-27 20:21:54 +09:00
Yuichi Nishiwaki cf9d48a865 add pic_size_value 2014-09-27 19:48:49 +09:00
Yuichi Nishiwaki 186bad0503 pair functions must use size_t for index, not int 2014-09-27 17:19:16 +09:00
Yuichi Nishiwaki 7350f7e71e int to size_t conversion 2014-09-27 17:18:11 +09:00
Yuichi Nishiwaki 7ab9708ed0 passing array with a pair of int and pic_value * 2014-09-26 17:09:52 +09:00
Yuichi Nishiwaki d58e7d470f pic_sym is now just an alias of int 2014-09-26 14:42:50 +09:00
Yuichi Nishiwaki 44133ce693 remove redundant semicolon 2014-09-26 14:35:05 +09:00
Yuichi Nishiwaki 96d31446bd arena_idx in struct pic_cont did not match its type with pic_state's one 2014-09-26 14:33:58 +09:00
Yuichi Nishiwaki 46f79c0894 the contents of blob object must be a chunk of unsigned char 2014-09-26 14:04:52 +09:00
Yuichi Nishiwaki 1949ebddf9 use UNREAHCABLE for pic_vtype 2014-09-26 13:57:36 +09:00
Yuichi Nishiwaki d029e003d6 update xfile.h (suppress warnings) 2014-09-26 13:50:27 +09:00
Yuichi Nishiwaki 1be24ae9d4 suppress warnings from xvect.h and xhash.h 2014-09-26 12:25:53 +09:00
Yuichi Nishiwaki 77d4196b06 generalized attribute 2014-09-25 11:30:10 +09:00
Yuichi Nishiwaki a6d2491338 don't perform longjmp in pic_load_point (for the symmetry) 2014-09-24 20:27:16 +09:00
Yuichi Nishiwaki d6c6427ff7 don't setjmp in pic_push_try 2014-09-24 20:21:28 +09:00
Yuichi Nishiwaki eb1e01d000 don't setjmp in pic_save_point 2014-09-24 20:06:14 +09:00
Yuichi Nishiwaki 44c1debbbe don't do pop_try when an error was raised 2014-09-24 19:24:19 +09:00
Yuichi Nishiwaki cb2157bbae s/pic_make_cont/pic_make_econt/g 2014-09-24 18:43:20 +09:00
Yuichi Nishiwaki e38732995e publish continuation internal APIs 2014-09-24 15:34:46 +09:00
Yuichi Nishiwaki 951af56540 publish struct pic_escape 2014-09-24 14:53:09 +09:00
Yuichi Nishiwaki 669f9b28de add prototypes for eq? and eqv? 2014-09-21 18:19:13 +09:00
Yuichi Nishiwaki 712be55bc3 cosmetic changes 2014-09-21 18:07:09 +09:00
Yuichi Nishiwaki 319db5fc9f remove unused helper functions 2014-09-21 18:05:43 +09:00
Yuichi Nishiwaki 77c0a893ff spill out string mutators 2014-09-21 15:32:55 +09:00
Yuichi Nishiwaki de1b771326 remove pic_callcc 2014-09-20 20:26:07 +09:00
Yuichi Nishiwaki 2dd48b4dc0 add pic_escape 2014-09-20 16:52:50 +09:00
Yuichi Nishiwaki 1d7669a5d4 update xhash 2014-09-20 11:47:05 +09:00
OGINO Masanori 15ad9d05ac Fix a name of compiler identifier macro for Clang.
Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2014-09-19 23:52:32 +09:00
Yuichi Nishiwaki 1ff327b11f update xfile.h. close #40 2014-09-19 17:47:55 +09:00
Yuichi Nishiwaki 3aa3669723 republish dynamic wind functions 2014-09-18 22:33:20 +09:00
Yuichi Nishiwaki 6b1be61596 spill out continuation type to extra data type family 2014-09-18 22:25:06 +09:00
Yuichi Nishiwaki 17602a5c8d unpublish pic_wind 2014-09-18 19:26:58 +09:00
Yuichi Nishiwaki 7a8144bbf7 cosmetic change 2014-09-18 14:50:58 +09:00
Yuichi Nishiwaki 978c51bb26 compact struct pic_jmpbuf 2014-09-18 14:50:01 +09:00
Yuichi Nishiwaki 46c1d0f2a7 use call/cc in exception handler implementation 2014-09-18 14:12:18 +09:00
Yuichi Nishiwaki a17e79a160 add pic_raise_continuable 2014-09-17 21:58:51 +09:00
Yuichi Nishiwaki 836c607979 s/walk_to_block/pic_wind/g 2014-09-17 15:26:42 +09:00
Yuichi Nishiwaki b4c3f4fb73 pic_block -> pic_winder 2014-09-17 15:09:15 +09:00
Yuichi Nishiwaki 06971a1144 Merge branch 'custom-marker' 2014-09-17 12:57:56 +09:00
Yuichi Nishiwaki dbbc2c1a25 inline pic_car and pic_cdr 2014-09-17 01:07:25 +09:00
Yuichi Nishiwaki 565ee431af s/pic_abort/pic_panic/g 2014-09-17 01:02:27 +09:00
Yuichi Nishiwaki 061ddb58ee publish pic_make_error 2014-09-17 00:43:03 +09:00
Yuichi Nishiwaki 78a982fb41 refactor error object 2014-09-17 00:29:17 +09:00
Yuichi Nishiwaki 33efb3e950 remove pic_error 2014-09-16 23:43:15 +09:00
Yuichi Nishiwaki 1b36b5d2ff update xhash (orderd map) 2014-09-16 22:38:58 +09:00
Yuichi Nishiwaki eb261a293a add custom marker 2014-09-16 16:18:19 +09:00