aboutsummaryrefslogtreecommitdiffstats
path: root/ui/urls.h
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2020-10-25 14:42:47 -0700
committerGuy Harris <gharris@sonic.net>2020-10-25 14:42:47 -0700
commitf7c99f73e2870ffa4e64ad26c064671225da287d (patch)
tree0b9452de526bb918cf2854d030ef9c8f68459681 /ui/urls.h
parenta8d023ba581bab311e58dce13706125b28271535 (diff)
Revert "Apparently, WS_WIKI_URL() is unworkable not only in C++ but in C."
This reverts commit 5df29254347daab8ab9f530a0b9dfd0b32a40efc. The problem only showed up in tfshark.c, and was caused by tfshark.c using stuff from ui/urls.h but not *including* ui/urls.h.
Diffstat (limited to 'ui/urls.h')
-rw-r--r--ui/urls.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/urls.h b/ui/urls.h
index 4d3d9fabad..0783090e3e 100644
--- a/ui/urls.h
+++ b/ui/urls.h
@@ -16,3 +16,8 @@
#define WS_FAQ_URL "https://www.wireshark.org/faq.html"
#define WS_Q_AND_A_URL "https://ask.wireshark.org"
#define WS_WIKI_HOME_URL "https://gitlab.com/wireshark/wireshark/-/wikis"
+
+/*
+ * Construct a wiki URL given the path to the wiki page.
+ */
+#define WS_WIKI_URL(path) WS_WIKI_HOME_URL "/" path