(SOC) Storage Only Commit

(ADD) Name, NameScope, Catlog, Object, String, Attribute, Char, Registry, Utils, Type, <Platform Support>, <Global Constants>, README

(MOD) Array, Var, Status, MemMan, <Common>
This commit is contained in:
William
2024-05-16 00:04:42 +08:00
parent 989e512f8f
commit 5f7a6c6f93
32 changed files with 1694 additions and 195 deletions

27
attr.h Normal file
View File

@@ -0,0 +1,27 @@
#ifndef COMPOUND_ATTR_H
# define COMPOUND_ATTR_H
# include <Compound/name.h>
/* Only effect (probably) when formal Attribute is defined.
* __ATTRIBUTABLE indicates this field is used for further process by Attribute.
* Or, to put this way, this field has attributions not used so far, but
* eventually will.
*/
# define __ATTRIBUTABLE
# define __ATTRIBUTABLE__
# define attr(a)
typedef struct _Attribute{
int serialNo;
int (*exec)(void *);
struct _Attribute *prev;
} attr(Executive) Attribute;
/* The base of every attribute. */
# define Attributable (Attribute){\
.value = 0,\
.exec = HANDLER /* Use report handler here. */\
};
#endif /* COMPOUND_ATTR_H */