From 288727f09a1b3458c268497d111349e608c3f9fa Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Tue, 2 Aug 2022 01:20:12 +0200 Subject: init --- docs/builtin.rst | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 docs/builtin.rst (limited to 'docs/builtin.rst') diff --git a/docs/builtin.rst b/docs/builtin.rst new file mode 100644 index 0000000..bb87f8c --- /dev/null +++ b/docs/builtin.rst @@ -0,0 +1,30 @@ +Builtin +======= + +Builtin functions and builtin syntaxes are represented with +`lsp_builtin_entry_t` structures. Each entry is defined with unique +name and function pointer: + +.. code-block:: c + + typedef lsp_status_t (*lsp_builtin_cb_t)(lsp_env_t *e, lsp_addr_t ctx, lsp_addr_t args); + +Associated function pointer is called during function/syntax application +(described in following chapters). + + +Source code +----------- + +builtin.h +''''''''' + +.. literalinclude:: ../src_c/builtin.h + :language: c + + +builtin.c +''''''''' + +.. literalinclude:: ../src_c/builtin.c + :language: c -- cgit v1.2.3-70-g09d2