~ubuntu-branches/ubuntu/quantal/gnutls26/quantal

« back to all changes in this revision

Viewing changes to gl/progname.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-05-20 13:07:18 UTC
  • mfrom: (12.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20110520130718-db41dybbanzfvlji
Tags: 2.10.5-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Fix build failure with --no-add-needed.
  - Build for multiarch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Program name management.
2
 
   Copyright (C) 2001-2004, 2006 Free Software Foundation, Inc.
3
 
   Written by Bruno Haible <haible@clisp.cons.org>, 2001.
 
2
   Copyright (C) 2001-2004, 2006, 2009-2010 Free Software Foundation, Inc.
 
3
   Written by Bruno Haible <bruno@clisp.org>, 2001.
4
4
 
5
5
   This program is free software: you can redistribute it and/or modify
6
6
   it under the terms of the GNU General Public License as published by
31
31
/* String containing name the program is called with.  */
32
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
37
extern void set_program_name (const char *argv0);
36
38
 
37
39
#if ENABLE_RELOCATABLE
39
41
/* Set program_name, based on argv[0], and original installation prefix and
40
42
   directory, for relocatability.  */
41
43
extern void set_program_name_and_installdir (const char *argv0,
42
 
                                             const char *orig_installprefix,
43
 
                                             const char *orig_installdir);
 
44
                                             const char *orig_installprefix,
 
45
                                             const char *orig_installdir);
44
46
#undef set_program_name
45
47
#define set_program_name(ARG0) \
46
48
  set_program_name_and_installdir (ARG0, INSTALLPREFIX, INSTALLDIR)