1102 Commits

Author SHA1 Message Date
Kolten Pearson
ed6d2fcad7 Merge branch 'main' into c_binding_api 2023-05-02 22:09:34 -06:00
Kolten Pearson
5852ba7435 switch to using subclass for c virtual machine, strings methods return
strong references, except one new one which returns a weak refrence
2023-05-02 22:08:18 -06:00
blueloveTH
468f7a3c22 fix a bug 2023-05-02 10:56:00 -07:00
blueloveTH
450b7e1e3c ... 2023-05-02 21:31:45 +08:00
blueloveTH
0912e88ac7 ... 2023-05-02 21:20:01 +08:00
Kolten Pearson
d1f9aab008 added operations for working with void* as well as a way to check
if a global exists
2023-05-02 00:35:22 -06:00
Kolten Pearson
54134bfecb adjusted api so that api user is no longer responsible for freeing
returned strings
2023-05-01 23:26:55 -06:00
Kolten Pearson
87a76936d6 fixed test cases failing 2023-05-01 21:17:09 -06:00
Kolten Pearson
669bf8b9b1 adjusted things so that we minimize the number of changes necessary to
the main pocketpy library
2023-05-01 20:35:38 -06:00
Kolten Pearson
75de7b0b63 Merge branch 'main' of https://github.com/blueloveTH/pocketpy into c_binding_api 2023-05-01 18:28:17 -06:00
blueloveTH
a7ee33c2e3 make ValueStack a template class 2023-05-01 19:59:28 +08:00
blueloveTH
d93af53776 ... 2023-05-01 19:36:37 +08:00
blueloveTH
1444c4b380 ... 2023-05-01 19:33:49 +08:00
blueloveTH
a0770d4191 ... 2023-05-01 19:23:25 +08:00
Kolten Pearson
c235b6750b Merge branch 'main' into c_binding_api 2023-05-01 00:13:36 -06:00
Kolten Pearson
d57b977074 cleanup whitespace shuffling in several files 2023-05-01 00:12:17 -06:00
Kolten Pearson
796930654f try to clean up error.h again 2023-05-01 00:10:36 -06:00
Kolten Pearson
e0dc3fd9e2 cleanup error.h 2023-05-01 00:08:56 -06:00
Kolten Pearson
fbfb860a84 more cleanup 2023-05-01 00:04:44 -06:00
Kolten Pearson
527a783d13 cleanup and light refactor (with some renames) 2023-05-01 00:00:02 -06:00
Kolten Pearson
d4b9d354ed finalized initial c api and built tests for it 2023-04-30 23:45:47 -06:00
Kolten Pearson
8244a8a1a4 basic functionality is working much more smoothly thanks to LuaStyleFuncC
also added the code for handling python exceptions
2023-04-30 12:06:27 -06:00
Kolten Pearson
aea01c5aca function calls are working 2023-04-30 11:30:45 -06:00
BLUELOVETH
3a10784fbd ... 2023-04-30 16:54:29 +00:00
Kolten Pearson
7882d18df6 added separate stack for c interop 2023-04-30 09:03:32 -06:00
Kolten Pearson
1fc08dae62 got rid of stack function 2023-04-30 08:51:21 -06:00
Kolten Pearson
6bc1749b5c Merge branch 'main' into c_binding_api 2023-04-30 08:50:28 -06:00
blueloveTH
fcc13cb422 ... 2023-04-30 22:29:04 +08:00
blueloveTH
f9ed405bf5 ... 2023-04-30 22:08:42 +08:00
blueloveTH
70e8a60f8b ... 2023-04-30 22:01:28 +08:00
blueloveTH
a04cdb4cad add requests module 2023-04-30 21:53:50 +08:00
blueloveTH
e5d5f09d83 ... 2023-04-30 14:42:17 +08:00
Kolten Pearson
f701cc1e67 basic proof of concept working 2023-04-29 17:49:26 -06:00
Kolten Pearson
b4769d77ea Merge branch 'main' into c_binding_api 2023-04-29 13:38:15 -06:00
Kolten Pearson
6bdc8fd494 basic stack based api for creating a binding from c to python is functional 2023-04-29 13:33:51 -06:00
BLUELOVETH
e33d9fe595
Update lexer.h 2023-04-30 00:24:20 +08:00
blueloveTH
084725e2b3 ... 2023-04-29 14:36:09 +08:00
blueloveTH
e384407494 ... 2023-04-29 14:14:28 +08:00
Kolten Pearson
9b9a78524e made initial structure for new way of handling c bindings 2023-04-28 23:53:23 -06:00
blueloveTH
cda087f3dc fix https://github.com/blueloveTH/pocketpy/issues/69 2023-04-29 13:26:55 +08:00
blueloveTH
46b1b1b900 ... 2023-04-28 13:54:27 +08:00
blueloveTH
6031bf4799 ... 2023-04-27 21:04:20 +08:00
blueloveTH
0c8a6cb91a ... 2023-04-27 21:02:22 +08:00
blueloveTH
82385460a0 ... 2023-04-27 20:58:14 +08:00
blueloveTH
bcf607c6a0 add mappingproxy 2023-04-27 20:35:07 +08:00
blueloveTH
b73029247b ... 2023-04-27 20:08:28 +08:00
blueloveTH
2689e16bb6 ... 2023-04-27 19:33:35 +08:00
blueloveTH
cc84a01d4d ... 2023-04-27 19:31:53 +08:00
blueloveTH
1e1063edfe ... 2023-04-27 19:23:57 +08:00
blueloveTH
f240d0e9f4 ... 2023-04-27 19:11:46 +08:00