summaryrefslogtreecommitdiff
path: root/gcc/texinfo.tex
diff options
context:
space:
mode:
authorkarl <karl@138bc75d-0d04-0410-961f-82ee72b054a4>1996-11-09 23:37:11 +0000
committerkarl <karl@138bc75d-0d04-0410-961f-82ee72b054a4>1996-11-09 23:37:11 +0000
commitcb52a2a0f5a6111e1bfe283c569b72b29f4c9cbb (patch)
treefa2751606200b03670f7f901af4d73e9f5280c97 /gcc/texinfo.tex
parentf94e12009eae4a7319da8f8cfd6845d7b10f93cf (diff)
downloadgcc-cb52a2a0f5a6111e1bfe283c569b72b29f4c9cbb.tar.gz
(\set, \value): Allow - and _ in @set variable names.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13119 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/texinfo.tex')
-rw-r--r--gcc/texinfo.tex20
1 files changed, 14 insertions, 6 deletions
diff --git a/gcc/texinfo.tex b/gcc/texinfo.tex
index 1c1c4c7235e..0d8a74d08ba 100644
--- a/gcc/texinfo.tex
+++ b/gcc/texinfo.tex
@@ -1,5 +1,5 @@
%% TeX macros to handle Texinfo files.
-%% $Id: texinfo.tex,v 2.187 1996/11/05 19:52:23 karl Exp karl $
+%% $Id: texinfo.tex,v 2.188 1996/11/09 18:44:09 karl Exp karl $
% Copyright (C) 1985, 86, 88, 90, 91, 92, 93,
% 94, 95, 1996 Free Software Foundation, Inc.
@@ -868,7 +868,9 @@ where each line of input produces a line of output.}
% didn't need it. Make sure the catcode of space is correct to avoid
% losing inside @example, for instance.
%
-\def\set{\begingroup\catcode` =10 \parsearg\setxxx}
+\def\set{\begingroup\catcode` =10
+ \catcode`\-=12 \catcode`\_=12 % Allow - and _ in VAR.
+ \parsearg\setxxx}
\def\setxxx#1{\setyyy#1 \endsetyyy}
\def\setyyy#1 #2\endsetyyy{%
\def\temp{#2}%
@@ -889,10 +891,16 @@ where each line of input produces a line of output.}
% @value{foo} gets the text saved in variable foo.
%
-\def\value#1{\expandafter
- \ifx\csname SET#1\endcsname\relax
- {\{No value for ``#1''\}}
- \else \csname SET#1\endcsname \fi}
+\def\value{\begingroup
+ \catcode`\-=12 \catcode`\_=12 % Allow - and _ in VAR.
+ \parsearg\valuexxx}
+\def\valuexxx#1{%
+ \expandafter\ifx\csname SET#1\endcsname\relax
+ {\{No value for ``#1''\}}%
+ \else
+ \csname SET#1\endcsname
+ \fi
+\endgroup}
% @ifset VAR ... @end ifset reads the `...' iff VAR has been defined
% with @set.