- PSI_STRUCTS="{\"$1\", {$psi_struct_members}}, $PSI_STRUCTS"
- ])
-
- AC_TYPE_INT8_T
- AC_CHECK_ALIGNOF(int8_t)
- AC_TYPE_UINT8_T
- AC_CHECK_ALIGNOF(uint8_t)
- AC_TYPE_INT16_T
- AC_CHECK_ALIGNOF(int16_t)
- AC_TYPE_UINT16_T
- AC_CHECK_ALIGNOF(uint16_t)
- AC_TYPE_INT32_T
- AC_CHECK_ALIGNOF(int32_t)
- AC_TYPE_UINT32_T
- AC_CHECK_ALIGNOF(uint32_t)
- AC_TYPE_INT64_T
- AC_CHECK_ALIGNOF(int64_t)
- AC_TYPE_UINT64_T
- AC_CHECK_ALIGNOF(uint64_t)
-
- PSI_TYPE(char, int)
- PSI_TYPE(short, int)
- PSI_TYPE(int, int)
- PSI_TYPE(long, int)
- PSI_TYPE(float)
- PSI_TYPE(double)
- PSI_TYPE(void *)
-
- dnl stdint.h
- PSI_TYPE(int_least8_t, int)
- PSI_TYPE(int_least16_t, int)
- PSI_TYPE(int_least32_t, int)
- PSI_TYPE(int_least64_t, int)
- PSI_TYPE(uint_least8_t, uint)
- PSI_TYPE(uint_least16_t, uint)
- PSI_TYPE(uint_least32_t, uint)
- PSI_TYPE(uint_least64_t, uint)
- PSI_TYPE(int_fast8_t, int)
- PSI_TYPE(int_fast16_t, int)
- PSI_TYPE(int_fast32_t, int)
- PSI_TYPE(int_fast64_t, int)
- PSI_TYPE(uint_fast8_t, uint)
- PSI_TYPE(uint_fast16_t, uint)
- PSI_TYPE(uint_fast32_t, uint)
- PSI_TYPE(uint_fast64_t, uint)
- PSI_TYPE(intptr_t, int)
- PSI_TYPE(uintptr_t, uint)
- PSI_TYPE(intmax_t, int)
- PSI_TYPE(uintmax_t, uint)
-
- PSI_CONST(INT8_MIN, int)
- PSI_CONST(INT8_MAX, int)
- PSI_CONST(UINT8_MAX, int)
- PSI_CONST(INT16_MIN, int)
- PSI_CONST(INT16_MAX, int)
- PSI_CONST(UINT16_MAX, int)
- PSI_CONST(INT32_MIN, int)
- PSI_CONST(INT32_MAX, int)
- PSI_CONST(UINT32_MAX, int)
- PSI_CONST(INT64_MIN, int)
- PSI_CONST(INT64_MAX, int)
- PSI_CONST(UINT64_MAX, int)
-
- PSI_CONST(INT_LEAST8_MIN, int)
- PSI_CONST(INT_LEAST8_MAX, int)
- PSI_CONST(UINT_LEAST8_MAX, int)
- PSI_CONST(INT_LEAST16_MIN, int)
- PSI_CONST(INT_LEAST16_MAX, int)
- PSI_CONST(UINT_LEAST16_MAX, int)
- PSI_CONST(INT_LEAST32_MIN, int)
- PSI_CONST(INT_LEAST32_MAX, int)
- PSI_CONST(UINT_LEAST32_MAX, int)
- PSI_CONST(INT_LEAST64_MIN, int)
- PSI_CONST(INT_LEAST64_MAX, int)
- PSI_CONST(UINT_LEAST64_MAX, int)
-
- PSI_CONST(INT_FAST8_MIN, int)
- PSI_CONST(INT_FAST8_MAX, int)
- PSI_CONST(UINT_FAST8_MAX, int)
- PSI_CONST(INT_FAST16_MIN, int)
- PSI_CONST(INT_FAST16_MAX, int)
- PSI_CONST(UINT_FAST16_MAX, int)
- PSI_CONST(INT_FAST32_MIN, int)
- PSI_CONST(INT_FAST32_MAX, int)
- PSI_CONST(UINT_FAST32_MAX, int)
- PSI_CONST(INT_FAST64_MIN, int)
- PSI_CONST(INT_FAST64_MAX, int)
- PSI_CONST(UINT_FAST64_MAX, int)
-
- PSI_CONST(INTPTR_MIN, int)
- PSI_CONST(INTPTR_MAX, int)
- PSI_CONST(UINTPTR_MAX, int)
- PSI_CONST(INTMAX_MIN, int)
- PSI_CONST(INTMAX_MAX, int)
- PSI_CONST(UINTMAX_MAX, int)
-
- dnl stddef.h
- PSI_TYPE(ptrdiff_t, int)
- PSI_CONST(PTRDIFF_MIN, int)
- PSI_CONST(PTRDIFF_MAX, int)
- PSI_TYPE(size_t, uint)
- PSI_CONST(SIZE_MAX, int)
- AC_CHECK_TYPE(wchar_t, [
- AX_CHECK_SIGN(wchar_t, psi_wchar_t=int, psi_wchar_t=uint)
- PSI_TYPE(wchar_t, $psi_wchar_t)
- PSI_CONST(WCHAR_MIN, int)
- PSI_CONST(WCHAR_MAX, int)
- ])
-
- dnl stdio.h
- PSI_CONST(BUFSIZ, int)
- PSI_CONST(_IOFBF, int)
- PSI_CONST(_IOLBF, int)
- PSI_CONST(_IONBF, int)
- PSI_CONST(SEEK_CUR, int)
- PSI_CONST(SEEK_END, int)
- PSI_CONST(SEEK_SET, int)
- PSI_CONST(FILENAME_MAX, int)
- PSI_CONST(FOPEN_MAX, int)
- PSI_CONST(TMP_MAX, int)
- PSI_CONST(EOF, int)
- PSI_CONST(P_tmpdir, string)
- PSI_CONST(L_ctermid, int)
- PSI_CONST(L_tmpnam, int)
- dnl stdlib.h
- PSI_CONST(EXIT_FAILURE, int)
- PSI_CONST(EXIT_SUCCESS, int)
- PSI_CONST(RAND_MAX, int)
- PSI_CONST(MB_CUR_MAX, int)
- dnl sys/stat.h
- PSI_STRUCT(stat, [
- [st_dev],
- [st_ino],
- [st_mode],
- [st_nlink],
- [st_uid],
- [st_gid],
- [st_rdev],
- [st_size],
- [st_atim], [st_atimespec],
- [st_mtim], [st_mtimespec],
- [st_ctim], [st_ctimespec],
- [st_birthtimespec],
- [st_blksize],
- [st_blocks],
- [st_flags],
- [st_gen]], [
- st_?tim*) psi_member_type="struct timespec" ;;
- ], sys/stat.h)
- PSI_CONST(S_IFMT, int, sys/stat.h)
- PSI_CONST(S_IFBLK, int, sys/stat.h)
- PSI_CONST(S_IFCHR, int, sys/stat.h)
- PSI_CONST(S_IFIFO, int, sys/stat.h)
- PSI_CONST(S_IFREG, int, sys/stat.h)
- PSI_CONST(S_IFDIR, int, sys/stat.h)
- PSI_CONST(S_IFLNK, int, sys/stat.h)
- PSI_CONST(S_IFSOCK, int, sys/stat.h)
- PSI_CONST(S_IRWXU, int, sys/stat.h)
- PSI_CONST(S_IRUSR, int, sys/stat.h)
- PSI_CONST(S_IWUSR, int, sys/stat.h)
- PSI_CONST(S_IXUSR, int, sys/stat.h)
- PSI_CONST(S_IRWXG, int, sys/stat.h)
- PSI_CONST(S_IRGRP, int, sys/stat.h)
- PSI_CONST(S_IWGRP, int, sys/stat.h)
- PSI_CONST(S_IXGRP, int, sys/stat.h)
- PSI_CONST(S_IRWXO, int, sys/stat.h)
- PSI_CONST(S_IROTH, int, sys/stat.h)
- PSI_CONST(S_IWOTH, int, sys/stat.h)
- PSI_CONST(S_IXOTH, int, sys/stat.h)
- PSI_CONST(S_ISUID, int, sys/stat.h)
- PSI_CONST(S_ISGID, int, sys/stat.h)
- PSI_CONST(UTIME_NOW, int, sys/stat.h)
- PSI_CONST(UTIME_OMIT, int, sys/stat.h)
- dnl sys/time.h
- PSI_CONST(ITIMER_REAL, int, sys/time.h)
- PSI_CONST(ITIMER_VIRTUAL, int, sys/time.h)
- PSI_CONST(ITIMER_PROF, int, sys/time.h)
- dnl sys/types.h
- PSI_TYPE(blkcnt_t, int)
- PSI_TYPE(blksize_t, int)
- PSI_TYPE(clock_t, int)
- PSI_TYPE(clockid_t, int)
- PSI_TYPE(dev_t, int)
- PSI_TYPE(fsblkcnt_t, uint)
- PSI_TYPE(fsfilcnt_t, uint)
- PSI_TYPE(gid_t, int)
- PSI_TYPE(id_t, int)
- PSI_TYPE(ino_t, uint)
- PSI_TYPE(key_t, int)
- PSI_TYPE(mode_t, int)
- PSI_TYPE(nlink_t, int)
- PSI_TYPE(off_t, int)
- PSI_TYPE(pid_t, int)
- PSI_TYPE(ssize_t, int)
- PSI_TYPE(suseconds_t, int)
- PSI_TYPE(time_t, int)
- PSI_TYPE(timer_t, int)
- PSI_TYPE(uid_t)
-
- dnl wchar.h
- AC_CHECK_TYPE(wint_t, [
- AX_CHECK_SIGN(wint_t, psi_wint_t=int, psi_wint_t=uint)
- PSI_TYPE(wint_t, $psi_wint_t, wchar.h)
- PSI_CONST(WINT_MIN, int, wchar.h)
- PSI_CONST(WINT_MAX, int, wchar.h)
- PSI_CONST(WEOF, int, wchar.h)
- ], [], [
- AC_INCLUDES_DEFAULT()
- #include <wchar.h>