zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit e1ca6946bee3acf9cbdf6e5ea30fa2d55304365d (tree)
parent 7c2bde1f07f5e672bb2320c517568dab9edab652
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Tue, 27 Oct 2020 14:16:43 -0700

rename ZigClangFloatingLiteral_getValueAsApproximateDouble

Diffstat:
Msrc/clang.zig | 4++--
Msrc/zig_clang.cpp | 2+-
Msrc/zig_clang.h | 2+-
3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/clang.zig b/src/clang.zig @@ -434,8 +434,8 @@ pub const FieldDecl = opaque { pub const FileID = opaque {}; pub const FloatingLiteral = opaque { - pub const getValueAsApproximateDouble = ZigClangAPFloat_getValueAsApproximateDouble; - extern fn ZigClangAPFloat_getValueAsApproximateDouble(*const FloatingLiteral) f64; + pub const getValueAsApproximateDouble = ZigClangFloatingLiteral_getValueAsApproximateDouble; + extern fn ZigClangFloatingLiteral_getValueAsApproximateDouble(*const FloatingLiteral) f64; }; pub const ForStmt = opaque { diff --git a/src/zig_clang.cpp b/src/zig_clang.cpp @@ -2494,7 +2494,7 @@ unsigned ZigClangAPFloat_convertToHexString(const ZigClangAPFloat *self, char *D return casted->convertToHexString(DST, HexDigits, UpperCase, (llvm::APFloat::roundingMode)RM); } -double ZigClangAPFloat_getValueAsApproximateDouble(const ZigClangFloatingLiteral *self) { +double ZigClangFloatingLiteral_getValueAsApproximateDouble(const ZigClangFloatingLiteral *self) { auto casted = reinterpret_cast<const clang::FloatingLiteral *>(self); return casted->getValueAsApproximateDouble(); } diff --git a/src/zig_clang.h b/src/zig_clang.h @@ -1105,7 +1105,7 @@ ZIG_EXTERN_C struct ZigClangSourceLocation ZigClangDeclStmt_getBeginLoc(const st ZIG_EXTERN_C unsigned ZigClangAPFloat_convertToHexString(const struct ZigClangAPFloat *self, char *DST, unsigned HexDigits, bool UpperCase, enum ZigClangAPFloat_roundingMode RM); -ZIG_EXTERN_C double ZigClangAPFloat_getValueAsApproximateDouble(const ZigClangFloatingLiteral *self); +ZIG_EXTERN_C double ZigClangFloatingLiteral_getValueAsApproximateDouble(const ZigClangFloatingLiteral *self); ZIG_EXTERN_C enum ZigClangStringLiteral_StringKind ZigClangStringLiteral_getKind(const struct ZigClangStringLiteral *self); ZIG_EXTERN_C const char *ZigClangStringLiteral_getString_bytes_begin_size(const struct ZigClangStringLiteral *self,