Skip to content

Commit b0982ef

Browse files
committed
more doc clarifications
1 parent 034ada5 commit b0982ef

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

site/source/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.rst

+3-4
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,7 @@ Implement a C API in JavaScript
317317
===============================
318318

319319
It is possible to implement a C API in JavaScript! This is the approach
320-
that was used to write Emscripten's implementations of :term:`SDL` and
321-
*libc*.
320+
used in many of Emscripten's libraries, like SDL1 and OpenGL.
322321

323322
You can use it to write your own APIs to call from C/C++. To do this
324323
you define the interface, decorating with ``extern`` to mark the methods
@@ -328,7 +327,7 @@ default). When compiling the C code, the compiler looks in the JavaScript
328327
libraries for relevant external symbols.
329328

330329
By default, the implementation is added to **library.js** (and this is
331-
where you'll find the Emscripten implementation of *libc*). You can put
330+
where you'll find parts of Emscripten's *libc*). You can put
332331
the JavaScript implementation in your own library file and add it using
333332
the :ref:`emcc option <emcc-js-library>` ``--js-library``. See
334333
`test_js_libraries`_ in **tests/test_other.py** for a complete working
@@ -401,7 +400,7 @@ key-value pairs are special. Interior code inside a function can
401400
have arbitrary JS, of course).
402401

403402
To avoid this limitation of JS libraries, you can put code in another file using
404-
the ``--pre-js`` OR ``--post-js`` options, which allow arbitary normal
403+
the ``--pre-js`` or ``--post-js`` options, which allow arbitary normal
405404
JS, and it is included and optimized with the rest of the output. That is
406405
the recommended approach for most cases. Another option is another ``<script>`` tag.
407406

0 commit comments

Comments
 (0)