Skip to content

Commit

Permalink
Merge pull request JuliaLang#12450 from garrison/stdio-devdocs-typos
Browse files Browse the repository at this point in the history
Fix a few typos in doc/devdocs/stdio.rst
  • Loading branch information
garrison committed Aug 5, 2015
2 parents 2171f80 + 6c133d3 commit 1fcfa4a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/devdocs/stdio.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ In special cases, like signal handlers, where the full ``libuv``
infrastructure is too heavy, :func:`jl_safe_printf` can be used to
:func:`write(2) <Base.write>` directly to :data:`STDERR_FILENO`::

void jl_safe_printf(const char \*str, ...);
void jl_safe_printf(const char *str, ...);



Expand All @@ -43,10 +43,10 @@ bound to the :code:`JL_STD*` `libuv <http://docs.libuv.org>`_ streams
defined in the runtime.

Julia's :c:func:`__init__` function (in ``base/sysimg.jl``) calls
c:func:`reinit_stdio` (in ``base/stream.jl``) to create Julia objects
:c:func:`reinit_stdio` (in ``base/stream.jl``) to create Julia objects
for :data:`Base.STDIN`, :data:`Base.STDOUT` and :data:`Base.STDERR`.

c:func:`reinit_stdio` uses :func:`ccall` to retrieve pointers to
:c:func:`reinit_stdio` uses :func:`ccall` to retrieve pointers to
:code:`JL_STD*` and calls :c:func:`jl_uv_handle_type` to inspect
the type of each stream. It then creates a Julia :obj:`Base.File`,
:obj:`Base.TTY` or :obj:`Base.Pipe` object to represent each
Expand Down Expand Up @@ -78,7 +78,7 @@ The ``libuv`` streams relied upon by :c:func:`jl_printf` etc., are not
available until midway through initialisation of the runtime (see
``init.c``, :c:func:`init_stdio`). Error messages or warnings that need
to be printed before this are routed to the standard C library
c:func:`fwrite` function by the following mechanism:
:c:func:`fwrite` function by the following mechanism:

In ``sys.c``, the :code:`JL_STD*` stream pointers are statically initialised
to integer constants: ``STD*_FILENO (0, 1 and 2)``. In ``jl_uv.c`` the
Expand Down

0 comments on commit 1fcfa4a

Please sign in to comment.