syzkaller/pkg/ast
Dmitry Vyukov 402a0dc87e sys: support type aliases (aka typedefs)
Complex types that are often repeated can be given short type aliases using the
following syntax:

```
type identifier underlying_type
```

For example:

```
type signalno int32[0:65]
type net_port proc[20000, 4, int16be]
```

Then, type alias can be used instead of the underlying type in any contexts.
Underlying type needs to be described as if it's a struct field, that is,
with the base type if it's required. However, type alias can be used as syscall
arguments as well. Underlying types are currently restricted to integer types,
`ptr`, `ptr64`, `const`, `flags` and `proc` types.
2018-01-08 12:52:31 +01:00
..
testdata sys: support type aliases (aka typedefs) 2018-01-08 12:52:31 +01:00
ast.go sys: support type aliases (aka typedefs) 2018-01-08 12:52:31 +01:00
clone.go sys: support type aliases (aka typedefs) 2018-01-08 12:52:31 +01:00
format.go sys: support type aliases (aka typedefs) 2018-01-08 12:52:31 +01:00
parser_test.go pkg/ast: fix TestParseAll 2017-10-19 10:45:27 +02:00
parser.go sys: support type aliases (aka typedefs) 2018-01-08 12:52:31 +01:00
scanner.go executor, sys/windows: initial windows support 2017-09-25 15:19:06 +02:00
test_util.go pkg/compiler: more static error checking 2017-08-27 20:19:41 +02:00
walk.go sys: support type aliases (aka typedefs) 2018-01-08 12:52:31 +01:00