[perl #37605] [PATCH] fix a warning in main.c

2005-11-03 Thread via RT
# New Ticket Created by Matt Fowles # Please include the string: [perl #37605] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=37605 > All~ This time with the attachment. Matt -- "Computer Science is merely the post-Turin

Re: shr bug when shifting by a multiple of the "int" size?

2005-11-03 Thread Luke Palmer
On 11/3/05, Leopold Toetsch <[EMAIL PROTECTED]> wrote: > On Nov 3, 2005, at 20:49, Joshua Isom wrote: > > > I was trying to use bit shifting for division by multiples of two, but > > if the shift amount is a multiple of the int size, it seems to fail to > > shift the bits. Here's some example code

Re: shr bug when shifting by a multiple of the "int" size?

2005-11-03 Thread Leopold Toetsch
On Nov 3, 2005, at 20:49, Joshua Isom wrote: I was trying to use bit shifting for division by multiples of two, but if the shift amount is a multiple of the int size, it seems to fail to shift the bits. Here's some example code demonstrating it. .sub _main @MAIN .local int a, b, c p

shr bug when shifting by a multiple of the "int" size?

2005-11-03 Thread Joshua Isom
I was trying to use bit shifting for division by multiples of two, but if the shift amount is a multiple of the int size, it seems to fail to shift the bits. Here's some example code demonstrating it. .sub _main @MAIN .local int a, b, c print "a\tb\tc\n" a = 24 b = 32 c = a

Re: Segfault with structs and CSTR

2005-11-03 Thread Joshua Isom
I'm on FreeBSD 5.4 so aside from the char array, the rest was correct, which I guess means it's not at all portable. It's working now, now I just need to expand on it. On Nov 3, 2005, at 9:01 AM, Leopold Toetsch wrote: Joshua Isom wrote: I'm trying to use libc to be able to do a directory l

Re: Determining number of return values expected

2005-11-03 Thread Roger Browne
On Sun, 2005-10-30 at 20:54 +, Jonathan Worthington wrote: > $P0 = result_info > $I0 = elements $P0 > > Will leave $I0 containing the number of return values. Thanks Jonathan, it seem to work perfectly. I'm very grateful for this. Regards, Roger Browne

Re: [perl #37600] [TODO] Heredocs as macro args

2005-11-03 Thread Will Coleda
This is what I get for changing my sample at the last minute. =-) On Nov 3, 2005, at 10:26 AM, Leopold Toetsch wrote: Will Coleda (via RT) wrote: error:imcc:The opcode 'print' (print<0>) was not found. Check the type and number of the arguments in macro '.say' line 2 included from

Re: [perl #37600] [TODO] Heredocs as macro args

2005-11-03 Thread Leopold Toetsch
Will Coleda (via RT) wrote: error:imcc:The opcode 'print' (print<0>) was not found. Check the type and number of the arguments in macro '.say' line 2 included from 'foo.pir' line 7 This is a different error then the subject says - you are using a reserved word (opcode) as macro nam

[perl #37600] [TODO] Heredocs as macro args

2005-11-03 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #37600] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=37600 > I dug through partcl to see where I could take advantage of the new anywhere HEREDOCS,

Re: Segfault with structs and CSTR

2005-11-03 Thread Leopold Toetsch
Joshua Isom wrote: I'm trying to use libc to be able to do a directory listing, ... Another tricky part is detecting the NULL pointer after the end, achievable with the get_addr opcode. Here is a directory lister: leo .sub _main @MAIN .local pmc libc .local pmc opendir .loc

Re: Segfault with structs and CSTR

2005-11-03 Thread Leopold Toetsch
Joshua Isom wrote: I'm trying to use libc to be able to do a directory listing, and and if I used the DATATYPE_CSTR I get a segfault, and if I use DATATYPE_STRING, It's neither nor. A DATATYPE_CSTR would be a pointer to a cstring. But when you look at the definition of struct dirent, you see

[perl #37386] [PATCH] Swapped enum_cclass_any and enum_cclass_none in cclass.h

2005-11-03 Thread Roger Browne via RT
This patch has not been applied, but the same bug has been fixed by Leo's work in revision 9737. Could somebody please mark this ticket as "Resolved"? Thanks. Regards, Roger Browne -- Roger Browne - [EMAIL PROTECTED] - http://xamber.org/

Re: Segfault with structs and CSTR

2005-11-03 Thread Roger Browne
Joshua Isom wrote: > I'm trying to use libc to be able to do a directory listing, and and if > I used the DATATYPE_CSTR I get a segfault, and if I use > DATATYPE_STRING, I get a "returning unhandled string type in struct" I tried this a while back, and got it working (as a kind of "proof-of-conc

Re: [perl #37372] [TODO] unicode charset classification

2005-11-03 Thread Leopold Toetsch
Leopold Toetsch (via RT) wrote: charset/unicode.c needs implementation of is_ccass / find_cclass, / find_not_cclass. Done - r9737, r9738. More tests are very welcome (t/op/string_cclass.t). 10) receive grand Parrot unicode award All mine. leo

improved heredocs (r9734)

2005-11-03 Thread Leopold Toetsch
Heredocs have proven to create much more readable syntax especially inside compilers. I've hacked them a bit with the following effects: 1) single-quote-delimitted heredocs are valid now These wprk like single-quoted strings, that is: no backslash substitutions. 2) heredocs are now valid insid