You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 268c692
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CLAUDE.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,8 +29,8 @@ A comment line that begins and ends in a trailing // should be considered a "cat
29
29
// This is a category header //
30
30
///////////////////////////////
31
31
32
-
set g_nFooNumber 42 // This is the Foo value. Range: [0-42]
33
-
set g_fBarNumber 42.42 // This is the Bar value. Range: [0.0-100.0]
32
+
set g_nFooNumber 42 // This is the Foo value.
33
+
set g_fBarNumber 45.67 // This is the Bar value.
34
34
35
35
// This is also a category header //
36
36
set g_bSomethingEnabled 1
@@ -133,12 +133,14 @@ For boolean values, prefer text labels "ON" and "Off", not true/false or 1/0.
133
133
134
134
### Input validation and conversions:
135
135
136
-
Some cfg params may need a range enforced. If the description-comment contains `Range:[0-100]` treat that as the allowable range (inclusive). `Range:[0-]` means the value is unsigned (can't be negative) but no upper bound.
136
+
Some cfg params may need a range enforced. If the description-comment contains `Range: [0-100]` treat that as the allowable range (inclusive). `Range: [0-]` means the value is unsigned (can't be negative) but no upper bound. `Range: [20-100, by 10]` means the range is [20-100] but values must step by 10 (viz. 20, 30, 40, ... 90, 100).
137
+
138
+
If existing cfg documents contain values outside the allowed range or stepping, that is fine -- highlight that condition (warning) in the UX.
137
139
138
140
Integer values: may be signed or unsigned. Always serialized as base-10 decimal, but accept hexadecimal input with leading 0x prefix .. eg "0x10000001" converts to 268435457.
139
141
140
-
Some integer values may be enumerations.. if the description-comment contains `Enum:[Low,Medium,High]` those labels can be presented, instead of 0,1,2.
142
+
Some integer values may be enumerations.. if the description-comment contains `Values: [Low,Medium,High]` those labels can be presented, instead of 0,1,2. (The enums will always be zero-based, unique identifiers, not combinable bitfields.)
141
143
142
-
Floating-point values: no Infinities or NaNs, and no exponential notation.
144
+
Floating-point values: no Infinities or NaNs, and no exponential notation. Always parsed using the "invariant" locale.. no localized radix or commas.
143
145
144
-
String values: a common user error is to paste in unicode fancy-quotes, instead of ascii 0x22 doublequotes. If the user pastes a string already wrapped in doublequote (0x22 or fancy quotes) or singalquotes, remove them (but when serializing, always use 0x22 doublequotes for string values)
146
+
String values: a common user error is to paste in unicode fancy-quotes, instead of ascii 0x22 doublequotes. If the user pastes a string already wrapped in doublequote (0x22 or fancy quotes) or singlequotes, remove them (but when serializing, always use 0x22 doublequotes for string values).
0 commit comments