Defining convenience wrapper for @def... categories

Arsen Arsenović <[email protected]>
Newsgroups gmane.comp.tex.texinfo.general
Message-ID <[email protected]>
Hi,

I'm working on the GCC manual again (finally!), and I'm trying to
harmonize it on using definition commands for built-ins et al.  For
writing convenience, as well as consistency, I'd like to define aliases
for commonly-used categories (for instance, I'd like to define a
@defbuiltin = @deftypefn {Built-in Function} ...).

I tried the obvious:

  @c Convenience macro for defining builtins, in similar spirit
  @c to @deftypefun for functions.
  @macro defbuiltin
  @deftypefn {Built-in Function}
  @end macro

  @macro defbuiltinx
  @deftypefnx {Built-in Function}
  @end macro

The above, however, is not a drop-in replacement for the fully expanded
form, since something like

  @defbuiltin {size_t} __builtin_object_size ...

... breaks, where the expanded equivalent does not; however, it does
work in some cases, such as:

  @defbuiltin @var{type} __sync_add_and_fetch (@var{type} *ptr, @
                                               @var{type} value, @
                                               ...)

This also requires that the command is terminated by @end deftypefn,
which exposes the detail of the implementation of the macro, and hence
is a bit ugly.

What's the idiomatic way to make such an alias?  Is there any currently?

Thanks in advance, have a nice day.
-- 
Arsen Arsenović
signature.asc (application/pgp-signature, 381 B)
-----BEGIN PGP SIGNATURE-----

iOYEARYKAI4WIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCY8r+GV8UgAAAAAAuAChp
c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0RkVF
MkIzRDExM0ZDMDBBMzE2MkQ2MDYxNTJDMjk0MzAxRUEyQzQ5MxAcYXJzZW5AYWFy
c2VuLm1lAAoJEFLClDAeosSTDocBAO+6vHx84VCh/mNdXD506KSdksOpSi2t1zCA
nonv4RnCAQDrCtTq0/94scn08HheUIjD+RK/G6SnsDlXJvQUAnLbAQ==
=d6NE
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.