34000ae8831e46a8acec901708bb46f30ada40e5
max
  Mon Jan 4 08:52:10 2016 -0800
adding a comment to describe hgMenubar, no redmine

diff --git src/hg/hgMenubar/hgMenubar.c src/hg/hgMenubar/hgMenubar.c
index 09efda2..633a17b 100644
--- src/hg/hgMenubar/hgMenubar.c
+++ src/hg/hgMenubar/hgMenubar.c
@@ -1,15 +1,21 @@
+/*
+ * This CGI is used by static html pages to show a menu bar.
+ * On an Apache with activated SSI, a html statement like
+ * <!--#include virtual="../cgi-bin/hgMenubar"-->
+ * will include the menu bar into a static page.
+ */
 #include "common.h"
 #include "dystring.h"
 #include "filePath.h"
 #include "linefile.h"
 
 #define CGI_NAME "cgi-bin/hgMenubar"
 
 struct dyString *navBarFilePath(char *cgiPath, char *docRoot)
 {
 struct dyString *navPath = dyStringCreate("%s", docRoot);
 // Memory leak - replaceChars returns memory that is never freed
 char *incPath = replaceChars(cgiPath, "/cgi-bin/hgMenubar", "/inc/globalNavBar.inc");
 
 dyStringAppend(navPath, incPath);
 return navPath;