Skip to content

Commit adca7b3

Browse files
committed
使用 chef_prep_this()
1 parent 12e69ed commit adca7b3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+75
-151
lines changed

src/recipe/lang/Clojure.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ def_target(pl_clojure, "clojure/clojars/cloj/lein");
77
void
88
pl_clojure_prelude ()
99
{
10-
use_this(pl_clojure);
11-
chef_allow_s(pl_clojure);
10+
chef_prep_this (pl_clojure, s);
1211

1312
chef_set_created_on (this, "2023-09-10");
1413
chef_set_last_updated (this, "2025-08-10");

src/recipe/lang/Dart/Flutter.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ def_target(pl_dart_flutter, "flutter");
77
void
88
pl_dart_flutter_prelude (void)
99
{
10-
use_this(pl_dart_flutter);
11-
chef_allow_gsr(pl_dart_flutter);
10+
chef_prep_this (pl_dart_flutter, gsr);
1211

1312
chef_set_created_on (this, "2023-09-10");
1413
chef_set_last_updated (this, "2025-07-11");

src/recipe/lang/Dart/Pub.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ def_target(pl_dart, "dart/pub");
77
void
88
pl_dart_prelude (void)
99
{
10-
use_this(pl_dart);
11-
chef_allow_gsr(pl_dart);
10+
chef_prep_this (pl_dart, gsr);
1211

1312
chef_set_created_on (this, "2023-09-10");
1413
chef_set_last_updated (this, "2025-07-11");

src/recipe/lang/Go.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ def_target(pl_go, "go/golang/goproxy");
2121
void
2222
pl_go_prelude ()
2323
{
24-
use_this(pl_go);
25-
chef_allow_gsr(pl_go);
24+
chef_prep_this (pl_go, gsr);
2625

2726
chef_set_created_on (this, "2023-08-30");
2827
chef_set_last_updated (this, "2025-08-10");

src/recipe/lang/Haskell.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ def_target(pl_haskell, "haskell/cabal/stack/hackage");
77
void
88
pl_haskell_prelude ()
99
{
10-
use_this(pl_haskell);
11-
chef_allow_s(pl_haskell);
10+
chef_prep_this (pl_haskell, s);
1211

1312
chef_set_created_on (this, "2023-09-10");
1413
chef_set_last_updated (this, "2025-08-10");

src/recipe/lang/Java.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ def_target(pl_java, "java/maven/mvn/gradle");
77
void
88
pl_java_prelude ()
99
{
10-
use_this(pl_java);
11-
chef_allow_gsr(pl_java);
10+
chef_prep_this (pl_java, gsr);
1211

1312
chef_set_created_on (this, "2023-08-31");
1413
chef_set_last_updated (this, "2025-08-10");

src/recipe/lang/JavaScript/Bun.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ def_target(pl_js_bun, "bun");
77
void
88
pl_js_bun_prelude (void)
99
{
10-
use_this(pl_js_bun);
11-
chef_allow_gsr(pl_js_bun);
10+
chef_prep_this (pl_js_bun, gsr);
1211

1312
chef_set_created_on (this, "2024-09-29");
1413
chef_set_last_updated (this, "2025-07-22");

src/recipe/lang/JavaScript/JavaScript.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ pl_js_group_setsrc (char *option)
7070

7171
chsrc_set_target_group_mode ();
7272

73-
use_this(pl_js_group);
74-
Source_t source = chsrc_yield_source_and_confirm (this, option);
73+
use_this_source (pl_js_group);
7574

7675
if (npm_exist)
7776
{

src/recipe/lang/JavaScript/Yarn.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ def_target(pl_js_yarn, "yarn");
77
void
88
pl_js_yarn_prelude (void)
99
{
10-
use_this(pl_js_yarn);
11-
chef_allow_gsr(pl_js_yarn);
10+
chef_prep_this (pl_js_yarn, gsr);
1211

1312
chef_set_created_on (this, "2023-09-09");
1413
chef_set_last_updated (this, "2025-07-11");

src/recipe/lang/JavaScript/common.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ def_target(pl_js_group, "js/javascript/node/nodejs");
1414
void
1515
pl_js_group_prelude (void)
1616
{
17-
use_this(pl_js_group);
18-
chef_allow_gsr(pl_js_group);
17+
chef_prep_this (pl_js_group, gsr);
1918

2019
chef_set_created_on (this, "2023-09-09");
2120
chef_set_last_updated (this, "2025-07-11");
@@ -51,8 +50,7 @@ def_target(pl_js_nodejs_binary, "__internal_use_nodejs_binary__");
5150
void
5251
pl_js_nodejs_binary_prelude (void)
5352
{
54-
use_this(pl_js_nodejs_binary);
55-
chef_allow_gsr(pl_js_group);
53+
chef_prep_this (pl_js_nodejs_binary, NOOP);
5654

5755
chef_set_created_on (this, "2023-09-09");
5856
chef_set_last_updated (this, "2025-07-11");

0 commit comments

Comments
 (0)