diff options
author | Steve Bennett <steveb@workware.net.au> | 2021-12-13 21:31:00 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2021-12-13 21:31:00 +1000 |
commit | 7a518896462aef645e278e7191bb5af12f0fc25a (patch) | |
tree | 3ef114df5cc6b2790eaf69141d3ebbe1385aa19b /examples.api | |
parent | 24b234543c7322d2dd20339b45367fa3f4c53495 (diff) | |
download | jimtcl-7a518896462aef645e278e7191bb5af12f0fc25a.zip jimtcl-7a518896462aef645e278e7191bb5af12f0fc25a.tar.gz jimtcl-7a518896462aef645e278e7191bb5af12f0fc25a.tar.bz2 |
examples.api: Remove reference to jim_inline
The original jim_hello was a bad example that directly used
interpreter data members, so it was removed and jim_inline
became jim_hello.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'examples.api')
-rw-r--r-- | examples.api/README | 6 | ||||
-rw-r--r-- | examples.api/jim_hello.c | 3 |
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 */ |