summaryrefslogtreecommitdiff
path: root/doc/reference/tmpl/seed-eval.sgml
diff options
context:
space:
mode:
authorAndrew Shadura <andrew.shadura@collabora.co.uk>2016-09-20 10:53:53 +0200
committerAndrew Shadura <andrew.shadura@collabora.co.uk>2016-09-20 10:53:53 +0200
commit45aaf5ce2b9346cf69960a16b79a2ff9c437abfb (patch)
treed9031ef624c296bcefdb64f1f85d2ab6199d12ee /doc/reference/tmpl/seed-eval.sgml
parentf4f1836a959667709d73ae5a67283d99759bf7ee (diff)
Imported Upstream version 3.8.2+20160226+ea7138c
Diffstat (limited to 'doc/reference/tmpl/seed-eval.sgml')
-rw-r--r--doc/reference/tmpl/seed-eval.sgml125
1 files changed, 0 insertions, 125 deletions
diff --git a/doc/reference/tmpl/seed-eval.sgml b/doc/reference/tmpl/seed-eval.sgml
deleted file mode 100644
index f3fbecd..0000000
--- a/doc/reference/tmpl/seed-eval.sgml
+++ /dev/null
@@ -1,125 +0,0 @@
-<!-- ##### SECTION Title ##### -->
-Evaluating JavaScript
-
-<!-- ##### SECTION Short_Description ##### -->
-Creating and interpreting scripts
-
-<!-- ##### SECTION Long_Description ##### -->
-<para>
-Seed relies on WebKit's JavaScriptCore interpreter to actually evaluate snippets of JavaScript; however, it provides a handful of useful wrapper functions to quickly create and evaluate scripts. seed_make_script() and seed_evaluate() are the workhorse functions; these allow you to control every detail of the created script and its evaluation environment (including customizing the "this" object during evaluation, and setting a starting line number and filename from which the script originates). seed_simple_evaluate() provides an interface to execute a string of JavaScript without previously creating a #SeedScript, and, while requiring less supporting code, is less flexible.
-</para>
-
-<example>
-<title>Create and evaluate a string of JavaScript with seed_make_script()</title>
-<programlisting>
-SeedEngine * eng;
-&nbsp;
-...
-&nbsp;
-SeedScript * script;
-/* Create a simple #SeedScript */
-script = seed_make_script(eng->context, "print('Hello, world!')", NULL, 0);
-&nbsp;
-/* Evaluate the #SeedScript in the default context */
-seed_evaluate(eng->context, script, 0);
-&nbsp;
-...
-</programlisting>
-</example>
-
-<example>
-<title>Create and evaluate a string of JavaScript with seed_simple_evaluate()</title>
-<programlisting>
-SeedEngine * eng;
-&nbsp;
-...
-&nbsp;
-/* Evaluate a simple JavaScript snippet in the default context */
-seed_simple_evaluate(eng->context, "print('Hello, world!')", NULL);
-&nbsp;
-...
-</programlisting>
-</example>
-
-<!-- ##### SECTION See_Also ##### -->
-<para>
-
-</para>
-
-<!-- ##### SECTION Stability_Level ##### -->
-
-
-<!-- ##### SECTION Image ##### -->
-
-
-<!-- ##### STRUCT SeedScript ##### -->
-<para>
-
-</para>
-
-@script:
-@exception:
-@source_url:
-@line_number:
-
-<!-- ##### FUNCTION seed_make_script ##### -->
-<para>
-
-</para>
-
-@ctx:
-@js:
-@source_url:
-@line_number:
-@Returns:
-
-
-<!-- ##### FUNCTION seed_evaluate ##### -->
-<para>
-
-</para>
-
-@ctx:
-@s:
-@this_object:
-@Returns:
-
-
-<!-- ##### FUNCTION seed_simple_evaluate ##### -->
-<para>
-
-</para>
-
-@ctx:
-@source:
-@exception:
-@Returns:
-
-
-<!-- ##### FUNCTION seed_script_new_from_file ##### -->
-<para>
-
-</para>
-
-@ctx:
-@file:
-@Returns:
-
-
-<!-- ##### FUNCTION seed_script_exception ##### -->
-<para>
-
-</para>
-
-@s:
-@Returns:
-
-
-<!-- ##### FUNCTION seed_script_destroy ##### -->
-<para>
-
-</para>
-
-@s:
-
-