File: cli_main.h

package info (click to toggle)
wireshark 4.0.17-0%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 303,556 kB
  • sloc: ansic: 2,742,402; cpp: 118,028; xml: 76,195; python: 48,557; perl: 23,721; lex: 6,898; sh: 4,848; pascal: 4,378; ruby: 114; makefile: 113; objc: 69; tcl: 35
file content (22 lines) | stat: -rw-r--r-- 691 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/** @file
 *
 * Declaration of the real main routine, for all CLI programs where the
 * main routine should get UTF-8 arguments on Windows.  In those programs,
 * in the file that defines the main routine, include this header and link
 * those programs with cli_main.c.
 *
 * This is used in software licensed under the GPLv2, and its license MUST
 * be compatible with that license.
 *
 * This is used in software licensed under the Apache 2.0 license, and its
 * license MUST be compatible with that license.
 *
 * For that purpose, we use the MIT (X11) license.
 *
 * SPDX-License-Identifier: MIT
 */

#ifdef _WIN32
int real_main(int argc, char *argv[]);
#define main    real_main
#endif