blob: ca647a9f6e3b3550a544f66dd87fe964f4db29c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/**
** \file src/common.hh
** \brief Definitions common to the whole task system.
**
** These variables are global. As such they should not be used
** in the libraries, but only in the "imperative" subsystem: the
** tasks.
*/
#pragma once
#include <misc/error.hh>
#include <misc/timer.hh>
#ifdef SWIG
// Warning 451: Setting a const char * variable may leak memory.
%warnfilter(451) program_name;
%warnfilter(451) program_version;
%warnfilter(451) program_bug_address;
%warnfilter(451) program_doc;
%warnfilter(451) program_args_doc;
%warnfilter(451) filename;
#endif /* ! SWIG */
/// \name Program identity.
/// \{
/// Name of this program.
extern const char* program_name;
/// Version string of this program.
extern const char* program_version;
/// Bug report address of this program.
extern const char* program_bug_address;
/// Describe program and accepted arguments.
extern const char* program_doc;
extern const char* program_args_doc;
/// \}
/// Timing the tasks.
extern misc::timer task_timer;
/// Sole argument: the file to process.
extern const char* filename;
/// The current state of error.
extern misc::error& task_error();
|