#23 Add extensions for Objective-C, C++, assembly to gcc

closed-fixed
None
5
2003-02-17
2003-02-17
Anonymous
No

From
http://sourceforge.net/mailarchive/forum.php?thread_id=1252653&forum_id=2912

Below is a diff to CVS to expand the number of input
file extensions
supported by the GCC front end. Of primary importance
(for me) is the
support for the Objective-C and Objective-C++
languages used for
Macintosh Cocoa (system) programming.

The additional extensions are all handled as
appropriate by the gcc
command, so they only need to be added to the
sourceExtensions
collection.

Index:
src/net/sf/antcontrib/cpptasks/gcc/GccCCompiler.java
===================================================================
RCS file:
/cvsroot/ant-contrib/cpptasks/src/net/sf/antcontrib/cpptasks/gcc/GccCCompiler.java,v
retrieving revision 1.22
diff -c -3 -p -r1.22 GccCCompiler.java
***
src/net/sf/antcontrib/cpptasks/gcc/GccCCompiler.java 14
Sep 2002
04:44:50 -0000 1.22
---
src/net/sf/antcontrib/cpptasks/gcc/GccCCompiler.java 30
Oct 2002
19:11:31 -0000
*************** public final class GccCCompiler extends
*** 78,91 ****

private final static String[] sourceExtensions =
new String[] {
! ".c",
! ".cc",
! ".cpp",
! ".cxx",
! ".c++",
! ".i",
! ".f",
! ".for" };
private final static String[] headerExtensions =
new String[] { ".h", ".hpp", ".inl" };

--- 78,96 ----

private final static String[] sourceExtensions =
new String[] {
! ".c", /* C */
! ".cc", /* C++ */
! ".cpp", /* C++ */
! ".cxx", /* C++ */
! ".c++", /* C++ */
! ".i", /* preprocessed C */
! ".ii", /* preprocessed C++ */
! ".f", /* FORTRAN */
! ".for", /* FORTRAN */
! ".m", /* Objective-C */
! ".mm", /* Objected-C++ */
! ".s" /* Assembly */
! };
private final static String[] headerExtensions =
new String[] { ".h", ".hpp", ".inl" };

--
Stephen M. Webb

Discussion

  • Curt Arnold

    Curt Arnold - 2003-02-17
    • assigned_to: nobody --> carnold
    • status: open --> closed-fixed
     
  • Curt Arnold

    Curt Arnold - 2003-02-17

    Logged In: YES
    user_id=27193

    Applied patch and added testBidPreprocessedCpp,
    testBidObjectiveC, testBidObjectiveCpp,
    testBidObjectiveAssembly to TestGccCCompiler

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks