cli_main: remove real_main from stack traces for non-Windows
authorPeter Wu <peter@lekensteyn.nl>
Wed, 26 Dec 2018 17:10:12 +0000 (18:10 +0100)
committerAnders Broman <a.broman58@gmail.com>
Wed, 2 Jan 2019 12:08:20 +0000 (12:08 +0000)
commite2e5b01d771339a596a418ec306fe00ab504e593
tree69b8cb5383cbb91c6890849194f2852bfeee1a94
parent974969cd0650d6c612e035b696b36c1d18b70bc9
cli_main: remove real_main from stack traces for non-Windows

Restore the "main" name since that is used everywhere else except for
Windows. On Windows, "main" is renamed via a macro to avoid a conflict
with "wmain" and to allow it to be called in cli_main.c.

For those wondering, GUI applications (such as Qt) have a different
entry point, namely WinMain. In Qt5, src/winmain/qtmain_win.cpp defines
WinMain, but seems to convert its arguments from Unicode to CP_ACP
(ASCII). It might not support UTF-8, but I did not verify this.

Change-Id: I93fa59324eb2ef95a305b08fc5ba34d49cc73bf0
Reviewed-on: https://code.wireshark.org/review/31208
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
18 files changed:
capinfos.c
captype.c
cli_main.c
cli_main.h
dumpcap.c
editcap.c
extcap/androiddump.c
extcap/ciscodump.c
extcap/randpktdump.c
extcap/sshdump.c
extcap/udpdump.c
mergecap.c
randpkt.c
rawshark.c
reordercap.c
text2pcap.c
tfshark.c
tshark.c