/* * $Id$ */ /* * Harbour Project source code: * Compile help & info related functions * * Copyright 1999 Victor Szakats * www - http://www.harbour-project.org * * 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, with one exception: * * The exception is that if you link the Harbour Runtime Library (HRL) * and/or the Harbour Virtual Machine (HVM) with other files to produce * an executable, this does not by itself cause the resulting executable * to be covered by the GNU General Public License. Your use of that * executable is in no way restricted on account of linking the HRL * and/or HVM code into it. * * 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., 675 Mass Ave, Cambridge, MA 02139, USA (or visit * their web site at http://www.gnu.org/). * */ #include "hbcomp.h" /* * Prints available options */ void hb_compPrintUsage( char * szSelf ) { static const char * szOptions [] = { "\nOptions: %ca automatic memvar declaration", "\n %cb debug info", "\n %cd[=] #define ", "\n %ces[] set exit severity", "\n %cg output type generated is (see below)", "\n %cgc[] output type: C source (.c) (default)", "\n : 0=compact, 1=normal, 2=verbose (default)", "\n %cgo output type: Windows/DOS OBJ32 (.obj)", "\n %cgh output type: Harbour Portable Object (.hrb)", "\n %cgj output type: Java source (.java)", "\n %ci #include file search path", "\n %cl suppress line number information", "\n %cm compile module only", "\n %cn no implicit starting procedure", "\n %co object file drive and/or path", "\n %cp generate pre-processed output (.ppo) file", "\n %cq quiet", "\n %cq0 quiet and don't display program header", /* TODO: "\n %cr[] request linker to search (or none)", */ "\n %cs syntax check only", /* TODO: "\n %ct path for temp file creation", */ "\n %cu[] use command def set in (or none)", "\n %cv variables are assumed M->", "\n %cw[] set warning level number (0..3, default 1)", "\n %cx[] set symbol init function name prefix (for .c only)", #ifdef YYDEBUG "\n %cy trace lex & yacc activity", #endif "\n %cz suppress shortcutting (.and. & .or.)", /* TODO: "\n @ compile list of modules in ", */ "\n" }; int iLine; printf( "\nSyntax: %s [options]" "\n", szSelf ); for( iLine = 0; iLine < ( sizeof( szOptions ) / sizeof( char * ) ); iLine++ ) printf( szOptions[ iLine ], OS_OPT_DELIMITER_LIST[ 0 ] ); } /* * Prints credits */ void hb_compPrintCredits( void ) { printf( "\n" "Credits: The Harbour Team at www.harbour-project.org\n" "\n" "April White \n" "Alejandro de Garate \n" "Alexander S. Kresin \n" "Andi Jahja \n" "Antonio Linares \n" "Bil Simser \n" "Brian Hays \n" "Bruno Cantero \n" "Chen Kedem \n" "Dave Pearson \n" "David G. Holm \n" "Davor Siklic \n" "Eddie Runia \n" "Felipe G. Coury \n" "Gonzalo A. Diethelm \n" "Ignacio Ortiz de Zuniga \n" "Janica Lubos \n" "Jose Lalin \n" "Leslee Griffith \n" "Luiz Rafael Culik \n" "Manuel Ruiz \n" "Matteo Baccan \n" "Matthew Hamilton \n" "Maurilio Longo \n" "Nicolas del Pozo \n" "Patrick Mast \n" "Paul Tucker \n" "Peter Townsend \n" "Phil Barnett \n" "Ron Pinkas \n" "Ryszard Glab \n" "Tim Stone \n" "Victor Szakats \n" "Vladimir Kazimirchik \n" ); } /* * Prints logo */ void hb_compPrintLogo( void ) { printf( "Harbour Compiler %d.%d%s (Build %d) (%04d.%02d.%02d) (%s)\n", HB_VER_MAJOR, HB_VER_MINOR, HB_VER_REVISION, HB_VER_BUILD, HB_VER_YEAR, HB_VER_MONTH, HB_VER_DAY, HB_VER_LEX ); printf( "Copyright 1999-2000, http://www.harbour-project.org\n" ); }