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:
Ian Jackson committed 2021-10-13 15:10:38 +01:00
1 parent f929448692
commit c8c6cd9eee
1 file changed
+10
+10
View File
@@ -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
--------------------------------------------------
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.