Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
cmd_line.m
Go to the documentation of this file.
00001 /*
00002 
00003   Copyright (C) 2000, 2001 Silicon Graphics, Inc.  All Rights Reserved.
00004 
00005   This program is free software; you can redistribute it and/or modify it
00006   under the terms of version 2 of the GNU General Public License as
00007   published by the Free Software Foundation.
00008 
00009   This program is distributed in the hope that it would be useful, but
00010   WITHOUT ANY WARRANTY; without even the implied warranty of
00011   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
00012 
00013   Further, this software is distributed without any warranty that it is
00014   free of the rightful claim of any third person regarding infringement 
00015   or the like.  Any license provided herein, whether implied or 
00016   otherwise, applies only to this software file.  Patent licenses, if 
00017   any, provided herein do not apply to combinations of this program with 
00018   other software, or any other product whatsoever.  
00019 
00020   You should have received a copy of the GNU General Public License along
00021   with this program; if not, write the Free Software Foundation, Inc., 59
00022   Temple Place - Suite 330, Boston MA 02111-1307, USA.
00023 
00024   Contact information:  Silicon Graphics, Inc., 1600 Amphitheatre Pky,
00025   Mountain View, CA 94043, or:
00026 
00027   http://www.sgi.com
00028 
00029   For further information regarding this notice, see:
00030 
00031   http://oss.sgi.com/projects/GenInfo/NoticeExplan
00032 
00033 */
00034 
00035 
00036 /* USMID:  "\n@(#)5.0_pl/macros/cmd_line.m      5.1     04/29/99 21:22:31\n" */
00037 
00038 /*****************\
00039 |* MISCELLANEOUS *|
00040 \*****************/
00041 
00042 # define FALSE_OPTION           (0)
00043 # define TRUE_OPTION           (-1)
00044 
00045 
00046 /********************\
00047 |* SIZES AND LIMITS *|
00048 \********************/
00049 
00050 # define MAX_TRUNCATION_BITS    47                      /* max value on -t opt*/
00051 
00052 
00053 /******************************\
00054 |* OBJECT REPLACEMENT STRINGS *|
00055 \******************************/
00056 
00057 
00058 
00059 /***********************************\
00060 |* CONDITIONAL REPLACEMENT STRINGS *|
00061 \***********************************/
00062 
00063 
00064 
00065 /***********************************************\
00066 |* STATEMENT/FUNCTION-LIKE REPLACEMENT STRINGS *|
00067 \***********************************************/
00068 
00069 # define MAKE_DEFAULT_NAME(NAME, STR, SUFFIX)                                  \
00070          { char *_nmp, *_stp;                                                  \
00071                 _nmp = NAME;                                                   \
00072                 _stp = strrchr (STR, SLASH);                                   \
00073                 _stp = (_stp == NULL) ? STR : _stp+1;                          \
00074                 while (*_nmp++ = *_stp++) ;                                    \
00075                 _stp = strrchr (NAME, DOT);                                    \
00076                 if (_stp != NULL &&                                            \
00077                     (EQUAL_STRS(_stp, ".f") || EQUAL_STRS(_stp, ".F"))) {      \
00078                    strcpy (++_stp, SUFFIX);                                    \
00079                 }                                                              \
00080                 else if (_stp != NULL &&                                       \
00081                    (EQUAL_STRS(_stp, ".f90") || EQUAL_STRS(_stp, ".F90"))) {   \
00082                    strcpy (++_stp, SUFFIX);                                    \
00083                 }                                                              \
00084                 else if (_stp != NULL  &&  EQUAL_STRS(_stp, ".i")) {           \
00085                    strcpy (++_stp, SUFFIX);                                    \
00086                 }                                                              \
00087                 else {                                                         \
00088                    _nmp--;                                                     \
00089                    *_nmp++ = DOT;                                              \
00090                    strcpy (_nmp++, SUFFIX);                                    \
00091                 }                                                              \
00092         }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines