--- Jens Rieks <[EMAIL PROTECTED]> wrote:
> Hi,
>
> the attached patch adds a "isnull str, label" OP that is
> similar to "isnull pmc, label"
>
> jens
>
>
> > Index: ops/string.ops
> ===================================================================
> RCS file: /cvs/public/parrot/ops/string.ops,v
> retrieving revision 1.18
> diff -u -w -r1.18 string.ops
> --- ops/string.ops 26 Mar 2004 18:14:19 -0000 1.18
> +++ ops/string.ops 1 Apr 2004 11:12:50 -0000
> @@ -696,6 +696,19 @@
> goto NEXT();
> }
>
> +=item B<isnull>(in STR, labelconst INT)
> +
> +Branch to $2 if $1 is a NULL string.
> +
> +=cut
> +
> +op isnull(in STR, labelconst INT) :base_core {
..etc
> +isnull_s_ic 1418
> +isnull_sc_ic 1419
Do we really need the _sc version for this? I don't think it's even possible
to get a NULL string constant.
__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/