Commit Graph

388 Commits

Author SHA1 Message Date
Yuichi Nishiwaki 0b7597b80b reafactor noreturn macro 2014-03-19 17:45:35 +09:00
Yuichi Nishiwaki 8625f75470 move utility macros to picrin/util.h 2014-03-19 17:43:53 +09:00
Yuichi Nishiwaki ef7d01971b publish UNREACHABLE macro 2014-03-19 17:40:31 +09:00
Yuichi Nishiwaki acfa79bc62 s/NORETURN/noreturn/g 2014-03-19 17:37:06 +09:00
Yuichi Nishiwaki 8598042deb pic_list_p don't need to take pic_state *. 2014-03-16 23:12:07 +09:00
Yuichi Nishiwaki 495be09d8a [bugfix] could not explicitly disable readline on some environment where libreadline
is installed
2014-03-15 21:22:53 +09:00
Yuichi Nishiwaki 68ea22f6eb add pic_blk_exit 2014-03-10 01:51:27 +09:00
Yuichi Nishiwaki d227c22379 change native_stack marker type to char * 2014-03-10 01:11:01 +09:00
Yuichi Nishiwaki 920674a6ef typedef struct pic_block pic_block 2014-03-07 22:09:12 +09:00
Yuichi Nishiwaki 751d0f87f8 typedef struct pic_code pic_code 2014-03-07 22:06:43 +09:00
Yuichi Nishiwaki f0367d95a0 cleanup 2014-03-04 23:58:07 +09:00
Yuichi Nishiwaki f776907550 pic_error is obsoleted 2014-03-04 00:44:13 +09:00
Yuichi Nishiwaki 4bf2262605 pic_alloc is the right name, not pic_malloc 2014-03-04 00:30:11 +09:00
Yuichi Nishiwaki d8d34353aa cleanup 2014-03-04 00:29:00 +09:00
Yuichi Nishiwaki 8f5c053bd8 add display function API 2014-03-04 00:28:39 +09:00
Yuichi Nishiwaki 5b2898ae5c rename read functions which return a list of multiple expressions to 'parse' 2014-03-04 00:26:33 +09:00
Yuichi Nishiwaki a9d3d847af add pic_printf 2014-03-03 22:43:59 +09:00
Yuichi Nishiwaki 408255381c add pic_eval 2014-03-03 22:39:38 +09:00
Yuichi Nishiwaki 464925d220 refactor pic_for_each 2014-03-03 22:21:34 +09:00
Yuichi Nishiwaki 34bcabf5bc s/pic_trampoline/pic_apply_trampoline/g 2014-03-03 22:19:27 +09:00
Yuichi Nishiwaki 69ac02f836 add pic_try/pic_catch macros 2014-03-02 22:36:32 +09:00
Yuichi Nishiwaki 887b6a9f91 refactor pic_deflib 2014-03-02 22:23:57 +09:00
Yuichi Nishiwaki 366b6fd7f5 remove include guard written in config.h. 2014-03-01 22:15:14 +09:00
Yuichi Nishiwaki 0cbc9e6c92 refactor config.h. you can predefine config macros via -Dmacro flag in
compile line
2014-03-01 22:13:47 +09:00
Yuichi Nishiwaki 3b8868c577 typedef pic_value pic_list 2014-03-01 20:54:02 +09:00
Yuichi Nishiwaki c357a9302d remove pic_list, and add pic_listn 2014-03-01 20:46:08 +09:00
Yuichi Nishiwaki 6e7567a598 my own read impl. 2014-03-01 20:21:44 +09:00
Yuichi Nishiwaki 0b8c7a8ccb add pic_intern 2014-03-01 00:13:11 +09:00
Yuichi Nishiwaki 9a8569ff87 On some environments stdint.h seems not be included implicitly... 2014-02-27 22:17:18 +09:00
Yuichi Nishiwaki 8586dc9057 xrope is now the internal representation of pic_str 2014-02-27 21:54:37 +09:00
Yuichi Nishiwaki 8e511bc410 remove dependencies on pic_state from pic_strlen and pic_strcmp 2014-02-27 19:42:59 +09:00
Yuichi Nishiwaki 878370c29a gurantee allocators return NULL given size is zero 2014-02-27 13:55:19 +09:00
Yuichi Nishiwaki 06a7b0f5f6 add pic_func struct to hold native function name 2014-02-26 00:39:16 +09:00
Yuichi Nishiwaki bb93a8be14 catch up to XFILE changes 2014-02-25 21:07:32 +09:00
Yuichi Nishiwaki 9a73ba707c add pic_strcmp 2014-02-23 17:45:34 +09:00
Yuichi Nishiwaki 0fa61b6a4a change pic_get_args API. 'z' now returns a pointer to null terminated
cstr, 's' a pointer to pic_str
2014-02-23 11:52:15 +09:00
Yuichi Nishiwaki 9f240c191c add pic_str_new_fill 2014-02-23 11:25:39 +09:00
Yuichi Nishiwaki 349d7f1799 don't take int arguments with size_t 2014-02-23 10:51:21 +09:00
Yuichi Nishiwaki 7ac4cd9ded add 'pic_' prefix to heap manipulte functions 2014-02-22 16:54:12 +09:00
Yuichi Nishiwaki 5175f0bb8d change gc heap API and hide sturctures. 2014-02-22 15:53:59 +09:00
Yuichi Nishiwaki 6c065e92c0 add type alias for pic_blob 2014-02-22 15:22:02 +09:00
Yuichi Nishiwaki 56f5f4a1f5 move sturct definitions for basic types to type-specific headers respectively 2014-02-22 15:21:55 +09:00
Yuichi Nishiwaki a8aa6b2c5e add some string utility functions 2014-02-21 18:24:20 +09:00
Yuichi Nishiwaki 131440b1d0 s/struct pic_string/pic_str/g 2014-02-21 18:05:59 +09:00
Yuichi Nishiwaki ca4276afc7 add type aliases for some important types 2014-02-21 17:36:05 +09:00
Yuichi Nishiwaki c28c45961b rename pic_symbol_value to pic_sym_value 2014-02-21 17:35:21 +09:00
Yuichi Nishiwaki 8f5569d505 xstdout now handles its own buffer. flush prompts before printing result expression. 2014-02-21 01:28:38 +09:00
Yuichi Nishiwaki 80a794310d call/cc must save pic->ip 2014-02-20 20:59:35 +09:00
Yuichi Nishiwaki 078b72ff17 cleanup 2014-02-20 20:44:30 +09:00
Yuichi Nishiwaki 7217baee0a add coarity register to the VM 2014-02-20 16:33:18 +09:00