Commit f1ddb5c6 by kollo

little fix in native compiler / c-demo

parent b65da139
demo1
demo2
library.c
......@@ -15,10 +15,10 @@ all: demo1 demo2
demo1: c-demo.c
gcc -o $@ $< -lx11basic -ldl -lm -lreadline -lasound -lX11
gcc -o $@ $< -lx11basic -lm
demo2: library.o c-demo2.c
gcc -o $@ $^ -lx11basic -ldl -lm -lreadline -lasound -lX11
gcc -o $@ $^ -lx11basic -lm
%.b: %.bas
xbbc -o $@ $<
......
......@@ -16,6 +16,7 @@ gcc -o testme -L/usr/X11R6/lib -lx11basic -ldl -lm
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <x11basic/x11basic.h>
......
......@@ -17,8 +17,6 @@ gcc -o testme -L/usr/X11R6/lib -lx11basic -ldl -lm
*/
#include <stdlib.h>
#include <stdio.h>
#include <x11basic/xb2csol.h>
......
......@@ -10,6 +10,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <math.h>
#include <gmp.h>
......@@ -103,6 +104,7 @@ inline static void cast_to_arbint(PARAMETER *sp) {
mpz_clear(a);
}
int add_variable(const char *name, unsigned char typ, unsigned char subtyp, unsigned int flags, void *adr);
void free_parameter(PARAMETER *p);
/* Initialize the x11basic-library */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment