mirror of
https://github.com/adamdunkels/ubasic.git
synced 2026-11-24 13:39:45 +00:00
Moved VARIABLE_TYPE to vartype.h. VARIABLE_TYPE functions.
The functions in ubasic.c that used int for variable values and the function expr() in tokenizer.c now use VARIABLE_TYPE. Also added a new test in tests.c.
This commit is contained in:
parent
a519c98e6c
commit
ea7a52e61f
7 changed files with 83 additions and 30 deletions
6
ubasic.h
6
ubasic.h
|
|
@ -30,13 +30,13 @@
|
|||
#ifndef __UBASIC_H__
|
||||
#define __UBASIC_H__
|
||||
|
||||
#define VARIABLE_TYPE char
|
||||
#include "vartype.h"
|
||||
|
||||
void ubasic_init(const char *program);
|
||||
void ubasic_run(void);
|
||||
int ubasic_finished(void);
|
||||
|
||||
int ubasic_get_variable(int varnum);
|
||||
void ubasic_set_variable(int varum, int value);
|
||||
VARIABLE_TYPE ubasic_get_variable(int varnum);
|
||||
void ubasic_set_variable(int varum, VARIABLE_TYPE value);
|
||||
|
||||
#endif /* __UBASIC_H__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue