diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-08-24 17:44:49 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-08-24 17:44:49 -0400 |
| commit | eadd5ac512aa9b9ac9d045cf402242c79ee4cb0b (patch) | |
| tree | f387337fa0648bb28be9ff2b8f0200b7fab14224 /src/stdlib | |
| parent | 41612254e459d321ed40945b1b77c0e8ee2a9550 (diff) | |
Remove vim modelines
Diffstat (limited to 'src/stdlib')
49 files changed, 0 insertions, 97 deletions
diff --git a/src/stdlib/bools.c b/src/stdlib/bools.c index 0231e21b..dc7b83b1 100644 --- a/src/stdlib/bools.c +++ b/src/stdlib/bools.c @@ -60,5 +60,3 @@ const TypeInfo_t Bool$info = { .is_none = Bool$is_none, }, }; - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/bools.h b/src/stdlib/bools.h index 3eac0f0d..52bd45a8 100644 --- a/src/stdlib/bools.h +++ b/src/stdlib/bools.h @@ -21,5 +21,3 @@ MACROLIKE Bool_t Bool$from_int8(Int8_t i) { return (i != 0); } MACROLIKE Bool_t Bool$from_byte(uint8_t b) { return (b != 0); } extern const TypeInfo_t Bool$info; - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/bytes.c b/src/stdlib/bytes.c index d4bd5ef6..db12e501 100644 --- a/src/stdlib/bytes.c +++ b/src/stdlib/bytes.c @@ -141,5 +141,3 @@ const TypeInfo_t Byte$info = { .as_text = Byte$as_text, }, }; - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/bytes.h b/src/stdlib/bytes.h index b5e352d0..f99e39ee 100644 --- a/src/stdlib/bytes.h +++ b/src/stdlib/bytes.h @@ -31,5 +31,3 @@ extern const TypeInfo_t Byte$info; Text_t Byte$hex(Byte_t byte, bool uppercase, bool prefix); bool Byte$get_bit(Byte_t x, Int_t bit_index); - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/c_strings.c b/src/stdlib/c_strings.c index b965f04b..e28e8c20 100644 --- a/src/stdlib/c_strings.c +++ b/src/stdlib/c_strings.c @@ -78,5 +78,3 @@ const TypeInfo_t CString$info = { .deserialize = CString$deserialize, }, }; - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/c_strings.h b/src/stdlib/c_strings.h index 4df5c3ac..d009c8bd 100644 --- a/src/stdlib/c_strings.h +++ b/src/stdlib/c_strings.h @@ -14,5 +14,3 @@ PUREFUNC bool CString$equal(const void *x, const void *y, const TypeInfo_t *type PUREFUNC uint64_t CString$hash(const void *str, const TypeInfo_t *type); extern const TypeInfo_t CString$info; - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/datatypes.h b/src/stdlib/datatypes.h index 5d016246..81ad8db2 100644 --- a/src/stdlib/datatypes.h +++ b/src/stdlib/datatypes.h @@ -121,5 +121,3 @@ typedef struct { } OptionalByte_t; #define NONE_BYTE ((OptionalByte_t){.is_none = true}) - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/enums.c b/src/stdlib/enums.c index 7f7c4284..b9b970fa 100644 --- a/src/stdlib/enums.c +++ b/src/stdlib/enums.c @@ -98,5 +98,3 @@ void Enum$deserialize(FILE *in, void *outval, List_t *pointers, const TypeInfo_t _deserialize(in, outval + value_offset(type), pointers, value.type); } } - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/enums.h b/src/stdlib/enums.h index 99a0f615..df6f7e88 100644 --- a/src/stdlib/enums.h +++ b/src/stdlib/enums.h @@ -36,5 +36,3 @@ void Enum$deserialize(FILE *in, void *outval, List_t *pointers, const TypeInfo_t .serialize = Enum$serialize, \ .deserialize = Enum$deserialize, \ } - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/files.c b/src/stdlib/files.c index 08023e0e..b8f493e3 100644 --- a/src/stdlib/files.c +++ b/src/stdlib/files.c @@ -309,5 +309,3 @@ int highlight_error(file_t *file, const char *start, const char *end, const char fflush(stderr); return printed; } - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/files.h b/src/stdlib/files.h index d3e5ebe8..ebece6f0 100644 --- a/src/stdlib/files.h +++ b/src/stdlib/files.h @@ -25,5 +25,3 @@ __attribute__((pure, nonnull)) const char *get_line(file_t *f, int64_t line_numb __attribute__((pure, nonnull)) const char *get_file_pos(file_t *f, const char *p); int highlight_error(file_t *file, const char *start, const char *end, const char *hl_color, int64_t context_lines, bool use_color); - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/functiontype.c b/src/stdlib/functiontype.c index a6e12798..3270e0ca 100644 --- a/src/stdlib/functiontype.c +++ b/src/stdlib/functiontype.c @@ -21,5 +21,3 @@ PUREFUNC bool Func$is_none(const void *obj, const TypeInfo_t *info) { (void)info; return *(void **)obj == NULL; } - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/functiontype.h b/src/stdlib/functiontype.h index 3169cfc9..ab0600be 100644 --- a/src/stdlib/functiontype.h +++ b/src/stdlib/functiontype.h @@ -35,5 +35,3 @@ PUREFUNC bool Func$is_none(const void *obj, const TypeInfo_t *); .tag = FunctionInfo, \ .FunctionInfo.type_str = typestr, \ .metamethods = Func$metamethods}) - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/integers.c b/src/stdlib/integers.c index 93095a70..082ca211 100644 --- a/src/stdlib/integers.c +++ b/src/stdlib/integers.c @@ -742,5 +742,3 @@ DEFINE_INT_TYPE(int32_t, Int32, INT32_MIN, INT32_MAX, CONSTFUNC) DEFINE_INT_TYPE(int16_t, Int16, INT16_MIN, INT16_MAX, CONSTFUNC) DEFINE_INT_TYPE(int8_t, Int8, INT8_MIN, INT8_MAX, CONSTFUNC) #undef DEFINE_INT_TYPE - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/integers.h b/src/stdlib/integers.h index a7249495..accc0166 100644 --- a/src/stdlib/integers.h +++ b/src/stdlib/integers.h @@ -391,5 +391,3 @@ MACROLIKE PUREFUNC Int8_t Int8$from_int16(Int16_t i16, bool truncate) { #ifdef __GNUC__ #pragma GCC diagnostic pop #endif - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/lists.c b/src/stdlib/lists.c index 24383609..bae79dfd 100644 --- a/src/stdlib/lists.c +++ b/src/stdlib/lists.c @@ -772,5 +772,3 @@ void List$deserialize(FILE *in, void *obj, List_t *pointers, const TypeInfo_t *t } *(List_t *)obj = list; } - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/lists.h b/src/stdlib/lists.h index afda3d74..33279566 100644 --- a/src/stdlib/lists.h +++ b/src/stdlib/lists.h @@ -200,5 +200,3 @@ void List$deserialize(FILE *in, void *obj, List_t *pointers, const TypeInfo_t *t .tag = ListInfo, \ .ListInfo.item = item_info, \ .metamethods = List$metamethods}) - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/memory.c b/src/stdlib/memory.c index 90e14261..65d0fbc6 100644 --- a/src/stdlib/memory.c +++ b/src/stdlib/memory.c @@ -31,5 +31,3 @@ const TypeInfo_t Memory$info = { .deserialize = cannot_deserialize, }, }; - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/memory.h b/src/stdlib/memory.h index e03d5931..56be103e 100644 --- a/src/stdlib/memory.h +++ b/src/stdlib/memory.h @@ -9,5 +9,3 @@ extern const TypeInfo_t Memory$info; Text_t Memory$as_text(const void *p, bool colorize, const TypeInfo_t *type); - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/metamethods.c b/src/stdlib/metamethods.c index ea06d20b..6161918c 100644 --- a/src/stdlib/metamethods.c +++ b/src/stdlib/metamethods.c @@ -103,5 +103,3 @@ void cannot_deserialize(FILE *in, void *obj, List_t *pointers, const TypeInfo_t Text_t typestr = generic_as_text(NULL, false, type); fail("Values of type ", typestr, " cannot be serialized or deserialized!"); } - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/metamethods.h b/src/stdlib/metamethods.h index eda2230e..18598920 100644 --- a/src/stdlib/metamethods.h +++ b/src/stdlib/metamethods.h @@ -18,5 +18,3 @@ void generic_deserialize(List_t bytes, void *outval, const TypeInfo_t *type); int generic_print(const void *obj, bool colorize, const TypeInfo_t *type); void cannot_serialize(const void *, FILE *, Table_t *, const TypeInfo_t *type); void cannot_deserialize(FILE *, void *, List_t *, const TypeInfo_t *type); - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/nums.c b/src/stdlib/nums.c index 05ed14a8..55131cfd 100644 --- a/src/stdlib/nums.c +++ b/src/stdlib/nums.c @@ -259,5 +259,3 @@ const TypeInfo_t Num32$info = { .is_none = Num32$is_none, }, }; - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/nums.h b/src/stdlib/nums.h index 6e6e1431..b73b0dc5 100644 --- a/src/stdlib/nums.h +++ b/src/stdlib/nums.h @@ -129,5 +129,3 @@ MACROLIKE CONSTFUNC float Num32$from_int8(Int8_t i) { return (float)i; } MACROLIKE CONSTFUNC float Num32$from_byte(Byte_t i) { return (float)i; } extern const TypeInfo_t Num32$info; - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/optionals.c b/src/stdlib/optionals.c index a6f943ae..e9184e4d 100644 --- a/src/stdlib/optionals.c +++ b/src/stdlib/optionals.c @@ -73,5 +73,3 @@ void Optional$deserialize(FILE *in, void *outval, List_t *pointers, const TypeIn else memset(outval, 0, (size_t)type->size); } } - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1 diff --git a/src/stdlib/optionals.h b/src/stdlib/optionals.h index 77ce6db4..1a50007f 100644 --- a/src/stdlib/optionals.h +++ b/src/stdlib/optionals.h @@ -41,5 +41,3 @@ void Optional$deserialize(FILE *in, void *outval, List_t *pointers, const TypeIn .tag = OptionalInfo, \ .OptionalInfo.type = t, \ .metamethods = Optional$metamethods}) - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/paths.c b/src/stdlib/paths.c index efe9f7ad..66f9eaa1 100644 --- a/src/stdlib/paths.c +++ b/src/stdlib/paths.c @@ -825,5 +825,3 @@ const TypeInfo_t PathType$info = { .tags = ((NamedType_t[3]){{.name = "Relative"}, {.name = "Absolute"}, {.name = "Home"}}), }, }; - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/paths.h b/src/stdlib/paths.h index 7f0d8830..62deaf75 100644 --- a/src/stdlib/paths.h +++ b/src/stdlib/paths.h @@ -70,5 +70,3 @@ void Path$deserialize(FILE *in, void *obj, List_t *pointers, const TypeInfo_t *t extern const TypeInfo_t Path$info; extern const TypeInfo_t PathType$info; - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/pointers.c b/src/stdlib/pointers.c index e94ede6d..13e1b2ed 100644 --- a/src/stdlib/pointers.c +++ b/src/stdlib/pointers.c @@ -120,5 +120,3 @@ void Pointer$deserialize(FILE *in, void *outval, List_t *pointers, const TypeInf *(void **)outval = *(void **)(pointers->data + (id - 1) * pointers->stride); } } - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/pointers.h b/src/stdlib/pointers.h index 522a97be..0c62e18c 100644 --- a/src/stdlib/pointers.h +++ b/src/stdlib/pointers.h @@ -40,5 +40,3 @@ void Pointer$deserialize(FILE *in, void *outval, List_t *pointers, const TypeInf .tag = PointerInfo, \ .PointerInfo = {.sigil = sigil_expr, .pointed = pointed_info}, \ .metamethods = Pointer$metamethods}) - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/print.c b/src/stdlib/print.c index d246c9c3..5f96c2a5 100644 --- a/src/stdlib/print.c +++ b/src/stdlib/print.c @@ -246,5 +246,3 @@ FILE *gc_memory_stream(char **buf, size_t *size) { #else #error "This platform doesn't support fopencookie() or funopen()!" #endif - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/print.h b/src/stdlib/print.h index c7e59f8b..eba1c9d9 100644 --- a/src/stdlib/print.h +++ b/src/stdlib/print.h @@ -164,5 +164,3 @@ FILE *gc_memory_stream(char **buf, size_t *size); fprint(stderr, "\033[31;1m", __VA_ARGS__, "\033[m"); \ exit(EXIT_FAILURE); \ }) - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/simpleparse.c b/src/stdlib/simpleparse.c index 3929c32b..73c0714f 100644 --- a/src/stdlib/simpleparse.c +++ b/src/stdlib/simpleparse.c @@ -128,5 +128,3 @@ const char *simpleparse(const char *str, int n, parse_type_e types[n], void *des } return NULL; } - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/simpleparse.h b/src/stdlib/simpleparse.h index d35a8b3b..6435807f 100644 --- a/src/stdlib/simpleparse.h +++ b/src/stdlib/simpleparse.h @@ -60,5 +60,3 @@ typedef struct { }) const char *simpleparse(const char *str, int n, parse_type_e types[n], void *destinations[n]); - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/siphash-internals.h b/src/stdlib/siphash-internals.h index c8ec1142..3ad1d789 100644 --- a/src/stdlib/siphash-internals.h +++ b/src/stdlib/siphash-internals.h @@ -123,5 +123,3 @@ MACROLIKE uint64_t siphashfinish(siphash *sh, const uint8_t *src, size_t src_sz) } return siphashfinish_last_part(sh, t.u64); } - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/siphash.c b/src/stdlib/siphash.c index 9af845e7..bcf61b34 100644 --- a/src/stdlib/siphash.c +++ b/src/stdlib/siphash.c @@ -81,5 +81,3 @@ PUREFUNC public uint64_t siphash24(const uint8_t *src, size_t src_sz) { return siphashfinish(&sh, (uint8_t *)in, src_sz); } } - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/siphash.h b/src/stdlib/siphash.h index 3dbef0fd..98f1a6a1 100644 --- a/src/stdlib/siphash.h +++ b/src/stdlib/siphash.h @@ -11,5 +11,3 @@ extern uint64_t TOMO_HASH_KEY[2]; PUREFUNC uint64_t siphash24(const uint8_t *src, size_t src_sz); - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/stacktrace.c b/src/stdlib/stacktrace.c index 9f01a4bf..2a54125c 100644 --- a/src/stdlib/stacktrace.c +++ b/src/stdlib/stacktrace.c @@ -127,5 +127,3 @@ void print_stacktrace(FILE *out, int offset) { } free(strings); } - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/stdlib.c b/src/stdlib/stdlib.c index 411ce300..17b5c72c 100644 --- a/src/stdlib/stdlib.c +++ b/src/stdlib/stdlib.c @@ -619,5 +619,3 @@ OptionalText_t getenv_text(Text_t name) { public void setenv_text(Text_t name, Text_t value) { setenv(Text$as_c_string(name), Text$as_c_string(value), 1); } - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/stdlib.h b/src/stdlib/stdlib.h index c676beb1..d68e6ddb 100644 --- a/src/stdlib/stdlib.h +++ b/src/stdlib/stdlib.h @@ -99,5 +99,3 @@ bool pop_flag(char **argv, int *i, const char *flag, Text_t *result); void sleep_num(double seconds); OptionalText_t getenv_text(Text_t name); void setenv_text(Text_t name, Text_t value); - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/structs.c b/src/stdlib/structs.c index d2300b74..b08d7967 100644 --- a/src/stdlib/structs.c +++ b/src/stdlib/structs.c @@ -215,5 +215,3 @@ void Struct$deserialize(FILE *in, void *outval, List_t *pointers, const TypeInfo } } } - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/structs.h b/src/stdlib/structs.h index 03c051ec..368a670a 100644 --- a/src/stdlib/structs.h +++ b/src/stdlib/structs.h @@ -38,5 +38,3 @@ void Struct$deserialize(FILE *in, void *outval, List_t *pointers, const TypeInfo .serialize = Struct$serialize, \ .deserialize = Struct$deserialize, \ } - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/tables.c b/src/stdlib/tables.c index 781da415..fabdad4f 100644 --- a/src/stdlib/tables.c +++ b/src/stdlib/tables.c @@ -763,5 +763,3 @@ void Table$deserialize(FILE *in, void *outval, List_t *pointers, const TypeInfo_ #ifdef __GNUC__ #pragma GCC diagnostic pop #endif - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1 diff --git a/src/stdlib/tables.h b/src/stdlib/tables.h index 65f35060..4d719ed5 100644 --- a/src/stdlib/tables.h +++ b/src/stdlib/tables.h @@ -157,5 +157,3 @@ extern const TypeInfo_t CStrToVoidStarTable; .TableInfo.key = item_info, \ .TableInfo.value = &Void$info, \ .metamethods = Table$metamethods}) - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1 diff --git a/src/stdlib/text.c b/src/stdlib/text.c index aad3fd76..7f771b14 100644 --- a/src/stdlib/text.c +++ b/src/stdlib/text.c @@ -1764,5 +1764,3 @@ const TypeInfo_t Text$info = { .TextInfo = {.lang = "Text"}, .metamethods = Text$metamethods, }; - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/text.h b/src/stdlib/text.h index 6bedcb60..f31ee05c 100644 --- a/src/stdlib/text.h +++ b/src/stdlib/text.h @@ -108,5 +108,3 @@ extern Text_t EMPTY_TEXT; .serialize = Text$serialize, \ .deserialize = Text$deserialize, \ } - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/tomo.h b/src/stdlib/tomo.h index d0463409..feeedf47 100644 --- a/src/stdlib/tomo.h +++ b/src/stdlib/tomo.h @@ -30,5 +30,3 @@ #include "tables.h" #include "text.h" #include "types.h" - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/types.c b/src/stdlib/types.c index e64195fe..e52fd39b 100644 --- a/src/stdlib/types.c +++ b/src/stdlib/types.c @@ -19,5 +19,3 @@ public const TypeInfo_t Void$info = {.size = 0, .align = 0, .tag = StructInfo}; public const TypeInfo_t Abort$info = {.size = 0, .align = 0, .tag = StructInfo}; - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/types.h b/src/stdlib/types.h index a6509183..c8e8038d 100644 --- a/src/stdlib/types.h +++ b/src/stdlib/types.h @@ -113,4 +113,3 @@ Text_t Type$as_text(const void *typeinfo, bool colorize, const TypeInfo_t *type) }; \ }; \ } name -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 diff --git a/src/stdlib/util.h b/src/stdlib/util.h index 819cecd9..a789c5f0 100644 --- a/src/stdlib/util.h +++ b/src/stdlib/util.h @@ -72,5 +72,3 @@ #define MACROLIKE extern inline __attribute__((gnu_inline, always_inline)) #endif #endif - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 |
