summaryrefslogtreecommitdiff
path: root/Build/source/utils/songs/songs-2.17/src/songidx/songidx.h
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2013-12-20 10:41:53 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2013-12-20 10:41:53 +0000
commit5ea8fa0cef406b98d720cda6f6b87a033439987b (patch)
tree0bf7f79b9b9e02b0c56d68faeeb9c2c3b9e62329 /Build/source/utils/songs/songs-2.17/src/songidx/songidx.h
parentacdc410c1a4278aa00a147cf413e432df66418f7 (diff)
songs 2.17
git-svn-id: svn://tug.org/texlive/trunk@32454 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/songs/songs-2.17/src/songidx/songidx.h')
-rw-r--r--Build/source/utils/songs/songs-2.17/src/songidx/songidx.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/Build/source/utils/songs/songs-2.17/src/songidx/songidx.h b/Build/source/utils/songs/songs-2.17/src/songidx/songidx.h
new file mode 100644
index 00000000000..c7be4dba87f
--- /dev/null
+++ b/Build/source/utils/songs/songs-2.17/src/songidx/songidx.h
@@ -0,0 +1,64 @@
+/* Copyright (C) 2013 Kevin W. Hamlen
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * The latest version of this program can be obtained from
+ * http://songs.sourceforge.net.
+ */
+
+#ifndef SONGIDX_H
+#define SONGIDX_H
+
+#if HAVE_CONFIG_H
+# include "config.h"
+#else
+# include "vsconfig.h"
+#endif
+
+#include "chars.h"
+#include "fileio.h"
+
+/* A SONGENTRY struct consists of three fields:
+ * title: a string representing the title of the song
+ * num: a string representing the song's number in the book (might be
+ * something like "H10")
+ * linkname: a string denoting the internal hyperlink label for this song
+ * idx: a unique integer key that should be used to sort songs with
+ * identical titles */
+typedef struct
+{
+ WCHAR *title;
+ WCHAR *num;
+ WCHAR *linkname;
+ int idx;
+}
+SONGENTRY;
+
+/* The following functions are in songsort.c */
+extern void skipesc(const WCHAR **p, int stop_on_space, int skipover_groups);
+extern int songcmp(const void *s1, const void *s2);
+
+/* The following function is in titleidx.c */
+extern int gentitleindex(FSTATE *fs, const char *outname);
+
+/* The following function is in scripidx.c */
+extern int genscriptureindex(FSTATE *fs, const char *outname,
+ const char *biblename);
+
+/* The following function is in authidx.c */
+extern int genauthorindex(FSTATE *fs, const char *outname);
+
+#endif