dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/cscc java_main.c,NONE,1.1 Makefile.am,1


From: Gopal.V <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/cscc java_main.c,NONE,1.1 Makefile.am,1.20,1.21
Date: Sat, 17 May 2003 03:04:37 -0400

Update of /cvsroot/dotgnu-pnet/pnet/cscc
In directory subversions:/tmp/cvs-serv702/cscc

Modified Files:
        Makefile.am 
Added Files:
        java_main.c 
Log Message:
Initial checkin of the java compiler


--- NEW FILE ---
/*
 * java_main.c - Main entry point for the Java compiler plug-in.
 *
 * Copyright (C) 2003 Gopal.V 
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifdef  __cplusplus
extern  "C" {
#endif
#include "java/java_internal.h"

/*
 * Entry points for the parser and lexer.
 */
extern int java_debug;
extern int java_parse(void);
extern void java_restart(FILE *infile);

/*
 * Configuration variables that are used by "cc_main.c".
 */
char const CCPluginName[] = "cscc-java";
int const CCPluginOptionParseMode = CMDLINE_PARSE_PLUGIN;
int const CCPluginUsesPreproc = CC_PREPROC_NONE;
int const CCPluginJVMSupported = 1;
int const CCPluginSkipCodeGen = 0;
int const CCPluginGenModulesEarly = 0;
int const CCPluginForceStdlib = 1;

int CCPluginInit(void)
{
        /* Nothing to do here */
        return 1;
}

void CCPluginShutdown(int status)
{
        /* Nothing to do here */
}

int CCPluginParse(void)
{
        java_debug = 1;
        return java_parse();
}

void CCPluginRestart(FILE *infile)
{
        java_restart(infile);
}

void CCPluginSemAnalysis(void)
{
        /* Perform type gathering */
        CCCodeGen.typeGather = 1;
        CCParseTree = JavaTypeGather(&CCCodeGen, CCGlobalScope, CCParseTree);
        CCCodeGen.typeGather = 0;

        /* Perform semantic analysis */
        ILNode_JSemAnalysis(CCParseTree,&CCCodeGen,&CCParseTree);
}

void CCPluginPostCodeGen(void)
{
        /* Nothing to do here */
}

int main(int argc, char *argv[])
{
        return CCMain(argc, argv);
}

#ifdef  __cplusplus
};
#endif



Index: Makefile.am
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/cscc/Makefile.am,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -r1.20 -r1.21
*** Makefile.am 16 May 2003 05:48:38 -0000      1.20
--- Makefile.am 17 May 2003 07:04:35 -0000      1.21
***************
*** 1,6 ****
  
! SUBDIRS = common csharp c vb
  
! noinst_PROGRAMS = cscc-cs cscc-c-s cscc-vb cscc csdoc
  man_MANS        = cscc.1 csdoc.1
  EXTRA_DIST      = $(man_MANS)
--- 1,6 ----
  
! SUBDIRS = common csharp c vb java
  
! noinst_PROGRAMS = cscc-cs cscc-c-s cscc-vb cscc-java cscc csdoc
  man_MANS        = cscc.1 csdoc.1
  EXTRA_DIST      = $(man_MANS)
***************
*** 27,30 ****
--- 27,35 ----
                                  ../image/libILImage.a 
../support/libILSupport.a
  
+ cscc_java_SOURCES = java_main.c
+ cscc_java_LDADD   = java/libILJava.a common/libILCCommon.a \
+                                 ../codegen/libILCodeGen.a 
../dumpasm/libILDumpAsm.a \
+                                 ../image/libILImage.a 
../support/libILSupport.a
+ 
  csdoc_SOURCES = csdoc.c
  csdoc_LDADD   = csharp/libILCSharp.a common/libILCCommon.a \
***************
*** 41,44 ****
--- 46,50 ----
        $(INSTALL_PROGRAM) cscc-c-s $(DESTDIR)$(libdir)/cscc/plugins/cscc-c-s
        $(INSTALL_PROGRAM) cscc-vb $(DESTDIR)$(libdir)/cscc/plugins/cscc-vb
+       $(INSTALL_PROGRAM) cscc-java $(DESTDIR)$(libdir)/cscc/plugins/cscc-java
        $(INSTALL_PROGRAM) cscc $(DESTDIR)$(bindir)/cscc
        $(INSTALL_PROGRAM) csdoc $(DESTDIR)$(bindir)/csdoc
***************
*** 52,55 ****
--- 58,62 ----
        rm -f $(DESTDIR)$(libdir)/cscc/plugins/cscc-c-s
        rm -f $(DESTDIR)$(libdir)/cscc/plugins/cscc-vb
+       rm -f $(DESTDIR)$(libdir)/cscc/plugins/cscc-java
        rm -f $(DESTDIR)$(bindir)/cscc
        rm -f $(DESTDIR)$(bindir)/csdoc





reply via email to

[Prev in Thread] Current Thread [Next in Thread]