Removed all header guards in src. Sadly, some header guards still remain in /gen

This commit is contained in:
Андреев Григорий 2026-01-28 17:13:51 +03:00
parent 658d645992
commit f9159abded
63 changed files with 63 additions and 271 deletions

View File

@ -1,5 +1,4 @@
#ifndef prototype1_src_l1_anne_alice_h
#define prototype1_src_l1_anne_alice_h
#pragma once
#include "../codegen/codegen.h"
@ -25,5 +24,3 @@ void generate_code_for_alice_on_l1(){
.T = cstr("GenericMeshTopology")
});
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L1_ANNE_CODEGEN_FROM_L1_5_H
#define PROTOTYPE1_SRC_L1_ANNE_CODEGEN_FROM_L1_5_H
#pragma once
#include "../codegen/util_template_inst.h"
@ -12,5 +11,3 @@ void generate_l1_headers_for_l1_5() {
generate_eve_span_company_for_primitive(l, ns, cstr("NamedMethodSignatureRecordRef"), false, true);
generate_eve_span_company_for_primitive(l, ns, cstr("BufRBTreeNode"), true, false);
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE_SRC_L1_CODEGEN_GEOM_H
#define PROTOTYPE_SRC_L1_CODEGEN_GEOM_H
#pragma once
#include "../codegen/codegen.h"
@ -512,5 +511,3 @@ void generate_geom_header() {
/* VecU8_append_vec(&res.result, generate_xmat234x234_structs_methods(cstr("dmat"), cstr("dvec"), cstr("double"), sizeof(double))); */
finish_header(res);
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L1_ANNE_LIZA_H
#define PROTOTYPE1_SRC_L1_ANNE_LIZA_H
#pragma once
#include "../codegen/util_template_inst.h"
@ -17,5 +16,3 @@ void generate_liza_l1_headers() {
generate_util_templ_inst_eve_header(l, ns, (util_templates_instantiation_options){
.T = cstr("MyInstrument"), .vec = true}, false);
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef prototype1_src_l1_anne_lucy_h
#define prototype1_src_l1_anne_lucy_h
#pragma once
#include "../codegen/util_template_inst.h"
#include "../codegen/list_template_inst.h"
@ -19,5 +18,3 @@ void generate_l1_lucy_headers(){
.T = cstr("LucyPositionedStagingGlyph"), .vec = true, .sort = true,
}, false);
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L1_ANNE_MARGARET_MARGARET_MISC_H
#define PROTOTYPE1_SRC_L1_ANNE_MARGARET_MARGARET_MISC_H
#pragma once
#include "../../codegen/util_template_inst.h"
#include "../../codegen/list_template_inst.h"
@ -28,6 +27,3 @@ void generate_margaret_eve_for_vulkan_utils() {
generate_eve_span_company_for_non_primitive_non_clonable(l, ns, cstr("MargaretImgAllocatorOneBlock"), true, false);
generate_List_templ_inst_eve_header(l, ns, (list_instantiation_op){.T = cstr("MargaretBufAllocatorOneBlock")}, true);
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L1_ANNE_MARGARET_PNG_PIXEL_MASSES_H
#define PROTOTYPE1_SRC_L1_ANNE_MARGARET_PNG_PIXEL_MASSES_H
#pragma once
#include "../../codegen/util_template_inst.h"
@ -298,5 +297,3 @@ void generate_margaret_png_pixel_masses_header() {
finish_header(header);
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L1_ANNE_MARIE_H
#define PROTOTYPE1_SRC_L1_ANNE_MARIE_H
#pragma once
#include "../codegen/util_template_inst.h"
@ -16,5 +15,3 @@ void generate_l1_headers_for_marie() {
generate_eve_span_company_for_non_primitive_clonable(l, ns, cstr("VecMarieHoleAndVertexId"), true, false);
generate_eve_span_company_for_non_primitive_clonable(l, ns, cstr("VecVecMarieHoleAndVertexId"), true, false);
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE_SRC_L1_CODEGEN_PIXEL_MASSES_H
#define PROTOTYPE_SRC_L1_CODEGEN_PIXEL_MASSES_H
#pragma once
#include "../codegen/codegen.h"
#include "../codegen/util_template_inst.h"
@ -101,6 +100,3 @@ void generate_pixel_masses_header() {
cstr("(float)pix.x / 255 * 0.21f + (float)pix.y / 255 * 0.71f + (float)pix.z / 255 * 0.08f")));
finish_header(res);
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L1_ANNE_SOME_TESTS_H
#define PROTOTYPE1_SRC_L1_ANNE_SOME_TESTS_H
#pragma once
#include "../codegen/util_template_inst.h"
@ -24,5 +23,3 @@ void generate_headers_for_r0_r1_r2_r3() {
generate_eve_span_company_for_primitive(l, cstr("ds_test"), cstr("RefRBTreeNode_S64"), true, false);
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L1_ANNE_UTIL_TEMP_GEOM_H
#define PROTOTYPE1_SRC_L1_ANNE_UTIL_TEMP_GEOM_H
#pragma once
#include "../codegen/util_template_inst.h"
@ -26,5 +25,3 @@ void generate_util_temp_geom_headers() {
VecU8_drop(Dep);
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L1_ANNE_UTIL_TEMP_VERY_BASE_H
#define PROTOTYPE1_SRC_L1_ANNE_UTIL_TEMP_VERY_BASE_H
#pragma once
#include "../codegen/util_template_inst.h"
@ -75,5 +74,3 @@ void generate_util_temp_very_base_headers() {
generate_Option_templ_inst_eve_header(l, ns,
(option_template_instantiation_op){.T = cstr("Json"), .t_clonable = false});
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L1_ANNE_VULKAN_H
#define PROTOTYPE1_SRC_L1_ANNE_VULKAN_H
#pragma once
#include "../codegen/util_template_inst.h"
@ -43,5 +42,3 @@ void generate_util_templ_inst_for_vulkan_headers() {
generate_guarded_span_company_for_primitive(l, ns, cstr("VkImageMemoryBarrier"), vulkan_dep, true, false);
generate_guarded_span_company_for_primitive(l, ns, cstr("VkDescriptorImageInfo"), vulkan_dep, true, false);
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L1_CODEGEN_CODEGEN_H
#define PROTOTYPE1_SRC_L1_CODEGEN_CODEGEN_H
#pragma once
#include <stdio.h>
#include "../system/fileio.h"
@ -115,5 +114,3 @@ NODISCARD VecU8 codegen_include_relative_to_root(SpanU8 bonus_ns, SpanU8 abs_pat
SpanU8 c_type_empty_means_void(SpanU8 type){
return type.len > 0 ? type : cstr("void");
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef prototype1_src_l1_codegen_list_template_inst_h
#define prototype1_src_l1_codegen_list_template_inst_h
#pragma once
#include "codegen.h"
@ -106,6 +105,3 @@ void generate_List_templ_inst_guarded_header(
generate_SOME_templ_inst_guarded_header(layer, bonus_ns, all_dependencies,
generate_List_template_instantiation(op, true), VecU8_fmt("List%s", op.T));
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L1_CODEGEN_UTIL_TEMPLATES_H
#define PROTOTYPE1_SRC_L1_CODEGEN_UTIL_TEMPLATES_H
#pragma once
#include "codegen.h"
@ -753,5 +752,3 @@ void generate_Option_templ_inst_guarded_header(
codegen_include_relative_to_root(bonus_ns, cstr("src/l1/core/util.h")), dependencies),
generate_OptionT_struct_and_methods(op), VecU8_fmt("Option%s", op.T));
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L1_CORE_VECU8_AS_STR_H
#define PROTOTYPE1_SRC_L1_CORE_VECU8_AS_STR_H
#pragma once
#include <stdarg.h>
@ -345,5 +344,3 @@ void VecU8_encode_as_utf8(VecU8* str, U32 U){
}, 4});
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L1_CORE_CHICKEN_VECU8_H
#define PROTOTYPE1_SRC_L1_CORE_CHICKEN_VECU8_H
#pragma once
#ifndef PROTOTYPE1_L1_CODEGEN_BOOTSTRAP_USE_CHICKEN_VECU8
#error "Use chicken_VecU8.h only during the very first l1 bootstrap stage"
@ -96,5 +95,3 @@ void VecU8_append_span(VecU8* self, SpanU8 b) {
memcpy(self->buf + self->len, b.data, b.len);
self->len = new_length;
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_CORE_INT_PRIMITIVES_H
#define PROTOTYPE1_SRC_CORE_INT_PRIMITIVES_H
#pragma once
#include <stdint.h>
#include <stddef.h>
@ -26,5 +25,3 @@ int_minmax_function_Definition(U64)
int_minmax_function_Definition(S64)
int_minmax_function_Definition(float)
int_minmax_function_Definition(double)
#endif

View File

@ -1,5 +1,4 @@
#ifndef prototype1_src_l1_core_uint_segments_h
#define prototype1_src_l1_core_uint_segments_h
#pragma once
#include "int_primitives.h"
@ -12,5 +11,3 @@ typedef struct{
U32 start;
U32 len;
} U32Segment;
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_CORE_UTIL_H
#define PROTOTYPE1_SRC_CORE_UTIL_H
#pragma once
#include <stdio.h>
#include <stdlib.h>
@ -93,5 +92,3 @@ typedef struct{
} KVPU64ToU64;
#define check(expr) if (!(expr)) { abortf("Assertion failed at %s : %d : " #expr "\n", __FILE__, __LINE__); }
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE_1_SRC_L1_MARIE_GEOM_ALG_UTILS_H
#define PROTOTYPE_1_SRC_L1_MARIE_GEOM_ALG_UTILS_H
#pragma once
#include <stdbool.h>
#include <string.h>
@ -94,5 +93,3 @@ vec2 marie_intersect_lines(vec2 A1, vec2 B1, vec2 A2, vec2 B2) {
float marie_clamp_float(float a, float l, float r) {
return (a < l) ? l : ((a <= r) ? a : r);
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef prototype1_src_l1_system_creating_child_proc_h
#define prototype1_src_l1_system_creating_child_proc_h
#pragma once
#include "../core/util.h"
@ -13,6 +12,3 @@ void calling_system_func_nofail(const char* command) {
abortf("Error: command terminated abnormally\n");
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_SYSTEM_FILEIO_H
#define PROTOTYPE1_SRC_SYSTEM_FILEIO_H
#pragma once
#include "../core/VecU8_as_str.h"
@ -59,6 +58,3 @@ void write_file_by_path(VecU8 path, SpanU8 content){
VecU8_drop(path);
fclose(fd);
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L1_SYSTEM_FSMANIP_H
#define PROTOTYPE1_SRC_L1_SYSTEM_FSMANIP_H
#pragma once
/* For posix */
#include <sys/stat.h>
@ -12,6 +11,3 @@ void mkdir_nofail(const char* filename) {
if (ret < 0 && errno != EEXIST)
abortf("Unable to create directory %s\n", filename);
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L1_SYSTEM_PTHREAD_H
#define PROTOTYPE1_SRC_L1_SYSTEM_PTHREAD_H
#pragma once
#include "../core/util.h"
#include <pthread.h>
@ -27,6 +26,3 @@ void safe_pthread_mutex_destroy(pthread_mutex_t* mut) {
void safe_pthread_join(pthread_t thread) {
pthread_join(thread, NULL);
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L1_SYSTEM_SHARED_MEMORY_H
#define PROTOTYPE1_SRC_L1_SYSTEM_SHARED_MEMORY_H
#pragma once
#include <fcntl.h>
#include <sys/mman.h>
@ -33,5 +32,3 @@ static int allocate_shm_file(size_t size) {
}
return fd;
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef prototype1_src_l1_5_anne_gui_h
#define prototype1_src_l1_5_anne_gui_h
#pragma once
#include "../codegen/trait_wrap_boil.h"
@ -43,5 +42,3 @@ void generate_l1_5_gui_headers(){
.box = true, .mut_ref = true
});
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef prototype1_src_l1_5_anne_l1_5_templ_very_base_h
#define prototype1_src_l1_5_anne_l1_5_templ_very_base_h
#pragma once
#include "../codegen/buff_rbtree_set_map_template_inst.h"
#include "../codegen/rbtree_set_map_template_inst.h"
@ -28,5 +27,3 @@ void generate_l1_5_template_instantiation_for_base_types(){
.skip_declaration_gen = true,
}, false, true);
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L1_5_ANNE_LIZA_H
#define PROTOTYPE1_SRC_L1_5_ANNE_LIZA_H
#pragma once
#include "../codegen/trait_wrap_boil.h"
@ -31,5 +30,3 @@ void generate_l1_5_liza_headers() {
.box = true, .ref = true, .mut_ref = true
});
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef prototype1_src_l1_5_anne_lucy_h
#define prototype1_src_l1_5_anne_lucy_h
#pragma once
#include "../codegen/buff_rbtree_set_map_template_inst.h"
@ -12,5 +11,3 @@ void generate_l1_5_lucy_headers(){
.K = cstr("U32"), .k_integer = true, .V = cstr("LucyFaceFixedSize")}, true, false);
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef prototype1_src_l1_5_anne_margaret_h
#define prototype1_src_l1_5_anne_margaret_h
#pragma once
#include "../codegen/buff_rbtree_set_map_template_inst.h"
#include "../codegen/rbtree_set_map_template_inst.h"
@ -24,5 +23,3 @@ void generate_l1_5_template_instantiations_for_margaret(){
.alternative_comp_set_name_embed = cstr("Len"),
});
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L1_5_CODEGEN_ALL_SET_MAP_TEMPL_UTIL_INST_H
#define PROTOTYPE1_SRC_L1_5_CODEGEN_ALL_SET_MAP_TEMPL_UTIL_INST_H
#pragma once
#include "../../l1/codegen/util_template_inst.h"
@ -97,6 +96,3 @@ NODISCARD VecU8 codegen_rbtree_map__taking_ref_k_argument(map_instantiation_op o
NODISCARD VecU8 codegen_rbtree_map__taking_t_argument(map_instantiation_op op){
return op.V.len > 0 ? VecU8_fmt("%s key, %s value", op.K, op.V) : VecU8_fmt("%s key", op.K);
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L1_5_CODEGEN_RB_TREE_SET_MAP_TEMPLATE_INST_H
#define PROTOTYPE1_SRC_L1_5_CODEGEN_RB_TREE_SET_MAP_TEMPLATE_INST_H
#pragma once
#include "all_set_map_templ_util_inst.h"
@ -562,5 +561,3 @@ void generate_buf_rbtree_Map_templ_inst_guarded_header(
generate_SOME_templ_inst_guarded_header(layer, bonus_ns, all_dependencies,
generate_buf_rbtree_Map_template_instantiation(op), get_name_of_buf_rbtree_map_structure(op));
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef prototype1_src_l1_5_codegen_rbtree_set_map_template_inst_h
#define prototype1_src_l1_5_codegen_rbtree_set_map_template_inst_h
#pragma once
#include "all_set_map_templ_util_inst.h"
@ -457,5 +456,3 @@ void generate_rbtree_Map_templ_inst_guarded_header(
generate_rbtree_Map_template_instantiation(op, generate_node_struct, true, true),
get_name_of_rbtree_map_structure(op));
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L1_5_CODEGEN_TRAIT_BOX_AND_REF_H
#define PROTOTYPE1_SRC_L1_5_CODEGEN_TRAIT_BOX_AND_REF_H
#pragma once
#include "../../l1/codegen/codegen.h"
@ -170,5 +169,3 @@ void generate_trait_wrapper_templ_inst_guarded_header(SpanU8 layer, SpanU8 bonus
VecU8_fmt("#include <stdlib.h>\n%s", dependencies),
generate_trait_wrapper_boilerplate(op), VecU8_from_span(op.trait.name));
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L1_5_CORE_RB_TREE_NODE_H
#define PROTOTYPE1_SRC_L1_5_CORE_RB_TREE_NODE_H
#pragma once
#include "../../l1/core/util.h"
@ -256,5 +255,3 @@ void BufRBTree_empty_index_erase(VecBufRBTreeNode* tree, U64* root, U64 z) {
// self->el.len--;
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef prototype1_src_l1_5_core_input_olproga_h
#define prototype1_src_l1_5_core_input_olproga_h
#pragma once
#include "../../../gen/l1/OptionU64.h"
#include "../../../gen/l1/VecAndSpan_U8.h"
@ -80,6 +79,3 @@ U64 stdin_read_U64_nofail(){
abortf("No number found\n");
return x.some;
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef prototype1_src_l1_5_core_parsing_string_h
#define prototype1_src_l1_5_core_parsing_string_h
#pragma once
#include "../../l1/core/VecU8_as_str.h"
#include <math.h>
@ -259,5 +258,3 @@ bool SpanU8_parsing_try_read_hex_digit(SpanU8* rem, U32* ret){
}
return false;
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef prototype1_src_l1_5_core_rb_tree_node_h
#define prototype1_src_l1_5_core_rb_tree_node_h
#pragma once
#include "../../l1/core/util.h"
@ -274,5 +273,3 @@ void RBTree_erase_empty_by_iter(RBTreeNode** root, RBTreeNode* NIL, RBTreeNode*
if (y_org_clr == RBTREE_BLACK)
RBTree_fix_after_delete(root, NIL, x);
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L1_5_CORE_STRINGOP_H
#define PROTOTYPE1_SRC_L1_5_CORE_STRINGOP_H
#pragma once
#include "../../../gen/l1/VecAndSpan_U8.h"
#include "../../../gen/l1/VecAndSpan_VecU8.h"
@ -39,5 +38,3 @@ void VecU8_add_vertical_separator(VecU8* self) {
if (self->len)
VecU8_append_span(self, cstr(" | "));
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef prototype1_src_l1_5_core_stringsearch_h
#define prototype1_src_l1_5_core_stringsearch_h
#pragma once
#include "../../l1/core/VecU8_as_str.h"
#include "../../../gen/l1/VecAndSpan_U64.h"
@ -36,7 +35,3 @@ NODISCARD VecU64 z_function(SpanU8 s){
}
return Z;
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef prototype1_src_l2_alice_assets_h
#define prototype1_src_l2_alice_assets_h
#pragma once
#include "../marie/graphics_geom.h"
#include "../../../gen/l1/VecAndSpan_U32.h"
@ -133,6 +132,3 @@ typedef struct {
Pipeline0PointLight point_light_arr[pipeline_0_ubo_point_light_max_count];
Pipeline0Spotlight spotlight_arr[pipeline_0_ubo_spotlight_max_count];
} Pipeline0UBO;
#endif

View File

@ -1,5 +1,4 @@
#ifndef prototype1_src_l2_alice_engine_h
#define prototype1_src_l2_alice_engine_h
#pragma once
#include "model_file.h"
#include "../../l1/marie/geom_alg_utils.h"
@ -2082,5 +2081,3 @@ void Alice_mainloop(Alice* alice, const AliceCallbacks* callbacks) {
// wl_registry_destroy(alice->wl.wl_registry);
wl_display_disconnect(alice->wl.wl_display);
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef prototype1_src_l2_alice_model_file_h
#define prototype1_src_l2_alice_model_file_h
#pragma once
#include "../../../gen/l1/VecAndSpan_vec2.h"
#include "../../../gen/l1/VecAndSpan_vec3.h"
@ -238,7 +237,3 @@ GenericMeshTopology alice_expect_read_generic_mesh_from_obj_file(VecU8 file_path
OptionGenericMeshTopology option = alice_read_generic_mesh_from_obj_file(file_path);
return OptionGenericMeshTopology_expect(option);
}
/* No beauty, just pure brute force */
#endif

View File

@ -1,5 +1,4 @@
#ifndef prototype1_src_l2_anne_r4_h
#define prototype1_src_l2_anne_r4_h
#pragma once
#include "../alice/assets.h"
#include "../../../gen/l1/pixel_masses.h"
@ -915,5 +914,3 @@ int gen_assets_for_r4() {
return 0;
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef prototype1_src_l2_alice_glb_file_h
#define prototype1_src_l2_alice_glb_file_h
#pragma once
#include "json_encoded.h"
@ -72,5 +71,3 @@ int glb_file_get_segments(SpanU8 file, GLBFileSegments* ret){
*ret = (GLBFileSegments){.version = version, .gltf = parsed_json.some, .bin_segment = bin_segment};
return 0;
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef prototype1_src_l2_core_json_h
#define prototype1_src_l2_core_json_h
#pragma once
#include "../../l1/core/VecU8_as_str.h"
#include "../../l1_5/core/rb_tree_node.h"
@ -93,5 +92,3 @@ Json Json_from_MapVecU8ToJson(json_dictionary_t dict){
// Bonus
#include "../../../gen/l1/eve/OptionJson.h"
#endif

View File

@ -1,5 +1,4 @@
#ifndef prototype1_src_l2_core_json_encoded_h
#define prototype1_src_l2_core_json_encoded_h
#pragma once
#include "../../l1_5/core/parsing_string.h"
#include "json.h"
@ -281,5 +280,3 @@ OptionJson json_decode(SpanU8 text, U32 depth_allowed){
}
return x;
}
#endif

View File

@ -1,7 +1,3 @@
#ifndef prototype1_src_l2_gui_label_h
#define prototype1_src_l2_gui_label_h
#pragma once
#include "../lucy/glyph_render.h"
#endif

View File

@ -1,5 +1,4 @@
#ifndef prototype1_src_l2_gui_widget_h
#define prototype1_src_l2_gui_widget_h
#pragma once
#include "../../../gen/l1/geom.h"
#include "../../l1/core/util.h"
@ -100,5 +99,3 @@ BoxWidget EmptyWidget_new_box(U32 width, U32 height){
*r = (EmptyWidget){.base = Widget_new(), .width = width, .height = height};
return (BoxWidget){.r = (Widget*)r, .t = &Widget_Table_EmptyWidget};
}
#endif

View File

@ -1,10 +1,6 @@
#ifndef PROTOTYPE1_SRC_L2_LIZA_INSTRUMENT_H
#define PROTOTYPE1_SRC_L2_LIZA_INSTRUMENT_H
#pragma once
#include "playing_sound_loop.h"
#include "../../../gen/l1_5/eve/liza/LizaInstrument.h"
#include "../../../gen/l1/eve/liza/VecBoxLizaInstrument.h"
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L2_LIZA_PLAYING_SOUND_LOOP_H
#define PROTOTYPE1_SRC_L2_LIZA_PLAYING_SOUND_LOOP_H
#pragma once
// todo: move loop here and rewrite with l1_5 help
@ -37,6 +36,3 @@ void BoxLizaSound_drop(BoxLizaSound self) {
}
#include "../../../gen/l1/eve/liza/VecBoxLizaSound.h"
#endif

View File

@ -1,5 +1,4 @@
#ifndef prototype1_src_l2_lucy_glyph_cache_h
#define prototype1_src_l2_lucy_glyph_cache_h
#pragma once
#include "../margaret/vulkan_utils.h"
#include <ft2build.h>
@ -418,5 +417,3 @@ RBTreeNodeLucyFaceFixedSize* LucyFace_of_size(LucyFace* self, U32 size){
// todo: add a method to RBTree for proper node insertion. This is just pure crap
return RBTree_MapU32ToLucyFaceFixedSize_find(&self->sizes, size);
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef prototype1_src_l2_lucy_rendering_h
#define prototype1_src_l2_lucy_rendering_h
#pragma once
#include "glyph_cache.h"
#include "../../../gen/l1/pixel_masses.h"
@ -186,5 +185,3 @@ void LucyRenderer_another_frame_rec_drawing(
1, (VkDescriptorSet[]){self->cache->descriptor_set}, 0, NULL);
vkCmdDraw(drawing_cmd_buf, 6, self->glyphs_count, 0, 0);
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L2_MARGARET_TIME_H
#define PROTOTYPE1_SRC_L2_MARGARET_TIME_H
#pragma once
#include <time.h>
#include "../../l1/core/util.h"
@ -25,6 +24,3 @@ float margaret_ns_time_sec_diff(margaret_ns_time from, margaret_ns_time to) {
float margaret_clock_monotonic_raw_diff(margaret_ns_time start) {
return (float)margaret_ns_time_ns_diff(start, margaret_clock_gettime_monotonic_raw()) / 1e9f;
}
#endif

View File

@ -1,8 +1,5 @@
#ifndef prototype1_src_l2_margaret_vulkan_memory_h
#define prototype1_src_l2_margaret_vulkan_memory_h
#pragma once
#include <vulkan/vulkan.h>
#include "vulkan_images_claire.h"
#include "vulkan_buffer_claire.h"
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L2_MARGARET_MARGARET_H
#define PROTOTYPE1_SRC_L2_MARGARET_MARGARET_H
#pragma once
#include "../../../gen/l1/OptionU32.h"
#include "../../../gen/l1/VecAndSpan_VecU8.h"
@ -1247,5 +1246,3 @@ void margaret_rec_cmd_copy_buffer_to_image_one_to_one_color_aspect(
});
dst->current_layout = dst_new_layout;
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L2_MARIE_GRAPHICS_GEOM_H
#define PROTOTYPE1_SRC_L2_MARIE_GRAPHICS_GEOM_H
#pragma once
#include "../../../gen/l1/geom.h"
#include <math.h>
@ -101,5 +100,3 @@ mat4 marie_3d_scal_mat4(float scale){
vec2 ivec2_to_vec2(ivec2 v){
return (vec2){(float)v.x, (float)v.y};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef SPLITTER_DRAFT_SRC_L2_MARIE_RASTERIZATION_H
#define SPLITTER_DRAFT_SRC_L2_MARIE_RASTERIZATION_H
#pragma once
#include "../../../gen/l1/geom.h"
#include "../../l1/marie/geom_alg_utils.h"
@ -134,5 +133,3 @@ void marie_rasterize_triangle_with_attr(
}
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L2_MARIE_SHAPE_GEOM_H
#define PROTOTYPE1_SRC_L2_MARIE_SHAPE_GEOM_H
#pragma once
#include "../../../gen/l1/VecAndSpan_vec2.h"
#include "../../../gen/l1/VecAndSpan_U64.h"
@ -336,5 +335,3 @@ VecMarieHoleAndVertexId marie_polygon_hole_removal_triangulation(const VecVecs64
VecU64_drop(mono_polygon_triangulation);
return back_translated_triangulation;
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L2_MARIE_TEXTURE_PROCESSING_H
#define PROTOTYPE1_SRC_L2_MARIE_TEXTURE_PROCESSING_H
#pragma once
#include "../../../gen/l1/pixel_masses.h"
#include "rasterization.h"
@ -93,5 +92,3 @@ void TextureDataR8G8B8A8_triangle_set_color_cvec4(TextureDataR8G8B8A8* self, cve
(FnMarieRasterizerCallback){.fn = TextureDataR8G8B8A8_draw_triangle_of_one_color_h_draw_guest,
.guest = &aboba});
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef PROTOTYPE1_SRC_L2_TESTS_R2_LIZA_COLLECTION_H
#define PROTOTYPE1_SRC_L2_TESTS_R2_LIZA_COLLECTION_H
#pragma once
#include "../../liza/instrument.h"
@ -280,6 +279,3 @@ BoxLizaInstrument BoxLizaInstrument_from_FMKeys(FMKeys obj) {
memcpy(mem, &obj, sizeof(FMKeys));
return (BoxLizaInstrument){.r = mem, .t = &LizaInstrument_Table_FMKeys};
}
#endif