remove useless new lines

This commit is contained in:
anon 2024-11-10 13:00:51 +01:00
parent a9e505d11c
commit cffb1763b4
7 changed files with 0 additions and 13 deletions

View File

@ -53,7 +53,6 @@
#endif
/* Exported variables: */
bool buildonly = false; /* only build the database */
bool unconditional = false; /* unconditionally build database */
bool fileschanged; /* assume some files changed */

View File

@ -608,7 +608,6 @@ char *inviewpath(char *file) {
}
/* add a source file to the list */
void addsrcfile(char *path) {
struct listitem *p;
int i;
@ -628,7 +627,6 @@ void addsrcfile(char *path) {
}
/* free the memory allocated for the source file list */
void freefilelist(void) {
struct listitem *p, *nextp;
int i;

View File

@ -144,7 +144,6 @@ static pid_t myfork(void) {
}
/* join is the compliment of fork */
static int join(pid_t p) {
int status = -1;
pid_t w;

View File

@ -497,7 +497,6 @@ static int invnewterm(void) {
* 'to' substring (which must be of the exact same length), and the function
* returns 0. Otherwise, returns -1.
*/
static int invflipname(char *invname, const char *from, const char *to) {
char *temp, *i = NULL;

View File

@ -148,7 +148,6 @@ static void initcompress(void) {
}
/* skip the list in the cross-reference file */
static void skiplist(FILE *oldrefs) {
int i;

View File

@ -86,7 +86,6 @@ char **parse_options(int *argc, char **argv) {
lopts,
&longind)) != -1) {
switch(opt) {
case '?':
usage();
myexit(1);

View File

@ -81,20 +81,17 @@ char *compress_path(char *pathname) /*FDEF*/
/*
* do not change the path if it has no "/"
*/
if(strchr(pathname, '/') == NULL) return (pathname);
/*
* find all strings consisting of more than one '/'
*/
for(lastchar = pathname + 1; *lastchar != '\0'; lastchar++)
if((*lastchar == '/') && (*(lastchar - 1) == '/')) {
/*
* find the character after the last slash
*/
nextchar = lastchar;
while(*++lastchar == '/') { }
@ -102,7 +99,6 @@ char *compress_path(char *pathname) /*FDEF*/
* eliminate the extra slashes by copying
* everything after the slashes over the slashes
*/
sofar = nextchar;
while((*nextchar++ = *lastchar++) != '\0')
;
@ -112,7 +108,6 @@ char *compress_path(char *pathname) /*FDEF*/
/*
* find all strings of "./"
*/
for(lastchar = pathname + 1; *lastchar != '\0'; lastchar++)
if((*lastchar == '/') && (*(lastchar - 1) == '.') &&
((lastchar - 1 == pathname) || (*(lastchar - 2) == '/'))) {
@ -120,7 +115,6 @@ char *compress_path(char *pathname) /*FDEF*/
/*
* copy everything after the "./" over the "./"
*/
nextchar = lastchar - 1;
sofar = nextchar;
while((*nextchar++ = *++lastchar) != '\0')