From 54dfb949c0f1ea5ec1ce6d8edb99d5808e5b9364 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 8 Jan 2007 23:26:49 +0000 Subject: [PATCH] main must set program_name --- ChangeLog | 5 +++++ doc/error.texi | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index b08062317..f5b566eed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-01-08 Karl Berry + + * doc/error.texi: mention that main() fns must set program_name + when progname is used. + 2007-01-08 Paul Eggert * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if diff --git a/doc/error.texi b/doc/error.texi index 8668359ae..3a80486f3 100644 --- a/doc/error.texi +++ b/doc/error.texi @@ -20,3 +20,7 @@ GPL. RMS does not want additional baggage accompanying the @code{error} module, so an LGPL user must provide their own replacement @code{program_name}, and a GPL user should manually specify using the @code{progname} module. + +Additionally, using the @code{progname} module is not something that +can be done implicitly. It requires that every @code{main()} function +be modified to set @code{program_name} as one of its first actions. -- 2.11.0