[hackers] [scc] [cc2] Add comments about flags meaning || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Sat, 21 Jan 2017 10:54:43 +0100 (CET)

commit 6d31f2d198f80947e49577f2165c8a4a5ba0c154
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sat Jan 21 09:56:16 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sat Jan 21 09:56:16 2017 +0100

    [cc2] Add comments about flags meaning

diff --git a/cc2/cc2.h b/cc2/cc2.h
index cb0d9c4..4466b91 100644
--- a/cc2/cc2.h
+++ b/cc2/cc2.h
_AT_@ -1,18 +1,18 @@
 /* See LICENSE file for copyright and license details. */
 
 enum iflags {
- BBENTRY = 1,
+ BBENTRY = 1, /* basic block entry */
 };
 
 enum tflags {
- SIGNF = 1,
- INTF = 2,
- FLOATF = 4,
- STRF = 8,
- AGGRF = 16,
- FUNF = 32,
- PARF = 64,
- INITF = 128
+ SIGNF = 1 << 0, /* Signed type */
+ INTF = 1 << 1, /* integer type */
+ FLOATF = 1 << 2, /* float type */
+ STRF = 1 << 3, /* string */
+ AGGRF = 1 << 4, /* aggregate */
+ FUNF = 1 << 5, /* function */
+ PARF = 1 << 6, /* parameter */
+ INITF = 1 << 7, /* initializer flag */
 };
 
 enum sclass {
Received on Sat Jan 21 2017 - 10:54:43 CET

This archive was generated by hypermail 2.3.0 : Sat Jan 21 2017 - 11:00:22 CET