mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
libxl: CODING_STYLE: Explicitly deprecate #ifdef
We don't use ifdefs in the main code. Actually document this. Signed-off-by: Ian Jackson <iwj@xenproject.org> Acked-by: Anthony PERARD <anthony.perard@citrix.com> Reviewed-by: Juergen Gross <jgross@suse.com>
This commit is contained in:
1 parent
f929448692
commit
c8c6cd9eee
1 file changed
+10
@@ -121,6 +121,16 @@ permitted exceptions to the usual libxl code formatting rules.
|
||||
|
||||
|
||||
|
||||
ARCHITECTURE-SPECIFIC CODE, CONDITIONAL COMPILATION
|
||||
---------------------------------------------------
|
||||
|
||||
Architecture-specific code should be isolated in libxl_<arch>.c,
|
||||
with a function call interface, wherever possible.
|
||||
|
||||
#ifdefs should be avoided, and in any case not interspersed through
|
||||
the primary functional code.
|
||||
|
||||
|
||||
IDEMPOTENT DATA STRUCTURE CONSTRUCTION/DESTRUCTION
|
||||
--------------------------------------------------
|
||||
|
||||
|
||||