aboutsummaryrefslogtreecommitdiff
path: root/examples.api
diff options
context:
space:
mode:
Diffstat (limited to 'examples.api')
-rw-r--r--examples.api/README6
-rw-r--r--examples.api/jim_hello.c3
2 files changed, 2 insertions, 7 deletions
diff --git a/examples.api/README b/examples.api/README
index d3fc8be..6b2b926 100644
--- a/examples.api/README
+++ b/examples.api/README
@@ -15,11 +15,7 @@ jim_command
in a script encoded within a program.
jim_hello
- Standard "Hello world!" program.
-
-jim_inline
- Similar "Hello world!" program, but the result comes from a Tcl
- script interpreted in Jim. Result is printed back on a terminal.
+ Standard "Hello world!" program, from executing a script.
jim_list
Will teach you how to create a list in Jim's API. Once created,
diff --git a/examples.api/jim_hello.c b/examples.api/jim_hello.c
index 831fcc7..2c817e7 100644
--- a/examples.api/jim_hello.c
+++ b/examples.api/jim_hello.c
@@ -48,8 +48,7 @@ main(int argc, char **argv)
/* And initialise any static extensions */
Jim_InitStaticExtensions(interp);
-
- /* Print a string to standard output */
+ /* Print a string to standard output by evaluating a script with the interpreter */
Jim_Eval(interp, "puts {Hello world!}");
/* Free the interpreter */