summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjoerg <joerg>2012-06-25 11:18:39 +0000
committerjoerg <joerg>2012-06-25 11:18:39 +0000
commit9cc46efb62f0c46400bfdaa45d8669b11bdaa144 (patch)
treea5dab9f1734e1938f0902848d3c2dfdcb27095e9 /devel
parent4a606ca91f5ad37ca0d6d6f4fd8dacc58066990c (diff)
downloadpkgsrc-9cc46efb62f0c46400bfdaa45d8669b11bdaa144.tar.gz
Fix build with C99 compiler.
Diffstat (limited to 'devel')
-rw-r--r--devel/doxymacs/distinfo3
-rw-r--r--devel/doxymacs/patches/patch-c_doxymacs__parser.c112
2 files changed, 114 insertions, 1 deletions
diff --git a/devel/doxymacs/distinfo b/devel/doxymacs/distinfo
index 0abf20d4b13..7ecc6a87141 100644
--- a/devel/doxymacs/distinfo
+++ b/devel/doxymacs/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.2 2007/08/05 05:19:19 dsainty Exp $
+$NetBSD: distinfo,v 1.3 2012/06/25 11:18:39 joerg Exp $
SHA1 (doxymacs-1.8.0.tar.gz) = b2aafb4f2d20ceb63614c2b9f06d79dd484d8e2e
RMD160 (doxymacs-1.8.0.tar.gz) = f7a0657251d9220d75aec08dd796dbba3cfe99a5
Size (doxymacs-1.8.0.tar.gz) = 133600 bytes
+SHA1 (patch-c_doxymacs__parser.c) = d96e087ec14057ae1f58c6f44eecf8e0cd55b470
diff --git a/devel/doxymacs/patches/patch-c_doxymacs__parser.c b/devel/doxymacs/patches/patch-c_doxymacs__parser.c
new file mode 100644
index 00000000000..ec81dbd8d22
--- /dev/null
+++ b/devel/doxymacs/patches/patch-c_doxymacs__parser.c
@@ -0,0 +1,112 @@
+$NetBSD: patch-c_doxymacs__parser.c,v 1.1 2012/06/25 11:18:39 joerg Exp $
+
+--- c/doxymacs_parser.c.orig 2012-06-18 16:32:20.000000000 +0000
++++ c/doxymacs_parser.c
+@@ -70,7 +70,7 @@ typedef struct _hash_entry
+
+ hash_entry *symbol_hash[HASH_SIZE];
+
+-inline unsigned int hash(const char *s)
++static inline unsigned int hash(const char *s)
+ {
+ unsigned int h = 0;
+
+@@ -82,7 +82,7 @@ inline unsigned int hash(const char *s)
+ return abs(h % HASH_SIZE);
+ }
+
+-inline void AddToHash(completion_list *cl)
++static inline void AddToHash(completion_list *cl)
+ {
+ unsigned int h = hash(cl->symbol);
+ hash_entry **cur = &symbol_hash[h];
+@@ -96,7 +96,7 @@ inline void AddToHash(completion_list *c
+ }
+
+ /* mmmmm... free hash */
+-inline void FreeHash(void)
++static inline void FreeHash(void)
+ {
+ unsigned int i;
+ for (i = 0; i < HASH_SIZE; i++)
+@@ -117,7 +117,7 @@ inline void FreeHash(void)
+
+ /* XML Helper Functions */
+
+-inline char *XMLTagChild(xmlNodePtr node, const char *name)
++static inline char *XMLTagChild(xmlNodePtr node, const char *name)
+ {
+ xmlNodePtr cur = node->xmlChildrenNode;
+
+@@ -141,7 +141,7 @@ inline char *XMLTagChild(xmlNodePtr node
+ return NULL;
+ }
+
+-inline char *XMLTagAttr(xmlNodePtr node, const char *attr)
++static inline char *XMLTagAttr(xmlNodePtr node, const char *attr)
+ {
+ xmlAttrPtr props = node->properties;
+
+@@ -167,7 +167,7 @@ inline char *XMLTagAttr(xmlNodePtr node,
+
+ /* Look up functions for symbols and descriptions */
+
+-inline completion_list *LookUpSymbol(const char *symbol)
++static inline completion_list *LookUpSymbol(const char *symbol)
+ {
+ unsigned int h = hash(symbol);
+ hash_entry *cur = symbol_hash[h];
+@@ -187,7 +187,7 @@ inline completion_list *LookUpSymbol(con
+ return NULL;
+ }
+
+-inline desc_url_list *LookUpDesc(completion_list *entry, const char *desc)
++static inline desc_url_list *LookUpDesc(completion_list *entry, const char *desc)
+ {
+ desc_url_list *cur = entry->descs;
+
+@@ -206,7 +206,7 @@ inline desc_url_list *LookUpDesc(complet
+
+ /* Add the given name, description and url to our completion list */
+
+-inline int AddToCompletionList(const char *name,
++static inline int AddToCompletionList(const char *name,
+ const char *desc, const char *url)
+ {
+ completion_list *check;
+@@ -274,7 +274,7 @@ inline int AddToCompletionList(const cha
+ }
+
+ /* Encode the given string so that {X}Emacs will understand it */
+-inline char *Encode(const char *s)
++static inline char *Encode(const char *s)
+ {
+ unsigned int extra_len = 0;
+ char *c = (char *)s;
+@@ -341,7 +341,7 @@ inline char *Encode(const char *s)
+
+ /* Output the completion list in a way {X}Emacs can easily read in */
+
+-inline int OutputCompletionList(void)
++static inline int OutputCompletionList(void)
+ {
+ completion_list *cur = comp_list;
+
+@@ -400,7 +400,7 @@ inline int OutputCompletionList(void)
+
+ /* Clean up */
+
+-inline void FreeCompletionList(void)
++static inline void FreeCompletionList(void)
+ {
+ completion_list *cur = comp_list;
+
+@@ -429,7 +429,7 @@ inline void FreeCompletionList(void)
+
+ /* Add the members of a compound to the completion list */
+
+-inline int AddCompoundMembers(xmlNodePtr compound,
++static inline int AddCompoundMembers(xmlNodePtr compound,
+ const char *name, const char *url)
+ {
+ xmlNodePtr child = compound->xmlChildrenNode;