Trivial changes: whitespace and modes.

Remote whitespace at the ends of lines.
Remove blank lines from the ends of files.
Change modes on source files so that they
are not executable.

Signed-off-by: Dan Cross <cross@gajendra.net>
This commit is contained in:
Dan Cross 2020-01-10 14:44:21 +00:00
parent 77a0a5b519
commit fa325e9b42
1021 changed files with 5688 additions and 6193 deletions

View file

@ -259,4 +259,3 @@ concat(m1)
} /* End of concat */
/*****************************************************************************/

View file

@ -124,4 +124,3 @@
#define ENDPAGE "%%EndPage:"
#define FORMSPERPAGE "%%FormsPerPage:"
#define VERSION "%%Version:"

View file

@ -45,4 +45,3 @@ void *galloc(void *, int, char *);
void pagelist(char *);
int safe_tmpnam(char*);

View file

@ -33,7 +33,7 @@ extern void interrupt(int);
extern int cat(char*);
extern void concat(double*);
/*
/*
* extern char *tempnam(char*,char*);
* extern char *malloc();
* extern char *calloc();

View file

@ -66,4 +66,3 @@ extern char* safe_tempnam(char*, char*);
#define ABS(A) ((A) >= 0 ? (A) : -(A))
#define MIN(A, B) ((A) < (B) ? (A) : (B))
#define MAX(A, B) ((A) > (B) ? (A) : (B))

View file

@ -26,4 +26,3 @@ double pagewidth = PAGEWIDTH;
int reading = UTFENCODING; /* input */
int writing = WRITING; /* and output encoding */

View file

@ -238,4 +238,3 @@ void interrupt(sig)
} /* End of interrupt */
/*****************************************************************************/

View file

@ -29,4 +29,3 @@
#define FONTDIR "#9/troff/font"
#define POSTLIBDIR "#9/postscript/prologues"
#define TEMPDIR "/var/tmp"

View file

@ -127,4 +127,3 @@ dumprequest(want, file, fp_out)
} /* End of dumprequest */
/*****************************************************************************/

View file

@ -19,4 +19,3 @@ typedef struct {
int page;
char *file;
} Request;

View file

@ -565,4 +565,3 @@ Map *allocate(ptr, num)
} /* End of allocate */
/*****************************************************************************/

View file

@ -11,4 +11,3 @@ typedef struct map {
} Map;
Map *allocate();

View file

@ -8,7 +8,7 @@
*
* where font.ibm is the font file, exactly as it came over from an IBM PC,
* and font.unix is equivalent host resident font file usable on Unix systems.
*
*
*/
#include <stdio.h>
@ -212,7 +212,7 @@ asciitext(count)
ch = '\n';
putc(ch, fp_out);
} /* End for */
} /* End of asciitext */
/*****************************************************************************/
@ -238,7 +238,7 @@ hexdata(count)
if ( (++n % 40) == 0 )
putc('\n', fp_out);
} /* End for */
} /* End of hexdata */
/*****************************************************************************/
@ -263,7 +263,7 @@ getint()
return(val);
} /* End of getint */
} /* End of getint */
/*****************************************************************************/
@ -293,4 +293,3 @@ error(kind, mesg, a1, a2, a3)
} /* End of error */
/*****************************************************************************/

View file

@ -13,13 +13,13 @@ static int code39[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* sp ! " # $ % & ' */
0304, 0, 0, 0, 0250, 0052, 0, 0,
0304, 0, 0, 0, 0250, 0052, 0, 0,
/* ( ) * + , - - / */
0, 0, 0224, 0212, 0, 0205, 0604, 0242,
/* 0 1 2 3 4 5 6 7 */
0064, 0441, 0141, 0540, 0061, 0460, 0160, 0045,
/* 8 9 : ; < = > ? */
0444, 0144, 0, 0, 0, 0, 0, 0,
0444, 0144, 0, 0, 0, 0, 0, 0,
/* @ A B C D E F G */
0, 0411, 0111, 0510, 0031, 0430, 0130, 0015,
/* H I J K L M N O */

View file

@ -8,7 +8,7 @@
*
* where font.mac is the font file, exactly as it came over from a Macintosh,
* and font.unix is equivalent host resident font file usable on Unix systems.
*
*
*/
#include <stdio.h>
@ -215,7 +215,7 @@ asciitext(count)
ch = '\n';
putc(ch, fp_out);
} /* End for */
} /* End of asciitext */
/*****************************************************************************/
@ -241,7 +241,7 @@ hexdata(count)
if ( (++n % 40) == 0 )
putc('\n', fp_out);
} /* End for */
} /* End of hexdata */
/*****************************************************************************/
@ -265,7 +265,7 @@ getint()
return(val);
} /* End of getint */
} /* End of getint */
/*****************************************************************************/
@ -296,4 +296,3 @@ error(kind, mesg, a1, a2, a3)
} /* End of error */
/*****************************************************************************/

View file

@ -332,4 +332,3 @@ Getc(fp)
} /* End of Getc */
/*****************************************************************************/

View file

@ -364,7 +364,7 @@ moreprolog(str)
* up being copied to the output file and FALSE will be returned to the caller.
* The first call (made from reverse()) looks for ENDPROLOG. Any other call comes
* from readpages() and will be looking for the ENDSETUP comment.
*
*
*/
len = strlen(FORMSPERPAGE);
@ -541,4 +541,3 @@ trailer()
} /* End of trailer */
/*****************************************************************************/

View file

