On Thu, 22 Apr 2010 23:15:51 +0200 tlaro...@polynum.com wrote:
> This is: signed long + signed long + unsigned char.
> Do you mean that there is first promotion :
>
> 1) unsigned char is promoted to unsigned int (A6.1).
As per C89 in this case the unsigned char value should be
promoted to
another way (and how i would usually do it):
,x g/0\.00/i/\n/
On 22 April 2010 18:32, Rudolf Sykora wrote:
> Hello,
>
> I have a file in which I wanted to insert an empty line just before
> any line on which a string, say '0.00' is present.
>
> My attempts to do it this way:
> ,x/0.00/+-i/\n/
>
On Thu, Apr 22, 2010 at 11:15:51PM +0200, tlaro...@polynum.com wrote:
>
> I get:
>
> gcc: -201
> ken-cc: 2147483447 (2^31 - 201)
>
> This is: signed long + signed long + unsigned char.
>
> Do you mean that there is first promotion :
>
> 1) unsigned char is promoted to unsigned int (A6.1)
Bingo! see below...
On Thu, Apr 22, 2010 at 01:07:40PM -0700, Bakul Shah wrote:
> On Thu, 22 Apr 2010 21:32:36 +0200 tlaro...@polynum.com wrote:
> > On Thu, Apr 22, 2010 at 03:08:40PM -0400, ge...@plan9.bell-labs.com wrote:
> > > What type is `smallnumber'?
> >
> > typedef unsigned char smallnum
On 22 April 2010 21:28, yy wrote:
> You would need to group your last commands (think carefuly about it):
>
> ,x/0.00/{+-i/\n/
> }
>
> but then you would have to type a bit more.
I don't know how it could happen, by the problem I had with
,x/0.00/+-i/\n/
is that it should have been
,x/0\.00/+-i/\
On Thu, 22 Apr 2010 21:32:36 +0200 tlaro...@polynum.com wrote:
> On Thu, Apr 22, 2010 at 03:08:40PM -0400, ge...@plan9.bell-labs.com wrote:
> > What type is `smallnumber'?
>
> typedef unsigned char smallnumber;
Aha!
> translated from Pascal:
>
> small_number=0..63;
IIRC in
2010/4/22 Rudolf Sykora :
> On 22 April 2010 20:24, yy wrote:
>> Edit ,x/^.*0\.00/i/\n/
>
> The same answer as to Rob Pike. Your solution is ok, thanks. But I
> still can't see what's wrong with mine... :(
> R
You would need to group your last commands (think carefuly about it):
,x/0.00/{+-i/\n/
On Thu, Apr 22, 2010 at 03:08:40PM -0400, ge...@plan9.bell-labs.com wrote:
> What type is `smallnumber'?
typedef unsigned char smallnumber;
translated from Pascal:
small_number=0..63;
--
Thierry Laronde
http://www.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE9
What type is `smallnumber'?
On Thu Apr 22 14:45:38 EDT 2010, st...@quintile.net wrote:
> replica uses fcp which works multithreaded for speed.
>
> Perhaps the implementation of fswrite() #Z in 9vx uses a seek()
> followed by a write() rather than pwrite() which is not thread safe.
replica actually uses replica/applylog.c:^
replica uses fcp which works multithreaded for speed.
Perhaps the implementation of fswrite() #Z in 9vx uses a seek()
followed by a write() rather than pwrite() which is not thread safe.
Just a guess.
-Steve
On 22 April 2010 20:24, yy wrote:
> Edit ,x/^.*0\.00/i/\n/
The same answer as to Rob Pike. Your solution is ok, thanks. But I
still can't see what's wrong with mine... :(
R
On 22 April 2010 20:21, Rob Pike wrote:
> ,x/0\.00/-a/\n/
>
> -rob
>
>
ok. this works. But what is wrong with mine?!
thanks!
Ruda
2010/4/22 Rudolf Sykora :
> Hello,
>
> I have a file in which I wanted to insert an empty line just before
> any line on which a string, say '0.00' is present.
>
Edit ,x/^.*0\.00/i/\n/
--
- yiyus || JGL . 4l77.com
,x/0\.00/-a/\n/
-rob
OK. I've been trying to track down the odd 9vx crash and discovered some
other oddities and request some guidance in what might be causing the pull to
become corrupted and installing entire blocks of nil's in updated files.
Following details outlined in
http://fixunix.com/plan9/501128-9fans-pull-
Oups, I sent the version with the modifications applied (enrolling).
Here is the vanilla version (with reformating):
void
makemoves( scaled xx0 , scaled xx1 , scaled xx2 , scaled xx3 ,
scaled yy0 , scaled yy1 , scaled yy2 , scaled yy3 ,
smallnumber xicorr , smallnumber etacorr )
On Thu, Apr 22, 2010 at 10:03:58AM -0700, Bakul Shah wrote:
>
> What is the type of x1 and x2? Can you show an actual C code
> fragment? Don't worry about it being complete. Just the half()
All are "integer" (in WEB -> Pascal ->)
#define integer long
The half() macro is only this:
#define hal
Hello,
I have a file in which I wanted to insert an empty line just before
any line on which a string, say '0.00' is present.
My attempts to do it this way:
,x/0.00/+-i/\n/
or similarly were not succesful.
I am not sure where the problem is exactly. (Only have some feeling
about it, but couldn't
further information. it appears that plan 9 dns is vulnerable to
cache poisoning. i just caught a second machine with these entries
ns localhost UN 1269483730/1269483730
ns B.ROOT-SERVERS.NET UN 1273157904/1273157904
ns C.ROOT-SERVERS.NET UN 1273157904/1273
On Thu, 22 Apr 2010 17:29:53 +0200 tlaro...@polynum.com wrote:
> Data:
> Under NetBSD/gcc, I have the following values:
>
> before: x1:=5440, x2:=-5843, x3:=78909
> after: x1:=5440, x2:=-201, x3:=18166, r:=6827 t:=30232
>
> Under Plan9/gcc, I have the following values:
>
> bef
So I have finally narrow down and compare the calculus under
NetBSD/i386/gcc and Plan9/i386/ken-cc. And this has nothing to do with
div versus shift...
ken-cc is at fault here and it seems deep; it has apparently to deal
with registerization.
Data:
Under NetBSD/gcc, I have the following values:
Russ,
I've been messing with libtask for a while and have a simple example using
chanalt that others might benefit from.
I'd be happy to post this on the wiki section of your code.google.com page
if you can grant me wiki permissions.
Regards,
-joe
> This will give you
> -3 -4
> -3 -4
> -3 -4
> I don't have a way to test what kencc does but I would be
> surprised if the result is any different
FWIW 8c gives the same answer.
-Steve
24 matches
Mail list logo