refactor: rename ret_push to ret_push_ip in process_token
This commit is contained in:
+2
-2
@@ -32,7 +32,7 @@ void process_token(const char* token) {
|
|||||||
if (w != NULL) {
|
if (w != NULL) {
|
||||||
if (state == 0) { // Interpret mode
|
if (state == 0) { // Interpret mode
|
||||||
if (w->code == do_docolon) { // Colon definition
|
if (w->code == do_docolon) { // Colon definition
|
||||||
ret_push(NULL); // Return address to stop interpreter
|
ret_push_ip(NULL); // Return address to stop interpreter
|
||||||
ip = w->body;
|
ip = w->body;
|
||||||
inner_interpreter();
|
inner_interpreter();
|
||||||
} else { // Primitive word
|
} else { // Primitive word
|
||||||
@@ -41,7 +41,7 @@ void process_token(const char* token) {
|
|||||||
} else { // Compile mode
|
} else { // Compile mode
|
||||||
if (w->flags & (1 << 7)) { // Immediate word: execute now
|
if (w->flags & (1 << 7)) { // Immediate word: execute now
|
||||||
if (w->code == do_docolon) {
|
if (w->code == do_docolon) {
|
||||||
ret_push(NULL);
|
ret_push_ip(NULL);
|
||||||
ip = w->body;
|
ip = w->body;
|
||||||
inner_interpreter();
|
inner_interpreter();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user