@annouimo/c-exam-kit-preset 0.0.0-bootstrap.0 → 0.6.4-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,9 +1,18 @@
1
- # C Exam Kit C99 data preset — npm package bootstrap
1
+ # @annouimo/c-exam-kit-preset (draft)
2
2
 
3
- **Not a functional release. / 这不是可用的软件版本。**
3
+ This npm package contains **C99 header/template data only**. It does not run code on installation, download assets at runtime, or replace the independent C Exam Kit project.
4
4
 
5
- This package exists only to initialize the npm namespace and allow its owner to configure GitHub Actions Trusted Publishing. No CLI command, runtime code, or C99 components are included.
5
+ ## Build locally
6
6
 
7
- 请勿安装使用。等发布 `@next` 后再安装真正的预览版。
7
+ From `npm/accoding-preset/`:
8
8
 
9
- Source repository: https://github.com/Annouimo/c-exam-kit
9
+ ```sh
10
+ npm pack --dry-run
11
+ npm pack
12
+ ```
13
+
14
+ The `prepack` step copies `scaffold/presets/exam-io-c99/` from the repository into the published `preset/` directory after validating component paths.
15
+
16
+ Accoding Companion's external installer downloads this package into an explicitly versioned, user-owned data directory. Existing exercise snapshots are never changed just because a new version was downloaded.
17
+
18
+ Release is intentionally blocked by `private: true` until the package contents and integration tests are accepted.
package/package.json CHANGED
@@ -1,19 +1,27 @@
1
1
  {
2
2
  "name": "@annouimo/c-exam-kit-preset",
3
- "version": "0.0.0-bootstrap.0",
4
- "description": "Bootstrap placeholder for C Exam Kit C99 data preset; no runnable code or preset data.",
3
+ "version": "0.6.4-next.0",
4
+ "description": "Versioned C99 data-only presets for Accoding Companion",
5
5
  "license": "MIT-0",
6
+ "files": [
7
+ "preset/",
8
+ "LICENSE"
9
+ ],
10
+ "publishConfig": {
11
+ "access": "public"
12
+ },
13
+ "scripts": {
14
+ "prepack": "node scripts/build-preset.mjs"
15
+ },
6
16
  "repository": {
7
17
  "type": "git",
8
- "url": "git+https://github.com/Annouimo/c-exam-kit.git"
18
+ "url": "git+https://github.com/Annouimo/c-exam-kit.git",
19
+ "directory": "npm/accoding-preset"
9
20
  },
10
- "homepage": "https://github.com/Annouimo/c-exam-kit",
11
- "publishConfig": {
12
- "access": "public",
13
- "tag": "bootstrap"
14
- },
15
- "files": [
16
- "README.md",
17
- "LICENSE"
21
+ "keywords": [
22
+ "accoding",
23
+ "c99",
24
+ "scaffold",
25
+ "data-only"
18
26
  ]
19
27
  }
@@ -0,0 +1,116 @@
1
+ # Lightweight IO preset for C99
2
+
3
+ **Status: feature branch; review before merging.** This is an IO-only preset for the
4
+ [standalone CLI manifest v1](https://github.com/Annouimo/better-accoding-for-buaaers/tree/feat/standalone-cli-foundation/scaffold).
5
+ No algorithms from the older scaffold or C Toolbox are migrated. Legacy
6
+ c-exam-kit files, build scripts, documentation and releases remain unchanged.
7
+
8
+ ## Use with the new CLI
9
+
10
+ From a checkout of better-accoding-for-buaaers (standalone CLI feature branch):
11
+
12
+ ~~~sh
13
+ bun src/standalone/cli.ts scaffold init ./A --preset /path/to/c-exam-kit/scaffold/presets/exam-io-c99/manifest.json
14
+ bun src/standalone/cli.ts scaffold prepare ./A/main.c
15
+ ~~~
16
+
17
+ Initialization snapshots the manifest and source components in each problem
18
+ folder, writes a complete exam.h and a blank main.c. Prepare selects symbols
19
+ found in user code and their declared dependencies, producing a standalone
20
+ .accoding/submit.c without changing the original code. No runtime library
21
+ or Python is necessary for the generated C program.
22
+
23
+ ### Numeric input and EOF
24
+
25
+ ~~~c
26
+ #include "exam.h"
27
+ int main(void) {
28
+ int a, b;
29
+ while (try_read_int(&a)) {
30
+ b = read_int();
31
+ print_int(a + b, "\n");
32
+ }
33
+ return 0;
34
+ }
35
+ ~~~
36
+
37
+ try_read_* returns false **only at clean EOF before a new value**. Bad numeric
38
+ text (such as 12abc), truncated records, out-of-range values and stream errors
39
+ terminate with a nonzero exit status and an error printed to stderr. Ordinary
40
+ read_* functions also fail on unexpected EOF. Numeric tokens are parsed
41
+ without allocating memory for every value.
42
+
43
+ ### Arrays
44
+
45
+ ~~~c
46
+ int n = read_int();
47
+ int a[1000];
48
+ read_ints(a, n);
49
+ print_ints(a, n, " ", "\n");
50
+ ~~~
51
+
52
+ read_ints, read_lls and read_doubles infer the real array's element capacity,
53
+ reject negative counts and counts exceeding capacity, and read exactly n
54
+ values. Array printing takes the number of **used elements** explicitly.
55
+
56
+ ### Words and lines
57
+
58
+ ~~~c
59
+ char name[80], line[1024];
60
+ read_word(name); /* next non-whitespace word */
61
+ read_line(line); /* next complete line after a partial token read */
62
+ read_rest(line); /* current line remainder, including leading whitespace */
63
+ ~~~
64
+
65
+ - read_word skips leading whitespace.
66
+ - read_line, after a token or character has been read from the current line,
67
+ discards the remaining contents (including the line terminator), then reads
68
+ the next **complete** line. Otherwise, it reads the current complete line.
69
+ - read_rest always reads from the current position through the end of that line.
70
+ - read_line and read_rest preserve genuinely blank lines and leading/trailing
71
+ spaces. Line terminators LF, CRLF and CR are removed.
72
+ - try_read_line(s) returns true for a real empty line; false only when no
73
+ line remains at all.
74
+ - skip_line() discards the rest of the current line.
75
+
76
+ ## Public API
77
+
78
+ | Category | API |
79
+ | --- | --- |
80
+ | Single values | read_int, read_ll, read_double, read_char, read_char_raw |
81
+ | EOF-aware | try_read_int, try_read_ll, try_read_double, try_read_char, try_read_char_raw |
82
+ | Text | read_word, try_read_word, read_line, try_read_line, read_rest, try_read_rest, skip_line |
83
+ | Array input | read_ints, read_lls, read_doubles |
84
+ | Scalar output | print_int(x,end), print_ll(x,end), print_double(x,digits,end), print_char(x,end), print_text(s,end) |
85
+ | Array output | print_ints(a,n,sep,end), print_lls(a,n,sep,end), print_doubles(a,n,digits,sep,end) |
86
+
87
+ Word, line and array input convenience names are **lowercase function-like
88
+ macros**. They automatically forward sizeof(array) or element capacity to a
89
+ checked helper. They are safe to use only on a **real array in the current
90
+ scope**, not a pointer, dynamically allocated memory, or an array parameter.
91
+ Explicit-capacity functions such as read_word_into(s,capacity),
92
+ read_line_into(s,capacity), and read_ints_into(a,n,capacity) are available
93
+ when necessary.
94
+
95
+ All input helpers use stdin and shared line-state tracking. Do not mix them
96
+ with scanf, fgets, getchar or other consumers of stdin. printf is compatible
97
+ with the output helpers. The preset uses only C99 and standard library
98
+ headers. print_double uses fixed-point formatting (0–100 digits), retaining
99
+ standard C negative-zero output semantics.
100
+
101
+ ## Test and integration notes
102
+
103
+ ~~~sh
104
+ python3 tests/test_lightweight_io.py
105
+ ~~~
106
+
107
+ The included regression suite compiles C99 programs with all modules and
108
+ with selected dependency subsets, and tests EOF, blank lines, CRLF, mixed
109
+ text/numbers, array capacities, output formatting and malformed input.
110
+ The manifest follows the external CLI's schema v1; **the CLI implementation
111
+ remains in better-accoding-for-buaaers**, not in this repository. Run the
112
+ standalone CLI's own tests there as part of final integration review.
113
+
114
+ Known limits: no dynamic String/Vector/Matrix, no automatic growing buffers,
115
+ no other algorithm templates, no per-token allocation, numeric tokens longer
116
+ than 127 bytes rejected, and no generalized multi-stream abstraction.
@@ -0,0 +1,72 @@
1
+ /* Lightweight C99 IO: shared internal helpers. No allocation per token. */
2
+ static inline void exam_io_fail(const char *message) {
3
+ fprintf(stderr, "exam io: %s\n", message);
4
+ exit(EXIT_FAILURE);
5
+ }
6
+ static inline int exam_io_space(int c) {
7
+ return c != EOF && isspace((unsigned char)c);
8
+ }
9
+ static inline int *exam_io_partial_line(void) {
10
+ static int partial = 0;
11
+ return &partial;
12
+ }
13
+ static inline int exam_io_get(void) {
14
+ int c = fgetc(stdin);
15
+ if (c == EOF && ferror(stdin)) exam_io_fail("input stream error");
16
+ return c;
17
+ }
18
+ static inline void exam_io_unget(int c) {
19
+ if (c != EOF && ungetc(c, stdin) == EOF)
20
+ exam_io_fail("cannot restore input delimiter");
21
+ }
22
+ /* Return 0 only on clean EOF before a token. Keep the delimiter unread. */
23
+ static inline int exam_io_token(char *out, size_t capacity) {
24
+ if (!capacity) exam_io_fail("zero-sized input buffer");
25
+ int c;
26
+ do { c = exam_io_get(); } while (exam_io_space(c));
27
+ if (c == EOF) return 0;
28
+ size_t len = 0;
29
+ do {
30
+ if (len >= capacity - 1) exam_io_fail("input token too long");
31
+ if (c == 0) exam_io_fail("NUL byte in token");
32
+ out[len++] = (char)c;
33
+ c = exam_io_get();
34
+ } while (c != EOF && !exam_io_space(c));
35
+ exam_io_unget(c);
36
+ out[len] = '\0';
37
+ *exam_io_partial_line() = 1;
38
+ return 1;
39
+ }
40
+ /* Consume the current line, including LF, CRLF or CR. */
41
+ static inline void exam_io_skip_current_line(void) {
42
+ int c;
43
+ do { c = exam_io_get(); } while (c != EOF && c != '\n' && c != '\r');
44
+ if (c == '\r') {
45
+ int next = exam_io_get();
46
+ if (next != '\n') exam_io_unget(next);
47
+ }
48
+ *exam_io_partial_line() = 0;
49
+ }
50
+ /* Read exactly the remainder of the current line; retain real empty lines. */
51
+ static inline int exam_io_line_buffer(char *out, size_t capacity) {
52
+ if (!capacity) exam_io_fail("zero-sized line buffer");
53
+ int c = exam_io_get();
54
+ if (c == EOF) return 0;
55
+ size_t len = 0;
56
+ while (c != EOF && c != '\n' && c != '\r') {
57
+ if (len >= capacity - 1) exam_io_fail("input line too long");
58
+ if (c == 0) exam_io_fail("NUL byte in line");
59
+ out[len++] = (char)c;
60
+ c = exam_io_get();
61
+ }
62
+ if (c == '\r') {
63
+ int next = exam_io_get();
64
+ if (next != '\n') exam_io_unget(next);
65
+ }
66
+ out[len] = '\0';
67
+ *exam_io_partial_line() = 0;
68
+ return 1;
69
+ }
70
+ static inline void exam_io_write(const char *s) {
71
+ if (fputs(s, stdout) == EOF) exam_io_fail("output stream error");
72
+ }
@@ -0,0 +1,27 @@
1
+ static inline bool try_read_char_raw(char *value) {
2
+ if (!value) exam_io_fail("null char destination");
3
+ int c = exam_io_get();
4
+ if (c == EOF) return false;
5
+ *value = (char)c;
6
+ *exam_io_partial_line() = (c != '\n' && c != '\r');
7
+ return true;
8
+ }
9
+ static inline char read_char_raw(void) {
10
+ char value;
11
+ if (!try_read_char_raw(&value)) exam_io_fail("unexpected EOF while reading char");
12
+ return value;
13
+ }
14
+ static inline bool try_read_char(char *value) {
15
+ if (!value) exam_io_fail("null char destination");
16
+ int c;
17
+ do { c = exam_io_get(); } while (exam_io_space(c));
18
+ if (c == EOF) return false;
19
+ *value = (char)c;
20
+ *exam_io_partial_line() = 1;
21
+ return true;
22
+ }
23
+ static inline char read_char(void) {
24
+ char value;
25
+ if (!try_read_char(&value)) exam_io_fail("unexpected EOF while reading char");
26
+ return value;
27
+ }
@@ -0,0 +1,17 @@
1
+ static inline bool try_read_double(double *value) {
2
+ if (!value) exam_io_fail("null double destination");
3
+ char token[128];
4
+ if (!exam_io_token(token, sizeof token)) return false;
5
+ char *end = NULL;
6
+ errno = 0;
7
+ double result = strtod(token, &end);
8
+ if (end == token || *end != '\0') exam_io_fail("invalid double");
9
+ if (errno == ERANGE || !isfinite(result)) exam_io_fail("double out of range");
10
+ *value = result;
11
+ return true;
12
+ }
13
+ static inline double read_double(void) {
14
+ double value;
15
+ if (!try_read_double(&value)) exam_io_fail("unexpected EOF while reading double");
16
+ return value;
17
+ }
@@ -0,0 +1,8 @@
1
+ static inline void read_doubles_into(double *array, int count, size_t capacity) {
2
+ if (count < 0 || (size_t)count > capacity)
3
+ exam_io_fail("double array length exceeds capacity");
4
+ if (count && !array) exam_io_fail("null double array");
5
+ for (int i = 0; i < count; ++i) array[i] = read_double();
6
+ }
7
+ #define read_doubles(array, count) \
8
+ read_doubles_into((array), (count), sizeof(array) / sizeof((array)[0]))
@@ -0,0 +1,19 @@
1
+ /* Strict int token: invalid input and overflow are errors, only EOF returns false. */
2
+ static inline bool try_read_int(int *value) {
3
+ if (!value) exam_io_fail("null int destination");
4
+ char token[128];
5
+ if (!exam_io_token(token, sizeof token)) return false;
6
+ char *end = NULL;
7
+ errno = 0;
8
+ long long result = strtoll(token, &end, 10);
9
+ if (end == token || *end != '\0') exam_io_fail("invalid integer");
10
+ if (errno == ERANGE || result < INT_MIN || result > INT_MAX)
11
+ exam_io_fail("integer out of range");
12
+ *value = (int)result;
13
+ return true;
14
+ }
15
+ static inline int read_int(void) {
16
+ int value;
17
+ if (!try_read_int(&value)) exam_io_fail("unexpected EOF while reading int");
18
+ return value;
19
+ }
@@ -0,0 +1,8 @@
1
+ static inline void read_ints_into(int *array, int count, size_t capacity) {
2
+ if (count < 0 || (size_t)count > capacity)
3
+ exam_io_fail("int array length exceeds capacity");
4
+ if (count && !array) exam_io_fail("null int array");
5
+ for (int i = 0; i < count; ++i) array[i] = read_int();
6
+ }
7
+ #define read_ints(array, count) \
8
+ read_ints_into((array), (count), sizeof(array) / sizeof((array)[0]))
@@ -0,0 +1,27 @@
1
+ /* read_line: read the next COMPLETE line after a partial token/char read.
2
+ * read_rest: read from the current position (including leading spaces).
3
+ * Real empty lines are preserved; EOF before any character returns false. */
4
+ static inline bool try_read_line_into(char *out, size_t capacity) {
5
+ if (!out) exam_io_fail("null line destination");
6
+ if (*exam_io_partial_line()) exam_io_skip_current_line();
7
+ return exam_io_line_buffer(out, capacity) != 0;
8
+ }
9
+ static inline void read_line_into(char *out, size_t capacity) {
10
+ if (!try_read_line_into(out, capacity))
11
+ exam_io_fail("unexpected EOF while reading line");
12
+ }
13
+ static inline bool try_read_rest_into(char *out, size_t capacity) {
14
+ if (!out) exam_io_fail("null line destination");
15
+ return exam_io_line_buffer(out, capacity) != 0;
16
+ }
17
+ static inline void read_rest_into(char *out, size_t capacity) {
18
+ if (!try_read_rest_into(out, capacity))
19
+ exam_io_fail("unexpected EOF while reading rest of line");
20
+ }
21
+ static inline void skip_line(void) {
22
+ exam_io_skip_current_line();
23
+ }
24
+ #define try_read_line(array) try_read_line_into((array), sizeof(array))
25
+ #define read_line(array) read_line_into((array), sizeof(array))
26
+ #define try_read_rest(array) try_read_rest_into((array), sizeof(array))
27
+ #define read_rest(array) read_rest_into((array), sizeof(array))
@@ -0,0 +1,17 @@
1
+ static inline bool try_read_ll(long long *value) {
2
+ if (!value) exam_io_fail("null long long destination");
3
+ char token[128];
4
+ if (!exam_io_token(token, sizeof token)) return false;
5
+ char *end = NULL;
6
+ errno = 0;
7
+ long long result = strtoll(token, &end, 10);
8
+ if (end == token || *end != '\0') exam_io_fail("invalid long long");
9
+ if (errno == ERANGE) exam_io_fail("long long out of range");
10
+ *value = result;
11
+ return true;
12
+ }
13
+ static inline long long read_ll(void) {
14
+ long long value;
15
+ if (!try_read_ll(&value)) exam_io_fail("unexpected EOF while reading long long");
16
+ return value;
17
+ }
@@ -0,0 +1,8 @@
1
+ static inline void read_lls_into(long long *array, int count, size_t capacity) {
2
+ if (count < 0 || (size_t)count > capacity)
3
+ exam_io_fail("long long array length exceeds capacity");
4
+ if (count && !array) exam_io_fail("null long long array");
5
+ for (int i = 0; i < count; ++i) array[i] = read_ll();
6
+ }
7
+ #define read_lls(array, count) \
8
+ read_lls_into((array), (count), sizeof(array) / sizeof((array)[0]))
@@ -0,0 +1,11 @@
1
+ /* For actual char arrays only: sizeof(pointer) is NOT the buffer capacity. */
2
+ static inline bool try_read_word_into(char *out, size_t capacity) {
3
+ if (!out) exam_io_fail("null word destination");
4
+ return exam_io_token(out, capacity) != 0;
5
+ }
6
+ static inline void read_word_into(char *out, size_t capacity) {
7
+ if (!try_read_word_into(out, capacity))
8
+ exam_io_fail("unexpected EOF while reading word");
9
+ }
10
+ #define try_read_word(array) try_read_word_into((array), sizeof(array))
11
+ #define read_word(array) read_word_into((array), sizeof(array))
@@ -0,0 +1,27 @@
1
+ static inline void print_ints(const int *array, int count,
2
+ const char *separator, const char *end) {
3
+ if (count < 0 || (count && !array)) exam_io_fail("invalid int array");
4
+ for (int i = 0; i < count; ++i) {
5
+ if (i) exam_io_write(separator);
6
+ print_int(array[i], "");
7
+ }
8
+ exam_io_write(end);
9
+ }
10
+ static inline void print_lls(const long long *array, int count,
11
+ const char *separator, const char *end) {
12
+ if (count < 0 || (count && !array)) exam_io_fail("invalid long long array");
13
+ for (int i = 0; i < count; ++i) {
14
+ if (i) exam_io_write(separator);
15
+ print_ll(array[i], "");
16
+ }
17
+ exam_io_write(end);
18
+ }
19
+ static inline void print_doubles(const double *array, int count, int digits,
20
+ const char *separator, const char *end) {
21
+ if (count < 0 || (count && !array)) exam_io_fail("invalid double array");
22
+ for (int i = 0; i < count; ++i) {
23
+ if (i) exam_io_write(separator);
24
+ print_double(array[i], digits, "");
25
+ }
26
+ exam_io_write(end);
27
+ }
@@ -0,0 +1,21 @@
1
+ static inline void print_int(int value, const char *end) {
2
+ if (printf("%d", value) < 0) exam_io_fail("output stream error");
3
+ exam_io_write(end);
4
+ }
5
+ static inline void print_ll(long long value, const char *end) {
6
+ if (printf("%lld", value) < 0) exam_io_fail("output stream error");
7
+ exam_io_write(end);
8
+ }
9
+ static inline void print_double(double value, int digits, const char *end) {
10
+ if (digits < 0 || digits > 100) exam_io_fail("invalid double precision");
11
+ if (printf("%.*f", digits, value) < 0) exam_io_fail("output stream error");
12
+ exam_io_write(end);
13
+ }
14
+ static inline void print_char(char value, const char *end) {
15
+ if (putchar((unsigned char)value) == EOF) exam_io_fail("output stream error");
16
+ exam_io_write(end);
17
+ }
18
+ static inline void print_text(const char *value, const char *end) {
19
+ exam_io_write(value);
20
+ exam_io_write(end);
21
+ }
@@ -0,0 +1,175 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "exam-io-c99",
4
+ "language": "c",
5
+ "standard": "c99",
6
+ "headerFile": "exam.h",
7
+ "systemHeaders": [
8
+ "stdio.h",
9
+ "stdlib.h",
10
+ "stddef.h",
11
+ "stdbool.h",
12
+ "ctype.h",
13
+ "errno.h",
14
+ "limits.h",
15
+ "math.h"
16
+ ],
17
+ "components": [
18
+ {
19
+ "id": "io_base",
20
+ "description": "Shared token scanning, line state and errors",
21
+ "symbols": [
22
+ "exam_io_fail"
23
+ ],
24
+ "source": "components/io_base.h",
25
+ "requires": []
26
+ },
27
+ {
28
+ "id": "io_int",
29
+ "description": "int input and EOF-aware reading",
30
+ "symbols": [
31
+ "read_int",
32
+ "try_read_int"
33
+ ],
34
+ "source": "components/io_int.h",
35
+ "requires": [
36
+ "io_base"
37
+ ]
38
+ },
39
+ {
40
+ "id": "io_ll",
41
+ "description": "long long input and EOF-aware reading",
42
+ "symbols": [
43
+ "read_ll",
44
+ "try_read_ll"
45
+ ],
46
+ "source": "components/io_ll.h",
47
+ "requires": [
48
+ "io_base"
49
+ ]
50
+ },
51
+ {
52
+ "id": "io_double",
53
+ "description": "double input and EOF-aware reading",
54
+ "symbols": [
55
+ "read_double",
56
+ "try_read_double"
57
+ ],
58
+ "source": "components/io_double.h",
59
+ "requires": [
60
+ "io_base"
61
+ ]
62
+ },
63
+ {
64
+ "id": "io_char",
65
+ "description": "Character input, skipping whitespace or raw",
66
+ "symbols": [
67
+ "read_char",
68
+ "try_read_char",
69
+ "read_char_raw",
70
+ "try_read_char_raw"
71
+ ],
72
+ "source": "components/io_char.h",
73
+ "requires": [
74
+ "io_base"
75
+ ]
76
+ },
77
+ {
78
+ "id": "io_word",
79
+ "description": "Word input with compile-time array capacity",
80
+ "symbols": [
81
+ "read_word",
82
+ "try_read_word",
83
+ "read_word_into",
84
+ "try_read_word_into"
85
+ ],
86
+ "source": "components/io_word.h",
87
+ "requires": [
88
+ "io_base"
89
+ ]
90
+ },
91
+ {
92
+ "id": "io_line",
93
+ "description": "Full-line, rest-of-line and line skipping",
94
+ "symbols": [
95
+ "read_line",
96
+ "try_read_line",
97
+ "read_line_into",
98
+ "try_read_line_into",
99
+ "read_rest",
100
+ "try_read_rest",
101
+ "read_rest_into",
102
+ "try_read_rest_into",
103
+ "skip_line"
104
+ ],
105
+ "source": "components/io_line.h",
106
+ "requires": [
107
+ "io_base"
108
+ ]
109
+ },
110
+ {
111
+ "id": "io_ints",
112
+ "description": "Read int arrays with an automatic capacity check",
113
+ "symbols": [
114
+ "read_ints",
115
+ "read_ints_into"
116
+ ],
117
+ "source": "components/io_ints.h",
118
+ "requires": [
119
+ "io_int"
120
+ ]
121
+ },
122
+ {
123
+ "id": "io_lls",
124
+ "description": "Read long long arrays with an automatic capacity check",
125
+ "symbols": [
126
+ "read_lls",
127
+ "read_lls_into"
128
+ ],
129
+ "source": "components/io_lls.h",
130
+ "requires": [
131
+ "io_ll"
132
+ ]
133
+ },
134
+ {
135
+ "id": "io_doubles",
136
+ "description": "Read double arrays with an automatic capacity check",
137
+ "symbols": [
138
+ "read_doubles",
139
+ "read_doubles_into"
140
+ ],
141
+ "source": "components/io_doubles.h",
142
+ "requires": [
143
+ "io_double"
144
+ ]
145
+ },
146
+ {
147
+ "id": "print_scalar",
148
+ "description": "Scalar output with configurable terminator",
149
+ "symbols": [
150
+ "print_int",
151
+ "print_ll",
152
+ "print_double",
153
+ "print_char",
154
+ "print_text"
155
+ ],
156
+ "source": "components/print_scalar.h",
157
+ "requires": [
158
+ "io_base"
159
+ ]
160
+ },
161
+ {
162
+ "id": "print_arrays",
163
+ "description": "Output arrays with separators and terminators",
164
+ "symbols": [
165
+ "print_ints",
166
+ "print_lls",
167
+ "print_doubles"
168
+ ],
169
+ "source": "components/print_arrays.h",
170
+ "requires": [
171
+ "print_scalar"
172
+ ]
173
+ }
174
+ ]
175
+ }