Cairo trivial typos

Found using `codespell -q 3 -I cairo-whitelist.txt`
whereby whitelist contained:
```
amin
iff
lod
writen
```

Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
Unknown 2017-11-09 09:43:02 -05:00 committed by Bryce Harrington
parent 33a348d698
commit 12cb59be7d
17 changed files with 19 additions and 19 deletions

View file

@ -12,7 +12,7 @@ AC_DEFUN([AX_C_FLOAT_WORDS_BIGENDIAN],
[AC_CACHE_CHECK(whether float word ordering is bigendian, [AC_CACHE_CHECK(whether float word ordering is bigendian,
ax_cv_c_float_words_bigendian, [ ax_cv_c_float_words_bigendian, [
# The endianess is detected by first compiling C code that contains a special # The endianness is detected by first compiling C code that contains a special
# double float value, then grepping the resulting object file for certain # double float value, then grepping the resulting object file for certain
# strings of ascii values. The double is specially crafted to have a # strings of ascii values. The double is specially crafted to have a
# binary representation that corresponds with a simple string. In this # binary representation that corresponds with a simple string. In this

View file

@ -355,7 +355,7 @@ cairo_perf_reports_compare (cairo_perf_report_t *reports,
diff = &diffs[i]; diff = &diffs[i];
/* Discard as uninteresting a change which is less than the /* Discard as uninteresting a change which is less than the
* minimum change required, (default may be overriden on * minimum change required, (default may be overridden on
* command-line). */ * command-line). */
if (fabs (diff->change) - 1.0 < options->min_change) if (fabs (diff->change) - 1.0 < options->min_change)
continue; continue;

View file

@ -29,7 +29,7 @@
/* This test case is designed to illustrate a performance bug in /* This test case is designed to illustrate a performance bug in
* drawing very long lines, where most of the line is out of bounds of * drawing very long lines, where most of the line is out of bounds of
* the destination surface, (but some portion of the line is * the destination surface, (but some portion of the line is
* visibile). These results are in the "long-lines-uncropped" report. * visible). These results are in the "long-lines-uncropped" report.
* *
* For comparison, this test also renders the visible portions of the * For comparison, this test also renders the visible portions of the
* same lines, (this is the "long-lines-cropped" report). * same lines, (this is the "long-lines-cropped" report).

View file

@ -517,7 +517,7 @@ _cairo_cogl_surface_allocate_buffer_space (cairo_cogl_surface_t *surface,
void **pointer) void **pointer)
{ {
/* XXX: In the Cogl journal we found it more efficient to have a pool of /* XXX: In the Cogl journal we found it more efficient to have a pool of
* buffers that we re-cycle but for now we simply thow away our stack * buffers that we re-cycle but for now we simply throw away our stack
* buffer each time we flush. */ * buffer each time we flush. */
if (unlikely (surface->buffer_stack && if (unlikely (surface->buffer_stack &&
(surface->buffer_stack_size - surface->buffer_stack_offset) < size)) { (surface->buffer_stack_size - surface->buffer_stack_offset) < size)) {

View file

@ -140,7 +140,7 @@ _cairo_pdf_operators_flush (cairo_pdf_operators_t *pdf_operators)
* assumptions will be made about the state. The next time a * assumptions will be made about the state. The next time a
* particular graphics state is required (eg line width) the state * particular graphics state is required (eg line width) the state
* operator is always emitted and then remembered for subsequent * operator is always emitted and then remembered for subsequent
* operatations. * operations.
* *
* This should be called when starting a new stream or after emitting * This should be called when starting a new stream or after emitting
* the 'Q' operator (where pdf-operators functions were called inside * the 'Q' operator (where pdf-operators functions were called inside

View file

@ -110,7 +110,7 @@ typedef struct _cairo_pdf_pattern {
/* PDF pattern space is the pattern matrix concatenated with the /* PDF pattern space is the pattern matrix concatenated with the
* initial space of the parent object. If the parent object is the * initial space of the parent object. If the parent object is the
* page, the intial space does not include the Y-axis flipping * page, the initial space does not include the Y-axis flipping
* matrix emitted at the start of the page content stream. If the * matrix emitted at the start of the page content stream. If the
* parent object is not the page content stream, the initial space * parent object is not the page content stream, the initial space
* will have a flipped Y-axis. The inverted_y_axis flag is true * will have a flipped Y-axis. The inverted_y_axis flag is true

View file

@ -4194,7 +4194,7 @@ cairo_pdf_surface_emit_transparency_group (cairo_pdf_surface_t *surface,
/* When emitting a shading operator we are in cairo pattern /* When emitting a shading operator we are in cairo pattern
* coordinates. _cairo_pdf_surface_paint_gradient has set the * coordinates. _cairo_pdf_surface_paint_gradient has set the
* ctm to the pattern matrix (including the convertion from * ctm to the pattern matrix (including the conversion from
* pdf to cairo coordinates) */ * pdf to cairo coordinates) */
_cairo_box_from_rectangle (&box, &pdf_pattern->extents); _cairo_box_from_rectangle (&box, &pdf_pattern->extents);
_cairo_box_to_doubles (&box, &x1, &y1, &x2, &y2); _cairo_box_to_doubles (&box, &x1, &y1, &x2, &y2);

View file

@ -3283,7 +3283,7 @@ _cairo_ps_surface_emit_eps (cairo_ps_surface_t *surface,
params->approx_size = eps_data_len; params->approx_size = eps_data_len;
surface->contains_eps = TRUE; surface->contains_eps = TRUE;
/* Find number of occurences of SUBFILE_FILTER_EOD in the EPS data. /* Find number of occurrences of SUBFILE_FILTER_EOD in the EPS data.
* We will need it before emitting the data if a ReusableStream is used. * We will need it before emitting the data if a ReusableStream is used.
*/ */
params->eod_count = count_eod_strings (eps_data, eps_data_len); params->eod_count = count_eod_strings (eps_data, eps_data_len);

View file

@ -1886,7 +1886,7 @@ static cairo_bool_t valid_size (int width, int height)
/* Note: the minimum surface size allowed in the X protocol is 1x1. /* Note: the minimum surface size allowed in the X protocol is 1x1.
* However, as we historically did not check the minimum size we * However, as we historically did not check the minimum size we
* allowed applications to lie and set the correct size later (one hopes). * allowed applications to lie and set the correct size later (one hopes).
* To preserve compatability we must allow applications to use * To preserve compatibility we must allow applications to use
* 0x0 surfaces. * 0x0 surfaces.
*/ */
return (width >= 0 && width <= XLIB_COORD_MAX && return (width >= 0 && width <= XLIB_COORD_MAX &&

View file

@ -256,7 +256,7 @@
* no operations are enclosed, the y coordidate is 0. * no operations are enclosed, the y coordidate is 0.
* *
* @internal: A boolean that if true, the destination name may be * @internal: A boolean that if true, the destination name may be
* ommitted from PDF where possible. In this case, links * omitted from PDF where possible. In this case, links
* refer directly to the page and position instead of via * refer directly to the page and position instead of via
* the named destination table. Note that if this * the named destination table. Note that if this
* destination is referenced by another PDF (see [File Links][file-link]), * destination is referenced by another PDF (see [File Links][file-link]),
@ -279,10 +279,10 @@
* # Document Structure (PDF) # {#doc-struct} * # Document Structure (PDF) # {#doc-struct}
* *
* The document structure tags provide a means of specifying structural information * The document structure tags provide a means of specifying structural information
* such as headers, paragraphs, tables, and figures. The inclusion of structural information faciliates: * such as headers, paragraphs, tables, and figures. The inclusion of structural information facilitates:
* * Extraction of text and graphics for copy and paste * * Extraction of text and graphics for copy and paste
* * Reflow of text and graphics in the viewer * * Reflow of text and graphics in the viewer
* * Proccessing text eg searching and indexing * * Processing text eg searching and indexing
* * Conversion to other formats * * Conversion to other formats
* * Accessability support * * Accessability support
* *

View file

@ -398,7 +398,7 @@ typedef enum _cairo_content {
* @CAIRO_FORMAT_A1: each pixel is a 1-bit quantity holding * @CAIRO_FORMAT_A1: each pixel is a 1-bit quantity holding
* an alpha value. Pixels are packed together into 32-bit * an alpha value. Pixels are packed together into 32-bit
* quantities. The ordering of the bits matches the * quantities. The ordering of the bits matches the
* endianess of the platform. On a big-endian machine, the * endianness of the platform. On a big-endian machine, the
* first pixel is in the uppermost bit, on a little-endian * first pixel is in the uppermost bit, on a little-endian
* machine the first pixel is in the least-significant bit. (Since 1.0) * machine the first pixel is in the least-significant bit. (Since 1.0)
* @CAIRO_FORMAT_RGB16_565: each pixel is a 16-bit quantity * @CAIRO_FORMAT_RGB16_565: each pixel is a 16-bit quantity

View file

@ -1518,7 +1518,7 @@ _cairo_surface_release_device_reference (cairo_surface_t *surface);
* for that, even without being considered "valid" for the sake of * for that, even without being considered "valid" for the sake of
* things like cairo_image_surface_create(). * things like cairo_image_surface_create().
* *
* Since 1.2.0 we ran into the same situtation with X servers with BGR * Since 1.2.0 we ran into the same situation with X servers with BGR
* visuals. This time we invented #cairo_internal_format_t instead, * visuals. This time we invented #cairo_internal_format_t instead,
* (see it for more discussion). * (see it for more discussion).
* *

View file

@ -28,7 +28,7 @@
/* This is a test case for the following bug: /* This is a test case for the following bug:
* *
* Crash in cairo_stroke_extents whe line width is 0 and line cap is ROUND * Crash in cairo_stroke_extents when line width is 0 and line cap is ROUND
* (_cairo_pen_find_active_cw_vertex_index) * (_cairo_pen_find_active_cw_vertex_index)
* https://bugs.freedesktop.org/show_bug.cgi?id=10231 * https://bugs.freedesktop.org/show_bug.cgi?id=10231
*/ */

View file

@ -238,7 +238,7 @@ paint_ccitt_file (cairo_t *cr, int x, int y)
return cairo_test_status_from_status (ctx, status); return cairo_test_status_from_status (ctx, status);
} }
/* Set the CCITT image paramaters */ /* Set the CCITT image parameters */
status = cairo_surface_set_mime_data (image, CAIRO_MIME_TYPE_CCITT_FAX_PARAMS, status = cairo_surface_set_mime_data (image, CAIRO_MIME_TYPE_CCITT_FAX_PARAMS,
(unsigned char *)ccitt_image_params, (unsigned char *)ccitt_image_params,
strlen (ccitt_image_params), strlen (ccitt_image_params),

View file

@ -43,7 +43,7 @@
* d\_\c * d\_\c
* *
* and the bug is that _cairo_traps_tessellate_convex_quad is * and the bug is that _cairo_traps_tessellate_convex_quad is
* comparing b.x as less then d.x and therfore determining that the bc * comparing b.x as less then d.x and therefore determining that the bc
* edge is left of the ad edge. The fix is simply to compare c.x to * edge is left of the ad edge. The fix is simply to compare c.x to
* d.x instead of b.x to d.x . * d.x instead of b.x to d.x .
*/ */

View file

@ -196,7 +196,7 @@ static char** translate_addresses_buf(bfd * abfd, bfd_vma *addr, int naddr)
char *buf = &b; char *buf = &b;
int len = 0; int len = 0;
char **ret_buf = NULL; char **ret_buf = NULL;
/* iterate over the formating twice. /* iterate over the formatting twice.
* the first time we count how much space we need * the first time we count how much space we need
* the second time we do the actual printing */ * the second time we do the actual printing */
for (state=Count; state<=Print; state++) { for (state=Count; state<=Print; state++) {