diff --git a/src/magick_wand.zig b/src/magick_wand.zig index 426dc06..63c9437 100644 --- a/src/magick_wand.zig +++ b/src/magick_wand.zig @@ -3459,32 +3459,32 @@ pub const __GNUC_VA_LIST = 1; pub const __BIGGEST_ALIGNMENT__ = 16; pub const EXIT_SUCCESS = 0; pub const _IO_USER_LOCK = 32768; -pub const __INT64_FMTd__ = c"ld"; +pub const __INT64_FMTd__ = "ld"; pub const __STDC_VERSION__ = c_long(201112); pub const __SIZEOF_FLOAT__ = 4; pub const MagickSignature = c_ulong(2880220587); -pub const __INT_LEAST32_FMTi__ = c"i"; +pub const __INT_LEAST32_FMTi__ = "i"; pub const MagickLibInterfaceOldest = 3; -pub const __INT_LEAST8_FMTi__ = c"hhi"; +pub const __INT_LEAST8_FMTi__ = "hhi"; pub const __LDBL_EPSILON__ = 0.000000; pub const __LZCNT__ = 1; pub const MaxTextExtent = 2053; pub const __STDC_UTF_32__ = 1; -pub const __INT_LEAST32_FMTd__ = c"d"; +pub const __INT_LEAST32_FMTd__ = "d"; pub const __INVPCID__ = 1; pub const __SIG_ATOMIC_WIDTH__ = 32; -pub const __FD_ZERO_STOS = c"stosq"; -pub const __UINT_FAST64_FMTX__ = c"lX"; +pub const __FD_ZERO_STOS = "stosq"; +pub const __UINT_FAST64_FMTX__ = "lX"; pub const __GCC_ATOMIC_LLONG_LOCK_FREE = 2; pub const DrawGetException = MagickDrawGetException; -pub const __clang_version__ = c"8.0.0 (tags/RELEASE_800/final)"; -pub const __UINT_LEAST8_FMTo__ = c"hho"; +pub const __clang_version__ = "8.0.0 (tags/RELEASE_800/final)"; +pub const __UINT_LEAST8_FMTo__ = "hho"; pub const __SIZEOF_DOUBLE__ = 8; -pub const __INTMAX_FMTd__ = c"ld"; +pub const __INTMAX_FMTd__ = "ld"; pub const __HAVE_DISTINCT_FLOAT16 = __HAVE_FLOAT16; pub const __CLANG_ATOMIC_CHAR_LOCK_FREE = 2; pub const LITTLE_ENDIAN = __LITTLE_ENDIAN; -pub const __INT_LEAST16_FMTi__ = c"hi"; +pub const __INT_LEAST16_FMTi__ = "hi"; pub const __GCC_ATOMIC_SHORT_LOCK_FREE = 2; pub const MAGICK_OFF_F = MAGICK_INT64_F; pub const _STDLIB_H = 1; @@ -3494,7 +3494,7 @@ pub const __MMX__ = 1; pub const __HAVE_FLOAT64 = 1; pub const __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 = 1; pub const BYTE_ORDER = __BYTE_ORDER; -pub const __SIZE_FMTX__ = c"lX"; +pub const __SIZE_FMTX__ = "lX"; pub const __ID_T_TYPE = __U32_TYPE; pub const _THREAD_SHARED_TYPES_H = 1; pub const MinBlobExtent = c_long(32768); @@ -3510,20 +3510,20 @@ pub const __STDC_IEC_559_COMPLEX__ = 1; pub const __USE_MISC = 1; pub const __FSBLKCNT64_T_TYPE = __UQUAD_TYPE; pub const __SIZEOF_PTHREAD_ATTR_T = 56; -pub const __PTRDIFF_FMTd__ = c"ld"; +pub const __PTRDIFF_FMTd__ = "ld"; pub const __DBL_MIN_EXP__ = -1021; -pub const MAGICK_UINT32_F = c""; +pub const MAGICK_UINT32_F = ""; pub const __lldiv_t_defined = 1; pub const __HAVE_FLOAT32X = 1; pub const __FLT_EVAL_METHOD__ = 0; pub const __USECONDS_T_TYPE = __U32_TYPE; pub const __SSE_MATH__ = 1; pub const __PID_T_TYPE = __S32_TYPE; -pub const __UINT_FAST8_FMTo__ = c"hho"; +pub const __UINT_FAST8_FMTo__ = "hho"; pub const __UINT_LEAST64_MAX__ = c_ulong(18446744073709551615); pub const SignatureSize = 64; pub const _ALLOCA_H = 1; -pub const __UINT_LEAST64_FMTx__ = c"lx"; +pub const __UINT_LEAST64_FMTx__ = "lx"; pub const __INT8_MAX__ = 127; pub const __NLINK_T_TYPE = __SYSCALL_ULONG_TYPE; pub const __DBL_HAS_DENORM__ = 1; @@ -3535,7 +3535,7 @@ pub const __DBL_DECIMAL_DIG__ = 17; pub const __XSAVEC__ = 1; pub const __SIZEOF_SHORT__ = 2; pub const ____FILE_defined = 1; -pub const __UINT16_FMTX__ = c"hX"; +pub const __UINT16_FMTX__ = "hX"; pub const __UINT_FAST16_MAX__ = 65535; pub const __PTHREAD_MUTEX_HAVE_PREV = 1; pub const __timeval_defined = 1; @@ -3561,7 +3561,7 @@ pub const __LONG_MAX__ = c_long(9223372036854775807); pub const __STDC_HOSTED__ = 1; pub const __pic__ = 2; pub const __PTRDIFF_WIDTH__ = 64; -pub const __INT_FAST16_FMTi__ = c"hi"; +pub const __INT_FAST16_FMTi__ = "hi"; pub const __INT_LEAST32_TYPE__ = int; pub const __SCHAR_MAX__ = 127; pub const __USE_POSIX2 = 1; @@ -3590,7 +3590,7 @@ pub const __SIG_ATOMIC_MAX__ = 2147483647; pub const __struct_FILE_defined = 1; pub const _IO_EOF_SEEN = 16; pub const __USE_ATFILE = 1; -pub const __UINT64_FMTX__ = c"lX"; +pub const __UINT64_FMTX__ = "lX"; pub const __WALL = 1073741824; pub const __UINT64_MAX__ = c_ulong(18446744073709551615); pub const __DBL_MANT_DIG__ = 53; @@ -3599,34 +3599,34 @@ pub const _____fpos_t_defined = 1; pub const __INT_LEAST32_MAX__ = 2147483647; pub const __DBL_DIG__ = 15; pub const __GLIBC_USE_DEPRECATED_SCANF = 0; -pub const MagickLogFilename = c"log.mgk"; +pub const MagickLogFilename = "log.mgk"; pub const __ATOMIC_ACQUIRE = 2; pub const __OPENCL_MEMORY_SCOPE_WORK_GROUP = 1; pub const __USE_ISOC95 = 1; pub const __FLT16_HAS_DENORM__ = 1; pub const __UID_T_TYPE = __U32_TYPE; -pub const __UINT_FAST16_FMTu__ = c"hu"; -pub const __INTPTR_FMTi__ = c"li"; -pub const __UINT_FAST8_FMTX__ = c"hhX"; +pub const __UINT_FAST16_FMTu__ = "hu"; +pub const __INTPTR_FMTi__ = "li"; +pub const __UINT_FAST8_FMTX__ = "hhX"; pub const __LITTLE_ENDIAN__ = 1; pub const __SSE__ = 1; pub const __FLT_HAS_QUIET_NAN__ = 1; pub const __SIZEOF_SIZE_T__ = 8; -pub const __UINT_LEAST16_FMTo__ = c"ho"; -pub const __UINT8_FMTo__ = c"hho"; +pub const __UINT_LEAST16_FMTo__ = "ho"; +pub const __UINT8_FMTo__ = "hho"; pub const MagickSizeType = magick_int64_t; pub const __HAVE_FLOAT32 = 1; -pub const __UINT_LEAST16_FMTx__ = c"hx"; +pub const __UINT_LEAST16_FMTx__ = "hx"; pub const __CLANG_ATOMIC_WCHAR_T_LOCK_FREE = 2; pub const MagickFalse = 0; -pub const __UINT_FAST16_FMTX__ = c"hX"; -pub const __UINT_FAST32_FMTx__ = c"x"; -pub const __VERSION__ = c"4.2.1 Compatible Clang 8.0.0 (tags/RELEASE_800/final)"; -pub const MagickQuantumDepth = c"Q16"; +pub const __UINT_FAST16_FMTX__ = "hX"; +pub const __UINT_FAST32_FMTx__ = "x"; +pub const __VERSION__ = "4.2.1 Compatible Clang 8.0.0 (tags/RELEASE_800/final)"; +pub const MagickQuantumDepth = "Q16"; pub const __UINTPTR_MAX__ = c_ulong(18446744073709551615); -pub const __UINT_FAST8_FMTu__ = c"hhu"; -pub const __UINT_LEAST8_FMTu__ = c"hhu"; -pub const __UINT_LEAST64_FMTo__ = c"lo"; +pub const __UINT_FAST8_FMTu__ = "hhu"; +pub const __UINT_LEAST8_FMTu__ = "hhu"; +pub const __UINT_LEAST64_FMTo__ = "lo"; pub const __clockid_t_defined = 1; pub const __UINT_LEAST8_MAX__ = 255; pub const OpaqueOpacity = c_ulong(0); @@ -3649,22 +3649,22 @@ pub const __code_model_small_ = 1; pub const linux = 1; pub const __SIZEOF_WINT_T__ = 4; pub const DestroyDrawingWand = MagickDestroyDrawingWand; -pub const __UINTMAX_FMTo__ = c"lo"; +pub const __UINTMAX_FMTo__ = "lo"; pub const __FLT_DIG__ = 6; -pub const __UINT_LEAST8_FMTX__ = c"hhX"; +pub const __UINT_LEAST8_FMTX__ = "hhX"; pub const __INT16_MAX__ = 32767; pub const __HAVE_FLOAT64X = 1; -pub const MagickReleaseDate = c"2019-06-15"; +pub const MagickReleaseDate = "2019-06-15"; pub const __HAVE_FLOAT16 = 0; pub const __WINT_UNSIGNED__ = 1; pub const __FLT_MAX_10_EXP__ = 38; -pub const MAGICK_UINTPTR_F = c"l"; +pub const MAGICK_UINTPTR_F = "l"; pub const _FEATURES_H = 1; pub const __CLANG_ATOMIC_POINTER_LOCK_FREE = 2; -pub const __UINTPTR_FMTX__ = c"lX"; -pub const __UINT_LEAST16_FMTu__ = c"hu"; +pub const __UINTPTR_FMTX__ = "lX"; +pub const __UINT_LEAST16_FMTu__ = "hu"; pub const __WINT_WIDTH__ = 32; -pub const MagickChangeDate = c"20190615"; +pub const MagickChangeDate = "20190615"; pub const __F16C__ = 1; pub const AreaResource = UndefinedResource; pub const __SHRT_MAX__ = 32767; @@ -3675,7 +3675,7 @@ pub const __POINTER_WIDTH__ = 64; pub const __PTRDIFF_MAX__ = c_long(9223372036854775807); pub const __tune_corei7__ = 1; pub const __FLT16_DIG__ = 3; -pub const __INT32_FMTd__ = c"d"; +pub const __INT32_FMTd__ = "d"; pub const __DBL_MIN__ = 0.000000; pub const __SIZEOF_LONG__ = 8; pub const __S32_TYPE = int; @@ -3686,7 +3686,7 @@ pub const __INT_FAST32_TYPE__ = int; pub const __TIME64_T_TYPE = __TIME_T_TYPE; pub const __W_CONTINUED = 65535; pub const __NO_INLINE__ = 1; -pub const __UINT_FAST32_FMTX__ = c"X"; +pub const __UINT_FAST32_FMTX__ = "X"; pub const _POSIX_SOURCE = 1; pub const __LITTLE_ENDIAN = 1234; pub const __HAVE_FLOAT128 = 0; @@ -3694,7 +3694,7 @@ pub const __gnu_linux__ = 1; pub const __INT_FAST32_MAX__ = 2147483647; pub const _BITS_PTHREADTYPES_COMMON_H = 1; pub const __corei7__ = 1; -pub const __UINTMAX_FMTu__ = c"lu"; +pub const __UINTMAX_FMTu__ = "lu"; pub const __BMI__ = 1; pub const __FILE_defined = 1; pub const CloneDrawingWand = MagickCloneDrawingWand; @@ -3714,7 +3714,7 @@ pub const _STRUCT_TIMESPEC = 1; pub const _BITS_STDINT_INTN_H = 1; pub const __FLT16_DECIMAL_DIG__ = 5; pub const __PRAGMA_REDEFINE_EXTNAME = 1; -pub const __INT_FAST8_FMTd__ = c"hhd"; +pub const __INT_FAST8_FMTd__ = "hhd"; pub const __KEY_T_TYPE = __S32_TYPE; pub const SEEK_SET = 0; pub const __INT32_TYPE__ = int; @@ -3723,14 +3723,14 @@ pub const __CPU_MASK_TYPE = __SYSCALL_ULONG_TYPE; pub const MagickFail = 0; pub const FOPEN_MAX = 16; pub const MAGICK_OPTIMIZE_FUNC = opt; -pub const MAGICK_INT64_F = c"l"; +pub const MAGICK_INT64_F = "l"; pub const __UINTMAX_WIDTH__ = 64; -pub const MAGICK_SSIZE_T_F = c"l"; +pub const MAGICK_SSIZE_T_F = "l"; pub const __PTHREAD_MUTEX_USE_UNION = 0; pub const __FLT_MIN__ = 0.000000; -pub const __INT64_FMTi__ = c"li"; -pub const __UINT_FAST64_FMTu__ = c"lu"; -pub const __INT8_FMTd__ = c"hhd"; +pub const __INT64_FMTi__ = "li"; +pub const __UINT_FAST64_FMTu__ = "lu"; +pub const __INT8_FMTd__ = "hhd"; pub const MagickLibVersion = 2301952; pub const __INT_FAST16_TYPE__ = short; pub const YCbCrColorspace = Rec601YCbCrColorspace; @@ -3739,38 +3739,38 @@ pub const __FLT_MAX_EXP__ = 128; pub const __XSAVE__ = 1; pub const __DBL_MAX_10_EXP__ = 308; pub const __LDBL_MIN__ = 0.000000; -pub const __INT_FAST64_FMTi__ = c"li"; -pub const __INT_LEAST8_FMTd__ = c"hhd"; +pub const __INT_FAST64_FMTi__ = "li"; +pub const __INT_LEAST8_FMTd__ = "hhd"; pub const __CLANG_ATOMIC_LLONG_LOCK_FREE = 2; pub const __FSFILCNT64_T_TYPE = __UQUAD_TYPE; pub const MAGICK_RANDOM_MAX = 4294967295; -pub const __UINT_LEAST32_FMTX__ = c"X"; +pub const __UINT_LEAST32_FMTX__ = "X"; pub const __PIC__ = 2; pub const __GID_T_TYPE = __U32_TYPE; -pub const MagickLibVersionText = c"1.3.32"; +pub const MagickLibVersionText = "1.3.32"; pub const __UINTMAX_MAX__ = c_ulong(18446744073709551615); -pub const __UINT_FAST16_FMTo__ = c"ho"; +pub const __UINT_FAST16_FMTo__ = "ho"; pub const _DEFAULT_SOURCE = 1; pub const __FD_SETSIZE = 1024; pub const __LDBL_DECIMAL_DIG__ = 21; -pub const __UINT_LEAST64_FMTX__ = c"lX"; +pub const __UINT_LEAST64_FMTX__ = "lX"; pub const __clang_minor__ = 0; pub const __LDBL_REDIR_DECL = name; pub const __OFF64_T_TYPE = __SQUAD_TYPE; pub const __SIZEOF_FLOAT128__ = 16; pub const __CLOCKID_T_TYPE = __S32_TYPE; -pub const __UINT_FAST64_FMTo__ = c"lo"; -pub const __SIZE_FMTx__ = c"lx"; +pub const __UINT_FAST64_FMTo__ = "lo"; +pub const __SIZE_FMTx__ = "lx"; pub const __DBL_MAX__ = 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878; pub const __DBL_EPSILON__ = 0.000000; -pub const __UINT64_FMTx__ = c"lx"; -pub const MAGICK_UINTMAX_F = c"l"; -pub const P_tmpdir = c"/tmp"; +pub const __UINT64_FMTx__ = "lx"; +pub const MAGICK_UINTMAX_F = "l"; +pub const P_tmpdir = "/tmp"; pub const __BLKCNT_T_TYPE = __SYSCALL_SLONG_TYPE; pub const __CHAR_BIT__ = 8; pub const __WCOREFLAG = 128; pub const SEEK_END = 2; -pub const __INT16_FMTi__ = c"hi"; +pub const __INT16_FMTi__ = "hi"; pub const __SLONG32_TYPE = int; pub const SEEK_CUR = 1; pub const _DEBUG = 1; @@ -3778,14 +3778,14 @@ pub const __GNUC_MINOR__ = 2; pub const __restrict_arr = __restrict; pub const __UINT_FAST32_MAX__ = c_uint(4294967295); pub const __RLIM_T_MATCHES_RLIM64_T = 1; -pub const __UINT8_FMTX__ = c"hhX"; +pub const __UINT8_FMTX__ = "hhX"; pub const NFDBITS = __NFDBITS; pub const __FLT_EPSILON__ = 0.000000; pub const __UINTPTR_WIDTH__ = 64; pub const MAGICK_PIXELS_BGRA = 1; pub const __llvm__ = 1; pub const __UINT_FAST64_MAX__ = c_ulong(18446744073709551615); -pub const __INT_FAST32_FMTi__ = c"i"; +pub const __INT_FAST32_FMTi__ = "i"; pub const __WNOTHREAD = 536870912; pub const __time_t_defined = 1; pub const __FLT_HAS_INFINITY__ = 1; @@ -3794,18 +3794,18 @@ pub const __DADDR_T_TYPE = __S32_TYPE; pub const __AES__ = 1; pub const NULL = if (@typeId(@typeOf(0)) == @import("builtin").TypeId.Pointer) @ptrCast([*c]void, 0) else if (@typeId(@typeOf(0)) == @import("builtin").TypeId.Int) @intToPtr([*c]void, 0) else ([*c]void)(0); pub const __OFF_T_TYPE = __SYSCALL_SLONG_TYPE; -pub const __UINT8_FMTx__ = c"hhx"; +pub const __UINT8_FMTx__ = "hhx"; pub const __INTMAX_C_SUFFIX__ = L; pub const __ORDER_LITTLE_ENDIAN__ = 1234; pub const __time64_t = __time_t; pub const MagickRationalType = double; pub const DrawClearException = MagickDrawClearException; pub const __GCC_ATOMIC_CHAR16_T_LOCK_FREE = 2; -pub const __INT16_FMTd__ = c"hd"; -pub const __UINT32_FMTX__ = c"X"; +pub const __INT16_FMTd__ = "hd"; +pub const __UINT32_FMTX__ = "X"; pub const __SUSECONDS_T_TYPE = __SYSCALL_SLONG_TYPE; pub const HasX11 = 1; -pub const MAGICK_INT32_F = c""; +pub const MAGICK_INT32_F = ""; pub const __PTHREAD_MUTEX_NUSERS_AFTER_KIND = 0; pub const __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1; pub const MagickPass = 1; @@ -3821,25 +3821,25 @@ pub const EXIT_FAILURE = 1; pub const __USE_POSIX = 1; pub const __BIT_TYPES_DEFINED__ = 1; pub const TransparentOpacity = MaxRGB; -pub const __SIZE_FMTo__ = c"lo"; +pub const __SIZE_FMTo__ = "lo"; pub const __DBL_HAS_QUIET_NAN__ = 1; pub const __PDP_ENDIAN = 3412; -pub const __INT_FAST8_FMTi__ = c"hhi"; -pub const __UINT_LEAST32_FMTo__ = c"o"; +pub const __INT_FAST8_FMTi__ = "hhi"; +pub const __UINT_LEAST32_FMTo__ = "o"; pub const __STDC_UTF_16__ = 1; pub const __UINT_LEAST32_MAX__ = c_uint(4294967295); pub const __ATOMIC_RELEASE = 3; -pub const __UINT_FAST16_FMTx__ = c"hx"; +pub const __UINT_FAST16_FMTx__ = "hx"; pub const __UINTMAX_C_SUFFIX__ = UL; pub const __FLT_MIN_EXP__ = -125; pub const __SIZEOF_LONG_DOUBLE__ = 16; -pub const __UINT_LEAST64_FMTu__ = c"lu"; +pub const __UINT_LEAST64_FMTu__ = "lu"; pub const __ldiv_t_defined = 1; pub const __GCC_ATOMIC_LONG_LOCK_FREE = 2; pub const __ORDER_PDP_ENDIAN__ = 3412; pub const __SIZEOF_PTHREAD_BARRIER_T = 32; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT = 0; -pub const __INT_FAST64_FMTd__ = c"ld"; +pub const __INT_FAST64_FMTd__ = "ld"; pub const FILENAME_MAX = 4096; pub const ExtendedUnsignedIntegralType = magick_uint64_t; pub const __CLANG_ATOMIC_LONG_LOCK_FREE = 2; @@ -3848,16 +3848,16 @@ pub const __INT16_TYPE__ = short; pub const __SSE2_MATH__ = 1; pub const __FLT_MANT_DIG__ = 24; pub const __GLIBC_USE_IEC_60559_TYPES_EXT = 0; -pub const __UINT_FAST64_FMTx__ = c"lx"; +pub const __UINT_FAST64_FMTx__ = "lx"; pub const __STDC__ = 1; pub const __HAVE_FLOAT64X_LONG_DOUBLE = 1; pub const __INT_FAST8_MAX__ = 127; -pub const __INTPTR_FMTd__ = c"ld"; +pub const __INTPTR_FMTd__ = "ld"; pub const __GNUC_PATCHLEVEL__ = 1; pub const __SIZE_WIDTH__ = 64; -pub const __UINT_LEAST8_FMTx__ = c"hhx"; +pub const __UINT_LEAST8_FMTx__ = "hhx"; pub const __MPX__ = 1; -pub const __INT_LEAST64_FMTi__ = c"li"; +pub const __INT_LEAST64_FMTi__ = "li"; pub const __HAVE_DISTINCT_FLOAT64 = 0; pub const __SSE4_2__ = 1; pub const __STDC_IEC_559__ = 1; @@ -3866,15 +3866,15 @@ pub const __INT_FAST16_MAX__ = 32767; pub const __USE_ISOC99 = 1; pub const __INTPTR_MAX__ = c_long(9223372036854775807); pub const __CLANG_ATOMIC_CHAR16_T_LOCK_FREE = 2; -pub const __UINT64_FMTu__ = c"lu"; +pub const __UINT64_FMTu__ = "lu"; pub const __have_pthread_attr_t = 1; pub const __BYTE_ORDER__ = __ORDER_LITTLE_ENDIAN__; pub const __SSE2__ = 1; pub const MaxMapDouble = 65535.000000; -pub const MAGICK_UINT64_F = c"l"; +pub const MAGICK_UINT64_F = "l"; pub const __INT_MAX__ = 2147483647; pub const __BLKSIZE_T_TYPE = __SYSCALL_SLONG_TYPE; -pub const __INTMAX_FMTi__ = c"li"; +pub const __INTMAX_FMTi__ = "li"; pub const __DBL_DENORM_MIN__ = 0.000000; pub const __clang_major__ = 8; pub const __FLT16_MANT_DIG__ = 11; @@ -3884,7 +3884,7 @@ pub const MaxRGBDouble = 65535.000000; pub const _POSIX_C_SOURCE = c_long(200809); pub const __FLT_DENORM_MIN__ = 0.000000; pub const __DBL_MAX_EXP__ = 1024; -pub const __INT8_FMTi__ = c"hhi"; +pub const __INT8_FMTi__ = "hhi"; pub const L_tmpnam = 20; pub const __BIG_ENDIAN = 4321; pub const __UINT_LEAST16_MAX__ = 65535; @@ -3898,17 +3898,17 @@ pub const __UINT_FAST8_MAX__ = 255; pub const __DBL_MIN_10_EXP__ = -307; pub const __GLIBC_USE_LIB_EXT2 = 0; pub const __SIZEOF_PTHREAD_MUTEX_T = 40; -pub const __UINT8_FMTu__ = c"hhu"; +pub const __UINT8_FMTu__ = "hhu"; pub const __OFF_T_MATCHES_OFF64_T = 1; pub const __RLIM64_T_TYPE = __UQUAD_TYPE; pub const __HAVE_FLOAT128X = 0; pub const __INT_FAST64_MAX__ = c_long(9223372036854775807); pub const __SSE3__ = 1; -pub const __UINT16_FMTu__ = c"hu"; +pub const __UINT16_FMTu__ = "hu"; pub const __ATOMIC_SEQ_CST = 5; -pub const __SIZE_FMTu__ = c"lu"; +pub const __SIZE_FMTu__ = "lu"; pub const __LDBL_MIN_EXP__ = -16381; -pub const __UINT_FAST32_FMTu__ = c"u"; +pub const __UINT_FAST32_FMTu__ = "u"; pub const DrawAllocateWand = MagickDrawAllocateWand; pub const __SSP_STRONG__ = 2; pub const __BYTE_ORDER = __LITTLE_ENDIAN; @@ -3925,12 +3925,12 @@ pub const __PCLMUL__ = 1; pub const __UINT8_MAX__ = 255; pub const __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 = 1; pub const _IOLBF = 1; -pub const __UINT32_FMTx__ = c"x"; -pub const __UINT16_FMTo__ = c"ho"; +pub const __UINT32_FMTx__ = "x"; +pub const __UINT16_FMTo__ = "ho"; pub const __POPCNT__ = 1; pub const __OPENCL_MEMORY_SCOPE_DEVICE = 2; pub const __SIZEOF_PTHREAD_CONDATTR_T = 4; -pub const __UINT32_FMTu__ = c"u"; +pub const __UINT32_FMTu__ = "u"; pub const WNOHANG = 1; pub const __SIZEOF_PTHREAD_COND_T = 48; pub const __SIZEOF_POINTER__ = 8; @@ -3939,10 +3939,10 @@ pub const __SIZE_MAX__ = c_ulong(18446744073709551615); pub const __unix = 1; pub const _BITS_UINTN_IDENTITY_H = 1; pub const __GLIBC_USE_IEC_60559_BFP_EXT = 0; -pub const MagickPackageName = c"GraphicsMagick"; -pub const __INT_FAST16_FMTd__ = c"hd"; +pub const MagickPackageName = "GraphicsMagick"; +pub const __INT_FAST16_FMTd__ = "hd"; pub const unix = 1; -pub const __UINT_LEAST32_FMTu__ = c"u"; +pub const __UINT_LEAST32_FMTu__ = "u"; pub const __FLT_MAX__ = 340282346999999984391321947108527833088.000000; pub const __corei7 = 1; pub const BUFSIZ = 8192; @@ -3954,21 +3954,21 @@ pub const __unix__ = 1; pub const __x86_64__ = 1; pub const __LDBL_HAS_INFINITY__ = 1; pub const __WORDSIZE_TIME64_COMPAT32 = 1; -pub const __UINTMAX_FMTx__ = c"lx"; +pub const __UINTMAX_FMTx__ = "lx"; pub const __UINT64_C_SUFFIX__ = UL; pub const __GNU_LIBRARY__ = 6; pub const __INT_LEAST16_MAX__ = 32767; pub const __FLT_MIN_10_EXP__ = -37; pub const __clock_t_defined = 1; -pub const __UINT32_FMTo__ = c"o"; -pub const __UINTPTR_FMTo__ = c"lo"; +pub const __UINT32_FMTo__ = "o"; +pub const __UINTPTR_FMTo__ = "lo"; pub const _SYS_SELECT_H = 1; pub const MaxColormapSize = c_uint(65536); -pub const __INT_LEAST16_FMTd__ = c"hd"; -pub const __UINTPTR_FMTx__ = c"lx"; +pub const __INT_LEAST16_FMTd__ = "hd"; +pub const __UINTPTR_FMTx__ = "lx"; pub const __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 = 1; pub const _IONBF = 2; -pub const __INT_LEAST64_FMTd__ = c"ld"; +pub const __INT_LEAST64_FMTd__ = "ld"; pub const _SYS_TYPES_H = 1; pub const __INT_LEAST16_TYPE__ = short; pub const __attribute_alloc_size__ = params; @@ -3988,24 +3988,24 @@ pub const __ADX__ = 1; pub const __LDBL_MAX_10_EXP__ = 4932; pub const L_ctermid = 9; pub const __SIZEOF_INT128__ = 16; -pub const __UINT_FAST8_FMTx__ = c"hhx"; +pub const __UINT_FAST8_FMTx__ = "hhx"; pub const __SIZEOF_PTHREAD_RWLOCK_T = 56; pub const __glibc_c99_flexarr_available = 1; pub const __linux = 1; pub const __sigset_t_defined = 1; -pub const __UINT16_FMTx__ = c"hx"; +pub const __UINT16_FMTx__ = "hx"; pub const MaxTreeDepth = 8; -pub const __UINTPTR_FMTu__ = c"lu"; -pub const __UINT_LEAST16_FMTX__ = c"hX"; +pub const __UINTPTR_FMTu__ = "lu"; +pub const __UINT_LEAST16_FMTX__ = "hX"; pub const __SIZEOF_PTHREAD_MUTEXATTR_T = 4; pub const __CLFLUSHOPT__ = 1; pub const __amd64__ = 1; -pub const __UINT_FAST32_FMTo__ = c"o"; +pub const __UINT_FAST32_FMTo__ = "o"; pub const __linux__ = 1; pub const __clang__ = 1; pub const __LP64__ = 1; pub const __SYSCALL_WORDSIZE = 64; -pub const __PTRDIFF_FMTi__ = c"li"; +pub const __PTRDIFF_FMTi__ = "li"; pub const __SSE4_1__ = 1; pub const __LDBL_DIG__ = 18; pub const __GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2; @@ -4014,8 +4014,8 @@ pub const DefaultResizeFilter = LanczosFilter; pub const WCONTINUED = 8; pub const ReplaceCompositeOp = CopyCompositeOp; pub const __XSAVEOPT__ = 1; -pub const __UINT64_FMTo__ = c"lo"; -pub const __INT_FAST32_FMTd__ = c"d"; +pub const __UINT64_FMTo__ = "lo"; +pub const __INT_FAST32_FMTd__ = "d"; pub const __HAVE_DISTINCT_FLOAT128X = __HAVE_FLOAT128X; pub const _BITS_PTHREADTYPES_ARCH_H = 1; pub const BIG_ENDIAN = __BIG_ENDIAN; @@ -4031,25 +4031,25 @@ pub const __GLIBC__ = 2; pub const WUNTRACED = 2; pub const DefaultThumbnailFilter = BoxFilter; pub const __INTMAX_MAX__ = c_long(9223372036854775807); -pub const __UINT_LEAST32_FMTx__ = c"x"; +pub const __UINT_LEAST32_FMTx__ = "x"; pub const __WORDSIZE = 64; pub const MagickUnsignedType = magick_uint64_t; pub const __WCHAR_MAX__ = 2147483647; pub const __INT64_MAX__ = c_long(9223372036854775807); pub const WSTOPPED = 2; -pub const MAGICK_SIZE_T_F = c"l"; +pub const MAGICK_SIZE_T_F = "l"; pub const __CLANG_ATOMIC_CHAR32_T_LOCK_FREE = 2; -pub const MagickCopyright = c"Copyright (C) 2002-2019 GraphicsMagick Group.\nAdditional copyrights and licenses apply to this software.\nSee http://www.GraphicsMagick.org/www/Copyright.html for details."; +pub const MagickCopyright = "Copyright (C) 2002-2019 GraphicsMagick Group.\nAdditional copyrights and licenses apply to this software.\nSee http://www.GraphicsMagick.org/www/Copyright.html for details."; pub const __INT_LEAST64_MAX__ = c_long(9223372036854775807); pub const WNOWAIT = 16777216; -pub const __UINTMAX_FMTX__ = c"lX"; +pub const __UINTMAX_FMTX__ = "lX"; pub const __OPENCL_MEMORY_SCOPE_WORK_ITEM = 0; pub const __FLT_HAS_DENORM__ = 1; pub const __DECIMAL_DIG__ = __LDBL_DECIMAL_DIG__; pub const __SYSCALL_SLONG_TYPE = __SLONGWORD_TYPE; pub const __WCLONE = 2147483648; pub const __DEV_T_TYPE = __UQUAD_TYPE; -pub const __INT32_FMTi__ = c"i"; +pub const __INT32_FMTi__ = "i"; pub const __DBL_HAS_INFINITY__ = 1; pub const QuantumDepth = 16; pub const __FINITE_MATH_ONLY__ = 0; diff --git a/src/main.zig b/src/main.zig index 66f9cce..2642ddc 100644 --- a/src/main.zig +++ b/src/main.zig @@ -23,7 +23,7 @@ fn wrapInCmdList(allocator: *std.mem.Allocator, cmd: langs.Command) !langs.Comma } pub fn doRepl(allocator: *std.mem.Allocator, args_it: var) !void { - var stdout_file = try std.io.getStdOut(); + var stdout_file = std.io.getStdOut(); const stdout = &stdout_file.outStream().stream; const scri_path = try (args_it.next(allocator) orelse @panic("expected scri path")); @@ -108,7 +108,7 @@ pub fn doRepl(allocator: *std.mem.Allocator, args_it: var) !void { while (true) { lang.reset(); - var rd_line = readline.readline(c"> "); + var rd_line = readline.readline("> "); if (rd_line == null) { std.debug.warn("leaving from eof\n"); break; diff --git a/src/runner.zig b/src/runner.zig index 869f0f5..0252d4b 100644 --- a/src/runner.zig +++ b/src/runner.zig @@ -72,7 +72,7 @@ pub const Runner = struct { const path = try self.resolveArg(path_or_argidx); const resolved_path = try std.fs.path.resolve( self.allocator, - [_][]const u8{path}, + &[_][]const u8{path}, ); return resolved_path; @@ -185,7 +185,7 @@ pub const Runner = struct { try image.saveTo(out_path); var proc = try std.ChildProcess.init( - [_][]const u8{ program, out_path }, + &[_][]const u8{ program, out_path }, self.allocator, ); defer proc.deinit();