comparison lib/progname.h @ 12386:8fd02a53bfe5

progname: Clarify specification.
author Bruno Haible <bruno@clisp.org>
date Sat, 05 Dec 2009 12:14:04 +0100
parents bbbbbf4cd1c5
children e8d2c6fc33ad
comparison
equal deleted inserted replaced
12385:ad3ca6ce84b0 12386:8fd02a53bfe5
1 /* Program name management. 1 /* Program name management.
2 Copyright (C) 2001-2004, 2006 Free Software Foundation, Inc. 2 Copyright (C) 2001-2004, 2006, 2009 Free Software Foundation, Inc.
3 Written by Bruno Haible <haible@clisp.cons.org>, 2001. 3 Written by Bruno Haible <bruno@clisp.org>, 2001.
4 4
5 This program is free software: you can redistribute it and/or modify 5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or 7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version. 8 (at your option) any later version.
29 29
30 30
31 /* String containing name the program is called with. */ 31 /* String containing name the program is called with. */
32 extern const char *program_name; 32 extern const char *program_name;
33 33
34 /* Set program_name, based on argv[0]. */ 34 /* Set program_name, based on argv[0].
35 argv0 must be a string allocated with indefinite extent, and must not be
36 modified after this call. */
35 extern void set_program_name (const char *argv0); 37 extern void set_program_name (const char *argv0);
36 38
37 #if ENABLE_RELOCATABLE 39 #if ENABLE_RELOCATABLE
38 40
39 /* Set program_name, based on argv[0], and original installation prefix and 41 /* Set program_name, based on argv[0], and original installation prefix and