1234567891011121314151617181920212223242526272829 |
- #include "show.h"
-
- #include <stdio.h>
-
- void point(struct State* state) {
- if (state->mode == EXECUTE) {
- struct NumContainer num = top(&state->pile);
- pop(&state->pile);
- printNum(num);
- }
- }
-
- void pointS(struct State* state) {
- if (state->mode == EXECUTE) {
- print(&state->pile);
- }
- }
-
- void pointQuote(struct State* state) {
- if (state->mode == EXECUTE) {
- state->mode = PRINT;
- }
- }
-
- void crCmd(struct State* state) {
- if (state->mode == EXECUTE) {
- printf("\n");
- }
- }
|