Craftd:Coding Style: Difference between revisions

From wiki.vg
Jump to navigation Jump to search
imported>Kev009
(Created page with "== stdbool == Use of the C99 ''bool'' type in <stdbool.h> is encouraged for internal boolean values within craftd. Platforms that do not define this can be worked around with Au...")
 
imported>Kev009
(Created page with "== stdbool == Use of the C99 ''bool'' type in <stdbool.h> is encouraged for internal boolean values within craftd. Platforms that do not define this can be worked around with Au...")
(No difference)

Revision as of 18:33, 5 December 2010

stdbool

Use of the C99 bool type in <stdbool.h> is encouraged for internal boolean values within craftd. Platforms that do not define this can be worked around with Autoconf and preprocessor.

NOTE:

When sending over the network, first recast to an int8_t to ensure that it only occupies 1 byte as sizeof(bool) differs from compiler to compiler.