summaryrefslogtreecommitdiff
path: root/do_text.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-04-13 15:09:08 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-04-13 15:09:08 -0700
commit688bebb13c9a82983f544ff415440321a721fd53 (patch)
tree4f3c6fd7bf799cfbae74fc9a53ceca07c7a34fe3 /do_text.c
parent95ff3954dea7deb1cc995c09c404ebb22b6f18a0 (diff)
Strip trailing whitespace from source files
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'do_text.c')
-rw-r--r--do_text.c58
1 files changed, 29 insertions, 29 deletions
diff --git a/do_text.c b/do_text.c
index 34947b9..d09af5d 100644
--- a/do_text.c
+++ b/do_text.c
@@ -3,13 +3,13 @@ Copyright 1988, 1989 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@@ -34,7 +34,7 @@ static int charsPerLine, totalLines;
#define SEGS 3
-int
+int
InitText(XParms xp, Parms p, int64_t reps)
{
XGCValues gcv;
@@ -118,7 +118,7 @@ InitText(XParms xp, Parms p, int64_t reps)
| pci->ascent | pci->descent | pci->attributes) == 0); \
} /* GetRealChar */
-int
+int
InitText16(XParms xp, Parms p, int64_t reps)
{
XGCValues gcv;
@@ -218,7 +218,7 @@ InitText16(XParms xp, Parms p, int64_t reps)
return reps;
}
-void
+void
DoText(XParms xp, Parms p, int64_t reps)
{
int line, startLine;
@@ -240,7 +240,7 @@ DoText(XParms xp, Parms p, int64_t reps)
}
}
-void
+void
DoText16(XParms xp, Parms p, int64_t reps)
{
int line, startLine;
@@ -262,7 +262,7 @@ DoText16(XParms xp, Parms p, int64_t reps)
}
}
-void
+void
DoPolyText(XParms xp, Parms p, int64_t reps)
{
int line, startLine;
@@ -284,7 +284,7 @@ DoPolyText(XParms xp, Parms p, int64_t reps)
}
}
-void
+void
DoPolyText16(XParms xp, Parms p, int64_t reps)
{
int line, startLine;
@@ -306,7 +306,7 @@ DoPolyText16(XParms xp, Parms p, int64_t reps)
}
}
-void
+void
DoImageText(XParms xp, Parms p, int64_t reps)
{
int line, startLine;
@@ -328,7 +328,7 @@ DoImageText(XParms xp, Parms p, int64_t reps)
}
}
-void
+void
DoImageText16(XParms xp, Parms p, int64_t reps)
{
int line, startLine;
@@ -350,13 +350,13 @@ DoImageText16(XParms xp, Parms p, int64_t reps)
}
}
-void
+void
ClearTextWin(XParms xp, Parms p)
{
XClearWindow(xp->d, xp->w);
}
-void
+void
EndText(XParms xp, Parms p)
{
if(font==NULL)return;
@@ -370,7 +370,7 @@ EndText(XParms xp, Parms p)
XFreeFont(xp->d, bfont);
}
-void
+void
EndText16(XParms xp, Parms p)
{
if(font==NULL)return;
@@ -401,26 +401,26 @@ static XftFont *aafont;
static XftDraw *aadraw;
static XftColor aacolor;
-int
+int
InitAAText(XParms xp, Parms p, int64_t reps)
{
char ch;
XRenderColor color;
aafont = XftFontOpenName (xp->d, DefaultScreen (xp->d), p->font);
-
- if (aafont == NULL)
+
+ if (aafont == NULL)
{
- printf("Could not load font '%s', benchmark omitted\n",
+ printf("Could not load font '%s', benchmark omitted\n",
p->font);
return 0;
}
- aadraw = XftDrawCreate (xp->d, xp->w,
- xp->vinfo.visual,
+ aadraw = XftDrawCreate (xp->d, xp->w,
+ xp->vinfo.visual,
xp->cmap);
- if (!aadraw)
+ if (!aadraw)
{
printf ("Cannot create XftDraw object\n");
XftFontClose (xp->d, aafont);
@@ -431,7 +431,7 @@ InitAAText(XParms xp, Parms p, int64_t reps)
color.blue = 0;
color.alpha = 0xffff;
if (!XftColorAllocValue (xp->d,
- xp->vinfo.visual,
+ xp->vinfo.visual,
xp->cmap,
&color, &aacolor))
{
@@ -442,10 +442,10 @@ InitAAText(XParms xp, Parms p, int64_t reps)
aadraw = NULL;
return 0;
}
-
+
ypos = XPOS;
height = aafont->height;
-
+
charsPerLine = p->objects;
charsPerLine = (charsPerLine + 3) & ~3;
p->objects = charsPerLine;
@@ -466,7 +466,7 @@ InitAAText(XParms xp, Parms p, int64_t reps)
return reps;
}
-void
+void
DoAAText(XParms xp, Parms p, int64_t reps)
{
int line, startLine;
@@ -474,7 +474,7 @@ DoAAText(XParms xp, Parms p, int64_t reps)
startLine = 0;
line = 0;
for (int i = 0; i != reps; i++) {
- XftDrawString8 (aadraw, &aacolor, aafont,
+ XftDrawString8 (aadraw, &aacolor, aafont,
XPOS, ypos, (unsigned char *) charBuf[line], charsPerLine);
ypos += height;
if (ypos > HEIGHT - height) {
@@ -488,7 +488,7 @@ DoAAText(XParms xp, Parms p, int64_t reps)
}
}
-void
+void
EndAAText(XParms xp, Parms p)
{
if(!aadraw)return;
@@ -498,7 +498,7 @@ EndAAText(XParms xp, Parms p)
XftDrawDestroy (aadraw);
XftFontClose (xp->d, aafont);
XftColorFree (xp->d,
- xp->vinfo.visual,
+ xp->vinfo.visual,
xp->cmap,
&aacolor);
}