summaryrefslogtreecommitdiff
path: root/header.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-10 22:48:12 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-10 22:48:12 -0800
commit468b19fd8729690dc4c2d1a1f20294991949ac35 (patch)
tree5c0fa425e2b13efc0aa2d4078a40546498811ec6 /header.c
parenta15d4d640732edf31f462c606d358e6ff7ddb60f (diff)
Strip trailing whitespace
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'header.c')
-rw-r--r--header.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/header.c b/header.c
index 4378d32..31814e6 100644
--- a/header.c
+++ b/header.c
@@ -1,5 +1,5 @@
/*
-
+
Copyright 1990, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
@@ -23,7 +23,7 @@ used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
* Copyright 1990 Network Computing Devices;
- * Portions Copyright 1987 by Digital Equipment Corporation
+ * Portions Copyright 1987 by Digital Equipment Corporation
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby granted without fee, provided
@@ -66,9 +66,9 @@ static const char *warning[] =
static char *
FindStringProperty(const char *propName,
- int *propLength,
- FSPropInfo *propInfo,
- FSPropOffset *propOffsets,
+ int *propLength,
+ FSPropInfo *propInfo,
+ FSPropOffset *propOffsets,
unsigned char *propData)
{
FSPropOffset *propOffset;
@@ -83,7 +83,7 @@ FindStringProperty(const char *propName,
#ifdef DEBUG
char pname[256];
- memmove( pname, propData + propOffset->name.position,
+ memmove( pname, propData + propOffset->name.position,
propOffset->name.length);
pname[propOffset->name.length] = '\0';
fprintf(stderr, "prop name: %s (len %d)\n",
@@ -103,9 +103,9 @@ FindStringProperty(const char *propName,
static int
FindNumberProperty(const char *propName,
- unsigned long *propValue,
- FSPropInfo *propInfo,
- FSPropOffset *propOffsets,
+ unsigned long *propValue,
+ FSPropInfo *propInfo,
+ FSPropOffset *propOffsets,
unsigned char *propData)
{
FSPropOffset *propOffset;
@@ -132,10 +132,10 @@ FindNumberProperty(const char *propName,
* FONTBOUNDINGBOX lines
*/
Bool
-EmitHeader(FILE *outFile,
- FSXFontInfoHeader *fontHeader,
- FSPropInfo *propInfo,
- FSPropOffset *propOffsets,
+EmitHeader(FILE *outFile,
+ FSXFontInfoHeader *fontHeader,
+ FSPropInfo *propInfo,
+ FSPropOffset *propOffsets,
unsigned char *propData)
{
int len;
@@ -174,7 +174,7 @@ EmitHeader(FILE *outFile,
/*
* SIZE point xres yres
- *
+ *
* Get XLFD values if possible, else fake it
*/
type = FindNumberProperty("RESOLUTION_X", &xResolution, propInfo,
@@ -195,12 +195,12 @@ EmitHeader(FILE *outFile,
pointSize = ((fontHeader->font_ascent + fontHeader->font_descent)
* 72) / yResolution;
- fprintf(outFile, "SIZE %lu %lu %lu\n", pointSize, xResolution,
+ fprintf(outFile, "SIZE %lu %lu %lu\n", pointSize, xResolution,
yResolution);
/*
* FONTBOUNDINGBOX width height xoff yoff
- *
+ *
*/
fprintf(outFile, "FONTBOUNDINGBOX %d %d %d %d\n",
fontHeader->max_bounds.right - fontHeader->min_bounds.left,