Tests: Fix memory leaks in test_block_header.
[xz/debian.git] / src / common / tuklib_progname.h
blobbb80f25e038143f61653664ec95316940a157f04
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 /// \file tuklib_progname.h
4 /// \brief Program name to be displayed in messages
5 //
6 // Author: Lasse Collin
7 //
8 // This file has been put into the public domain.
9 // You can do whatever you want with this file.
11 ///////////////////////////////////////////////////////////////////////////////
13 #ifndef TUKLIB_PROGNAME_H
14 #define TUKLIB_PROGNAME_H
16 #include "tuklib_common.h"
17 #include <errno.h>
19 TUKLIB_DECLS_BEGIN
21 #ifdef HAVE_PROGRAM_INVOCATION_NAME
22 # define progname program_invocation_name
23 #else
24 # define progname TUKLIB_SYMBOL(tuklib_progname)
25 extern char *progname;
26 #endif
28 #define tuklib_progname_init TUKLIB_SYMBOL(tuklib_progname_init)
29 extern void tuklib_progname_init(char **argv);
31 TUKLIB_DECLS_END
32 #endif