summaryrefslogtreecommitdiff
path: root/Build/source/utils/songs/songs-2.17-PATCHES/patch-01-protos
blob: 6ff7af9397fae3d64ed3265e35c4831592910c9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
diff -ur songs-2.17.orig/src/songidx/songidx.c songs-2.17/src/songidx/songidx.c
--- songs-2.17.orig/src/songidx/songidx.c	2013-01-02 21:06:06.000000000 +0100
+++ songs-2.17/src/songidx/songidx.c	2013-12-19 14:45:31.000000000 +0100
@@ -64,11 +64,6 @@
 #endif
 #endif
 
-extern int gentitleindex(FSTATE *fs, const char *outname);
-extern int genscriptureindex(FSTATE *fs, const char *outname,
-                             const char *biblename);
-extern int genauthorindex(FSTATE *fs, const char *outname);
-
 #define BIBLEDEFAULT "bible.can"
 
 #if HAVE_STRRCHR
diff -ur songs-2.17.orig/src/songidx/songidx.h songs-2.17/src/songidx/songidx.h
--- songs-2.17.orig/src/songidx/songidx.h	2013-01-02 21:06:12.000000000 +0100
+++ songs-2.17/src/songidx/songidx.h	2013-12-19 14:48:20.000000000 +0100
@@ -29,6 +29,7 @@
 #endif
 
 #include "chars.h"
+#include "fileio.h"
 
 /* A SONGENTRY struct consists of three fields:
  *   title: a string representing the title of the song
@@ -50,4 +51,14 @@
 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