Prefix static macros
This commit is contained in:
@@ -4,14 +4,14 @@
|
||||
#include "wapp_core.h"
|
||||
#include <stddef.h>
|
||||
|
||||
internal CEnumValList cenumval_node_to_list(CEnumValNode *node);
|
||||
internal CArgList carg_node_to_list(CArgNode *node);
|
||||
internal CQualifierList cqualifier_node_to_list(CQualifierNode *node);
|
||||
internal CIncludeList cinclude_node_to_list(CIncludeNode *node);
|
||||
internal CUserTypeList cusertype_node_to_list(CUserTypeNode *node);
|
||||
internal CFuncList cfunc_node_to_list(CFuncNode *node);
|
||||
internal CStructList cstruct_node_to_list(CStructNode *node);
|
||||
internal CMacroList cmacro_node_to_list(CMacroNode *node);
|
||||
wapp_intern CEnumValList cenumval_node_to_list(CEnumValNode *node);
|
||||
wapp_intern CArgList carg_node_to_list(CArgNode *node);
|
||||
wapp_intern CQualifierList cqualifier_node_to_list(CQualifierNode *node);
|
||||
wapp_intern CIncludeList cinclude_node_to_list(CIncludeNode *node);
|
||||
wapp_intern CUserTypeList cusertype_node_to_list(CUserTypeNode *node);
|
||||
wapp_intern CFuncList cfunc_node_to_list(CFuncNode *node);
|
||||
wapp_intern CStructList cstruct_node_to_list(CStructNode *node);
|
||||
wapp_intern CMacroList cmacro_node_to_list(CMacroNode *node);
|
||||
|
||||
CEnumValNode *wapp_cenumval_list_get(const CEnumValList *list, u64 index) {
|
||||
wapp_runtime_assert(index < list->node_count, "`index` is out of bounds");
|
||||
@@ -1397,7 +1397,7 @@ void wapp_cmacro_list_empty(CMacroList *list) {
|
||||
}
|
||||
}
|
||||
|
||||
internal CEnumValList cenumval_node_to_list(CEnumValNode *node) {
|
||||
wapp_intern CEnumValList cenumval_node_to_list(CEnumValNode *node) {
|
||||
CEnumValList output = {.first = node, .last = node, .node_count = 1};
|
||||
|
||||
while (output.first->prev != NULL) {
|
||||
@@ -1413,7 +1413,7 @@ internal CEnumValList cenumval_node_to_list(CEnumValNode *node) {
|
||||
return output;
|
||||
}
|
||||
|
||||
internal CArgList carg_node_to_list(CArgNode *node) {
|
||||
wapp_intern CArgList carg_node_to_list(CArgNode *node) {
|
||||
CArgList output = {.first = node, .last = node, .node_count = 1};
|
||||
|
||||
while (output.first->prev != NULL) {
|
||||
@@ -1429,7 +1429,7 @@ internal CArgList carg_node_to_list(CArgNode *node) {
|
||||
return output;
|
||||
}
|
||||
|
||||
internal CQualifierList cqualifier_node_to_list(CQualifierNode *node) {
|
||||
wapp_intern CQualifierList cqualifier_node_to_list(CQualifierNode *node) {
|
||||
CQualifierList output = {.first = node, .last = node, .node_count = 1};
|
||||
|
||||
while (output.first->prev != NULL) {
|
||||
@@ -1445,7 +1445,7 @@ internal CQualifierList cqualifier_node_to_list(CQualifierNode *node) {
|
||||
return output;
|
||||
}
|
||||
|
||||
internal CIncludeList cinclude_node_to_list(CIncludeNode *node) {
|
||||
wapp_intern CIncludeList cinclude_node_to_list(CIncludeNode *node) {
|
||||
CIncludeList output = {.first = node, .last = node, .node_count = 1};
|
||||
|
||||
while (output.first->prev != NULL) {
|
||||
@@ -1461,7 +1461,7 @@ internal CIncludeList cinclude_node_to_list(CIncludeNode *node) {
|
||||
return output;
|
||||
}
|
||||
|
||||
internal CUserTypeList cusertype_node_to_list(CUserTypeNode *node) {
|
||||
wapp_intern CUserTypeList cusertype_node_to_list(CUserTypeNode *node) {
|
||||
CUserTypeList output = {.first = node, .last = node, .node_count = 1};
|
||||
|
||||
while (output.first->prev != NULL) {
|
||||
@@ -1477,7 +1477,7 @@ internal CUserTypeList cusertype_node_to_list(CUserTypeNode *node) {
|
||||
return output;
|
||||
}
|
||||
|
||||
internal CFuncList cfunc_node_to_list(CFuncNode *node) {
|
||||
wapp_intern CFuncList cfunc_node_to_list(CFuncNode *node) {
|
||||
CFuncList output = {.first = node, .last = node, .node_count = 1};
|
||||
|
||||
while (output.first->prev != NULL) {
|
||||
@@ -1493,7 +1493,7 @@ internal CFuncList cfunc_node_to_list(CFuncNode *node) {
|
||||
return output;
|
||||
}
|
||||
|
||||
internal CStructList cstruct_node_to_list(CStructNode *node) {
|
||||
wapp_intern CStructList cstruct_node_to_list(CStructNode *node) {
|
||||
CStructList output = {.first = node, .last = node, .node_count = 1};
|
||||
|
||||
while (output.first->prev != NULL) {
|
||||
@@ -1509,7 +1509,7 @@ internal CStructList cstruct_node_to_list(CStructNode *node) {
|
||||
return output;
|
||||
}
|
||||
|
||||
internal CMacroList cmacro_node_to_list(CMacroNode *node) {
|
||||
wapp_intern CMacroList cmacro_node_to_list(CMacroNode *node) {
|
||||
CMacroList output = {.first = node, .last = node, .node_count = 1};
|
||||
|
||||
while (output.first->prev != NULL) {
|
||||
|
Reference in New Issue
Block a user