From f3005c9055e0224fef43e94166eeb0c55d682c0e Mon Sep 17 00:00:00 2001 From: luoliwoshang <2643523683@qq.com> Date: Fri, 8 Nov 2024 20:16:18 +0800 Subject: [PATCH] gogensig:remove unuse config --- chore/gogensig/convert/deps/deps.go | 2 +- chore/gogensig/convert/testdata/stdint/llcppg.cfg | 2 +- chore/gogensig/convert/testdata/stdio/llcppg.cfg | 2 +- chore/llcppg/types/types.go | 1 - 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/chore/gogensig/convert/deps/deps.go b/chore/gogensig/convert/deps/deps.go index f9a3bd4b3..0a5396782 100644 --- a/chore/gogensig/convert/deps/deps.go +++ b/chore/gogensig/convert/deps/deps.go @@ -122,5 +122,5 @@ func findStdIncs(pkgDir string) (incs []string, err error) { if err != nil { return nil, err } - return cfg.StdIncludes, nil + return cfg.Include, nil } diff --git a/chore/gogensig/convert/testdata/stdint/llcppg.cfg b/chore/gogensig/convert/testdata/stdint/llcppg.cfg index 055ef531d..fa514fea0 100644 --- a/chore/gogensig/convert/testdata/stdint/llcppg.cfg +++ b/chore/gogensig/convert/testdata/stdint/llcppg.cfg @@ -1,5 +1,5 @@ { - "stdIncludes":[ + "include":[ "sys/_types/_int8_t.h", "sys/_types/_int16_t.h", "sys/_types/_int32_t.h", diff --git a/chore/gogensig/convert/testdata/stdio/llcppg.cfg b/chore/gogensig/convert/testdata/stdio/llcppg.cfg index 4d0d7d4f9..b0f4e308a 100644 --- a/chore/gogensig/convert/testdata/stdio/llcppg.cfg +++ b/chore/gogensig/convert/testdata/stdio/llcppg.cfg @@ -1,5 +1,5 @@ { - "stdIncludes":[ + "include":[ "_stdio.h" ] } \ No newline at end of file diff --git a/chore/llcppg/types/types.go b/chore/llcppg/types/types.go index 94de183f1..f0c7ec483 100644 --- a/chore/llcppg/types/types.go +++ b/chore/llcppg/types/types.go @@ -22,7 +22,6 @@ type Config struct { CFlags string `json:"cflags"` Libs string `json:"libs"` Include []string `json:"include"` - StdIncludes []string `json:"stdIncludes"` Deps []string `json:"deps"` TrimPrefixes []string `json:"trimPrefixes"` Cplusplus bool `json:"cplusplus"`