@ -18,4 +18,3 @@ typedef struct {
*/
char *copystdin();

View file

@ -22,7 +22,7 @@ Bskipws(Biobuf *bp) {
do {
r = Bgetrune(bp);
if (r == '\n') inputlineno++;
sindex++;
sindex++;
} while (r>=0 && isspace(r));
if (r<0) {
return(-1);
@ -49,7 +49,7 @@ asc2dig(char c, int base) {
}
/* get a string of type: "d" for decimal integer, "u" for unsigned,
* "s" for string", "c" for char,
* "s" for string", "c" for char,
* return the number of characters gotten for the field. If nothing
* was gotten and the end of file was reached, a negative value
* from the Bgetrune is returned.
@ -86,7 +86,7 @@ Bgetfield(Biobuf *bp, int type, void *thing, int size) {
case '0':
base = 8;
continue;
default:
default:
break;
}
break;
@ -96,7 +96,7 @@ Bgetfield(Biobuf *bp, int type, void *thing, int size) {
continue;
}
}
if ((dig = asc2dig(r, base)) == -1) bailout = TRUE;
if ((dig = asc2dig(r, base)) == -1) bailout = TRUE;
else n = dig + (n * base);
}
if (r < 0) return(-1);
@ -118,7 +118,7 @@ Bgetfield(Biobuf *bp, int type, void *thing, int size) {
continue;
}
}
if ((dig = asc2dig(r, base)) == -1) bailout = TRUE;
if ((dig = asc2dig(r, base)) == -1) bailout = TRUE;
else u = dig + (n * base);
}
*(int *)thing = u;

View file

@ -272,7 +272,7 @@ readtroffmetric(char *fontname, int trindex) {
if (*cp == 0) *cp = galloc(0, sizeof(struct charent), "readtroffmetric:charent");
(*cp)->postfontid = thisfont;
(*cp)->postcharid = thischar;
(*cp)->postcharid = thischar;
(*cp)->troffcharwidth = ntoken;
(*cp)->name = galloc(0, 2, "readtroffmetric: char name");
(*cp)->next = 0;
@ -283,7 +283,7 @@ readtroffmetric(char *fontname, int trindex) {
line++;
break;
}
if (!errorflg) {
if (!errorflg) {
line++;
}
} while(!errorflg && rv>=0);
@ -351,7 +351,7 @@ flush:
}
if (*cp == 0) *cp = galloc(0, sizeof(struct charent), "readtroffmetric:charent");
(*cp)->postfontid = RUNEGETGROUP(charnum);
(*cp)->postcharid = RUNEGETCHAR(charnum);
(*cp)->postcharid = RUNEGETCHAR(charnum);
(*cp)->troffcharwidth = width;
(*cp)->name = galloc(0, strlen(stoken)+1, "readtroffmetric: char name");
(*cp)->next = 0;

View file

@ -175,4 +175,3 @@ devcntl(Biobuf *inp) {
while ((c = Bgetc(inp)) != '\n' && c != Beof);
inputlineno++;
}

View file

@ -220,7 +220,7 @@ drawpath(char *buf, int copy) {
* was expected to be legitimate PostScript that manipulated the current path.
* The old escape sequence will be supported for a while (for Ravi), and always
* call this routine with copy set to TRUE.
*
*
*
*/

View file

@ -71,7 +71,7 @@ readDESC(void) {
printdesclang=galloc(printdesclang, strlen(token)+1, "readdesc:");
strcpy(printdesclang, token);
if (debug) Bprint(Bstderr, "PDL %s\n", token);
break;
break;
case 1:
encoding=galloc(encoding, strlen(token)+1, "readdesc:");
strcpy(encoding, token);
@ -85,7 +85,7 @@ readDESC(void) {
}
fontmnt = atoi(token) + 1;
fontmtab = galloc(fontmtab, fontmnt*sizeof(char *), "readdesc:");
for (i=0; i<fontmnt; i++)
fontmtab[i] = 0;
fontindex = 0;

View file

@ -139,7 +139,7 @@ main(int argc, char *argv[]) {
}
atexit(cleanup);
Bstdout = bstdout; /* &bstdout->Biobufhdr; */
ARGBEGIN{
case 'a': /* aspect ratio */
aspectratio = atof(ARGF());
@ -239,7 +239,7 @@ main(int argc, char *argv[]) {
exits("read");
}
finish();
exits("");
return 0;
}

View file

@ -47,7 +47,7 @@ hmot(int x) {
if (delta == troffontab[curtrofffontid].spacewidth*fontsize/10 && isinstring()) {
if (pageon()) runeout(' ');
} else {
if (pageon()) {
if (pageon()) {
endstring();
/* Bprint(Bstdout, " %d 0 rmoveto ", delta); */
/* Bprint(Bstdout, " %d %d m ", hpos+x, vpos); */
@ -160,7 +160,7 @@ if (debug) fprint(2, " looking through special fonts: trying %s\n", troffontab[f
if (*cp != 0) goto foundit;
}
}
if (*cp == 0) {
error(WARNING, "cannot find glyph, rune=0x%x stoken=<%s> troff font %s\n", rune, stoken,
troffontab[curtrofffontid].trfontid);
@ -174,7 +174,7 @@ foundit:
Bprint(Bstderr, "runeout(0x%x)<%C> postfontid=0x%x postcharid=0x%x troffcharwidth=%d\n",
rune, rune, (*cp)->postfontid, (*cp)->postcharid, (*cp)->troffcharwidth);
}
tfp = &(troffontab[fontid]);
for (i=0; i<tfp->psfmapsize; i++) {
psfp = &(tfp->psfmap[i]);