...
Source file
src/cmd/fix/egltype.go
Documentation: cmd/fix
1
2
3
4
5 package main
6
7 import (
8 "go/ast"
9 )
10
11 func init() {
12 register(eglFixDisplay)
13 register(eglFixConfig)
14 }
15
16 var eglFixDisplay = fix{
17 name: "egl",
18 date: "2018-12-15",
19 f: eglfixDisp,
20 desc: `Fixes initializers of EGLDisplay`,
21 disabled: false,
22 }
23
24
25
26
27
28
29
30
31
32
33 func eglfixDisp(f *ast.File) bool {
34 return typefix(f, func(s string) bool {
35 return s == "C.EGLDisplay"
36 })
37 }
38
39 var eglFixConfig = fix{
40 name: "eglconf",
41 date: "2020-05-30",
42 f: eglfixConfig,
43 desc: `Fixes initializers of EGLConfig`,
44 disabled: false,
45 }
46
47
48
49
50
51
52
53
54
55
56 func eglfixConfig(f *ast.File) bool {
57 return typefix(f, func(s string) bool {
58 return s == "C.EGLConfig"
59 })
60 }
61
View as plain text