Groups | Search | Server Info | Login | Register


Groups > comp.os.os2.programmer.porting > #116

Re: VirtualAlloc to DosAllocMem

From Paul Ratcliffe <abuse@orac12.clara34.co56.uk78>
Newsgroups comp.os.os2.programmer.porting
Subject Re: VirtualAlloc to DosAllocMem
Date 2011-07-09 11:32 +0000
Message-ID <slrnj1gf22.522.abuse@news.pr.network> (permalink)
References <iv5rr7$dqt$1@speranza.aioe.org> <4e176267$0$6545$9b4e6d93@newsspool4.arcor-online.net> <slrnj1f34j.3nn.abuse@news.pr.network> <4e17b2e3$0$6555$9b4e6d93@newsspool4.arcor-online.net>

Show all headers | View raw


On Sat, 9 Jul 2011 03:46:10 +0200, Lars Erdmann <lars.erdmann@arcor.de> wrote:

>> Strewth, you like typing don't you...
>>
>> return PAG_READ | (writable ? PAG_WRITE : 0) | (executable ? PAG_EXECUTE : 
>> 0);
>>
>> ... but why use 1 line when you can use 10, eh?
> 
> It's all a matter of style.

Sometimes, sometimes not.

> In the end, most compilers will generate the same binary code from that.

Possibly, possibly not.

> At least if the optimizer is turned on. It depends on what you consider to 
> be better readable.

Yes, a simple one liner like the above is perfectly readable and much more
so than either of the examples quoted previously.

> By the way: In a DO178B project people might rip your balls off if they see 
> "condensed" code like you have been writing.

Fuck 'em.
That isn't "condensed" code. There is absolutely nothing wrong with it.

I see you didn't pick up on my little jibe about the pointless comments.

Back to comp.os.os2.programmer.porting | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

VirtualAlloc to DosAllocMem Dave Yeo <dave.r.yeo@gmail.com> - 2011-07-07 19:59 -0700
  Re: VirtualAlloc to DosAllocMem Heiko Nitzsche <hn-expires-27nov11@arcor.de> - 2011-07-08 22:03 +0200
    Re: VirtualAlloc to DosAllocMem Heiko Nitzsche <hn-expires-27nov11@arcor.de> - 2011-07-08 22:14 +0200
      Re: VirtualAlloc to DosAllocMem Dave Yeo <dave.r.yeo@gmail.com> - 2011-07-08 19:39 -0700
        Re: VirtualAlloc to DosAllocMem Dave Yeo <dave.r.yeo@gmail.com> - 2011-07-08 21:57 -0700
    Re: VirtualAlloc to DosAllocMem Paul Ratcliffe <abuse@orac12.clara34.co56.uk78> - 2011-07-08 23:02 +0000
      Re: VirtualAlloc to DosAllocMem "Lars Erdmann" <lars.erdmann@arcor.de> - 2011-07-09 03:46 +0200
        Re: VirtualAlloc to DosAllocMem Paul Ratcliffe <abuse@orac12.clara34.co56.uk78> - 2011-07-09 11:32 +0000
          Re: VirtualAlloc to DosAllocMem Paul Smedley <paulDESPAM@DESPAMMsmedley.id.au> - 2011-07-10 11:39 +0930

csiph-web