mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-06 01:50:19 +00:00
Progress on updating entire compiler for snake_case
This commit is contained in:
parent
db6cc5a7b1
commit
b56fbd38e1
297 changed files with 8416 additions and 8544 deletions
|
@ -196,7 +196,7 @@ size_t roc_str_len(struct RocStr str)
|
|||
}
|
||||
}
|
||||
|
||||
extern void roc__mainForHost_1_exposed_generic(struct RocBytes *ret, struct RocBytes *arg);
|
||||
extern void roc__main_for_host_1_exposed_generic(struct RocBytes *ret, struct RocBytes *arg);
|
||||
|
||||
// Receive a value from Python, JSON serialized it and pass it to Roc as a List U8
|
||||
// (at which point the Roc platform will decode it and crash if it's invalid,
|
||||
|
@ -224,7 +224,7 @@ PyObject * call_roc(PyObject *self, PyObject *args)
|
|||
struct RocBytes ret;
|
||||
|
||||
// Call the Roc function to populate `ret`'s bytes.
|
||||
roc__mainForHost_1_exposed_generic(&ret, &arg);
|
||||
roc__main_for_host_1_exposed_generic(&ret, &arg);
|
||||
|
||||
// Create a Python string from the heap-allocated JSON bytes the Roc function returned.
|
||||
PyObject* py_obj = PyUnicode_FromStringAndSize((char*)ret.bytes, ret.len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue