authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-05-07 19:51:44-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-05-07 19:51:44-04:00
log5774b48ceb7cdca7fbf3dd19fff4a0e42228473f
tree6ef19e7bdac14683594f473b406c339253b97d48
parente485af94d404792f7f695fcbc7ee8f9fb986291b

rename c_long_double to c_longdouble

to be consistent with other c primitive type names

4 files changed, 6 insertions(+), 6 deletions(-)

doc/langref.md+1-1
......@@ -204,7 +204,7 @@ c_long long for ABI compatibility with C
204204c_ulong unsigned long for ABI compatibility with C
205205c_longlong long long for ABI compatibility with C
206206c_ulonglong unsigned long long for ABI compatibility with C
207c_long_double long double for ABI compatibility with C
207c_longdouble long double for ABI compatibility with C
208208c_void void for ABI compatibility with C
209209
210210f32 float 32-bit floating point
src/all_types.hpp+1-1
......@@ -1360,7 +1360,7 @@ struct CodeGen {
13601360 TypeTableEntry *entry_bool;
13611361 TypeTableEntry *entry_int[2][4]; // [signed,unsigned][8,16,32,64]
13621362 TypeTableEntry *entry_c_int[CIntTypeCount];
1363 TypeTableEntry *entry_c_long_double;
1363 TypeTableEntry *entry_c_longdouble;
13641364 TypeTableEntry *entry_c_void;
13651365 TypeTableEntry *entry_u8;
13661366 TypeTableEntry *entry_u16;
src/codegen.cpp+3-3
......@@ -4250,14 +4250,14 @@ static void define_builtin_types(CodeGen *g) {
42504250 {
42514251 TypeTableEntry *entry = new_type_table_entry(TypeTableEntryIdFloat);
42524252 entry->type_ref = LLVMX86FP80Type();
4253 buf_init_from_str(&entry->name, "c_long_double");
4253 buf_init_from_str(&entry->name, "c_longdouble");
42544254 entry->data.floating.bit_count = 80;
42554255
42564256 uint64_t debug_size_in_bits = 8*LLVMStoreSizeOfType(g->target_data_ref, entry->type_ref);
42574257 entry->di_type = ZigLLVMCreateDebugBasicType(g->dbuilder, buf_ptr(&entry->name),
42584258 debug_size_in_bits,
42594259 ZigLLVMEncoding_DW_ATE_float());
4260 g->builtin_types.entry_c_long_double = entry;
4260 g->builtin_types.entry_c_longdouble = entry;
42614261 g->primitive_type_table.put(&entry->name, entry);
42624262 }
42634263 {
......@@ -4902,7 +4902,7 @@ static void get_c_type(CodeGen *g, TypeTableEntry *type_entry, Buf *out_buf) {
49024902 return;
49034903 }
49044904 }
4905 if (type_entry == g->builtin_types.entry_c_long_double) {
4905 if (type_entry == g->builtin_types.entry_c_longdouble) {
49064906 buf_init_from_str(out_buf, "long double");
49074907 return;
49084908 }
src/parseh.cpp+1-1
......@@ -275,7 +275,7 @@ static TypeTableEntry *resolve_type_with_table(Context *c, const Type *ty, const
275275 case BuiltinType::Double:
276276 return c->codegen->builtin_types.entry_f64;
277277 case BuiltinType::LongDouble:
278 return c->codegen->builtin_types.entry_c_long_double;
278 return c->codegen->builtin_types.entry_c_longdouble;
279279 case BuiltinType::WChar_U:
280280 case BuiltinType::Char16:
281281 case BuiltinType::Char32: