Documentation ¶
Index ¶
- type Config
- type GenOptions
- type Generator
- func (gen *Generator) Close()
- func (g *Generator) DisableTimestamps()
- func (gen *Generator) MemTipOf(decl *tl.CDecl) tl.Tip
- func (gen *Generator) MonitorAndWriteHelpers(goWr, chWr io.Writer, ccWr io.Writer, initWrFunc ...func() (io.Writer, error))
- func (g *Generator) SetMaxMemory(spec MemSpec)
- func (gen *Generator) WriteConst(wr io.Writer) int
- func (gen *Generator) WriteDeclares(wr io.Writer) int
- func (gen *Generator) WriteDoc(wr io.Writer) bool
- func (gen *Generator) WriteIncludes(wr io.Writer)
- func (gen *Generator) WritePackageHeader(wr io.Writer)
- func (gen *Generator) WriteTypedefs(wr io.Writer) int
- func (gen *Generator) WriteUnions(wr io.Writer) int
- type Helper
- type HelperSide
- type Helpers
- type MemSpec
- type TraitFlagGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { PackageName string `yaml:"PackageName"` PackageDescription string `yaml:"PackageDescription"` PackageLicense string `yaml:"PackageLicense"` PkgConfigOpts []string `yaml:"PkgConfigOpts"` FlagGroups []TraitFlagGroup `yaml:"FlagGroups"` SysIncludes []string `yaml:"SysIncludes"` Includes []string `yaml:"Includes"` Options GenOptions `yaml:"Options"` }
type GenOptions ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func (*Generator) DisableTimestamps ¶
func (g *Generator) DisableTimestamps()
func (*Generator) MonitorAndWriteHelpers ¶
func (*Generator) SetMaxMemory ¶
func (*Generator) WriteIncludes ¶
func (*Generator) WritePackageHeader ¶
type HelperSide ¶
type HelperSide string
const ( NoSide HelperSide = "" GoSide HelperSide = "go" CHSide HelperSide = "h" CCSide HelperSide = "c" )
type MemSpec ¶
type MemSpec string
const ( MemSpec1 MemSpec = "0x1fffffff" MemSpec2 MemSpec = "0x2fffffff" MemSpec3 MemSpec = "0x3fffffff" MemSpec4 MemSpec = "0x4fffffff" MemSpec5 MemSpec = "0x5fffffff" MemSpec6 MemSpec = "0x6fffffff" MemSpec7 MemSpec = "0x7fffffff" MemSpec8 MemSpec = "0x8fffffff" MemSpec9 MemSpec = "0x9fffffff" MemSpecA MemSpec = "0xafffffff" MemSpecB MemSpec = "0xbfffffff" MemSpecC MemSpec = "0xcfffffff" MemSpecD MemSpec = "0xdfffffff" MemSpecE MemSpec = "0xefffffff" MemSpecF MemSpec = "0xffffffff" MemSpecDefault MemSpec = "0x7fffffff" )
func NewMemSpec ¶
type TraitFlagGroup ¶
Click to show internal directories.
Click to hide internal directories.