[script] Null constructor

Expose 'null', principally for comparison purposes.
This commit is contained in:
Chris Wilson 2008-12-10 14:34:41 +00:00
parent 7540ac7f23
commit 3abfd836a0
2 changed files with 14 additions and 1 deletions

View file

@ -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 },

View file

@ -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;