@@ -2432,7 +2432,7 @@ def _parse_cv_ptr_or_fn(
24322432
24332433 while True :
24342434 tok = self .lex .token_if (
2435- "*" , "const" , "volatile" , "__restrict__" , "restrict" , "("
2435+ "*" , "const" , "volatile" , "__restrict__" , "__restrict" , " restrict" , "("
24362436 )
24372437 if not tok :
24382438 break
@@ -2449,7 +2449,7 @@ def _parse_cv_ptr_or_fn(
24492449 if not isinstance (dtype , (Pointer , Type )):
24502450 raise self ._parse_error (tok )
24512451 dtype .volatile = True
2452- elif tok .type in ("__restrict__" , "restrict" ):
2452+ elif tok .type in ("__restrict__" , "__restrict" , " restrict" ):
24532453 if not isinstance (dtype , (Pointer , Reference )):
24542454 raise self ._parse_error (tok )
24552455 dtype .restrict = True
@@ -2524,7 +2524,7 @@ def _parse_cv_ptr_or_fn(
25242524
25252525 # peek at the next token and see if it's a paren. If so, it might
25262526 # be a nasty function pointer
2527- if self .lex .token_peek_if ("(" , "__restrict__" , "restrict" ):
2527+ if self .lex .token_peek_if ("(" , "__restrict__" , "__restrict" , " restrict" ):
25282528 dtype = self ._parse_cv_ptr_or_fn (dtype , nonptr_fn )
25292529
25302530 return dtype
0 commit comments