bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

progname.h contradicts gnu coding standards


From: John Darrington
Subject: progname.h contradicts gnu coding standards
Date: Tue, 20 Mar 2007 12:58:21 +0900
User-agent: Mutt/1.5.9i

The instructions in progname.h say:

/* Programs using this file should do the following in main():
     set_program_name (argv[0]);
 */

/* Set program_name, based on argv[0].  */
extern void set_program_name (const char *argv0);


but the GNU coding standards say:

 "The program's name should be a constant string; don't compute it from
 argv[0]. The idea is to state the standard or canonical name for the
 program, not its file name."



J'

-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.


Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]