Skip to content

Commit 2c990f4

Browse files
committed
Updated Python runtime to match the API name change
1 parent d6f3357 commit 2c990f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

org.lflang/src/lib/Python/pythontarget.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ static PyObject* py_SET(PyObject *self, PyObject *args) {
9999
/**
100100
* Prototype for the internal API. @see reactor_common.c
101101
**/
102-
lf_token_t* __initialize_token_with_value(lf_token_t* token, void* value, size_t length);
102+
lf_token_t* _lf_initialize_token_with_value(lf_token_t* token, void* value, size_t length);
103103

104104
/**
105105
* Prototype for API function. @see lib/core/reactor_common.c
@@ -141,7 +141,7 @@ static PyObject* py_schedule(PyObject *self, PyObject *args) {
141141
// DEBUG: adjust the element_size (might not be necessary)
142142
trigger->token->element_size = sizeof(PyObject*);
143143
trigger->element_size = sizeof(PyObject*);
144-
t = __initialize_token_with_value(trigger->token, value, 1);
144+
t = _lf_initialize_token_with_value(trigger->token, value, 1);
145145

146146
// Also give the new value back to the Python action itself
147147
Py_INCREF(value);

0 commit comments

Comments
 (0)