[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS shishi/gl
From: |
shishi-commit |
Subject: |
CVS shishi/gl |
Date: |
Fri, 12 Nov 2004 14:18:49 +0100 |
Update of /home/cvs/shishi/gl
In directory dopio:/tmp/cvs-serv6599/gl
Modified Files:
progname.c progname.h
Log Message:
Fix progname usage.
--- /home/cvs/shishi/gl/progname.c 2004/09/17 11:46:35 1.4
+++ /home/cvs/shishi/gl/progname.c 2004/11/12 13:18:49 1.5
@@ -1,5 +1,5 @@
/* Program name management.
- Copyright (C) 2001-2004 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003 Free Software Foundation, Inc.
Written by Bruno Haible <address@hidden>, 2001.
This program is free software; you can redistribute it and/or modify
@@ -51,16 +51,3 @@
argv0 = base + 3;
program_name = argv0;
}
-
-/* Return short program name of the current executable, based on the
- earlier call to set_program_name. Return NULL if unknown. The
- short program name is computed by removing all directory names and
- path separators. */
-const char *
-get_short_program_name (void)
-{
- const char *slash = NULL;
- if (program_name)
- slash = strrchr (program_name, '/');
- return slash != NULL ? slash + 1 : program_name;
-}
--- /home/cvs/shishi/gl/progname.h 2004/10/05 18:54:41 1.7
+++ /home/cvs/shishi/gl/progname.h 2004/11/12 13:18:49 1.8
@@ -35,12 +35,6 @@
/* Set program_name, based on argv[0]. */
extern void set_program_name (const char *argv0);
-/* Return short program name of the current executable, based on the
- earlier call to set_program_name. Return NULL if unknown. The
- short program name is computed by removing all directory names and
- path separators. */
-extern const char *get_short_program_name (void);
-
#if ENABLE_RELOCATABLE
/* Set program_name, based on argv[0], and original installation prefix and
- CVS shishi/gl, shishi-commit, 2004/11/08
- CVS shishi/gl, shishi-commit, 2004/11/09
- CVS shishi/gl, shishi-commit, 2004/11/10
- CVS shishi/gl, shishi-commit, 2004/11/11
- CVS shishi/gl, shishi-commit, 2004/11/11
- CVS shishi/gl, shishi-commit, 2004/11/11
- CVS shishi/gl, shishi-commit, 2004/11/11
- CVS shishi/gl, shishi-commit, 2004/11/11
- CVS shishi/gl,
shishi-commit <=
- CVS shishi/gl, shishi-commit, 2004/11/19
- CVS shishi/gl, shishi-commit, 2004/11/19
- CVS shishi/gl, shishi-commit, 2004/11/21
- CVS shishi/gl, shishi-commit, 2004/11/28