summaryrefslogtreecommitdiff
path: root/soltools/mkdepend/include.c
diff options
context:
space:
mode:
authorSander Vesik <svesik@openoffice.org>2004-04-21 12:26:47 +0000
committerSander Vesik <svesik@openoffice.org>2004-04-21 12:26:47 +0000
commitb7055f530bf2a0e006b896b4877c7e79765c81d6 (patch)
tree6eafc40c8bf64a98792dc689b6da4c69a997cd4e /soltools/mkdepend/include.c
parent8825bba51bee8ab04a980857111650d82a98898e (diff)
INTEGRATION: CWS ooo20040329 (1.2.68); FILE MERGED
2004/03/17 12:35:33 waratah 1.2.68.1: #i1858# add return types to subroutines add include file for string routines add a couple of forward declarations for internal routines
Diffstat (limited to 'soltools/mkdepend/include.c')
-rw-r--r--soltools/mkdepend/include.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/soltools/mkdepend/include.c b/soltools/mkdepend/include.c
index 337620c26cd3..a6b4289f10d4 100644
--- a/soltools/mkdepend/include.c
+++ b/soltools/mkdepend/include.c
@@ -28,6 +28,13 @@ in this Software without prior written authorization from the X Consortium.
#include "def.h"
+#include <string.h>
+
+void remove_dotdot( char * );
+int isdot( char * );
+int isdotdot( char * );
+int issymbolic(char * dir, char * component);
+
extern struct inclist inclist[ MAXFILES ],
*inclistp;
@@ -122,7 +129,7 @@ struct inclist *inc_path(file, include, dot)
* Any of the 'x/..' sequences within the name can be eliminated.
* (but only if 'x' is not a symbolic link!!)
*/
-remove_dotdot(path)
+void remove_dotdot(path)
char *path;
{
register char *end, *from, *to, **cp;
@@ -191,7 +198,7 @@ remove_dotdot(path)
strcpy(path, newpath);
}
-isdot(p)
+int isdot(p)
register char *p;
{
if(p && *p++ == '.' && *p++ == '\0')
@@ -199,7 +206,7 @@ isdot(p)
return(FALSE);
}
-isdotdot(p)
+int isdotdot(p)
register char *p;
{
if(p && *p++ == '.' && *p++ == '.' && *p++ == '\0')
@@ -207,7 +214,7 @@ isdotdot(p)
return(FALSE);
}
-issymbolic(dir, component)
+int issymbolic(dir, component)
register char *dir, *component;
{
#ifdef S_IFLNK
@@ -253,10 +260,10 @@ struct inclist *newinclude(newfile, incstring)
return(ip);
}
-included_by(ip, newfile)
+void included_by(ip, newfile)
register struct inclist *ip, *newfile;
{
- register i;
+ register int i;
if (ip == NULL)
return;
@@ -298,7 +305,7 @@ included_by(ip, newfile)
ip->i_list[ ip->i_listlen-1 ] = newfile;
}
-inc_clean ()
+void inc_clean ()
{
register struct inclist *ip;