Delete all Trailing spaces in code.
[reactos.git] / rosapps / smartpdf / fitz / mupdf / pdf_fontfilems.c
index 93a4ff1..bec3944 100644 (file)
@@ -60,7 +60,7 @@ struct pdf_fontlistMS_s
 {
        pdf_fontmapMS *fontmap;
        int len;
-       int cap;        
+       int cap;
 };
 
 typedef struct _tagTT_OFFSET_TABLE
@@ -107,8 +107,8 @@ typedef struct _tagFONT_COLLECTION
 
 static char *basenames[13] =
 {
-       "Courier", 
-       "Courier-Bold", 
+       "Courier",
+       "Courier-Bold",
        "Courier-Oblique",
        "Courier-BoldOblique",
        "Helvetica",
@@ -119,7 +119,7 @@ static char *basenames[13] =
        "Times-Bold",
        "Times-Italic",
        "Times-BoldItalic",
-       "Symbol", 
+       "Symbol",
 };
 
 static char *basepatterns[13] =
@@ -160,7 +160,7 @@ compare(const void *elem1, const void *elem2)
        return stricmp(val1->fontface, val2->fontface);
 }
 
-static void * 
+static void *
 localbsearch (const void *key, const void *base, size_t num,
                 size_t width, int (*compare)(const void *, const void *))
 {
@@ -169,7 +169,7 @@ localbsearch (const void *key, const void *base, size_t num,
        char *mid;
        unsigned int half;
        int result;
-       
+
        while (lo <= hi)
                if (half = num / 2)
                {
@@ -190,7 +190,7 @@ localbsearch (const void *key, const void *base, size_t num,
                        return((*compare)(key,lo) ? 0 : lo);
                else
                        break;
-               
+
                return(0);
 }
 
@@ -219,7 +219,7 @@ removeredundancy(pdf_fontlistMS *fl)
 #endif
 }
 
-static fz_error * 
+static fz_error *
 swapword(char* pbyte, int nLen)
 {
        int i;
@@ -239,7 +239,7 @@ swapword(char* pbyte, int nLen)
 }
 
 /* pSouce and PDest can be same */
-static fz_error * 
+static fz_error *
 decodeunicodeBMP(char* source, int sourcelen,char* dest, int destlen)
 {
        wchar_t tmp[1024*2];
@@ -331,7 +331,7 @@ growfontlist(pdf_fontlistMS *fl)
        if (!newitems)
                return fz_outofmem;
 
-       memset(newitems + fl->cap, 0, 
+       memset(newitems + fl->cap, 0,
                sizeof(struct fz_keyval_s) * (newcap - fl->cap));
 
        fl->fontmap = newitems;
@@ -391,7 +391,7 @@ parseTTF(fz_stream *file, int offset, int index, char *path)
                return fz_throw("fonterror : invalid font version");
 
        found = 0;
-       
+
        for(i = 0; i< ttOffsetTable.uNumOfTables; i++)
        {
                SAFE_FZ_READ(file,&tblDir,sizeof(TT_TABLE_DIRECTORY));
@@ -445,11 +445,11 @@ parseTTF(fz_stream *file, int offset, int index, char *path)
                                switch(ttRecord.uPlatformID)
                                {
                                case PLATFORM_UNICODE:
-                                       err = decodeunicodeplatform(szTemp, ttRecord.uStringLength, 
+                                       err = decodeunicodeplatform(szTemp, ttRecord.uStringLength,
                                                szTemp, sizeof(szTemp), ttRecord.uEncodingID);
                                        break;
                                case PLATFORM_MACINTOSH:
-                                       err = decodemacintoshplatform(szTemp, ttRecord.uStringLength, 
+                                       err = decodemacintoshplatform(szTemp, ttRecord.uStringLength,
                                                szTemp, sizeof(szTemp), ttRecord.uEncodingID);
                                        break;
                                case PLATFORM_ISO:
@@ -484,7 +484,7 @@ parseTTFs(char *path)
        err = parseTTF(file,0,0,path);
        if(err)
                goto cleanup;
-               
+
 cleanup:
        if(file)
                fz_dropstream(file);
@@ -524,7 +524,7 @@ parseTTCs(char *path)
                        for(i = 0; i < fontcollectioin.NumFonts; ++i)
                        {
                                offsettable[i] = SWAPLONG(offsettable[i]);
-                               parseTTF(file,offsettable[i],i,path);                           
+                               parseTTF(file,offsettable[i],i,path);
                        }
                        fz_free(offsettable);
                }
@@ -539,8 +539,8 @@ parseTTCs(char *path)
                err = fz_throw("fonterror: wrong format");
                goto cleanup;
        }
-       
-               
+
+
 cleanup:
        if(file)
                fz_dropstream(file);