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 #endif
/* Exported variables: */ /* Exported variables: */
bool buildonly = false; /* only build the database */ bool buildonly = false; /* only build the database */
bool unconditional = false; /* unconditionally build database */ bool unconditional = false; /* unconditionally build database */
bool fileschanged; /* assume some files changed */ bool fileschanged; /* assume some files changed */

View File

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

View File

@ -144,7 +144,6 @@ static pid_t myfork(void) {
} }
/* join is the compliment of fork */ /* join is the compliment of fork */
static int join(pid_t p) { static int join(pid_t p) {
int status = -1; int status = -1;
pid_t w; 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 * 'to' substring (which must be of the exact same length), and the function
* returns 0. Otherwise, returns -1. * returns 0. Otherwise, returns -1.
*/ */
static int invflipname(char *invname, const char *from, const char *to) { static int invflipname(char *invname, const char *from, const char *to) {
char *temp, *i = NULL; char *temp, *i = NULL;

View File

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

View File

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

View File

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