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> --- cpu.sym | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cpu.sym') diff --git a/cpu.sym b/cpu.sym index eca50f3..36e5317 100644 --- a/cpu.sym +++ b/cpu.sym @@ -25,6 +25,9 @@ expr sizeof(integer_t) word_size expr sizeof(integer_t)*8 word_size_in_bits +expr sizeof(int) sizeof_int +expr sizeof(char) sizeof_char +expr sizeof(short) sizeof_short expr sizeof(void*) sizeof_pointer expr sizeof(mach_msg_header_t) sizeof_mach_msg_header_t expr sizeof(mach_msg_type_t) sizeof_mach_msg_type_t -- cgit v1.2.3