Skip to content

Commit 2025387

Browse files
committed
Renamed token_t and policy_t
1 parent 9c7848a commit 2025387

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

xtext/org.icyphy.linguafranca/src/lib/Python/pythontarget.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static PyObject* py_SET(PyObject *self, PyObject *args) {
9494
/**
9595
* Prototype for the internal API. @see reactor_common.c
9696
**/
97-
token_t* __initialize_token_with_value(token_t* token, void* value, int length);
97+
lf_token_t* __initialize_token_with_value(lf_token_t* token, void* value, int length);
9898

9999
/**
100100
* Prototype for API function. @see lib/core/reactor_common.c
@@ -129,7 +129,7 @@ static PyObject* py_schedule(PyObject *self, PyObject *args) {
129129
}
130130

131131
trigger_t* trigger = _lf_action_to_trigger(action);
132-
token_t* t = NULL;
132+
lf_token_t* t = NULL;
133133

134134
// Check to see if value exists and token is not NULL
135135
if (value && (trigger->token != NULL)) {

xtext/org.icyphy.linguafranca/src/lib/Python/pythontarget.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ typedef struct {
140140
PyObject* value;
141141
bool is_present;
142142
int num_destinations;
143-
token_t* token;
143+
lf_token_t* token;
144144
int length;
145145
} generic_port_instance_with_token_struct;
146146

@@ -335,4 +335,4 @@ get_python_function(string module, string class, int instance_id, string func);
335335
PyMODINIT_FUNC
336336
GEN_NAME(PyInit_,MODULE_NAME)(void);
337337

338-
#endif // PYTHON_TARGET_H
338+
#endif // PYTHON_TARGET_H

0 commit comments

Comments
 (0)