[pdftex] Adress for pdftex --help

Olaf Weber olaf at infovore.xs4all.nl
Mon Jul 12 20:35:49 CEST 2004


Martin Schröder writes:

> This would work if usage.c would know anything about pdf*TeX,
> which it doesn't. :-(

> Olaf?

Clearly there are several possibilities.  The simplest route is to
just assign whatever address you want to kpse_bug_address.

Another way is to convert the inconvenient constant into a function
parameter, for example like this:

/* bug_address should be a complete message, including newline.
 * Example: "Email bug reports to tex-k at mail.tug.org.\n"
 */
void
usagehelpaddr P2C(const_string*,message, const_string,bug_address)
{
    while (*message) {
        printf("%s\n", *message);
        ++message;
    }
    printf("\n%s", bug_address);
    uexit(0);
}

void
usagehelp P1C(const_string*, message)
{
    extern KPSEDLL char *kpse_bug_address;
    usagehelpaddr(message, kpse_bug_address);
}

-- 
Olaf Weber

               (This space left blank for technical reasons.)



More information about the pdftex mailing list