this repo has no description

clang-format

authored by bernsteinbear.com and committed by

Max Bernstein f81b5c54 48e89116

+8 -6
+8 -6
runtime.c
··· 44 44 static ALWAYS_INLINE bool is_small_string(struct object* obj) { 45 45 return (((uword)obj) & kImmediateTagMask) == kSmallStringTag; 46 46 } 47 - #define mk_immediate_variant(tag) (struct object*)(((uword)(tag) << kImmediateTagBits) | kVariantTag) 47 + #define mk_immediate_variant(tag) \ 48 + (struct object*)(((uword)(tag) << kImmediateTagBits) | kVariantTag) 48 49 static ALWAYS_INLINE bool is_immediate_variant(struct object* obj) { 49 50 return ((uword)obj & kImmediateTagMask) == kVariantTag; 50 51 } ··· 188 189 // libc defines __attribute__ as an empty macro if the compiler is not GCC or 189 190 // GCC < 2. We know tcc has supported __attribute__(section(...)) for 20+ years 190 191 // so we can undefine it. 191 - // See tinycc-devel: https://lists.nongnu.org/archive/html/tinycc-devel/2018-04/msg00008.html 192 - // and my StackOverflow question: https://stackoverflow.com/q/78638571/569183 192 + // See tinycc-devel: 193 + // https://lists.nongnu.org/archive/html/tinycc-devel/2018-04/msg00008.html and 194 + // my StackOverflow question: https://stackoverflow.com/q/78638571/569183 193 195 #undef __attribute__ 194 196 #endif 195 197 ··· 763 765 // Put something in the const heap so that __start_const_heap and 764 766 // __stop_const_heap are defined by the linker. 765 767 #define CONST_HEAP const __attribute__((section("const_heap"))) 766 - CONST_HEAP __attribute__((used)) struct heap_string private_unused_const_heap = { 767 - .HEAD.tag = TAG_STRING, .size = 11, .data = "hello world" 768 - }; 768 + CONST_HEAP 769 + __attribute__((used)) struct heap_string private_unused_const_heap = { 770 + .HEAD.tag = TAG_STRING, .size = 11, .data = "hello world"};