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.
564 * Be careful to not obfuscate the code by initializing variables in the declarations, only the last…
568 .. code-block:: c
593 * Functions used from other parts of code (external API) must be prototyped in the relevant include…
602 .. code-block:: c
611 .. code-block:: c
629 .. code-block:: c
642 .. code-block:: c
666 .. code-block:: c
675 .. code-block:: c
705 .. code-block:: c
735 * When a test is done in a critical zone (called often or in a data path) the code can use the ``li…
738 .. code-block:: c
748 These macros should be avoided in non-performance-critical code.
753 …tic`` because it can often help the compiler to do some optimizations (such as, inlining the code).
764 Inline ASM in C code
770 .. code-block:: c
783 .. code-block:: c
806 to EAL, which will change the log level. DPDK code can register topics,
841 the directory that the PMD code resides. See examples below for clarity.
855 difference between initialization code, and logs of events that occur at runtime.
879 All Python code should be compliant with
909 .. code-block:: python
937 .. code-block:: python
961 .. code-block:: python
975 .. code-block:: python
1074 .. code-block:: python
1109 The following guidelines apply to the build system code in meson.build files in DPDK.