Skip to content
Snippets Groups Projects
Commit 2351bbd9 authored by PJK's avatar PJK
Browse files

Enable C in docs

parent 010fd447
Branches
Tags
No related merge requests found
Types 0 & 1 – Positive and negative integers
=============================
*CBOR* has two types of integers – positive (which may be effectively regarded as unsigned), and negative. There are four possible widths for an integer – 1, 2, 4, or 8 bytes. These correspond to
*CBOR* has two types of integers – positive (which may be effectively regarded as unsigned), and negative. There are four possible widths for an integer – 1, 2, 4, or 8 bytes. These are represented by
.. type:: enum cbor_int_width
which consists of
+--------------------+
| ``JSON_OBJECT`` |
+--------------------+
| ``JSON_ARRAY`` |
+--------------------+
| ``JSON_STRING`` |
+--------------------+
| ``JSON_INTEGER`` |
+--------------------+
| ``JSON_REAL`` |
| ``CBOR_INT_8`` |
+--------------------+
| ``JSON_TRUE`` |
| ``CBOR_INT_16`` |
+--------------------+
| ``JSON_FALSE`` |
| ``CBOR_INT_32`` |
+--------------------+
| ``JSON_NULL`` |
| ``CBOR_INT_64`` |
+--------------------+
Retrieving values
------------------------
.. function:: uint8_t cbor_get_uint8(cbor_item_t * item)
......
......@@ -73,7 +73,8 @@ exclude_patterns = []
# The reST default role (used for this markup: `text`) to use for all
# documents.
#default_role = None
default_role = 'c:func'
primary_domain = 'c'
# If true, '()' will be appended to :func: etc. cross-reference text.
#add_function_parentheses = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment