Re: A source file de-tabifier for you
From: Leor Zolman (leor_at_bdsoft.com)
Date: 05/16/04
- Next message: Francis Glassborow: "Re: C++ books"
- Previous message: Patrick de Ridder: "Re: C++ books"
- In reply to: Leor Zolman: "A source file de-tabifier for you"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 16 May 2004 11:37:10 -0400
On Sun, 16 May 2004 11:16:52 -0400, Leor Zolman <leor@bdsoft.com> wrote:
>Following is plist.c, a program I originally wrote to help me format source
>listings for publication in CUJ articles
Heh, I just noticed this still uses old-style K&R function headers, e.g.,
int foo(a,b)
int a, int b
{
...
}
Think of it as nostalgic ;-) Believe it or not, the C compiler I was using
the most at the time, under SCO Xenix, only supported C prototypes when you
did /not/ include the identifier names for parameters; that is, for the
program above, the prototype:
int foo(int, int);
would have been okay, but if I'd written:
int foo(int a, int b);
the compiler would have choked. Thus I stuck with old-style function
headers somewhat longer into the post-C89 era than I would have if I
weren't porting code back and forth between DOS and Xenix at the time...
-leor
-- Leor Zolman --- BD Software --- www.bdsoft.com On-Site Training in C/C++, Java, Perl and Unix C++ users: download BD Software's free STL Error Message Decryptor at: www.bdsoft.com/tools/stlfilt.html
- Next message: Francis Glassborow: "Re: C++ books"
- Previous message: Patrick de Ridder: "Re: C++ books"
- In reply to: Leor Zolman: "A source file de-tabifier for you"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|