summaryrefslogtreecommitdiff
path: root/tests/base_types.defs
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2016-04-19 03:05:13 -0400
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-01-28 00:38:25 +0100
commitecf59842e472d28a54a16acffe4aaa2f882108c6 (patch)
tree6b5b18641ec85d2b41ac4e6cb7f11ec044bf3c64 /tests/base_types.defs
parent89298f4a0f61799b0a12e0ca297fe26a97c7e64e (diff)
Make MIG recognize the basic C integral types.
Also removed itMakeIntType which was not used anymore. Users can use char, int, and short types without having to define them. These types are defined using the builtin MACH_MSG_TYPE_* types and are architecture independent since they have the same size as the C char, short and int. If these basic types are redefined, MIG will still produce stub code but will produce a warning. * cpu.sym: Define sizeof_int, char, short. * tests/base_types.defs: Remove int. * tests/good/complex-types.defs: Use byte instead of char. * tests/good/directions: Remove char and int. * tests/good/types.defs: Remove char and also use short as a parameter in 'alltypes'. * type.c: Define itCIntTypeDecl. Remove itMakeIntType. Call itInsert for char, short and int. Message-Id: <20160419070513.GA12642@debian>
Diffstat (limited to 'tests/base_types.defs')
-rw-r--r--tests/base_types.defs1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/base_types.defs b/tests/base_types.defs
index a226056..5118ea2 100644
--- a/tests/base_types.defs
+++ b/tests/base_types.defs
@@ -1,4 +1,3 @@
-type int = MACH_MSG_TYPE_INTEGER_32;
type int64_t = MACH_MSG_TYPE_INTEGER_64;
type int32_t = MACH_MSG_TYPE_INTEGER_32;
type mach_port_t = MACH_MSG_TYPE_COPY_SEND;