mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-27 03:40:40 +02:00
Add new function cairo_status_to_string an reimplement cairo_status_string in terms of the new function.
This commit is contained in:
parent
63428d3cc7
commit
7bb6dfdaa2
7 changed files with 19 additions and 8 deletions
|
|
@ -1,3 +1,10 @@
|
|||
2005-05-31 Carl Worth <cworth@cworth.org>
|
||||
|
||||
* src/cairo.h:
|
||||
* src/cairo.c: (cairo_status_to_string), (cairo_status_string):
|
||||
Add new function cairo_status_to_string an reimplement
|
||||
cairo_status_string in terms of the new function.
|
||||
|
||||
2005-05-27 Olivier Andrieu <oliv__a@users.sourceforge.net>
|
||||
|
||||
* src/cairo-path-data.c (_cpdc_curve_to_flatten),
|
||||
|
|
|
|||
|
|
@ -256,6 +256,7 @@ cairo_path_destroy
|
|||
cairo_status_t
|
||||
cairo_status
|
||||
cairo_status_string
|
||||
cairo_status_to_string
|
||||
cairo_filter_t
|
||||
cairo_image_surface_create
|
||||
cairo_image_surface_create_for_data
|
||||
|
|
|
|||
|
|
@ -9,13 +9,11 @@ Microsoft Windows Backend
|
|||
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -9,13 +9,11 @@ XCB Backend
|
|||
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -9,13 +9,11 @@ XLib/Xrender Backend
|
|||
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
|
|
|
|||
10
src/cairo.c
10
src/cairo.c
|
|
@ -2132,9 +2132,9 @@ cairo_status (cairo_t *cr)
|
|||
}
|
||||
|
||||
const char *
|
||||
cairo_status_string (cairo_t *cr)
|
||||
cairo_status_to_string (cairo_status_t status)
|
||||
{
|
||||
switch (cr->status) {
|
||||
switch (status) {
|
||||
case CAIRO_STATUS_SUCCESS:
|
||||
return "success";
|
||||
case CAIRO_STATUS_NO_MEMORY:
|
||||
|
|
@ -2168,6 +2168,12 @@ cairo_status_string (cairo_t *cr)
|
|||
return "<unknown error status>";
|
||||
}
|
||||
|
||||
const char *
|
||||
cairo_status_string (cairo_t *cr)
|
||||
{
|
||||
return cairo_status_to_string (cr->status);
|
||||
}
|
||||
|
||||
void
|
||||
_cairo_restrict_value (double *value, double min, double max)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -879,6 +879,9 @@ cairo_path_destroy (cairo_path_t *path);
|
|||
cairo_status_t
|
||||
cairo_status (cairo_t *cr);
|
||||
|
||||
const char *
|
||||
cairo_status_to_string (cairo_status_t status);
|
||||
|
||||
const char *
|
||||
cairo_status_string (cairo_t *cr);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue