Peeter Joot's (OLD) Blog.

Math, physics, perl, and programming obscurity.

very deceptive indenting.

Posted by peeterjoot on October 16, 2012

Check out the following mismatched indenting (counting carefully if it doesn’t stand out obviously … it didn’t to me) :

#ifdef SQLUNIX
   #ifdef OSS_AIXPPC
      #ifdef OSS_ARCH_P64
         #define SQLO_SHR_OBJECT "(shr_64.o)"
      #else
         #define SQLO_SHR_OBJECT "(shr.o)"
    #endif
#endif

The ending #endif was actually 550 lines away in the file!

Advertisements

One Response to “very deceptive indenting.”

  1. Kuba Ober said

    That’s one of the reasons why Python’s indentation rules look better to me every day 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: