summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2019-04-09 11:55:36 +0100
committerThomas Monjalon <thomas@monjalon.net>2019-04-17 18:09:52 +0200
commitadf93ca564c73183e1c705cd7f35b98f3a660228 (patch)
tree43da96af2eb274a918071d2931ddfdab1b87a390 /doc
parentb458c2927ab416fd7becfbc740ccfa53f0dfbdd1 (diff)
downloaddpdk-draft-windows-adf93ca564c73183e1c705cd7f35b98f3a660228.zip
dpdk-draft-windows-adf93ca564c73183e1c705cd7f35b98f3a660228.tar.gz
dpdk-draft-windows-adf93ca564c73183e1c705cd7f35b98f3a660228.tar.xz
build: increase readability via shortcut variables
Define variables for "is_linux", "is_freebsd" and "is_windows" to make the code shorter for comparisons and more readable. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Reviewed-by: David Marchand <david.marchand@redhat.com> Acked-by: Luca Boccassi <bluca@debian.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/guides/contributing/coding_style.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/guides/contributing/coding_style.rst b/doc/guides/contributing/coding_style.rst
index 656563d..a5d5897 100644
--- a/doc/guides/contributing/coding_style.rst
+++ b/doc/guides/contributing/coding_style.rst
@@ -856,7 +856,7 @@ build
.. code-block:: python
- if host_machine.system() != 'linux'
+ if not is_linux
build = false
endif