From ecf59842e472d28a54a16acffe4aaa2f882108c6 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Tue, 19 Apr 2016 03:05:13 -0400 Subject: 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> --- tests/base_types.defs | 1 - 1 file changed, 1 deletion(-) (limited to 'tests/base_types.defs') 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; -- cgit v1.2.3