Lines Matching refs:code
20 * The code style should be consistent within each individual file.
22 …ing standards is to increase code readability and comprehensibility, therefore always use whatever…
30 Generally, line lengths up to 100 characters are acceptable in the code.
41 .. code-block:: c
60 Generally this is the BSD License, except for code granted special exceptions.
83 .. code-block:: c
100 .. code-block:: c
125 .. code-block:: c
134 …additional degrees of type-safety and can allow compilers to emit extra warnings about unsafe code.
148 * If code can compile on all platforms/systems,
152 * If the code in question cannot compile on all systems,
155 * If the code for conditional compilation implements an interface in an OS
163 * When code is conditionally compiled using ``#ifdef`` or ``#if``, a comment may be added following…
164 …``#endif`` or ``#else`` to permit the reader to easily discern where conditionally compiled code r…
166 …Exceptions may be made for cases where code is conditionally not compiled for the purposes of lint…
174 .. code-block:: c
181 /* A large region here, or other conditional code. */
187 /* Yet another large region here, or other conditional code. */
195 In many cases in DPDK, one wants to run code based on
212 .. code-block:: c
245 .. code-block:: c
257 .. code-block:: c
281 .. code-block:: c
301 .. code-block:: c
330 .. code-block:: c
344 This should be used in all data-path code, when there are several consumer and/or producers to avoi…
376 .. code-block:: c
387 .. code-block:: c
412 …It is recommended to use typedefs to define function pointer types, for reasons of code readabilit…
417 .. code-block:: c
448 As with all style guidelines, code should match style already in use in an existing file.
450 .. code-block:: c
480 .. code-block:: c
501 .. code-block:: c
511 .. code-block:: c
529 .. code-block:: c
548 .. code-block:: c
559 * Variables should be declared at the start of a block of code rather than in the middle.
563 * Be careful to not obfuscate the code by initializing variables in the declarations, only the last…
567 .. code-block:: c
592 * Functions used from other parts of code (external API) must be prototyped in the relevant include…
601 .. code-block:: c
610 .. code-block:: c
628 .. code-block:: c
641 .. code-block:: c
665 .. code-block:: c
674 .. code-block:: c
704 .. code-block:: c
734 * When a test is done in a critical zone (called often or in a data path) the code can use the ``li…
737 .. code-block:: c
747 These macros should be avoided in non-performance-critical code.
752 …tic`` because it can often help the compiler to do some optimizations (such as, inlining the code).
763 Inline ASM in C code
769 .. code-block:: c
782 .. code-block:: c
803 to EAL, which will change the log level. DPDK code can register topics,
815 the directory that the PMD code resides. See examples below for clarity.
829 difference between initialization code, and logs of events that occur at runtime.
851 All Python code should be compliant with
880 .. code-block:: python
908 .. code-block:: python
932 .. code-block:: python
946 .. code-block:: python
1045 .. code-block:: python
1080 The following guidelines apply to the build system code in meson.build files in DPDK.