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...@@ -204,7 +204,7 @@ c_long long for ABI compatibility with C
204c_ulong unsigned long for ABI compatibility with C204c_ulong unsigned long for ABI compatibility with C
205c_longlong long long for ABI compatibility with C205c_longlong long long for ABI compatibility with C
206c_ulonglong unsigned long long for ABI compatibility with C206c_ulonglong unsigned long long for ABI compatibility with C
207c_long_double long double for ABI compatibility with C207c_longdouble long double for ABI compatibility with C
208c_void void for ABI compatibility with C208c_void void for ABI compatibility with C
209209
210f32 float 32-bit floating point210f32 float 32-bit floating point
src/all_types.hpp+1-1
...@@ -1360,7 +1360,7 @@ struct CodeGen {...@@ -1360,7 +1360,7 @@ struct CodeGen {
1360 TypeTableEntry *entry_bool;1360 TypeTableEntry *entry_bool;
1361 TypeTableEntry *entry_int[2][4]; // [signed,unsigned][8,16,32,64]1361 TypeTableEntry *entry_int[2][4]; // [signed,unsigned][8,16,32,64]
1362 TypeTableEntry *entry_c_int[CIntTypeCount];1362 TypeTableEntry *entry_c_int[CIntTypeCount];
1363 TypeTableEntry *entry_c_long_double;1363 TypeTableEntry *entry_c_longdouble;
1364 TypeTableEntry *entry_c_void;1364 TypeTableEntry *entry_c_void;
1365 TypeTableEntry *entry_u8;1365 TypeTableEntry *entry_u8;
1366 TypeTableEntry *entry_u16;1366 TypeTableEntry *entry_u16;
src/codegen.cpp+3-3
...@@ -4250,14 +4250,14 @@ static void define_builtin_types(CodeGen *g) {...@@ -4250,14 +4250,14 @@ static void define_builtin_types(CodeGen *g) {
4250 {4250 {
4251 TypeTableEntry *entry = new_type_table_entry(TypeTableEntryIdFloat);4251 TypeTableEntry *entry = new_type_table_entry(TypeTableEntryIdFloat);
4252 entry->type_ref = LLVMX86FP80Type();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 entry->data.floating.bit_count = 80;4254 entry->data.floating.bit_count = 80;
42554255
4256 uint64_t debug_size_in_bits = 8*LLVMStoreSizeOfType(g->target_data_ref, entry->type_ref);4256 uint64_t debug_size_in_bits = 8*LLVMStoreSizeOfType(g->target_data_ref, entry->type_ref);
4257 entry->di_type = ZigLLVMCreateDebugBasicType(g->dbuilder, buf_ptr(&entry->name),4257 entry->di_type = ZigLLVMCreateDebugBasicType(g->dbuilder, buf_ptr(&entry->name),
4258 debug_size_in_bits,4258 debug_size_in_bits,
4259 ZigLLVMEncoding_DW_ATE_float());4259 ZigLLVMEncoding_DW_ATE_float());
4260 g->builtin_types.entry_c_long_double = entry;4260 g->builtin_types.entry_c_longdouble = entry;
4261 g->primitive_type_table.put(&entry->name, entry);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,7 +4902,7 @@ static void get_c_type(CodeGen *g, TypeTableEntry *type_entry, Buf *out_buf) {
4902 return;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 buf_init_from_str(out_buf, "long double");4906 buf_init_from_str(out_buf, "long double");
4907 return;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,7 +275,7 @@ static TypeTableEntry *resolve_type_with_table(Context *c, const Type *ty, const
275 case BuiltinType::Double:275 case BuiltinType::Double:
276 return c->codegen->builtin_types.entry_f64;276 return c->codegen->builtin_types.entry_f64;
277 case BuiltinType::LongDouble:277 case BuiltinType::LongDouble:
278 return c->codegen->builtin_types.entry_c_long_double;278 return c->codegen->builtin_types.entry_c_longdouble;
279 case BuiltinType::WChar_U:279 case BuiltinType::WChar_U:
280 case BuiltinType::Char16:280 case BuiltinType::Char16:
281 case BuiltinType::Char32:281 case BuiltinType::Char32: