Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
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.1 of the GNU Lesser General Public License 00007 as 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 Lesser General Public 00021 License along with this program; if not, write the Free Software 00022 Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, 00023 USA. 00024 00025 Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pky, 00026 Mountain View, CA 94043, or: 00027 00028 http://www.sgi.com 00029 00030 For further information regarding this notice, see: 00031 00032 http://oss.sgi.com/projects/GenInfo/NoticeExplan 00033 00034 */ 00035 00036 00037 /* USMID @(#) libf/include/wnl90def.h 92.0 10/08/98 14:30:10 */ 00038 #ifndef _WNL90DEF_H 00039 #define _WNL90DEF_H 00040 00041 #define ERROR0(cond, css, n) { \ 00042 if (!(cond)) \ 00043 _ferr(css,n); \ 00044 else \ 00045 goto finalization; \ 00046 } 00047 00048 #define ERROR1(cond, css, n, p) { \ 00049 if (!(cond)) \ 00050 _ferr(css,(n), p); \ 00051 else \ 00052 goto finalization; \ 00053 } 00054 00055 /* 00056 * NLWFLUSH writes what's in line buffer. 00057 * Reset pointers and counters so we start at the beginning of the buffer. 00058 * The first character in line buffer is used for carriage control. 00059 */ 00060 00061 #define NLWFLUSH() { \ 00062 if (_fwch(cup, cup->ulinebuf, cup->ulinemax, 1) < 0) { \ 00063 ERROR0(errf, css, errno); \ 00064 } \ 00065 cup->ulineptr = cup->ulinebuf; \ 00066 cup->ulinemax = 0; \ 00067 } 00068 00069 /* 00070 * NLCHAR(X) writes a character to the line buffer 00071 */ 00072 00073 #define NLCHAR(x) { \ 00074 if (cup->ulinemax++ > cup->unmlsize) { \ 00075 ERROR0(errf, css, FEWRLONG); /* output record too long */ \ 00076 } \ 00077 *(cup->ulineptr++) = (long) x; \ 00078 } 00079 00080 /* 00081 * NLINE determines whether user specified new line for each variable. 00082 */ 00083 00084 #define NLINE() { \ 00085 if (OUT_LINE) { \ 00086 NLWFLUSH(); /* Write out what's in line buffer */ \ 00087 NLCHAR(' '); /* write blank */ \ 00088 NLCHAR(' '); /* write blank */ \ 00089 } \ 00090 } 00091 00092 extern long _wnlrecsiz; 00093 extern long OUT_CHAR; 00094 extern long OUT_ECHO; 00095 extern long OUT_LINE; 00096 extern long OUT_EQ; 00097 extern long OUT_SEP; 00098 00099 #endif /* !_WNL90DEF_H */