diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-06-24 09:37:07 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-06-24 09:37:07 +0000 |
commit | d8ee324e03e46ef3361a8ade3062034bc45795af (patch) | |
tree | 16db0d512972def0afb897cf289ac8ff65a6b389 /Build/source/texk/kpathsea/progname.h | |
parent | 151106e752f349fac3ef91258cdf305c1cd6dc79 (diff) |
kpathsea 6.2.0dev
git-svn-id: svn://tug.org/texlive/trunk@30892 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/progname.h')
-rw-r--r-- | Build/source/texk/kpathsea/progname.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Build/source/texk/kpathsea/progname.h b/Build/source/texk/kpathsea/progname.h index 3d012b35152..596424b466d 100644 --- a/Build/source/texk/kpathsea/progname.h +++ b/Build/source/texk/kpathsea/progname.h @@ -1,6 +1,6 @@ /* progname.h: Declarations for argv[0] equivalents. - Copyright 1994, 1996, 2008, 2010, 2011 Karl Berry. + Copyright 1994, 1996, 2008, 2010-2013 Karl Berry. Copyright 1999, 2005 Olaf Weber. This library is free software; you can redistribute it and/or @@ -22,6 +22,10 @@ #include <kpathsea/c-proto.h> #include <kpathsea/types.h> +#ifdef __cplusplus +extern "C" { +#endif + /* Return directory ARGV0 comes from. Check PATH if ARGV0 is not absolute. */ @@ -54,4 +58,13 @@ extern KPSEDLL void kpse_set_program_name (const_string argv0, const_string progname); #endif /* KPSE_COMPAT_API */ +/* Returns ARGV0 with any leading path and on some systems the suffix + for executables stripped off. This returns a new string. */ + +extern KPSEDLL string kpse_program_basename (const_string argv0); + +#ifdef __cplusplus +} +#endif + #endif /* not KPATHSEA_PROGNAME_H */ |