Files
ziran/bootstrap/compiler_enum/compiler_enum.h
T
waozi 4dc2da6b09 Publish measured desktop, Android and web target matrix
Compare five real examples across four targets on three measured platforms, preserving raw samples, independent output verification and artifact provenance.

Complete the WebAssembly support needed by the examples, inspect ZX bundles, prune generated C dependencies while preserving C++ linkage, and validate native script execution. Optimize only the temporary bootstrap seed and retain fresh-build measurements and historical benchmark records under bench/results.

Local tests: all 522 cases passed across the full run and corrected header-test rerun; all 16 bootstrap modules match. Playground runtime, bundle runtime, private browser layouts and matrix controls, published artifacts and local site links passed.
2026-11-10 23:50:12 -03:00

52 lines
1.0 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"
#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
typedef struct Entry Entry;
typedef struct Evaluation Evaluation;
#ifdef ZIRAN_COMPILER_ENUM_H_PRIVATE
typedef struct Cursor Cursor;
#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 */