#include "versions.h"
#include "ubasic.h"
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
gehe zum Quellcode dieser Datei
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definiert in Zeile 63 der Datei run-ubasic.c.
73 perror(
"Error opening file");
80 program = (
char *)
malloc(sz+3);
81 int szr =
fread(program,1,sz, f);
84 perror(
"Error reading program");
86 printf(
"size: %d, read: %d \n", sz, szr);
91 printf(
"Program:\n%s\n=====================================\n\n", program);
int ubasic_init |
( |
const char * |
program, |
|
|
int |
is_ptp |
|
) |
| |
int ubasic_linenumber |
( |
) | |
|
const char program_static[] |
|
static |
Initialisierung:=
"sleep 1000\n\
if a<1 then let a=2\n\
if b<1 then let b=3\n\
for s=1 to a\n\
shoot\n\
gosub \"incEv\"\n\
next s\n\
shoot\n\
end\n\
\n\
:incEv \n\
\n\
for n=1 to b\n\
click \"right\"\n\
next n\n\
return\n"
Definiert in Zeile 37 der Datei run-ubasic.c.
const char* ubasic_errstrings[] |