Move strnatcmp.{h,c} from epan into wsutil: there's nothing epan-specific
there and moving it avoids having to recompile the file for use in editcap and mergecap (which don't link against libwireshark). svn path=/trunk/; revision=50650
This commit is contained in:
parent
e4bb300667
commit
2d30d5beb1
|
@ -930,7 +930,6 @@ if(BUILD_mergecap)
|
||||||
set(mergecap_FILES
|
set(mergecap_FILES
|
||||||
mergecap.c
|
mergecap.c
|
||||||
merge.c
|
merge.c
|
||||||
epan/strnatcmp.c
|
|
||||||
svnversion.h
|
svnversion.h
|
||||||
${WTAP_PLUGIN_SOURCES}
|
${WTAP_PLUGIN_SOURCES}
|
||||||
)
|
)
|
||||||
|
@ -984,7 +983,6 @@ if(BUILD_editcap)
|
||||||
set(editcap_FILES
|
set(editcap_FILES
|
||||||
editcap.c
|
editcap.c
|
||||||
epan/crypt/md5.c
|
epan/crypt/md5.c
|
||||||
epan/strnatcmp.c
|
|
||||||
${WTAP_PLUGIN_SOURCES}
|
${WTAP_PLUGIN_SOURCES}
|
||||||
)
|
)
|
||||||
add_executable(editcap ${editcap_FILES})
|
add_executable(editcap ${editcap_FILES})
|
||||||
|
|
|
@ -150,14 +150,12 @@ text2pcap_INCLUDES = \
|
||||||
# mergecap specifics
|
# mergecap specifics
|
||||||
mergecap_SOURCES = \
|
mergecap_SOURCES = \
|
||||||
mergecap.c \
|
mergecap.c \
|
||||||
merge.c \
|
merge.c
|
||||||
epan/strnatcmp.c
|
|
||||||
|
|
||||||
# editcap specifics
|
# editcap specifics
|
||||||
editcap_SOURCES = \
|
editcap_SOURCES = \
|
||||||
editcap.c \
|
editcap.c \
|
||||||
epan/crypt/md5.c \
|
epan/crypt/md5.c \
|
||||||
epan/strnatcmp.c \
|
|
||||||
$(WTAP_PLUGIN_SOURCES)
|
$(WTAP_PLUGIN_SOURCES)
|
||||||
|
|
||||||
# reordercap specifics
|
# reordercap specifics
|
||||||
|
|
|
@ -76,7 +76,8 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <wsutil/privileges.h>
|
#include <wsutil/privileges.h>
|
||||||
#include "wsutil/report_err.h"
|
#include <wsutil/report_err.h>
|
||||||
|
#include <wsutil/strnatcmp.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The symbols declared in the below are exported from libwireshark,
|
* The symbols declared in the below are exported from libwireshark,
|
||||||
|
@ -89,7 +90,6 @@
|
||||||
#include "epan/crypt/md5.h"
|
#include "epan/crypt/md5.h"
|
||||||
#include "epan/plugins.h"
|
#include "epan/plugins.h"
|
||||||
#include "epan/filesystem.h"
|
#include "epan/filesystem.h"
|
||||||
#include "epan/strnatcmp.h"
|
|
||||||
#undef WS_BUILD_DLL
|
#undef WS_BUILD_DLL
|
||||||
#define RESET_SYMBOL_EXPORT
|
#define RESET_SYMBOL_EXPORT
|
||||||
|
|
||||||
|
|
|
@ -1485,7 +1485,6 @@ set(LIBWIRESHARK_FILES
|
||||||
sna-utils.c
|
sna-utils.c
|
||||||
stat_cmd_args.c
|
stat_cmd_args.c
|
||||||
stats_tree.c
|
stats_tree.c
|
||||||
strnatcmp.c
|
|
||||||
strutil.c
|
strutil.c
|
||||||
stream.c
|
stream.c
|
||||||
t35.c
|
t35.c
|
||||||
|
|
|
@ -86,7 +86,6 @@ LIBWIRESHARK_SRC = \
|
||||||
sna-utils.c \
|
sna-utils.c \
|
||||||
stat_cmd_args.c \
|
stat_cmd_args.c \
|
||||||
stats_tree.c \
|
stats_tree.c \
|
||||||
strnatcmp.c \
|
|
||||||
strutil.c \
|
strutil.c \
|
||||||
stream.c \
|
stream.c \
|
||||||
t35.c \
|
t35.c \
|
||||||
|
@ -243,7 +242,6 @@ LIBWIRESHARK_INCLUDES = \
|
||||||
stats_tree.h \
|
stats_tree.h \
|
||||||
stats_tree_priv.h \
|
stats_tree_priv.h \
|
||||||
stream.h \
|
stream.h \
|
||||||
strnatcmp.h \
|
|
||||||
strutil.h \
|
strutil.h \
|
||||||
t35.h \
|
t35.h \
|
||||||
tap.h \
|
tap.h \
|
||||||
|
|
|
@ -47,9 +47,10 @@
|
||||||
#include "wsutil/wsgetopt.h"
|
#include "wsutil/wsgetopt.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "wsutil/strnatcmp.h"
|
||||||
|
|
||||||
#define WS_BUILD_DLL
|
#define WS_BUILD_DLL
|
||||||
#define RESET_SYMBOL_EXPORT /* wsutil/wsgetopt.h set export behavior above. */
|
#define RESET_SYMBOL_EXPORT /* wsutil/wsgetopt.h set export behavior above. */
|
||||||
#include "epan/strnatcmp.h"
|
|
||||||
#undef WS_BUILD_DLL
|
#undef WS_BUILD_DLL
|
||||||
#define RESET_SYMBOL_EXPORT
|
#define RESET_SYMBOL_EXPORT
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,7 @@ set(WSUTIL_FILES
|
||||||
mpeg-audio.c
|
mpeg-audio.c
|
||||||
nstime.c
|
nstime.c
|
||||||
privileges.c
|
privileges.c
|
||||||
|
strnatcmp.c
|
||||||
str_util.c
|
str_util.c
|
||||||
report_err.c
|
report_err.c
|
||||||
tempfile.c
|
tempfile.c
|
||||||
|
|
|
@ -43,6 +43,7 @@ LIBWSUTIL_SRC = \
|
||||||
mpeg-audio.c \
|
mpeg-audio.c \
|
||||||
nstime.c \
|
nstime.c \
|
||||||
privileges.c \
|
privileges.c \
|
||||||
|
strnatcmp.c \
|
||||||
str_util.c \
|
str_util.c \
|
||||||
report_err.c \
|
report_err.c \
|
||||||
tempfile.c \
|
tempfile.c \
|
||||||
|
@ -63,6 +64,7 @@ LIBWSUTIL_INCLUDES = \
|
||||||
mpeg-audio.h \
|
mpeg-audio.h \
|
||||||
nstime.h \
|
nstime.h \
|
||||||
privileges.h \
|
privileges.h \
|
||||||
|
strnatcmp.h \
|
||||||
str_util.h \
|
str_util.h \
|
||||||
report_err.h \
|
report_err.h \
|
||||||
tempfile.h \
|
tempfile.h \
|
||||||
|
|
Loading…
Reference in New Issue