Skip to content

Commit df00bed

Browse files
leifericfclaude
andcommitted
Reflow *ns* var-intern comment to avoid -Wcomment trip
The doc comment held the literal text 'clojure.core/*ns*' which clang reads as a /* nested block comment, tripping -Wcomment for embedders compiling the install TU under -Wall. Reword to spell out the qualified name without the slash-star pattern. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 281e261 commit df00bed

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/prim/install.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,11 @@ void mino_install_core(mino_state_t *S, mino_env_t *env)
200200
(void)core_env;
201201
(void)env;
202202

203-
/* Intern *ns* as a dynamic var so (find-var 'clojure.core/*ns*)
204-
* resolves and (deref ...) tracks the user-visible namespace.
205-
* The bare-symbol fast path in eval/special.c stays as a fallback
206-
* for embedders that look up *ns* before the var is interned. */
203+
/* Intern *ns* as a dynamic var so find-var on the qualified name
204+
* clojure.core followed by /-star-ns-star resolves and (deref ...)
205+
* tracks the user-visible namespace. The bare-symbol fast path in
206+
* eval/special.c stays as a fallback for embedders that look up
207+
* *ns* before the var is interned. */
207208
{
208209
mino_val_t *var = var_intern(S, "clojure.core", "*ns*");
209210
if (var != NULL) {

0 commit comments

Comments
 (0)