We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent effbdc9 commit a790483Copy full SHA for a790483
jim2.h
@@ -40,6 +40,7 @@ typedef struct {
40
// Introduce a separate boolean flag in the Jim struct to enable/disable
41
// the pretty-printing.
42
43
+void jim_begin(Jim *jim);
44
void jim_null(Jim *jim);
45
void jim_bool(Jim *jim, int boolean);
46
void jim_integer(Jim *jim, long long int x);
@@ -121,6 +122,12 @@ static int jim_get_utf8_char_len(unsigned char ch)
121
122
}
123
124
125
+void jim_begin(Jim *jim)
126
+{
127
+ jim->sink_count = 0;
128
+ jim->scopes_count = 0;
129
+}
130
+
131
void jim_element_begin(Jim *jim)
132
{
133
Jim_Scope *scope = jim_current_scope(jim);
0 commit comments