Resolve exported foreign calls through checked declarations and preserve canonical capability ownership in IR 70. Emit cyclic native interface types before includes, preserve contextual scoped callbacks and parenthesize captured slice bases. Regenerate all 89 bootstrap roots and current reference pages. Local validation: 269/269 retained checks with zero reuse; bootstrap update and independent 89-root fixed points; full native Harmony desktop compilation and link.
61 lines
1.3 KiB
C
61 lines
1.3 KiB
C
/* Generated by zi2c from compiler_enum.zi. */
|
|
#ifndef ZIRAN_COMPILER_ENUM_H
|
|
#define ZIRAN_COMPILER_ENUM_H
|
|
|
|
#include <stdbool.h>
|
|
#include "zir_string_types.h"
|
|
#include "zir_slice.h"
|
|
#ifndef ZIRAN_TYPE_FORWARD_Entry
|
|
#define ZIRAN_TYPE_FORWARD_Entry
|
|
typedef struct Entry Entry;
|
|
#endif
|
|
#ifndef ZIRAN_TYPE_FORWARD_Evaluation
|
|
#define ZIRAN_TYPE_FORWARD_Evaluation
|
|
typedef struct Evaluation Evaluation;
|
|
#endif
|
|
#ifdef ZIRAN_COMPILER_ENUM_H_PRIVATE
|
|
#ifndef ZIRAN_TYPE_FORWARD_Cursor
|
|
#define ZIRAN_TYPE_FORWARD_Cursor
|
|
typedef struct Cursor Cursor;
|
|
#endif
|
|
#endif
|
|
#include "compiler_text.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
#ifdef ZIRAN_COMPILER_ENUM_H_PRIVATE
|
|
#define Minimum (-9223372036854775807 - 1)
|
|
#endif
|
|
#ifdef ZIRAN_COMPILER_ENUM_H_PRIVATE
|
|
#define Maximum 9223372036854775807
|
|
#endif
|
|
|
|
struct Entry {
|
|
String name;
|
|
int64_t value;
|
|
};
|
|
|
|
struct Evaluation {
|
|
bool valid;
|
|
bool found;
|
|
int64_t value;
|
|
int64_t count;
|
|
};
|
|
#ifdef ZIRAN_COMPILER_ENUM_H_PRIVATE
|
|
|
|
struct Cursor {
|
|
String source;
|
|
int64_t at;
|
|
bool valid;
|
|
};
|
|
#endif
|
|
bool compiler_enum_FitsBacking(String backing, int64_t value);
|
|
Evaluation compiler_enum_MemberValue(String body, String backing, String wanted, Slice entries, int64_t name_limit);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* ZIRAN_COMPILER_ENUM_H */
|