]> vcs.slashdirt.org Git - sw/tic2json.git/commitdiff

vcs.slashdirt.org Git - sw/tic2json.git/commitdiff

git git / sw / tic2json.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6662eef)
Make etiq_en an array of bool
2021年9月15日 19:38:16 +0000 (21:38 +0200)
2021年9月15日 19:44:59 +0000 (21:44 +0200)

diff --git a/tic.c b/tic.c
index 3200bfdf357276ae1db19777abb6f8abc05cbf1c..3edc43f882dae8786e57bd7abcdb36ceda852361 100644 (file)
--- 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 4f84b4e138a6b4fccda75d723286e5d03dd85233..43994e720a39b775c9e8821eb8650b3c31733b4a 100644 (file)
--- 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 0ea2a9b19e7c2f89f4db5820b951c91d9f2389e5..f773c8089f55055f449d201570e083aae43134aa 100644 (file)
--- 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 58cd9ef47057151769527473d0b477b7cd71d7a6..6bfccca0575c20502875a7d64d19f58d0825c1b6 100644 (file)
--- 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 {
tic2json TIC parser/converter
RSS Atom

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