diff options
author | Norbert Preining <norbert@preining.info> | 2021-07-04 03:01:24 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-07-04 03:01:24 +0000 |
commit | 7994f86ec5e18f9d0d9f90161a2f26dd26d26af7 (patch) | |
tree | 88edb7d1a1aed3183a1350202c898716b4ac59ce /macros/texinfo/texinfo/tp/Texinfo/XS/parsetexi/counter.h | |
parent | 03fa062b03ce2bb5385f8f30888f94d441fa5cb4 (diff) |
CTAN sync 202107040301
Diffstat (limited to 'macros/texinfo/texinfo/tp/Texinfo/XS/parsetexi/counter.h')
-rw-r--r-- | macros/texinfo/texinfo/tp/Texinfo/XS/parsetexi/counter.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/macros/texinfo/texinfo/tp/Texinfo/XS/parsetexi/counter.h b/macros/texinfo/texinfo/tp/Texinfo/XS/parsetexi/counter.h index 48c9bb21ec..9e5ce2873c 100644 --- a/macros/texinfo/texinfo/tp/Texinfo/XS/parsetexi/counter.h +++ b/macros/texinfo/texinfo/tp/Texinfo/XS/parsetexi/counter.h @@ -1,5 +1,10 @@ /* counter.h - definitions for counter.c */ -/* Copyright 2015-2019 Free Software Foundation, Inc. +#ifndef COUNTER_H +#define COUNTER_H + +#include "tree_types.h" + +/* Copyright 2015-2021 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -14,6 +19,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include "tree_types.h" + typedef struct { int *values; /* Array of values. */ ELEMENT **elts; /* Elements corresponding to each value. */ @@ -26,3 +33,9 @@ void counter_pop (COUNTER *c); void counter_inc (COUNTER *c); void counter_dec (COUNTER *c); int counter_value (COUNTER *c, ELEMENT *e); + +/* A large positive number used to represent an unlimited number of remaining + arguments. */ +#define COUNTER_VARIADIC 32767 + +#endif |