Change-Id: I7ff5a0ea3eb3f7f56debc54aee6d5147815acc1b
Reviewed-on: https://code.wireshark.org/review/24552
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot
Reviewed-by: João Valverde <j@v6e.pt>
#
file(GENERATE
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/dissectors.c.in"
- CONTENT "$<JOIN:${ALL_DISSECTOR_SRC}, >"
+ CONTENT "$<JOIN:${ALL_DISSECTOR_SRC},\n>\n"
)
add_custom_command(
OUTPUT dissectors.c
#
dissectors.c: make-dissectors $(ALL_DISSECTORS_SRC)
@echo Making dissectors.c
- @echo $(filter %.c,$^) > $@.in && \
+ @echo $(filter %.c,$^) | tr ' ' '\n' > $@.in && \
$(builddir)/make-dissectors $@ @$@.in
MOSTLYCLEANFILES = \
#define ARRAY_RESERVED_SIZE 2048
+#ifdef _WIN32
+ #define SEP "\r\n"
+#else
+ #define SEP "\n"
+#endif
+
GRegex *protos_regex, *handoffs_regex;
static int
if (!g_file_get_contents(list, &contents, NULL, NULL))
return;
- for (arg = strtok(contents, " \n"); arg != NULL; arg = strtok(NULL, " \n")) {
+ for (arg = strtok(contents, SEP); arg != NULL; arg = strtok(NULL, SEP)) {
scan_file(arg, protos, handoffs);
}
g_free(contents);