mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-26 17:01:35 +01:00
Generate .h files too, not just .c files.
This commit is contained in:
1 parent
3642dd3d0e
commit
5d5381ea17
11 files changed
+105
-51
No files matched your search
@@ -0,0 +1,24 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be found
|
||||
// in the LICENSE file.
|
||||
|
||||
// puffs-gen-h transpiles a Puffs program to a C header.
|
||||
//
|
||||
// The command line arguments list the source Puffs files. If no arguments are
|
||||
// given, it reads from stdin.
|
||||
//
|
||||
// The generated header is written to stdout.
|
||||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/google/puffs/cmd/internal/cgen"
|
||||
"github.com/google/puffs/lang/generate"
|
||||
)
|
||||
|
||||
func main() {
|
||||
if err := generate.Main(&cgen.Generator{Extension: 'h'}); err != nil {
|
||||
os.Stderr.WriteString(err.Error() + "\n")
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user