Documentation ¶
Overview ¶
Package compiler generates sys descriptions of syscalls, types and resources from textual descriptions.
Package compiler generates sys descriptions of syscalls, types and resources from textual descriptions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeserializeConsts ¶
func DeserializeConstsGlob ¶
func DeserializeConstsGlob(glob string, eh ast.ErrorHandler) map[string]uint64
func SerializeConsts ¶
Types ¶
type ConstInfo ¶
type ConstInfo struct { Consts []string Includes []string Incdirs []string Defines map[string]string }
func ExtractConsts ¶
func ExtractConsts(desc *ast.Description, target *targets.Target, eh0 ast.ErrorHandler) *ConstInfo
ExtractConsts returns list of literal constants and other info required const value extraction.
type Prog ¶
type Prog struct { Resources []*prog.ResourceDesc Syscalls []*prog.Syscall StructDescs []*prog.KeyedStruct // Set of unsupported syscalls/flags. Unsupported map[string]bool }
Prog is description compilation result.
Click to show internal directories.
Click to hide internal directories.