Skip to content
Snippets Groups Projects
Commit 078c0a1d authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

[machdep] update schema and manual machdeps

parent 88442b05
No related branches found
No related tags found
No related merge requests found
...@@ -98,9 +98,17 @@ cpp_arch_flags: ...@@ -98,9 +98,17 @@ cpp_arch_flags:
custom_defs: custom_defs:
description: | description: |
arbitrary text that will be reproduced verbatim in the generated builtin macros (and their definition) for the given architecture and
header compiler
type: string type: list
items:
type: object
name:
description: macro name
type: string
value:
description: actual value
type: string
eof: eof:
......
This diff is collapsed.
...@@ -13,35 +13,72 @@ char_is_unsigned: false ...@@ -13,35 +13,72 @@ char_is_unsigned: false
compiler: msvc compiler: msvc
cpp_arch_flags: cpp_arch_flags:
- -m64 - -m64
custom_defs: | has__builtin_va_list: false
#define _MSC_FULL_VER 160040219 int_fast8_t: signed char
#define _MSC_VER 1600 int_fast16_t: signed int
#undef __ptr64 int_fast32_t: signed int
#define __ptr64 int_fast64_t: signed long long
#undef __ptr32 intptr_t: signed long long
#define __ptr32 little_endian: true
#undef __unaligned nsig: '23'
#define __unaligned ptrdiff_t: long long
#undef __cdecl # NB: wasn't defined at all in old __fc_machdep.h
#define __cdecl sig_atomic_t: int
#undef __possibly_notnullterminated size_t: unsigned long long
#define __possibly_notnullterminated sizeof_double: 8
#ifndef errno_t sizeof_float: 4
# define errno_t int sizeof_fun: -1
# define _ERRNO_T_DEFINED sizeof_int: 4
#endif sizeof_long: 4
#ifndef _WIN64 sizeof_longdouble: 8
# define _WIN64 1 sizeof_longlong: 8
#endif sizeof_ptr: 8
#ifndef _AMD64_ sizeof_short: 2
# define _AMD64_ 1 sizeof_void: 0
#endif ssize_t: long long
#ifndef _M_AMD64 time_t: long long
# define _M_AMD64 1 uint_fast8_t: unsigned char
#endif uint_fast16_t: unsigned int
#ifndef _M_X64 uint_fast32_t: unsigned int
# define _M_X64 1 uint_fast64_t: unsigned long long
#endif uintptr_t: unsigned long long
version: MSVC - X86-64bits mode
wchar_t: unsigned short
weof: (0xffffU)
wint_t: unsigned short
wordsize: '64'
posix_version: ''
# NB: except for l_tmpnam, the following macro are not defined in the old
# __fc_machdep.h in the MSVC_X86_64 section. The values below have thus been
# taken from gnu
bufsiz: '8192'
eof: '(-1)'
fopen_max: '20'
host_name_max: '255'
path_max: '256'
tty_name_max: '32'
filename_max: '2048'
l_tmpnam: '20'
tmp_max: '0xFFFFFFFF'
rand_max: '32767'
mb_cur_max: '((size_t)16)'
machdep_name: machdep_msvc_x86_64
custom_defs:
_MSC_FULL_VER: '160040219'
_MSC_VER: '1600'
__ptr64: ''
__ptr32: ''
__unaligned: ''
__cdecl: ''
__possibly_notnullterminated: ''
errno_t: int
_ERRNO_T_DEFINED: ''
_WIN64: '1'
_AMD64_: '1'
_M_AMD64: '1'
_M_X64: '1'
errno: errno:
eperm: '1' eperm: '1'
...@@ -123,53 +160,3 @@ errno: ...@@ -123,53 +160,3 @@ errno:
ecanceled: '105' ecanceled: '105'
eownerdead: '133' eownerdead: '133'
enotrecoverable: '127' enotrecoverable: '127'
has__builtin_va_list: false
int_fast8_t: signed char
int_fast16_t: signed int
int_fast32_t: signed int
int_fast64_t: signed long long
intptr_t: signed long long
little_endian: true
nsig: '23'
ptrdiff_t: long long
# NB: wasn't defined at all in old __fc_machdep.h
sig_atomic_t: int
size_t: unsigned long long
sizeof_double: 8
sizeof_float: 4
sizeof_fun: -1
sizeof_int: 4
sizeof_long: 4
sizeof_longdouble: 8
sizeof_longlong: 8
sizeof_ptr: 8
sizeof_short: 2
sizeof_void: 0
ssize_t: long long
time_t: long long
uint_fast8_t: unsigned char
uint_fast16_t: unsigned int
uint_fast32_t: unsigned int
uint_fast64_t: unsigned long long
uintptr_t: unsigned long long
version: MSVC - X86-64bits mode
wchar_t: unsigned short
weof: (0xffffU)
wint_t: unsigned short
wordsize: '64'
posix_version: ''
# NB: except for l_tmpnam, the corresponding macro are not defined in the old
# __fc_machdep.h in the MSVC_X86_64 section. The values below have thus been
# taken from gnu
bufsiz: '8192'
eof: '(-1)'
fopen_max: '20'
host_name_max: '255'
path_max: '256'
tty_name_max: '32'
filename_max: '2048'
l_tmpnam: '20'
tmp_max: '0xFFFFFFFF'
rand_max: '32767'
mb_cur_max: '((size_t)16)'
machdep_name: machdep_msvc_x86_64
This diff is collapsed.
...@@ -41,10 +41,7 @@ let gen_define_macro fmt macro def = ...@@ -41,10 +41,7 @@ let gen_define_macro fmt macro def =
else gen_define_string fmt macro def else gen_define_string fmt macro def
let gen_define_custom_macros fmt key_values = let gen_define_custom_macros fmt key_values =
let rec iter = function List.iter (fun (k,v) -> gen_undef fmt k; gen_define_macro fmt k v) key_values
| (k,v)::kvs -> gen_define_macro fmt k v; iter kvs
| _ -> Format.fprintf fmt "@\n"
in iter key_values
let gen_define_int fmt macro def = gen_define fmt macro Format.pp_print_int def let gen_define_int fmt macro def = gen_define fmt macro Format.pp_print_int def
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment