delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/07/13/14:04:33

From: drupp AT cs DOT washington DOT edu (Douglas Rupp)
Message-Id: <199607131738.KAA08804@june.cs.washington.edu>
Subject: .c vs .C vs .cc
To: djgpp-workers AT delorie DOT com
Date: Sat, 13 Jul 1996 10:38:33 -0700 (PDT)
MIME-Version: 1.0

The gcc driver program recognizes the .C extension as being different
from the .c extension on the (raw) DOS command line.  .C, of course, flags
a C++ program.  .C is synonomous with .c++, .cpp, .cc, .cxx.  So there
are alternatives.

A problem arises with various DOS utilities which return filenames in all
uppercase, so if one uses these to automatically generate compilation 
scripts, the wrong compiler gets called.  It's not so much an issue with .c
and .C as it is with .ADB and .ADS.  Gcc doesn't recognize these as Ada
units at all.

I propose submitting a request to change the comparison code in gcc to
make it case insensitve, as it already does for OS/2.

What do people think?  Do people actually use the .C extension on DOS to
flag C++ programs?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019