Debian Codegraph @

texk/lcdf-typetools/lcdf-typetools-src/otftotfm/util.hh

raw
1 #ifndef OTFTOTFM_UTIL_HH
2 #define OTFTOTFM_UTIL_HH
3 #include <lcdf/string.hh>
4 #include <lcdf/globmatch.hh>
5 #include <stdio.h>
6 class ErrorHandler;
7
8 extern bool no_create;
9 extern bool verbose;
10 extern bool force;
11
12 enum { G_ENCODING = 1, G_METRICS = 2, G_VMETRICS = 4, G_TYPE1 = 8,
13 G_PSFONTSMAP = 16, G_BINARY = 32, G_ASCII = 64, G_DOTLESSJ = 128,
14 G_UPDMAP = 256, G_TRUETYPE = 512, G_TYPE42 = 1024, G_UPDMAP_USER = 2048 };
15
16 extern unsigned output_flags;
17
18 String read_file(String filename, ErrorHandler *, bool warn = false);
19 String printable_filename(const String &);
20 String pathname_filename(const String &);
21 bool same_filename(const String &a, const String &b);
22 String shell_quote(const String &);
23 int temporary_file(String &, ErrorHandler *);
24 int mysystem(const char *command, ErrorHandler *);
25 FILE* mypopen(const char* command, const char* type, ErrorHandler* errh);
26 bool parse_unicode_number(const char*, const char*, int require_prefix, uint32_t& result);
27
28 #ifdef WIN32
29 #define WEXITSTATUS(es) (es)
30 #endif
31
32 template <typename T>
33 void ignore_result(T result) {
34 (void) result;
35 }
36
37 #endif