Ahmet Göksu pushed to branch gsoc-2023-ahmet-final at FreeType / FreeType
Commits:
-
e381b90e
by goksu at 2023-09-21T14:37:50+03:00
1 changed file:
Changes:
1 | -/*
|
|
2 | - * This is a cheap replacement for getopt() because that routine is not
|
|
3 | - * available on some platforms and behaves differently on other platforms.
|
|
4 | - *
|
|
5 | - * This code is hereby expressly placed in the public domain.
|
|
6 | - * mleisher@crl.nmsu.edu (Mark Leisher)
|
|
7 | - * 10 October 1997
|
|
8 | - */
|
|
9 | - |
|
10 | -#ifndef MLGETOPT_H_
|
|
11 | -#define MLGETOPT_H_
|
|
12 | - |
|
13 | -#ifdef VMS
|
|
14 | -#include <stdio.h>
|
|
15 | -#define getopt local_getopt
|
|
16 | -#define optind local_optind
|
|
17 | -#define opterr local_opterr
|
|
18 | -#define optarg local_optarg
|
|
19 | -#endif
|
|
20 | - |
|
21 | -#ifdef __cplusplus
|
|
22 | - extern "C" {
|
|
23 | -#endif
|
|
24 | - |
|
25 | - extern int opterr;
|
|
26 | - extern int optind;
|
|
27 | - extern char* optarg;
|
|
28 | - |
|
29 | - extern int getopt(
|
|
30 | -#ifdef __STDC__
|
|
31 | - int argc,
|
|
32 | - char* const* argv,
|
|
33 | - const char* pattern
|
|
34 | -#endif
|
|
35 | - );
|
|
36 | - |
|
37 | -#ifdef __cplusplus
|
|
38 | - }
|
|
39 | -#endif
|
|
40 | - |
|
41 | -#endif /* MLGETOPT_H_ */
|
|
42 | - |
|
43 | - |
|
44 | -/* End */ |