Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
50f960ec
Commit
50f960ec
authored
Nov 09, 1996
by
Karl Berry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(\set, \value): Allow - and _ in @set variable names.
From-SVN: r13119
parent
e2773412
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
gcc/texinfo.tex
+14
-6
No files found.
gcc/texinfo.tex
View file @
50f960ec
%% TeX macros to handle Texinfo files.
%% TeX macros to handle Texinfo files.
%% $Id: texinfo.tex,v 2.18
7 1996/11/05 19:52:23
karl Exp karl $
%% $Id: texinfo.tex,v 2.18
8 1996/11/09 18:44:09
karl Exp karl $
% Copyright (C) 1985, 86, 88, 90, 91, 92, 93,
% Copyright (C) 1985, 86, 88, 90, 91, 92, 93,
% 94, 95, 1996 Free Software Foundation, Inc.
% 94, 95, 1996 Free Software Foundation, Inc.
...
@@ -868,7 +868,9 @@ where each line of input produces a line of output.}
...
@@ -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
% didn't need it. Make sure the catcode of space is correct to avoid
% losing inside @example, for instance.
% 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\setxxx
#1
{
\setyyy
#1
\endsetyyy
}
\def\setyyy
#1 #2
\endsetyyy
{
%
\def\setyyy
#1 #2
\endsetyyy
{
%
\def\temp
{
#2
}
%
\def\temp
{
#2
}
%
...
@@ -889,10 +891,16 @@ where each line of input produces a line of output.}
...
@@ -889,10 +891,16 @@ where each line of input produces a line of output.}
% @value{foo} gets the text saved in variable foo.
% @value{foo} gets the text saved in variable foo.
%
%
\def\value
#1
{
\expandafter
\def\value
{
\begingroup
\ifx\csname
SET#1
\endcsname\relax
\catcode
`
\-
=12
\catcode
`
\_
=12
% Allow - and _ in VAR.
{
\{
No value for ``#1''
\}
}
\parsearg\valuexxx
}
\else
\csname
SET#1
\endcsname
\fi
}
\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
% @ifset VAR ... @end ifset reads the `...' iff VAR has been defined
% with @set.
% with @set.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment