From: Hans Hagen Outside <pragma@wxs.nl>
Subject: Re: key=value parameters
Date: Fri, 23 Jul 2004 11:46:32 -0700 [thread overview]
Message-ID: <41015D08.10305@wxs.nl> (raw)
In-Reply-To: <4100EE2D.4000906@seznam.cz>
Vit Zyka wrote:
> Great, but unfortunately it does not work with empty parameter list [].
> No I have no time but I will look for better definition of
> \rawgetparameters and \rawsetparameter.
I fixed this a while ago, and not have:
%D \macros
%D {rawgetparameters}
%D
%D A raw and dirty alternative for \type {\getparameters}; no
%D checking is done!
% \def\rawgetparameters[#1][#2]% scheelt 5\%
% {\def\rawparameterprefix{#1}%
% \expandafter\rawsetparameter#2,]=,}
%
% \def\rawsetparameter#1=#2,%
% {\if]#1\else
% \expandafter\def\csname\rawparameterprefix#1\endcsname{#2}%
% \expandafter\rawsetparameter
% \fi}
%
% the next one handles empty #1 okay:
\def\rawgetparameters[#1][#2% some 5-10% faster
{\ifx#2]% test is needed, else bomb on [#1][]
\expandafter\gobbleoneargument
\else
\def\rawparameterprefix{#1}%
\expandafter\dorawgetparameters
\fi#2}
\def\dorawgetparameters#1]%
{\expandafter\rawsetparameter#1,]=,}
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
next prev parent reply other threads:[~2004-07-23 18:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-23 8:46 Vit Zyka
2004-07-23 9:12 ` Taco Hoekwater
2004-07-23 10:53 ` Vit Zyka
2004-07-23 11:07 ` Taco Hoekwater
2004-07-23 11:32 ` Re[2]: " Giuseppe Bilotta
2004-07-23 18:46 ` Hans Hagen Outside [this message]
2004-07-24 8:56 ` Vit Zyka
2004-07-24 16:10 ` Hans Hagen Outside
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41015D08.10305@wxs.nl \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).