X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=types.c;h=e62c07fbaa5ed00c18e3550a6ee9af5183e0bb9b;hb=bb0b3e3a3b5a6fdc78b9b36317b0a99e7a109d84;hp=0c71f81cbf72a0cb2b2c4c0bb2e08b2f88eb97e3;hpb=979fce13621246b706781035786b5d11a8e2f608;p=cparser diff --git a/types.c b/types.c index 0c71f81..e62c07f 100644 --- a/types.c +++ b/types.c @@ -56,6 +56,7 @@ type_t *type_signed_char_ptr; type_t *type_void_ptr; type_t *type_const_void_ptr; type_t *type_void_ptr_restrict; +type_t *type_const_void_ptr_restrict; type_t *type_char_ptr_ptr; @@ -149,6 +150,8 @@ void init_basic_types(void) type_void_ptr = make_pointer_type(type_void, TYPE_QUALIFIER_NONE); type_const_void_ptr = make_pointer_type(type_void, TYPE_QUALIFIER_CONST); type_void_ptr_restrict = make_pointer_type(type_void, TYPE_QUALIFIER_RESTRICT); + type_const_void_ptr_restrict + = make_pointer_type(type_void, TYPE_QUALIFIER_CONST | TYPE_QUALIFIER_RESTRICT); type_char_ptr = make_pointer_type(type_char, TYPE_QUALIFIER_NONE); type_char_ptr_restrict = make_pointer_type(type_char, TYPE_QUALIFIER_RESTRICT); type_signed_char_ptr = make_pointer_type(type_signed_char, TYPE_QUALIFIER_NONE);