Commit Graph

693 Commits

Author SHA1 Message Date
Masanori Ogino 993d1813a1 Restrict char in the range of ASCII.
picrin accepts the code `(char->integer (integer->char 128))` but the
result is machine-dependent, since the C `char` type can be either
signed or unsigned as permitted by the spec. Unfortunately, the result
of signed one is incompatible with Unicode-aware implementations. For
interoperability, we should deny the range beyond ASCII for now.

Ref: #211

Signed-off-by: Masanori Ogino <masanori.ogino@gmail.com>
2016-03-28 17:37:26 +09:00
Yuichi Nishiwaki 917704e9a4 add normalizer 2016-03-14 12:03:59 +09:00
Yuichi Nishiwaki 5af735d796 don't chain ireps whose npool is zero 2016-03-14 10:48:18 +09:00
Yuichi Nishiwaki a0edca8d8d keep continuation object from being optimized out 2016-03-04 00:32:01 +09:00
Yuichi Nishiwaki 86c68b1769 prohibit overriding vm procs 2016-03-03 21:41:29 +09:00
Yuichi Nishiwaki e4bf1a14ab optimize vm procs 2016-03-03 21:38:50 +09:00
Yuichi Nishiwaki 6244c9c550 check if library name is legal 2016-03-03 21:21:49 +09:00
Yuichi Nishiwaki 69c13fdcce fix buffer overrun 2016-03-03 19:55:27 +09:00
Yuichi Nishiwaki 5ce271e9fe simplify number reader 2016-03-03 19:42:18 +09:00
Yuichi Nishiwaki 85b58bd43e add pic_boot function 2016-03-03 18:59:07 +09:00
Yuichi Nishiwaki c27ce690a6 remove declare_vm_procedure macro 2016-03-03 18:43:57 +09:00
Yuichi Nishiwaki ce6dd55ea5 segv if an error is raised when no exception handler is registered 2016-03-02 04:34:43 +09:00
Yuichi Nishiwaki 3feee82d8b default library is picrin.user 2016-03-02 04:34:33 +09:00
Yuichi Nishiwaki ca4fb058d1 remove pic->iseq 2016-03-01 03:14:18 +09:00
Yuichi Nishiwaki ae88bed481 remove struct chunk 2016-02-29 16:48:38 +09:00
Yuichi Nishiwaki d2167a87f9 optimize rope 2016-02-27 02:44:02 +09:00
Yuichi Nishiwaki 8810d94259 decrease sizeof struct rope 2016-02-27 01:38:07 +09:00
Yuichi Nishiwaki a14d3a62c4 don't use size_t for index 2016-02-27 00:45:02 +09:00
Yuichi Nishiwaki 22d339c2f7 fix build errors 2016-02-25 21:17:44 +09:00
Yuichi Nishiwaki 8a9a1200d8 pic_catch binds current error object to a variable 2016-02-25 20:52:38 +09:00
Yuichi Nishiwaki 73e38657ff remove pic->native_stack_start 2016-02-24 16:32:24 +09:00
Yuichi Nishiwaki 29d7a7fc48 pic->lib is now of string type 2016-02-24 03:59:51 +09:00
Yuichi Nishiwaki 17d75f915f s/PIC_OBJECT_HEADER/OBJECT_HEADER/g 2016-02-24 02:36:09 +09:00
Yuichi Nishiwaki 17ccaea236 remove pic->ccnt 2016-02-23 23:28:28 +09:00
Yuichi Nishiwaki eea41c53d7 cleanup 2016-02-23 22:55:15 +09:00
Yuichi Nishiwaki 54d9d4865c pic_assert_type -> TYPE_CHECK 2016-02-23 22:53:20 +09:00
Yuichi Nishiwaki e93536bf9a struct pic_cont -> struct cont 2016-02-23 22:48:06 +09:00
Yuichi Nishiwaki b3e9794385 remove pic->xp 2016-02-23 22:42:03 +09:00
Yuichi Nishiwaki 34331dad6f [bugfix] make-parameter is broken 2016-02-23 20:50:26 +09:00
Yuichi Nishiwaki 4c6fe54d34 [bugfix] dynamic-wind is broken 2016-02-23 20:29:27 +09:00
Yuichi Nishiwaki a96e5a0beb cosmetic changes 2016-02-23 14:15:42 +09:00
Yuichi Nishiwaki 4a0d077044 picrin/config.h -> picconf.h 2016-02-23 14:09:15 +09:00
Yuichi Nishiwaki 2ca7e630f0 write is now pluggable 2016-02-23 04:40:50 +09:00
Yuichi Nishiwaki 4e1aaf8b89 pic_strf_value does not interpret '~s' format specifier 2016-02-23 04:24:42 +09:00
Yuichi Nishiwaki fae7ef0376 pic_errorf -> pic_error 2016-02-23 04:03:42 +09:00
Yuichi Nishiwaki 42d0ecc633 don't use '~s' format specifier with pic_warnf 2016-02-23 02:39:33 +09:00
Yuichi Nishiwaki e050da8af1 add pic_sym macro 2016-02-23 02:37:33 +09:00
Yuichi Nishiwaki 229555fa83 remove pic_error 2016-02-23 02:23:22 +09:00
Yuichi Nishiwaki 368fa17de3 do not use '~s' style format specifier with pic_strf_value 2016-02-23 02:15:37 +09:00
Yuichi Nishiwaki c34f24e58c remove macro.c 2016-02-22 23:57:07 +09:00
Yuichi Nishiwaki 8d17bf3175 change pic_add_identifier's behavior 2016-02-22 23:49:39 +09:00
Yuichi Nishiwaki 1a8bc0bc66 update readme 2016-02-22 23:19:30 +09:00
Yuichi Nishiwaki e6382965ef cleanup extra.h 2016-02-22 00:30:37 +09:00
Yuichi Nishiwaki b436207eba PIC_DIRECT_THREADED_VM and PIC_NAN_BOXING are now unconfigurable 2016-02-21 23:32:18 +09:00
Yuichi Nishiwaki 4c376650ca fix build 2016-02-21 23:20:34 +09:00
Yuichi Nishiwaki f61fc19692 missing abort declaration 2016-02-21 21:12:24 +09:00
Yuichi Nishiwaki 2a17a2a9c2 add PIC_TYPE_FUNC and PIC_TYPE_IREP 2016-02-21 20:42:41 +09:00
Yuichi Nishiwaki 608569e876 drop pic_ prefix of structs 2016-02-21 20:32:12 +09:00
Yuichi Nishiwaki bfe6cef4c8 pic_sym -> symbol, pic_id -> identifier 2016-02-21 20:21:02 +09:00
Yuichi Nishiwaki 684eb6502d pic_callinfo -> struct pic_callinfo, pic_code -> struct pic_code 2016-02-21 20:18:31 +09:00