summaryrefslogtreecommitdiff
path: root/src/cairo-hull.c
Commit message (Collapse)AuthorAgeFilesLines
* Update FSF addressAndrea Canciani2010-04-271-1/+1
| | | | | | | | | | | I updated the Free Software Foundation address using the following script. for i in $(git grep Temple | cut -d: -f1 ) do sed -e 's/59 Temple Place[, -]* Suite 330, Boston, MA *02111-1307[, ]* USA/51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA/' -i "$i" done Fixes http://bugs.freedesktop.org/show_bug.cgi?id=21356
* hull: _cairo_hull_vertex_compare() return 0 for identical elementsChris Wilson2010-04-131-0/+7
| | | | | | | | Andreas Falkenhahn reported a bizarre situation with some implementations of qsort that actually compare the same elements and require the comparator to return 0. So be it. Reported-by: Andreas Falkenhahn <andreas@airsoftsoftwair.de>
* Move _cairo_error() to a standalone headerChris Wilson2010-01-221-0/+1
| | | | | A pending commit will want to include some utility code from cairo and so we need to extricate the error handling from the PLT symbol hiding.
* [slope] Inline _cairo_slope_init()Chris Wilson2009-08-291-0/+2
| | | | | Move the definition to a separate header file and allow callers to inline the simple function.
* [memfault] Manually inject faults when using stack allocationsChris Wilson2009-04-231-0/+3
| | | | | | | | | | Ensure that no assumptions are made that a small allocation will succeed by manually injecting faults when we may be simply allocating from an embedded memory pool. The main advantage in manual fault injection is improved code coverage - from within the test suite most allocations are handled by the embedded memory pools.
* Mark allocation failures as unlikely.Chris Wilson2008-11-291-1/+1
| | | | | Use the gcc likelihood annotation to indicate that allocation failures are extremely unlikely.
* [hull] Replace open-coding of 64bit arithmetic.Chris Wilson2008-10-071-12/+19
| | | | | | Use primitives from cairo-wideint-private.h - in this case it helps to make the code more readable as well as reduce dependence on native 64bit integers.
* [cairo-hull] Attempt to allocate vertices on stack.Chris Wilson2008-06-131-21/+19
| | | | | | First try to allocate the vertices using an on-stack array, otherwise, if we need more vertices than can be accomodated, fallback to using a heap array.
* Prevent potentially infinite wandering through memeory in _cairo_hull_prev_validCarl Worth2008-04-081-1/+6
| | | | | | | | | | | It is possible for _cairo_hull_prev_valid to be called just once right before the calling loop is going to terminate. In this case we really don't want to walk off the beginning of the array and start wandering. Thanks to Jonathan Watt for noticing this problem: https://bugzilla.mozilla.org/show_bug.cgi?id=306649#c21
* Quiet some trivial unused and potentially-uninitialized compiler warningsCarl Worth2008-04-011-1/+1
|
* [cairo-hull] Propagate error during hull computation.Chris Wilson2008-03-041-10/+12
| | | | | Propagate the original error status instead of returning a new NO_MEMORY error.
* [cairo-hull] Remove a couple of redundant status returns.Chris Wilson2007-10-101-7/+3
| | | | | Those two functions unconditionally returned success, so change the return to void.
* [cairo-error] Clean up all the warnings and missing _cairo_error() calls.Chris Wilson2007-10-041-1/+1
| | | | | | | | | | | Every time we assign or return a hard-coded error status wrap that value with a call to _cairo_error(). So the idiom becomes: status = _cairo_error (CAIRO_STATUS_NO_MEMORY); or return _cairo_error (CAIRO_STATUS_INVALID_DASH); This ensures that a breakpoint placed on _cairo_error() will trigger immediately cairo detects the error.
* [malloc/error] Fixup _cairo_error (CAIRO_STATUS_SUCCESS)!Chris Wilson2007-10-041-1/+1
| | | | | | At some point during the blitz, I accidentally wrote _cairo_error (CAIRO_STATUS_SUCCESS) and then proceeded to paste it into the next 30 error sites! s/CAIRO_STATUS_SUCCESS/CAIRO_STATUS_NO_MEMORY/
* [malloc/error] Add call to _cairo_error() after a failed malloc.Chris Wilson2007-10-041-1/+3
| | | | | Blitz all allocations to ensure that they raise a _cairo_error(CAIRO_STATUS_NO_MEMORY) on failure.
* [fix] Avoid int overflow when allocating large buffersVladimir Vukicevic2007-06-291-1/+1
| | | | | | | | This patch introduces three macros: _cairo_malloc_ab, _cairo_malloc_abc, _cairo_malloc_ab_plus_c and replaces various calls to malloc(a*b), malloc(a*b*c), and malloc(a*b+c) with them. The macros return NULL if int overflow would occur during the allocation. See CODING_STYLE for more information.
* Remove trailing whitespace from lines that look like comments.Carl Worth2006-06-061-1/+1
| | | | | | | | | | This patch was produced with the following (GNU) sed script: sed -i -r -e '/^[ \t]*\/?\*/ s/[ \t]+$//' run on all *.[ch] files within cairo, (though I manually excluded src/cairo-atsui-font.c which has a code line that appears as a comment to this script).
* simplify id initialisation of last patchBertram Felgenhauer2005-09-291-6/+7
| | | | reviewed by: keithp
* Using a pointer comparison as the fallback total order was wrong - these ↵Bertram Felgenhauer2005-09-291-5/+9
| | | | | | | pointers are not stable. So we introduce our own total order instead. mark 4599 as fixed reviewed by: cworth
* Fix for bug #4165:Billy Biggs2005-08-211-1/+6
| | | | | Use pointer comparison for coincident points to ensure a well-defined ordering, and avoid setting discard on both points. This fixes problems with my Mac's implementation of qsort. Final patch by Bertram Felgenhauer. Update reference images after the change.
* Switch from broken cworth@isi.edu address to canonical cworth@cworth.org ↵Carl Worth2005-02-221-1/+1
| | | | address.
* Convert all files to utf-8. Add copyright information to cairo_png_surface.c.Carl Worth2004-10-211-1/+1
|
* Fix comparison so that it results in a stable sort. This should fix some ↵Carl Worth2004-10-211-2/+5
| | | | rendering bugs due to broken pens.
* Add the MPL as a new license option, in addition to the LGPL.Carl Worth2004-09-041-10/+27
|
* Fix to explicitly refer to GNU Lesser Public License 2.1 rather than the ↵Carl Worth2004-08-021-7/+5
| | | | Library Public License version 2 or 'any later version'
* Change from MIT license to LGPL.Carl Worth2004-08-021-20/+14
|
* Fixed copyright attribution to refer to "University of Southern CaliforniaCarl Worth2003-10-231-1/+1
|
* Generate convex hull of pen before stroking.Carl Worth2003-10-041-0/+190