Jump to content
The Dark Mod Forums

Aidakeeley's Musings


bambini

Recommended Posts

Hmmm it appears to state something like... "not if... not a console application". I'm probably not even close, but usually the "!" is used to negate what follows... such as: != means 'not equal to'

 

Either way, it looks odd... perhaps it is supposed to be:

[if !CONSOLE_APP]

 

I've never heard of a "not if" before. Seems like a strange thing to be in a header file.

Edited by PranQster

System: Mageia Linux Cauldron, aka Mageia 8

Link to comment
Share on other sites

Yeah the meaning is unclear, PranQster. (If not not)...

 

That's one thing

 

What's possibly infuriating is the need for this new (at least to me, old and out of it though I am) goddamned construct. It seems to me the basic preprocessor directives (and syntax) would suffice. I suspect MS has maybe "come up with an MS idea"... and if so it's another thing to put on my list of why I'd like to ring their necks (expletives heavily held-back, as I'm very possibly wrong about this).

Edited by aidakeeley

"A Rhapsody Of Feigned And Ill-Invented Nonsense" - Thomas Aikenhead, On Theology, ca. 1696

Link to comment
Share on other sites

From a bash scripting page:

[ ! EXPR ]True if EXPR is false.

http://tldp.org/LDP/...sect_07_01.html

 

That's at table 7-2

 

So that format states that if the expression "if not a console app" is false, then the whole shebang is true.

 

Looks like it has nothing to do exactly with microsoft, but a little-used expression from shell scripting.

Edited by PranQster

System: Mageia Linux Cauldron, aka Mageia 8

Link to comment
Share on other sites

But it's in stdafx.h

 

// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#pragma once

#include "targetver.h"

[!if !CONSOLE_APP]
#define WIN32_LEAN_AND_MEAN 	// Exclude rarely-used stuff from Windows headers
[!else]

...

 

I swear.

 

I mean I know "bang" (!) is often shorthand for "not", and that's cool... but why is this new syntax in a header? Are they trying to make things more convoluted? It seems so and that's why I suspect MS. :D

Edited by aidakeeley

"A Rhapsody Of Feigned And Ill-Invented Nonsense" - Thomas Aikenhead, On Theology, ca. 1696

Link to comment
Share on other sites

... weird... looking at it makes me wonder why they simply didn't use:

[if CONSOLE_APP]

 

but then again I'm not a programmer... just one who tinkers with bash scripts and occasionally with code I can't get to compile (as long as I have an error telling me which line the error is on in which file).

System: Mageia Linux Cauldron, aka Mageia 8

Link to comment
Share on other sites

Exactly...

 

it should simply be:

 

#if whateveryouwantdetermined

 

decades of it... not good enough? Still I'm willing to find out why.

 

Like I say, I haven't looked at any code in ages so it might all be perfectly kosher and "standard".

Edited by aidakeeley

"A Rhapsody Of Feigned And Ill-Invented Nonsense" - Thomas Aikenhead, On Theology, ca. 1696

Link to comment
Share on other sites

But it's in stdafx.h

 

// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#pragma once

#include "targetver.h"

[!if !CONSOLE_APP]
#define WIN32_LEAN_AND_MEAN 	// Exclude rarely-used stuff from Windows headers
[!else]

...

 

I swear.

 

I mean I know "bang" (!) is often shorthand for "not", and that's cool... but why is this new syntax in a header? Are they trying to make things more convoluted? It seems so and that's why I suspect MS. :D

 

LOL, not if, not expression, not else.

 

Well, speaking of MS... those are the same guys who got caught putting wait state loops in their operating systems, reducing the wait state value with each service pack, and then claiming "this new version is faster than the previous version! Hurrah for us, we do such a good job!"

No better code... just fewer wait loops to make purposely crippled software run faster.

System: Mageia Linux Cauldron, aka Mageia 8

Link to comment
Share on other sites

Well, speaking of MS... those are the same guys who got caught putting wait state loops in their operating systems, reducing the wait state value with each service pack, and then claiming "this new version is faster than the previous version! Hurrah for us, we do such a good job!"

 

:laugh:

 

Is that true or is that one of those "believable"-and-so-that-says-it-all things?

 

I don't even keep up with things like that any more (obviously), but I do know that new guy ("new" guy... long since) is nuts; and NOT (!) ( ;) ) improving things a whit. He's fucking up the things that were right, FFS.

 

But he's so fucking nuts, he's funny so... shithouse laughs, at least.

Edited by aidakeeley

"A Rhapsody Of Feigned And Ill-Invented Nonsense" - Thomas Aikenhead, On Theology, ca. 1696

Link to comment
Share on other sites

:laugh:

 

Is that true or is that one of those "believable"-and-so-that-says-it-all things?

 

I don't even keep up with things like that any more (obviously), but I do know that new guy ("new" guy... long since) is nuts; and NOT (!) ( ;) ) improving things a whit. He's fucking up the things that were right, FFS.

 

But he's so fucking nuts, he's funny so... shithouse laughs, at least.

 

LOL, hmmm.. would his initials be S.B.?

 

Apparently the wait states issue was discovered in the mid-late 90's by either a computer science instructor or programmer who de-compiled several consecutive versions of Win9x after finding a liberal use of wait state loops. He found that each consecutive release/service pack had the wait state values reduced, thus making the software run faster. That, combined with statements from MS proclaiming performance improvements, led him to conclude that the use of the wait state loops were done for the sole purpose of controlling the performance of each consecutive release.

 

I will try to verify this.

System: Mageia Linux Cauldron, aka Mageia 8

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • Ansome

      Finally got my PC back from the shop after my SSD got corrupted a week ago and damaged my motherboard. Scary stuff, but thank goodness it happened right after two months of FM development instead of wiping all my work before I could release it. New SSD, repaired Motherboard and BIOS, and we're ready to start working on my second FM with some added version control in the cloud just to be safe!
      · 0 replies
    • Petike the Taffer  »  DeTeEff

      I've updated the articles for your FMs and your author category at the wiki. Your newer nickname (DeTeEff) now comes first, and the one in parentheses is your older nickname (Fieldmedic). Just to avoid confusing people who played your FMs years ago and remember your older nickname. I've added a wiki article for your latest FM, Who Watches the Watcher?, as part of my current updating efforts. Unless I overlooked something, you have five different FMs so far.
      · 0 replies
    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
×
×
  • Create New...