You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/05/31 09:06:50 UTC
[GitHub] mkiiskila closed pull request #1138: mbuf code samples use
code-block
mkiiskila closed pull request #1138: mbuf code samples use code-block
URL: https://github.com/apache/mynewt-core/pull/1138
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/docs/os/core_os/mbuf/mbuf.rst b/docs/os/core_os/mbuf/mbuf.rst
index b1e7750753..c8b25155a4 100644
--- a/docs/os/core_os/mbuf/mbuf.rst
+++ b/docs/os/core_os/mbuf/mbuf.rst
@@ -142,7 +142,7 @@ to denote the amount of payload that the application requires (aligned
on a 32-bit boundary in this case). All this leads to the total memory
block size required, denoted by the macro *MBUF\_MEMBLOCK\_OVERHEAD*.
-.. code:: c
+.. code-block:: c
#define MBUF_PKTHDR_OVERHEAD sizeof(struct os_mbuf_pkthdr) + sizeof(struct user_hdr)
@@ -226,7 +226,7 @@ packet to a networking interface. The code sample also provides an
example of copying data out of an mbuf as well as use of the "pullup"
api (another very common mbuf api).
-.. code:: c
+.. code-block:: c
void
@@ -290,7 +290,7 @@ data to/from mbufs and flat buffers!
A final note: these examples assume the same mbuf struture and
definitions used in the first example.
-.. code:: c
+.. code-block:: c
void
mbuf_usage_example2(struct mbuf *rxpkt)
@@ -352,7 +352,7 @@ example:
Not shown in the code example is a call ``my_task_rx_data_func``.
Presumably, some other code will call this API.
-.. code:: c
+.. code-block:: c
uint32_t pkts_rxd;
struct os_mqueue rxpkt_q;
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services