blob: 03d31dec111e69b05410cfe17fcb7ac894117624 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--- embed/example4.c.orig Mon Jul 18 04:54:09 2005
+++ embed/example4.c Sun Aug 7 22:28:37 2005
@@ -22,10 +22,12 @@
}
void runexpr(void* object)
{
+ void* result;
+
printf("Input> ");
print_expr(object);
printf("\n");
- void* result = yacas_execute(object);
+ result = yacas_execute(object);
printf("Output> ");
print_expr(result);
printf("\n");
@@ -35,9 +37,10 @@
int main(int argc, char** argv)
{
int i;
+ void *input;
yacas_init();
-
- void *input =
+
+ input =
yacas_create_sublist(
yacas_link_objects(
yacas_create_atom("+"),
|