summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-02-29 23:45:09 +0100
committerTor Andersson <tor.andersson@artifex.com>2012-02-29 23:45:09 +0100
commit2ec4dae7c4c1b91f15651573988e8eadf26a81a0 (patch)
tree8266fe6c5ab916bf7f4ac02b257a43e84cedacf8
parent0f1a9b148f52acbff16d3cae34d02ef806a73571 (diff)
downloadmupdf-2ec4dae7c4c1b91f15651573988e8eadf26a81a0.tar.xz
Fix trailing whitespace and mixed tabs/spaces in indentation.
-rw-r--r--pdf/pdf_cmap_parse.c18
-rw-r--r--pdf/pdf_function.c2
-rw-r--r--pdf/pdf_interpret.c8
-rw-r--r--pdf/pdf_xref.c2
4 files changed, 15 insertions, 15 deletions
diff --git a/pdf/pdf_cmap_parse.c b/pdf/pdf_cmap_parse.c
index 5c21393e..4933dea5 100644
--- a/pdf/pdf_cmap_parse.c
+++ b/pdf/pdf_cmap_parse.c
@@ -67,7 +67,7 @@ pdf_parse_cmap_name(fz_context *ctx, pdf_cmap *cmap, fz_stream *file)
pdf_lexbuf buf;
int tok;
- buf.size = PDF_LEXBUF_SMALL;
+ buf.size = PDF_LEXBUF_SMALL;
tok = pdf_lex_cmap(file, &buf);
/* RJW: Lost debugging: "syntaxerror in cmap" */
@@ -83,7 +83,7 @@ pdf_parse_wmode(fz_context *ctx, pdf_cmap *cmap, fz_stream *file)
pdf_lexbuf buf;
int tok;
- buf.size = PDF_LEXBUF_SMALL;
+ buf.size = PDF_LEXBUF_SMALL;
tok = pdf_lex_cmap(file, &buf);
/* RJW: Lost debugging: "syntaxerror in cmap" */
@@ -100,7 +100,7 @@ pdf_parse_codespace_range(fz_context *ctx, pdf_cmap *cmap, fz_stream *file)
int tok;
int lo, hi;
- buf.size = PDF_LEXBUF_SMALL;
+ buf.size = PDF_LEXBUF_SMALL;
while (1)
{
tok = pdf_lex_cmap(file, &buf);
@@ -135,7 +135,7 @@ pdf_parse_cid_range(fz_context *ctx, pdf_cmap *cmap, fz_stream *file)
int tok;
int lo, hi, dst;
- buf.size = PDF_LEXBUF_SMALL;
+ buf.size = PDF_LEXBUF_SMALL;
while (1)
{
tok = pdf_lex_cmap(file, &buf);
@@ -174,7 +174,7 @@ pdf_parse_cid_char(fz_context *ctx, pdf_cmap *cmap, fz_stream *file)
int tok;
int src, dst;
- buf.size = PDF_LEXBUF_SMALL;
+ buf.size = PDF_LEXBUF_SMALL;
while (1)
{
tok = pdf_lex_cmap(file, &buf);
@@ -208,7 +208,7 @@ pdf_parse_bf_range_array(fz_context *ctx, pdf_cmap *cmap, fz_stream *file, int l
int dst[256];
int i;
- buf.size = PDF_LEXBUF_SMALL;
+ buf.size = PDF_LEXBUF_SMALL;
while (1)
{
tok = pdf_lex_cmap(file, &buf);
@@ -240,7 +240,7 @@ pdf_parse_bf_range(fz_context *ctx, pdf_cmap *cmap, fz_stream *file)
int tok;
int lo, hi, dst;
- buf.size = PDF_LEXBUF_SMALL;
+ buf.size = PDF_LEXBUF_SMALL;
while (1)
{
tok = pdf_lex_cmap(file, &buf);
@@ -313,7 +313,7 @@ pdf_parse_bf_char(fz_context *ctx, pdf_cmap *cmap, fz_stream *file)
int src;
int i;
- buf.size = PDF_LEXBUF_SMALL;
+ buf.size = PDF_LEXBUF_SMALL;
while (1)
{
tok = pdf_lex_cmap(file, &buf);
@@ -351,7 +351,7 @@ pdf_load_cmap(fz_context *ctx, fz_stream *file)
int tok;
const char *where;
- buf.size = PDF_LEXBUF_SMALL;
+ buf.size = PDF_LEXBUF_SMALL;
cmap = pdf_new_cmap(ctx);
strcpy(key, ".notdef");
diff --git a/pdf/pdf_function.c b/pdf/pdf_function.c
index 4273bbc6..932d4c77 100644
--- a/pdf/pdf_function.c
+++ b/pdf/pdf_function.c
@@ -689,7 +689,7 @@ parse_code(pdf_function *func, fz_stream *stream, int *codeptr)
int a, b, mid, cmp;
fz_context *ctx = stream->ctx;
- buf.size = PDF_LEXBUF_SMALL;
+ buf.size = PDF_LEXBUF_SMALL;
memset(buf.scratch, 0, sizeof(buf.scratch));
while (1)
diff --git a/pdf/pdf_interpret.c b/pdf/pdf_interpret.c
index d2270eaa..ca957d09 100644
--- a/pdf/pdf_interpret.c
+++ b/pdf/pdf_interpret.c
@@ -819,7 +819,7 @@ pdf_show_string(pdf_csi *csi, unsigned char *buf, int len)
{
int w = pdf_decode_cmap(fontdesc->encoding, buf, &cpt);
buf += w;
-
+
cid = pdf_lookup_cmap(fontdesc->encoding, cpt);
if (cid >= 0)
pdf_show_char(csi, cid);
@@ -2682,11 +2682,11 @@ pdf_run_buffer(pdf_csi *csi, pdf_obj *rdb, fz_buffer *contents)
}
csi->in_text = save_in_text;
}
- fz_always(ctx)
- {
+ fz_always(ctx)
+ {
fz_close(file);
fz_free(ctx, buf);
- }
+ }
fz_catch(ctx)
{
fz_throw(ctx, "cannot parse context stream");
diff --git a/pdf/pdf_xref.c b/pdf/pdf_xref.c
index 3fec0ab6..f0dbde96 100644
--- a/pdf/pdf_xref.c
+++ b/pdf/pdf_xref.c
@@ -51,7 +51,7 @@ pdf_read_start_xref(pdf_document *xref)
while (iswhite(buf[i]) && i < n)
i ++;
xref->startxref = atoi((char*)(buf + i));
-
+
return;
}
}