mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-02 18:10:29 +01:00
[script] Null constructor
Expose 'null', principally for comparison purposes.
This commit is contained in:
parent
7540ac7f23
commit
3abfd836a0
2 changed files with 14 additions and 1 deletions
|
|
@ -3015,6 +3015,12 @@ _new_sub_path (csi_t *ctx)
|
|||
return _do_cairo_op (ctx, cairo_new_sub_path);
|
||||
}
|
||||
|
||||
static csi_status_t
|
||||
_null (csi_t *ctx)
|
||||
{
|
||||
return _csi_push_ostack_null (ctx);
|
||||
}
|
||||
|
||||
static csi_status_t
|
||||
_mask (csi_t *ctx)
|
||||
{
|
||||
|
|
@ -5536,7 +5542,7 @@ _defs[] = {
|
|||
{ "new_path", _new_path },
|
||||
{ "new_sub_path", _new_sub_path },
|
||||
{ "not", _not },
|
||||
{ "null", NULL },
|
||||
{ "null", _null },
|
||||
{ "or", _or },
|
||||
{ "paint", _paint },
|
||||
{ "paint_with_alpha", _paint_with_alpha },
|
||||
|
|
|
|||
|
|
@ -873,6 +873,13 @@ _csi_push_ostack_mark (csi_t *ctx)
|
|||
return _csi_stack_push (ctx, &ctx->ostack, &obj);
|
||||
}
|
||||
static inline csi_status_t
|
||||
_csi_push_ostack_null (csi_t *ctx)
|
||||
{
|
||||
csi_object_t obj;
|
||||
obj.type = CSI_OBJECT_TYPE_NULL;
|
||||
return _csi_stack_push (ctx, &ctx->ostack, &obj);
|
||||
}
|
||||
static inline csi_status_t
|
||||
_csi_push_ostack_real (csi_t *ctx, csi_real_t v)
|
||||
{
|
||||
csi_object_t obj;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue