diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2022-08-02 01:20:12 +0200 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2022-09-25 02:40:23 +0200 |
| commit | 288727f09a1b3458c268497d111349e608c3f9fa (patch) | |
| tree | d62565249fa3c7127856c65405752572fc41aca9 /docs/builtin.rst | |
Diffstat (limited to 'docs/builtin.rst')
| -rw-r--r-- | docs/builtin.rst | 30 |
1 files changed, 30 insertions, 0 deletions
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 |
