diff options
author | Tor Andersson <tor@ghostscript.com> | 2010-07-17 12:30:22 +0000 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2010-07-17 12:30:22 +0000 |
commit | f23227839ea5afeed361611dcaf01784b2f791e3 (patch) | |
tree | 30870ba1fc7e574ab2e14545caa9d9f03f97ef58 /fitz | |
parent | 5de6910dd12025185e15fb483d5047c399212423 (diff) | |
download | mupdf-f23227839ea5afeed361611dcaf01784b2f791e3.tar.xz |
Minor edits of multi-line comments.
Diffstat (limited to 'fitz')
-rw-r--r-- | fitz/base_geometry.c | 8 | ||||
-rw-r--r-- | fitz/base_hash.c | 15 | ||||
-rw-r--r-- | fitz/filt_basic.c | 28 | ||||
-rw-r--r-- | fitz/res_colorspace.c | 12 | ||||
-rw-r--r-- | fitz/stm_read.c | 9 |
5 files changed, 22 insertions, 50 deletions
diff --git a/fitz/base_geometry.c b/fitz/base_geometry.c index 61ff88d9..924ae4a7 100644 --- a/fitz/base_geometry.c +++ b/fitz/base_geometry.c @@ -3,9 +3,7 @@ #define MAX4(a,b,c,d) MAX(MAX(a,b), MAX(c,d)) #define MIN4(a,b,c,d) MIN(MIN(a,b), MIN(c,d)) -/* - * Matrices, points and affine transformations - */ +/* Matrices, points and affine transformations */ const fz_matrix fz_identity = { 1, 0, 0, 1, 0, 0 }; @@ -131,9 +129,7 @@ fz_transformvector(fz_matrix m, fz_point p) return t; } -/* - * Rectangles and bounding boxes - */ +/* Rectangles and bounding boxes */ const fz_rect fz_infiniterect = { 1, 1, -1, -1 }; const fz_rect fz_emptyrect = { 0, 0, 0, 0 }; diff --git a/fitz/base_hash.c b/fitz/base_hash.c index b0dd12fc..d4a5133f 100644 --- a/fitz/base_hash.c +++ b/fitz/base_hash.c @@ -1,12 +1,13 @@ -/* Simple hashtable with open adressing linear probe. - * Unlike text book examples, removing entries works - * correctly in this implementation so it wont start - * exhibiting bad behaviour if entries are inserted - * and removed frequently. - */ - #include "fitz.h" +/* +Simple hashtable with open adressing linear probe. +Unlike text book examples, removing entries works +correctly in this implementation, so it wont start +exhibiting bad behaviour if entries are inserted +and removed frequently. +*/ + enum { MAXKEYLEN = 48 }; typedef struct fz_hashentry_s fz_hashentry; diff --git a/fitz/filt_basic.c b/fitz/filt_basic.c index 6ab80c32..b9ec347e 100644 --- a/fitz/filt_basic.c +++ b/fitz/filt_basic.c @@ -1,8 +1,6 @@ #include "fitz.h" -/* - * Identity filter. - */ +/* Identity filter */ fz_filter * fz_newcopyfilter(void) @@ -43,9 +41,7 @@ fz_processcopyfilter(fz_filter *filter, fz_buffer *in, fz_buffer *out) } } -/* - * Null filter copies data until a specified length. - */ +/* Null filter copies data until a specified length */ typedef struct fz_nullfilter_s fz_nullfilter; @@ -98,9 +94,7 @@ fz_processnullfilter(fz_filter *filter, fz_buffer *in, fz_buffer *out) return fz_throw("braindead programmer trapped in nullfilter"); } -/* - * ASCII Hex Decode - */ +/* ASCII Hex Decode */ typedef struct fz_ahxd_s fz_ahxd; @@ -193,9 +187,7 @@ fz_processahxd(fz_filter *filter, fz_buffer *in, fz_buffer *out) } } -/* - * ASCII 85 Decode - */ +/* ASCII 85 Decode */ typedef struct fz_a85d_s fz_a85d; @@ -312,9 +304,7 @@ fz_processa85d(fz_filter *filter, fz_buffer *in, fz_buffer *out) } } -/* - * Run Length Decode - */ +/* Run Length Decode */ fz_filter * fz_newrld(fz_obj *params) @@ -386,9 +376,7 @@ fz_processrld(fz_filter *filter, fz_buffer *in, fz_buffer *out) } } -/* - * RC4 Filter - */ +/* RC4 Filter */ typedef struct fz_arc4c_s fz_arc4c; @@ -434,9 +422,7 @@ fz_processarc4filter(fz_filter *filter, fz_buffer *in, fz_buffer *out) } } -/* - * AES Filter - */ +/* AES Filter */ typedef struct fz_aesd_s fz_aesd; diff --git a/fitz/res_colorspace.c b/fitz/res_colorspace.c index 3d94fdce..9c98e5ff 100644 --- a/fitz/res_colorspace.c +++ b/fitz/res_colorspace.c @@ -36,9 +36,7 @@ fz_dropcolorspace(fz_colorspace *cs) } } -/* - * Fast Device color spaces - */ +/* Device colorspace definitions */ static void graytoxyz(fz_colorspace *cs, float *gray, float *xyz) { @@ -113,9 +111,7 @@ fz_colorspace *fz_devicergb = &kdevicergb; fz_colorspace *fz_devicebgr = &kdevicebgr; fz_colorspace *fz_devicecmyk = &kdevicecmyk; -/* - * Pixmap color conversions - */ +/* Fast pixmap color conversions */ static void fastgraytorgb(fz_pixmap *src, fz_pixmap *dst) { @@ -362,9 +358,7 @@ fz_convertpixmap(fz_pixmap *sp, fz_pixmap *dp) else fz_stdconvpixmap(sp, dp); } -/* - * Convert a single color - */ +/* Convert a single color */ static void fz_stdconvcolor(fz_colorspace *srcs, float *srcv, fz_colorspace *dsts, float *dstv) diff --git a/fitz/stm_read.c b/fitz/stm_read.c index 3b09bf41..d4d27f66 100644 --- a/fitz/stm_read.c +++ b/fitz/stm_read.c @@ -271,9 +271,7 @@ fz_peekbytex(fz_stream *stm) return buf->rp < buf->wp ? *buf->rp : EOF ; } -/* - * Read a line terminated by LF or CR or CRLF. - */ +/* Read a line terminated by LF or CR or CRLF. */ fz_error fz_readline(fz_stream *stm, char *mem, int n) @@ -334,10 +332,7 @@ fz_fillbuf(fz_stream *stm, fz_buffer *buf) return 0; } -/* - * Utility function to consume all the contents of an input stream into - * a freshly allocated buffer. - */ +/* Read the contents of an input stream into a new buffer. */ fz_buffer * fz_readall(fz_stream *stm, int sizehint) |