| author | |
| committer | |
| log | 5774b48ceb7cdca7fbf3dd19fff4a0e42228473f |
| tree | 6ef19e7bdac14683594f473b406c339253b97d48 |
| parent | e485af94d404792f7f695fcbc7ee8f9fb986291b |
to be consistent with other c primitive type names4 files changed, 6 insertions(+), 6 deletions(-)
doc/langref.md+1-1| ... | ... | @@ -204,7 +204,7 @@ c_long long for ABI compatibility with C |
| 204 | 204 | c_ulong unsigned long for ABI compatibility with C |
| 205 | 205 | c_longlong long long for ABI compatibility with C |
| 206 | 206 | c_ulonglong unsigned long long for ABI compatibility with C |
| 207 | c_long_double long double for ABI compatibility with C | |
| 207 | c_longdouble long double for ABI compatibility with C | |
| 208 | 208 | c_void void for ABI compatibility with C |
| 209 | 209 | |
| 210 | 210 | f32 float 32-bit floating point |
src/all_types.hpp+1-1| ... | ... | @@ -1360,7 +1360,7 @@ struct CodeGen { |
| 1360 | 1360 | TypeTableEntry *entry_bool; |
| 1361 | 1361 | TypeTableEntry *entry_int[2][4]; // [signed,unsigned][8,16,32,64] |
| 1362 | 1362 | TypeTableEntry *entry_c_int[CIntTypeCount]; |
| 1363 | TypeTableEntry *entry_c_long_double; | |
| 1363 | TypeTableEntry *entry_c_longdouble; | |
| 1364 | 1364 | TypeTableEntry *entry_c_void; |
| 1365 | 1365 | TypeTableEntry *entry_u8; |
| 1366 | 1366 | TypeTableEntry *entry_u16; |
src/codegen.cpp+3-3| ... | ... | @@ -4250,14 +4250,14 @@ static void define_builtin_types(CodeGen *g) { |
| 4250 | 4250 | { |
| 4251 | 4251 | TypeTableEntry *entry = new_type_table_entry(TypeTableEntryIdFloat); |
| 4252 | 4252 | entry->type_ref = LLVMX86FP80Type(); |
| 4253 | buf_init_from_str(&entry->name, "c_long_double"); | |
| 4253 | buf_init_from_str(&entry->name, "c_longdouble"); | |
| 4254 | 4254 | entry->data.floating.bit_count = 80; |
| 4255 | 4255 | |
| 4256 | 4256 | uint64_t debug_size_in_bits = 8*LLVMStoreSizeOfType(g->target_data_ref, entry->type_ref); |
| 4257 | 4257 | entry->di_type = ZigLLVMCreateDebugBasicType(g->dbuilder, buf_ptr(&entry->name), |
| 4258 | 4258 | debug_size_in_bits, |
| 4259 | 4259 | ZigLLVMEncoding_DW_ATE_float()); |
| 4260 | g->builtin_types.entry_c_long_double = entry; | |
| 4260 | g->builtin_types.entry_c_longdouble = entry; | |
| 4261 | 4261 | g->primitive_type_table.put(&entry->name, entry); |
| 4262 | 4262 | } |
| 4263 | 4263 | { |
| ... | ... | @@ -4902,7 +4902,7 @@ static void get_c_type(CodeGen *g, TypeTableEntry *type_entry, Buf *out_buf) { |
| 4902 | 4902 | return; |
| 4903 | 4903 | } |
| 4904 | 4904 | } |
| 4905 | if (type_entry == g->builtin_types.entry_c_long_double) { | |
| 4905 | if (type_entry == g->builtin_types.entry_c_longdouble) { | |
| 4906 | 4906 | buf_init_from_str(out_buf, "long double"); |
| 4907 | 4907 | return; |
| 4908 | 4908 | } |
src/parseh.cpp+1-1| ... | ... | @@ -275,7 +275,7 @@ static TypeTableEntry *resolve_type_with_table(Context *c, const Type *ty, const |
| 275 | 275 | case BuiltinType::Double: |
| 276 | 276 | return c->codegen->builtin_types.entry_f64; |
| 277 | 277 | case BuiltinType::LongDouble: |
| 278 | return c->codegen->builtin_types.entry_c_long_double; | |
| 278 | return c->codegen->builtin_types.entry_c_longdouble; | |
| 279 | 279 | case BuiltinType::WChar_U: |
| 280 | 280 | case BuiltinType::Char16: |
| 281 | 281 | case BuiltinType::Char32: |