1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
|
# This file is a part of Julia. License is MIT: https://julialang.org/license
# essential type definitions for interacting with C code
# (platform- or OS-dependent types are defined in c.jl)
"""
Cuchar
Equivalent to the native `unsigned char` c-type ([`UInt8`](@ref)).
"""
const Cuchar = UInt8
"""
Cshort
Equivalent to the native `signed short` c-type ([`Int16`](@ref)).
"""
const Cshort = Int16
"""
Cushort
Equivalent to the native `unsigned short` c-type ([`UInt16`](@ref)).
"""
const Cushort = UInt16
"""
Cint
Equivalent to the native `signed int` c-type ([`Int32`](@ref)).
"""
const Cint = Int32
"""
Cuint
Equivalent to the native `unsigned int` c-type ([`UInt32`](@ref)).
"""
const Cuint = UInt32
"""
Cptrdiff_t
Equivalent to the native `ptrdiff_t` c-type (`Int`).
"""
const Cptrdiff_t = Int
"""
Csize_t
Equivalent to the native `size_t` c-type (`UInt`).
"""
const Csize_t = UInt
"""
Cssize_t
Equivalent to the native `ssize_t` c-type.
"""
const Cssize_t = Int
"""
Cintmax_t
Equivalent to the native `intmax_t` c-type ([`Int64`](@ref)).
"""
const Cintmax_t = Int64
"""
Cuintmax_t
Equivalent to the native `uintmax_t` c-type ([`UInt64`](@ref)).
"""
const Cuintmax_t = UInt64
"""
Clonglong
Equivalent to the native `signed long long` c-type ([`Int64`](@ref)).
"""
const Clonglong = Int64
"""
Culonglong
Equivalent to the native `unsigned long long` c-type ([`UInt64`](@ref)).
"""
const Culonglong = UInt64
"""
Cfloat
Equivalent to the native `float` c-type ([`Float32`](@ref)).
"""
const Cfloat = Float32
"""
Cdouble
Equivalent to the native `double` c-type ([`Float64`](@ref)).
"""
const Cdouble = Float64
|