From 4bdf99151c6b218dd4c37847e95bf037fced3b37 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thibaut=20VAR=C3=88NE?= Date: 2021年9月15日 21:38:16 +0200 Subject: [PATCH] Make etiq_en an array of bool --- tic.c | 2 +- tic2json.c | 2 +- ticv01.y | 3 +-- ticv02.y | 3 +-- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/tic.c b/tic.c index 3200bfd..3edc43f 100644 --- a/tic.c +++ b/tic.c @@ -18,7 +18,7 @@ #include "tic.h" bool filter_mode; -uint8_t *etiq_en; // type: < 255 tokens. This could be made a bit field if memory is a concern +bool *etiq_en; ///< when non-NULL, a token-indexed array, where the related token is emitted if the value is true. @note This could be made a bit field if memory is a concern void make_field(struct tic_field *field, const struct tic_etiquette *etiq, char *horodate, char *data) { diff --git a/tic2json.c b/tic2json.c index 4f84b4e..43994e7 100644 --- a/tic2json.c +++ b/tic2json.c @@ -48,7 +48,7 @@ #define TIC2JSON_VER "2.0" extern bool filter_mode; -extern uint8_t *etiq_en; +extern bool *etiq_en; static struct { const char *idtag; diff --git a/ticv01.y b/ticv01.y index 0ea2a9b..f773c80 100644 --- a/ticv01.y +++ b/ticv01.y @@ -36,8 +36,7 @@ extern FILE *ticv01yyin; static void yyerror(const char *); extern bool filter_mode; -extern uint8_t *etiq_en; - +extern bool *etiq_en; %} %union { diff --git a/ticv02.y b/ticv02.y index 58cd9ef..6bfccca 100644 --- a/ticv02.y +++ b/ticv02.y @@ -28,8 +28,7 @@ extern FILE *ticv02yyin; static void yyerror(const char *); extern bool filter_mode; -extern uint8_t *etiq_en; - +extern bool *etiq_en; %} %union { -- 2.39.5

AltStyle によって変換されたページ (->オリジナル) /