One user-space repair task per eligible HWE debug-diag / compile-deploy base ID: 320 admitted (C 218, C++ 97, build scripts 5), 1 skipped by the content filter. Each ships a public spec with a check-to-basis table, at least two defects with single-fix fixtures, a symptom-masking fixture and an alternative correct implementation. Claude re-checked all 320: structure, the HWE quality items and trace6 Docker calibration receipts against current digests (320/320 USABLE). Difficulty is unmeasured. Known follow-up: 212 tasks use 120 ad-hoc family names; the next batch maps them to the canonical list. The batch's 1,256-line progress log stays in its factory report and the 36-local branch batch15-hwe. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
53 lines
1.3 KiB
C
53 lines
1.3 KiB
C
#ifndef RESOURCE_PARSER_H
|
|
#define RESOURCE_PARSER_H
|
|
#include <stddef.h>
|
|
#define RP_NAME 24
|
|
#define RP_SENSORS 8
|
|
#define RP_LINE 160
|
|
#define RP_DOCUMENT 8192
|
|
#define RP_OK 0
|
|
#define RP_OPEN -1
|
|
#define RP_FORMAT -2
|
|
#define RP_READ -3
|
|
#define RP_CAPACITY -4
|
|
#define RP_CLOSE -5
|
|
struct rp_sensor {
|
|
int id;
|
|
char kind;
|
|
int gain;
|
|
int bias;
|
|
int has_limit;
|
|
int low;
|
|
int high;
|
|
};
|
|
struct rp_model {
|
|
char site[RP_NAME + 1];
|
|
int rate;
|
|
size_t count;
|
|
struct rp_sensor sensors[RP_SENSORS];
|
|
};
|
|
struct rp_tokens {
|
|
size_t count;
|
|
char words[6][RP_LINE + 1];
|
|
};
|
|
struct rp_builder {
|
|
struct rp_model model;
|
|
int saw_site;
|
|
int saw_rate;
|
|
int ended;
|
|
};
|
|
struct rp_stream;
|
|
struct rp_stream *rp_open(const char *name);
|
|
int rp_get(struct rp_stream *stream);
|
|
int rp_error(struct rp_stream *stream);
|
|
int rp_close(struct rp_stream *stream);
|
|
int rp_tokenize(const char *line, struct rp_tokens *tokens);
|
|
int rp_number(const char *text, int low, int high, int *value);
|
|
int rp_name(const char *text);
|
|
int rp_keyword(const struct rp_tokens *tokens, const char *word, size_t count);
|
|
void rp_builder_init(struct rp_builder *builder);
|
|
int rp_builder_line(struct rp_builder *builder, const struct rp_tokens *tokens);
|
|
int rp_builder_done(const struct rp_builder *builder);
|
|
int rp_load(const char *name, struct rp_model *result);
|
|
#endif
|