Skip to content

Commit

Permalink
import const from <windows.h>
Browse files Browse the repository at this point in the history
  • Loading branch information
hymkor committed Feb 19, 2023
1 parent eb4a485 commit 133c580
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
18 changes: 18 additions & 0 deletions const.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package mbcs

//go:generate go run github.com/nyaosorg/go-importconst
// <windows.h>
// CP_ACP
// CP_MACCP
// CP_OEMCP
// CP_SYMBOL
// CP_THREAD_ACP
// CP_UTF7
// CP_UTF8
// MB_COMPOSITE
// MB_ERR_INVALID_CHARS
// MB_PRECOMPOSED
// MB_USEGLYPHCHARS
// WC_COMPOSITECHECK
// WC_ERR_INVALID_CHARS
// WC_NO_BEST_FIT_CHARS
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ go 1.18
require golang.org/x/sys v0.5.0

require golang.org/x/text v0.6.0

require github.com/nyaosorg/go-importconst v0.2.0 // indirect
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
github.com/nyaosorg/go-importconst v0.2.0 h1:qXxvqrfv6ClcqS3+BTxQE5euUcEvnOdAcjPhSaBYga8=
github.com/nyaosorg/go-importconst v0.2.0/go.mod h1:jNC1jjgCTuU44oZBwPm9lHYi7xvtwbzP/I4GSKz/lRw=
golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU=
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/text v0.6.0 h1:3XmdazWV+ubf7QgHSTWeykHOci5oeekaGJBLkrkaw4k=
Expand Down
16 changes: 16 additions & 0 deletions zconst.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 133c580

Please sign in to comment.