blob: 16e42416890299caac96204178f687a2e21a6085 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
/****************************************************************************/
/* */
/* The FreeType project -- a free and portable quality TrueType renderer. */
/* */
/* Copyright 1996-2001 by */
/* D. Turner, R.Wilhelm, and W. Lemberg */
/* */
/* common.h: Various utility functions. */
/* */
/****************************************************************************/
#ifndef COMMON_H
#define COMMON_H
#include <stdio.h>
/*
* This is a cheap replacement for getopt() because that routine is not
* available on some platforms and behaves differently on other platforms.
*
* This code is hereby expressly placed in the public domain.
* mleisher@crl.nmsu.edu (Mark Leisher)
* 10 October 1997
*/
#ifdef __cplusplus
extern "C" {
#endif
extern int ft_opterr;
extern int ft_optind;
extern char* ft_optarg;
extern int ft_getopt(
#ifdef __STDC__
int argc,
char* const* argv,
const char* pattern
#endif
);
/****************************************************************************/
/* */
/* Stupid but useful functions... */
/* */
/* rewritten by DavidT to get rid of GPLed programs in the FreeType engine. */
extern char* ft_basename(
#ifdef __STDC__
const char* name
#endif
);
/* print a message and exit */
extern void Panic(
#ifdef __STDC__
const char* fmt, ...
#endif
);
extern void separator_line(
#ifdef __STDC__
FILE* out,
const int length
#endif
);
#ifdef __cplusplus
}
#endif
#endif /* COMMON_H */
/* End */
|