mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dthelp: remove obsolete and non-compiled code
This commit is contained in:
parent
1e7374e2f9
commit
4370a95a84
102 changed files with 2 additions and 6076 deletions
|
@ -128,8 +128,6 @@ int gettoken(int *c, int context);
|
||||||
|
|
||||||
TREE *gettreenode(void);
|
TREE *gettreenode(void);
|
||||||
|
|
||||||
void m_initctype(void);
|
|
||||||
|
|
||||||
void initialize(void);
|
void initialize(void);
|
||||||
|
|
||||||
LOGICAL litproc(int delim);
|
LOGICAL litproc(int delim);
|
||||||
|
|
|
@ -90,8 +90,6 @@ void getname(int first);
|
||||||
|
|
||||||
int gettoken(int *c, int context);
|
int gettoken(int *c, int context);
|
||||||
|
|
||||||
void m_initctype(void);
|
|
||||||
|
|
||||||
void initialize(void);
|
void initialize(void);
|
||||||
|
|
||||||
LOGICAL m_letter(M_WCHAR c);
|
LOGICAL m_letter(M_WCHAR c);
|
||||||
|
|
|
@ -28,5 +28,5 @@ AM_CPPFLAGS = -I$(HELPPARSERSRC) -I$(HELPUTILSRC) \
|
||||||
|
|
||||||
# needed by parser/
|
# needed by parser/
|
||||||
noinst_LIBRARIES = libhelptag.a
|
noinst_LIBRARIES = libhelptag.a
|
||||||
libhelptag_a_SOURCES = custom.c default.c help.c make.c option.c \
|
libhelptag_a_SOURCES = custom.c default.c help.c option.c \
|
||||||
special.c out.c xref.c global.c ../parser/delim.h
|
special.c out.c xref.c global.c ../parser/delim.h
|
||||||
|
|
|
@ -1,37 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: calculat.c /main/3 1995/11/08 09:28:53 rswiston $ */
|
|
||||||
/*
|
|
||||||
* Copyright 1989 Hewlett-Packard Co.
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* procedures used by calculator elements for 1.2 release 26jul89-pj
|
|
||||||
*
|
|
||||||
* NOTE : This file is used as a Microsoft Linker overlay, so it cannot
|
|
||||||
* have functions as pointers, eg. (proc *) f(). Routines that are
|
|
||||||
* or invoke function pointers should be in tex.c.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Obsolete */
|
|
||||||
|
|
|
@ -1,828 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: calculat.h /main/3 1995/11/08 09:29:08 rswiston $ */
|
|
||||||
/* this file contains special character expansions for various characters
|
|
||||||
* in Dot Matrix (computer), Menu Label (ml), and White Menu Label (wl)
|
|
||||||
* arrays are: ccompspec[] --> computer specials
|
|
||||||
* cmenlspec[] --> menu label specials
|
|
||||||
* cwmenlspec[]--> white menu label specials
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* special computer expansions for dot matrix in calculator style */
|
|
||||||
EXTERN char *ccompspec[256]
|
|
||||||
#if defined(DEFINE)
|
|
||||||
= {
|
|
||||||
/* Char Name TeX Expansion */
|
|
||||||
/* */
|
|
||||||
/* 0: ^@ NUL */ 0,
|
|
||||||
/* 1: ^A SOH */ 0,
|
|
||||||
/* 2: ^B STX */ 0,
|
|
||||||
/* 3: ^C ETX */ 0,
|
|
||||||
/* 4: ^D EOT */ 0,
|
|
||||||
/* 5: ^E ENQ */ 0,
|
|
||||||
/* 6: ^F ACK */ 0,
|
|
||||||
/* 7: ^G BEL */ 0,
|
|
||||||
/* 8: ^H BS */ 0,
|
|
||||||
/* 9: ^I HT */ 0,
|
|
||||||
/* 10: ^J LF */ 0,
|
|
||||||
/* 11: ^K VT */ 0,
|
|
||||||
/* 12: ^L FF */ 0,
|
|
||||||
/* 13: ^M CR */ 0,
|
|
||||||
/* 14: ^N SO */ 0,
|
|
||||||
/* 15: ^O SI */ 0,
|
|
||||||
/* 16: ^P DLE */ 0,
|
|
||||||
/* 17: ^Q DC1 */ 0,
|
|
||||||
/* 18: ^R DC2 */ 0,
|
|
||||||
/* 19: ^S DC3 */ 0,
|
|
||||||
/* 20: ^T DC4 */ 0,
|
|
||||||
/* 21: ^U NAK */ 0,
|
|
||||||
/* 22: ^V SYN */ 0,
|
|
||||||
/* 23: ^W ETB */ 0,
|
|
||||||
/* 24: ^X CAN */ 0,
|
|
||||||
/* 25: ^Y EM */ 0,
|
|
||||||
/* 26: ^Z SUB */ 0,
|
|
||||||
/* 27: ^[ ESC */ 0,
|
|
||||||
/* 28: ^\ FS */ 0,
|
|
||||||
/* 29: ^] GS */ 0,
|
|
||||||
/* 30: ^^ RS */ 0,
|
|
||||||
/* 31: ^_ US */ 0,
|
|
||||||
/* 32: SP */ 0,
|
|
||||||
/* 33: ! */ 0,
|
|
||||||
/* 34: " */ 0,
|
|
||||||
/* 35: # */ "\\#",
|
|
||||||
/* 36: $ */ "{\\dollar}",
|
|
||||||
/* 37: % */ "\\%",
|
|
||||||
/* 38: & */ "\\&",
|
|
||||||
/* 39: ' */ "{'}",
|
|
||||||
/* 40: ( */ 0,
|
|
||||||
/* 41: ) */ 0,
|
|
||||||
/* 42: * */ 0,
|
|
||||||
/* 43: + */ 0,
|
|
||||||
/* 44: , */ 0,
|
|
||||||
/* 45: - */ "{-}",
|
|
||||||
/* 46: . */ 0,
|
|
||||||
/* 47: / */ 0,
|
|
||||||
/* 48: 0 */ 0,
|
|
||||||
/* 49: 1 */ 0,
|
|
||||||
/* 50: 2 */ 0,
|
|
||||||
/* 51: 3 */ 0,
|
|
||||||
/* 52: 4 */ 0,
|
|
||||||
/* 53: 5 */ 0,
|
|
||||||
/* 54: 6 */ 0,
|
|
||||||
/* 55: 7 */ 0,
|
|
||||||
/* 56: 8 */ 0,
|
|
||||||
/* 57: 9 */ 0,
|
|
||||||
/* 58: : */ 0,
|
|
||||||
/* 59: ; */ 0,
|
|
||||||
/* 60: < */ "{\\tendmb\\char'045}",
|
|
||||||
/* 61: = */ 0,
|
|
||||||
/* 62: > */ "{\\tendmb\\char'046}",
|
|
||||||
/* 63: ? */ 0,
|
|
||||||
/* 64: @ */ 0,
|
|
||||||
/* 65: A */ 0,
|
|
||||||
/* 66: B */ 0,
|
|
||||||
/* 67: C */ 0,
|
|
||||||
/* 68: D */ 0,
|
|
||||||
/* 69: E */ 0,
|
|
||||||
/* 70: F */ 0,
|
|
||||||
/* 71: G */ 0,
|
|
||||||
/* 72: H */ 0,
|
|
||||||
/* 73: I */ 0,
|
|
||||||
/* 74: J */ 0,
|
|
||||||
/* 75: K */ 0,
|
|
||||||
/* 76: L */ 0,
|
|
||||||
/* 77: M */ 0,
|
|
||||||
/* 78: N */ 0,
|
|
||||||
/* 79: O */ 0,
|
|
||||||
/* 80: P */ 0,
|
|
||||||
/* 81: Q */ 0,
|
|
||||||
/* 82: R */ 0,
|
|
||||||
/* 83: S */ 0,
|
|
||||||
/* 84: T */ 0,
|
|
||||||
/* 85: U */ 0,
|
|
||||||
/* 86: V */ 0,
|
|
||||||
/* 87: W */ 0,
|
|
||||||
/* 88: X */ 0,
|
|
||||||
/* 89: Y */ 0,
|
|
||||||
/* 90: Z */ 0,
|
|
||||||
/* 91: [ */ 0,
|
|
||||||
/* 92: \\ */ "{\\tendmb\\char'047}",
|
|
||||||
/* 93: ] */ 0,
|
|
||||||
/* 94: ^ */ "{\\tendmb\\char'064}",
|
|
||||||
/* 95: _ */ "{\\tendmb\\char'066}",
|
|
||||||
/* 96: ` */ "{`}",
|
|
||||||
/* 97: a */ 0,
|
|
||||||
/* 98: b */ 0,
|
|
||||||
/* 99: c */ 0,
|
|
||||||
/* 100: d */ 0,
|
|
||||||
/* 101: e */ 0,
|
|
||||||
/* 102: f */ 0,
|
|
||||||
/* 103: g */ 0,
|
|
||||||
/* 104: h */ 0,
|
|
||||||
/* 105: i */ 0,
|
|
||||||
/* 106: j */ 0,
|
|
||||||
/* 107: k */ 0,
|
|
||||||
/* 108: l */ 0,
|
|
||||||
/* 109: m */ 0,
|
|
||||||
/* 110: n */ 0,
|
|
||||||
/* 111: o */ 0,
|
|
||||||
/* 112: p */ 0,
|
|
||||||
/* 113: q */ 0,
|
|
||||||
/* 114: r */ 0,
|
|
||||||
/* 115: s */ 0,
|
|
||||||
/* 116: t */ 0,
|
|
||||||
/* 117: u */ 0,
|
|
||||||
/* 118: v */ 0,
|
|
||||||
/* 119: w */ 0,
|
|
||||||
/* 120: x */ 0,
|
|
||||||
/* 121: y */ 0,
|
|
||||||
/* 122: z */ 0,
|
|
||||||
/* 123: { */ "{\\tendmb\\char'070}",
|
|
||||||
/* 124: | */ "{\\tendmb\\char'104}",
|
|
||||||
/* 125: } */ "{\\tendmb\\char'107}",
|
|
||||||
/* 126: ~ */ "{\\tendmb\\char'116}",
|
|
||||||
/* 127: DEL */ 0,
|
|
||||||
/* 128: undefined */ 0,
|
|
||||||
/* 129: undefined */ 0,
|
|
||||||
/* 130: undefined */ 0,
|
|
||||||
/* 131: undefined */ 0,
|
|
||||||
/* 132: undefined */ 0,
|
|
||||||
/* 133: undefined */ 0,
|
|
||||||
/* 134: undefined */ 0,
|
|
||||||
/* 135: undefined */ 0,
|
|
||||||
/* 136: undefined */ 0,
|
|
||||||
/* 137: undefined */ 0,
|
|
||||||
/* 138: undefined */ 0,
|
|
||||||
/* 139: undefined */ 0,
|
|
||||||
/* 140: undefined */ 0,
|
|
||||||
/* 141: undefined */ 0,
|
|
||||||
/* 142: undefined */ 0,
|
|
||||||
/* 143: undefined */ 0,
|
|
||||||
/* 144: undefined */ 0,
|
|
||||||
/* 145: undefined */ 0,
|
|
||||||
/* 146: undefined */ 0,
|
|
||||||
/* 147: undefined */ 0,
|
|
||||||
/* 148: undefined */ 0,
|
|
||||||
/* 149: undefined */ 0,
|
|
||||||
/* 150: undefined */ 0,
|
|
||||||
/* 151: undefined */ 0,
|
|
||||||
/* 152: undefined */ 0,
|
|
||||||
/* 153: undefined */ 0,
|
|
||||||
/* 154: undefined */ 0,
|
|
||||||
/* 155: undefined */ 0,
|
|
||||||
/* 156: undefined */ 0,
|
|
||||||
/* 157: undefined */ 0,
|
|
||||||
/* 158: undefined */ 0,
|
|
||||||
/* 159: undefined */ 0,
|
|
||||||
/* 160: undefined */ 0,
|
|
||||||
/* 161: A grave */ "{\\tendmc\\char'041}",
|
|
||||||
/* 162: A circumflex */ "{\\tendmc\\char'042}",
|
|
||||||
/* 163: E grave */ "{\\tendmc\\char'043}",
|
|
||||||
/* 164: E circumflex */ "{\\tendmc\\char'044}",
|
|
||||||
/* 165: E dieresis */ "{\\tendmc\\char'045}",
|
|
||||||
/* 166: I circumflex */ "{\\tendmc\\char'046}",
|
|
||||||
/* 167: I dieresis */ "{\\tendmc\\char'047}",
|
|
||||||
/* 168: acute accent */ "{\\tendma\\char'023}",
|
|
||||||
/* 169: grave accent */ "{\\tendma\\char'022}",
|
|
||||||
/* 170: circumflex */ "{\\tendma\\char'136}",
|
|
||||||
/* 171: dieresis */ "{\\tendma\\char'177}",
|
|
||||||
/* 172: tilde */ "{\\tendma\\char'176}",
|
|
||||||
/* 173: U grave */ "{\\tendmc\\char'050}",
|
|
||||||
/* 174: U circumflex */ "{\\tendmc\\char'051}",
|
|
||||||
/* 175: Italian Lira */ 0,
|
|
||||||
/* 176: overbar */ 0,
|
|
||||||
/* 177: Y acute */ "{\\tendmc\\char'053}",
|
|
||||||
/* 178: y acute */ "{\\tendmc\\char'054}",
|
|
||||||
/* 179: degree */ 0,
|
|
||||||
/* 180: C cedilla */ "{\\tendma\\char'030}",
|
|
||||||
/* 181: c cedilla */ "{\\tendma\\char'030}",
|
|
||||||
/* 182: N tilde */ "{\\tendmc\\char'055}",
|
|
||||||
/* 183: n tilde */ "{\\tendmc\\char'056}",
|
|
||||||
/* 184: inverted exclamation mark */ "{\\tendma\\char'074}",
|
|
||||||
/* 185: inverted question mark */ "{\\tendma\\char'076}",
|
|
||||||
/* 186: currency sign */ 0,
|
|
||||||
/* 187: pound sterling */ 0,
|
|
||||||
/* 188: Yen */ 0,
|
|
||||||
/* 189: Section sign */ 0,
|
|
||||||
/* 190: florin */ 0,
|
|
||||||
/* 191: Cent sign */ 0,
|
|
||||||
/* 192: a circumflex */ "{\\tendmc\\char'063}",
|
|
||||||
/* 193: e circumflex */ "{\\tendmc\\char'064}",
|
|
||||||
/* 194: o circumflex */ "{\\tendmc\\char'065}",
|
|
||||||
/* 195: u circumflex */ "{\\tendmc\\char'066}",
|
|
||||||
/* 196: a acute */ "{\\tendmc\\char'067}",
|
|
||||||
/* 197: e acute */ "{\\tendmc\\char'070}",
|
|
||||||
/* 198: o acute */ "{\\tendmc\\char'071}",
|
|
||||||
/* 199: u acute */ "{\\tendmc\\char'072}",
|
|
||||||
/* 200: a grave */ "{\\tendmc\\char'073}",
|
|
||||||
/* 201: e grave */ "{\\tendmc\\char'074}",
|
|
||||||
/* 202: o grave */ "{\\tendmc\\char'075}",
|
|
||||||
/* 203: u grave */ "{\\tendmc\\char'076}",
|
|
||||||
/* 204: a dieresis */ "{\\tendmc\\char'077}",
|
|
||||||
/* 205: e dieresis */ "{\\tendmc\\char'100}",
|
|
||||||
/* 206: o dieresis */ "{\\tendmc\\char'101}",
|
|
||||||
/* 207: u dieresis */ "{\\tendmc\\char'102}",
|
|
||||||
/* 208: A angstrom */ "{\\tendmc\\char'103}",
|
|
||||||
/* 209: i circumflex */ "{\\tendmc\\char'104}",
|
|
||||||
/* 210: O slash */ "{\\tendma\\char'037}",
|
|
||||||
/* 211: AE ligature */ "{\\tendma\\char'035}",
|
|
||||||
/* 212: a angstrom */ "{\\tendmc\\char'105}",
|
|
||||||
/* 213: i acute */ "{\\tendmc\\char'106}",
|
|
||||||
/* 214: o slash */ "{\\tendma\\char'034}",
|
|
||||||
/* 215: ae ligature */ "{\\tendma\\char'032}",
|
|
||||||
/* 216: A dieresis */ "{\\tendmc\\char'107}",
|
|
||||||
/* 217: i grave */ "{\\tendmc\\char'110}",
|
|
||||||
/* 218: O dieresis */ "{\\tendmc\\char'111}",
|
|
||||||
/* 219: U dieresis */ "{\\tendmc\\char'112}",
|
|
||||||
/* 220: E acute */ "{\\tendmc\\char'113}",
|
|
||||||
/* 221: i dieresis */ "{\\tendmc\\char'114}",
|
|
||||||
/* 222: SS ligature */ "{\\tendma\\char'031}",
|
|
||||||
/* 223: O circumflex */ "{\\tendmc\\char'115}",
|
|
||||||
/* 224: A acute */ "{\\tendmc\\char'116}",
|
|
||||||
/* 225: A tilde */ "{\\tendmc\\char'117}",
|
|
||||||
/* 226: a tilde */ "{\\tendmc\\char'120}",
|
|
||||||
/* 227: Eth */ 0,
|
|
||||||
/* 228: eth */ 0,
|
|
||||||
/* 229: I acute */ "{\\tendmc\\char'121}",
|
|
||||||
/* 230: I grave */ "{\\tendmc\\char'122}",
|
|
||||||
/* 231: O acute */ "{\\tendmc\\char'123}",
|
|
||||||
/* 232: O grave */ "{\\tendmc\\char'124}",
|
|
||||||
/* 233: O tilde */ "{\\tendmc\\char'125}",
|
|
||||||
/* 234: o tilde */ "{\\tendmc\\char'126}",
|
|
||||||
/* 235: S caron */ "{\\tendmc\\char'127}",
|
|
||||||
/* 236: s caron */ "{\\tendmc\\char'130}",
|
|
||||||
/* 237: U acute */ "{\\tendmc\\char'131}",
|
|
||||||
/* 238: Y dieresis */ "{\\tendmc\\char'132}",
|
|
||||||
/* 239: y dieresis */ "{\\tendmc\\char'133}",
|
|
||||||
/* 240: Thorn */ 0,
|
|
||||||
/* 241: thorn */ 0,
|
|
||||||
/* 242: undefined */ 0,
|
|
||||||
/* 243: mu */ 0,
|
|
||||||
/* 244: paragraph sign */ 0,
|
|
||||||
/* 245: fraction 3/4 */ 0,
|
|
||||||
/* 246: long dash */ 0,
|
|
||||||
/* 247: fraction 1/4 */ 0,
|
|
||||||
/* 248: fraction 1/2 */ 0,
|
|
||||||
/* 249: Female ordinal */ 0,
|
|
||||||
/* 250: Male ordinal */ 0,
|
|
||||||
/* 251: French double open quote */ 0,
|
|
||||||
/* 252: Solid square */ 0,
|
|
||||||
/* 253: French double close quote */ 0,
|
|
||||||
/* 254: Plus over minus sign */ 0,
|
|
||||||
/* 255: undefined */ 0
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
|
|
||||||
/* special menu label character expansions */
|
|
||||||
EXTERN char *cmenlspec[256]
|
|
||||||
#if defined(DEFINE)
|
|
||||||
= {
|
|
||||||
/* Char Name TeX Expansion */
|
|
||||||
/* */
|
|
||||||
/* 0: ^@ NUL */ 0,
|
|
||||||
/* 1: ^A SOH */ 0,
|
|
||||||
/* 2: ^B STX */ 0,
|
|
||||||
/* 3: ^C ETX */ 0,
|
|
||||||
/* 4: ^D EOT */ 0,
|
|
||||||
/* 5: ^E ENQ */ 0,
|
|
||||||
/* 6: ^F ACK */ 0,
|
|
||||||
/* 7: ^G BEL */ 0,
|
|
||||||
/* 8: ^H BS */ 0,
|
|
||||||
/* 9: ^I HT */ 0,
|
|
||||||
/* 10: ^J LF */ 0,
|
|
||||||
/* 11: ^K VT */ 0,
|
|
||||||
/* 12: ^L FF */ 0,
|
|
||||||
/* 13: ^M CR */ 0,
|
|
||||||
/* 14: ^N SO */ 0,
|
|
||||||
/* 15: ^O SI */ 0,
|
|
||||||
/* 16: ^P DLE */ 0,
|
|
||||||
/* 17: ^Q DC1 */ 0,
|
|
||||||
/* 18: ^R DC2 */ 0,
|
|
||||||
/* 19: ^S DC3 */ 0,
|
|
||||||
/* 20: ^T DC4 */ 0,
|
|
||||||
/* 21: ^U NAK */ 0,
|
|
||||||
/* 22: ^V SYN */ 0,
|
|
||||||
/* 23: ^W ETB */ 0,
|
|
||||||
/* 24: ^X CAN */ 0,
|
|
||||||
/* 25: ^Y EM */ 0,
|
|
||||||
/* 26: ^Z SUB */ 0,
|
|
||||||
/* 27: ^[ ESC */ 0,
|
|
||||||
/* 28: ^\ FS */ 0,
|
|
||||||
/* 29: ^] GS */ 0,
|
|
||||||
/* 30: ^^ RS */ 0,
|
|
||||||
/* 31: ^_ US */ 0,
|
|
||||||
/* 32: SP */ "{\\tenmlb\\char'146}",
|
|
||||||
/* 33: ! */ 0,
|
|
||||||
/* 34: " */ 0,
|
|
||||||
/* 35: # */ "\\#",
|
|
||||||
/* 36: $ */ "{\\dollar}",
|
|
||||||
/* 37: % */ "\\%",
|
|
||||||
/* 38: & */ "\\&",
|
|
||||||
/* 39: ' */ "{'}",
|
|
||||||
/* 40: ( */ 0,
|
|
||||||
/* 41: ) */ 0,
|
|
||||||
/* 42: * */ 0,
|
|
||||||
/* 43: + */ 0,
|
|
||||||
/* 44: , */ 0,
|
|
||||||
/* 45: - */ "{-}",
|
|
||||||
/* 46: . */ 0,
|
|
||||||
/* 47: / */ 0,
|
|
||||||
/* 48: 0 */ 0,
|
|
||||||
/* 49: 1 */ 0,
|
|
||||||
/* 50: 2 */ 0,
|
|
||||||
/* 51: 3 */ 0,
|
|
||||||
/* 52: 4 */ 0,
|
|
||||||
/* 53: 5 */ 0,
|
|
||||||
/* 54: 6 */ 0,
|
|
||||||
/* 55: 7 */ 0,
|
|
||||||
/* 56: 8 */ 0,
|
|
||||||
/* 57: 9 */ 0,
|
|
||||||
/* 58: : */ 0,
|
|
||||||
/* 59: ; */ 0,
|
|
||||||
/* 60: < */ "{\\tenmlb\\char'045}",
|
|
||||||
/* 61: = */ 0,
|
|
||||||
/* 62: > */ "{\\tenmlb\\char'046}",
|
|
||||||
/* 63: ? */ 0,
|
|
||||||
/* 64: @ */ 0,
|
|
||||||
/* 65: A */ 0,
|
|
||||||
/* 66: B */ 0,
|
|
||||||
/* 67: C */ 0,
|
|
||||||
/* 68: D */ 0,
|
|
||||||
/* 69: E */ 0,
|
|
||||||
/* 70: F */ 0,
|
|
||||||
/* 71: G */ 0,
|
|
||||||
/* 72: H */ 0,
|
|
||||||
/* 73: I */ 0,
|
|
||||||
/* 74: J */ 0,
|
|
||||||
/* 75: K */ 0,
|
|
||||||
/* 76: L */ 0,
|
|
||||||
/* 77: M */ 0,
|
|
||||||
/* 78: N */ 0,
|
|
||||||
/* 79: O */ 0,
|
|
||||||
/* 80: P */ 0,
|
|
||||||
/* 81: Q */ 0,
|
|
||||||
/* 82: R */ 0,
|
|
||||||
/* 83: S */ 0,
|
|
||||||
/* 84: T */ 0,
|
|
||||||
/* 85: U */ 0,
|
|
||||||
/* 86: V */ 0,
|
|
||||||
/* 87: W */ 0,
|
|
||||||
/* 88: X */ 0,
|
|
||||||
/* 89: Y */ 0,
|
|
||||||
/* 90: Z */ 0,
|
|
||||||
/* 91: [ */ 0,
|
|
||||||
/* 92: \\ */ "{\\tenmlb\\char'047}",
|
|
||||||
/* 93: ] */ 0,
|
|
||||||
/* 94: ^ */ "{\\tenmlb\\char'064}",
|
|
||||||
/* 95: _ */ "{\\tenmlb\\char'066}",
|
|
||||||
/* 96: ` */ "{`}",
|
|
||||||
/* 97: a */ 0,
|
|
||||||
/* 98: b */ 0,
|
|
||||||
/* 99: c */ 0,
|
|
||||||
/* 100: d */ 0,
|
|
||||||
/* 101: e */ 0,
|
|
||||||
/* 102: f */ 0,
|
|
||||||
/* 103: g */ 0,
|
|
||||||
/* 104: h */ 0,
|
|
||||||
/* 105: i */ 0,
|
|
||||||
/* 106: j */ 0,
|
|
||||||
/* 107: k */ 0,
|
|
||||||
/* 108: l */ 0,
|
|
||||||
/* 109: m */ 0,
|
|
||||||
/* 110: n */ 0,
|
|
||||||
/* 111: o */ 0,
|
|
||||||
/* 112: p */ 0,
|
|
||||||
/* 113: q */ 0,
|
|
||||||
/* 114: r */ 0,
|
|
||||||
/* 115: s */ 0,
|
|
||||||
/* 116: t */ 0,
|
|
||||||
/* 117: u */ 0,
|
|
||||||
/* 118: v */ 0,
|
|
||||||
/* 119: w */ 0,
|
|
||||||
/* 120: x */ 0,
|
|
||||||
/* 121: y */ 0,
|
|
||||||
/* 122: z */ 0,
|
|
||||||
/* 123: { */ "{\\tenmlb\\char'070}",
|
|
||||||
/* 124: | */ "{\\tenmlb\\char'104}",
|
|
||||||
/* 125: } */ "{\\tenmlb\\char'107}",
|
|
||||||
/* 126: ~ */ "{\\tenmlb\\char'116}",
|
|
||||||
/* 127: DEL */ 0,
|
|
||||||
/* 128: undefined */ 0,
|
|
||||||
/* 129: undefined */ 0,
|
|
||||||
/* 130: undefined */ 0,
|
|
||||||
/* 131: undefined */ 0,
|
|
||||||
/* 132: undefined */ 0,
|
|
||||||
/* 133: undefined */ 0,
|
|
||||||
/* 134: undefined */ 0,
|
|
||||||
/* 135: undefined */ 0,
|
|
||||||
/* 136: undefined */ 0,
|
|
||||||
/* 137: undefined */ 0,
|
|
||||||
/* 138: undefined */ 0,
|
|
||||||
/* 139: undefined */ 0,
|
|
||||||
/* 140: undefined */ 0,
|
|
||||||
/* 141: undefined */ 0,
|
|
||||||
/* 142: undefined */ 0,
|
|
||||||
/* 143: undefined */ 0,
|
|
||||||
/* 144: undefined */ 0,
|
|
||||||
/* 145: undefined */ 0,
|
|
||||||
/* 146: undefined */ 0,
|
|
||||||
/* 147: undefined */ 0,
|
|
||||||
/* 148: undefined */ 0,
|
|
||||||
/* 149: undefined */ 0,
|
|
||||||
/* 150: undefined */ 0,
|
|
||||||
/* 151: undefined */ 0,
|
|
||||||
/* 152: undefined */ 0,
|
|
||||||
/* 153: undefined */ 0,
|
|
||||||
/* 154: undefined */ 0,
|
|
||||||
/* 155: undefined */ 0,
|
|
||||||
/* 156: undefined */ 0,
|
|
||||||
/* 157: undefined */ 0,
|
|
||||||
/* 158: undefined */ 0,
|
|
||||||
/* 159: undefined */ 0,
|
|
||||||
/* 160: undefined */ 0,
|
|
||||||
/* 161: A grave */ "{\\tenmlc\\char'041}",
|
|
||||||
/* 162: A circumflex */ "{\\tenmlc\\char'042}",
|
|
||||||
/* 163: E grave */ "{\\tenmlc\\char'043}",
|
|
||||||
/* 164: E circumflex */ "{\\tenmlc\\char'044}",
|
|
||||||
/* 165: E dieresis */ "{\\tenmlc\\char'045}",
|
|
||||||
/* 166: I circumflex */ "{\\tenmlc\\char'046}",
|
|
||||||
/* 167: I dieresis */ "{\\tenmlc\\char'047}",
|
|
||||||
/* 168: acute accent */ "{\\tenmla\\char'023}",
|
|
||||||
/* 169: grave accent */ "{\\tenmla\\char'022}",
|
|
||||||
/* 170: circumflex */ "{\\tenmla\\char'136}",
|
|
||||||
/* 171: dieresis */ "{\\tenmla\\char'177}",
|
|
||||||
/* 172: tilde */ "{\\tenmla\\char'176}",
|
|
||||||
/* 173: U grave */ "{\\tenmlc\\char'050}",
|
|
||||||
/* 174: U circumflex */ "{\\tenmlc\\char'051}",
|
|
||||||
/* 175: Italian Lira */ 0,
|
|
||||||
/* 176: overbar */ 0,
|
|
||||||
/* 177: Y acute */ "{\\tenmlc\\char'053}",
|
|
||||||
/* 178: y acute */ "{\\tenmlc\\char'054}",
|
|
||||||
/* 179: degree */ 0,
|
|
||||||
/* 180: C cedilla */ "{\\tenmla\\char'030}",
|
|
||||||
/* 181: c cedilla */ "{\\tenmla\\char'030}",
|
|
||||||
/* 182: N tilde */ "{\\tenmlc\\char'055}",
|
|
||||||
/* 183: n tilde */ "{\\tenmlc\\char'056}",
|
|
||||||
/* 184: inverted exclamation mark */ "{\\tenmla\\char'074}",
|
|
||||||
/* 185: inverted question mark */ "{\\tenmla\\char'076}",
|
|
||||||
/* 186: currency sign */ 0,
|
|
||||||
/* 187: pound sterling */ 0,
|
|
||||||
/* 188: Yen */ 0,
|
|
||||||
/* 189: Section sign */ 0,
|
|
||||||
/* 190: florin */ 0,
|
|
||||||
/* 191: Cent sign */ 0,
|
|
||||||
/* 192: a circumflex */ "{\\tenmlc\\char'063}",
|
|
||||||
/* 193: e circumflex */ "{\\tenmlc\\char'064}",
|
|
||||||
/* 194: o circumflex */ "{\\tenmlc\\char'065}",
|
|
||||||
/* 195: u circumflex */ "{\\tenmlc\\char'066}",
|
|
||||||
/* 196: a acute */ "{\\tenmlc\\char'067}",
|
|
||||||
/* 197: e acute */ "{\\tenmlc\\char'070}",
|
|
||||||
/* 198: o acute */ "{\\tenmlc\\char'071}",
|
|
||||||
/* 199: u acute */ "{\\tenmlc\\char'072}",
|
|
||||||
/* 200: a grave */ "{\\tenmlc\\char'073}",
|
|
||||||
/* 201: e grave */ "{\\tenmlc\\char'074}",
|
|
||||||
/* 202: o grave */ "{\\tenmlc\\char'075}",
|
|
||||||
/* 203: u grave */ "{\\tenmlc\\char'076}",
|
|
||||||
/* 204: a dieresis */ "{\\tenmlc\\char'077}",
|
|
||||||
/* 205: e dieresis */ "{\\tenmlc\\char'100}",
|
|
||||||
/* 206: o dieresis */ "{\\tenmlc\\char'101}",
|
|
||||||
/* 207: u dieresis */ "{\\tenmlc\\char'102}",
|
|
||||||
/* 208: A angstrom */ "{\\tenmlc\\char'103}",
|
|
||||||
/* 209: i circumflex */ "{\\tenmlc\\char'104}",
|
|
||||||
/* 210: O slash */ "{\\tenmla\\char'037}",
|
|
||||||
/* 211: AE ligature */ "{\\tenmla\\char'035}",
|
|
||||||
/* 212: a angstrom */ "{\\tenmlc\\char'105}",
|
|
||||||
/* 213: i acute */ "{\\tenmlc\\char'106}",
|
|
||||||
/* 214: o slash */ "{\\tenmla\\char'034}",
|
|
||||||
/* 215: ae ligature */ "{\\tenmla\\char'032}",
|
|
||||||
/* 216: A dieresis */ "{\\tenmlc\\char'107}",
|
|
||||||
/* 217: i grave */ "{\\tenmlc\\char'110}",
|
|
||||||
/* 218: O dieresis */ "{\\tenmlc\\char'111}",
|
|
||||||
/* 219: U dieresis */ "{\\tenmlc\\char'112}",
|
|
||||||
/* 220: E acute */ "{\\tenmlc\\char'113}",
|
|
||||||
/* 221: i dieresis */ "{\\tenmlc\\char'114}",
|
|
||||||
/* 222: SS ligature */ "{\\tenmla\\char'031}",
|
|
||||||
/* 223: O circumflex */ "{\\tenmlc\\char'115}",
|
|
||||||
/* 224: A acute */ "{\\tenmlc\\char'116}",
|
|
||||||
/* 225: A tilde */ "{\\tenmlc\\char'117}",
|
|
||||||
/* 226: a tilde */ "{\\tenmlc\\char'120}",
|
|
||||||
/* 227: Eth */ 0,
|
|
||||||
/* 228: eth */ 0,
|
|
||||||
/* 229: I acute */ "{\\tenmlc\\char'121}",
|
|
||||||
/* 230: I grave */ "{\\tenmlc\\char'122}",
|
|
||||||
/* 231: O acute */ "{\\tenmlc\\char'123}",
|
|
||||||
/* 232: O grave */ "{\\tenmlc\\char'124}",
|
|
||||||
/* 233: O tilde */ "{\\tenmlc\\char'125}",
|
|
||||||
/* 234: o tilde */ "{\\tenmlc\\char'126}",
|
|
||||||
/* 235: S caron */ "{\\tenmlc\\char'127}",
|
|
||||||
/* 236: s caron */ "{\\tenmlc\\char'130}",
|
|
||||||
/* 237: U acute */ "{\\tenmlc\\char'131}",
|
|
||||||
/* 238: Y dieresis */ "{\\tenmlc\\char'132}",
|
|
||||||
/* 239: y dieresis */ "{\\tenmlc\\char'133}",
|
|
||||||
/* 240: Thorn */ 0,
|
|
||||||
/* 241: thorn */ 0,
|
|
||||||
/* 242: undefined */ 0,
|
|
||||||
/* 243: mu */ 0,
|
|
||||||
/* 244: paragraph sign */ 0,
|
|
||||||
/* 245: fraction 3/4 */ 0,
|
|
||||||
/* 246: long dash */ 0,
|
|
||||||
/* 247: fraction 1/4 */ 0,
|
|
||||||
/* 248: fraction 1/2 */ 0,
|
|
||||||
/* 249: Female ordinal */ 0,
|
|
||||||
/* 250: Male ordinal */ 0,
|
|
||||||
/* 251: French double open quote */ 0,
|
|
||||||
/* 252: Solid square */ 0,
|
|
||||||
/* 253: French double close quote */ 0,
|
|
||||||
/* 254: Plus over minus sign */ 0,
|
|
||||||
/* 255: undefined */ 0
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
|
|
||||||
/* white menu label special character expansions */
|
|
||||||
EXTERN char *cwmenlspec[256]
|
|
||||||
#if defined(DEFINE)
|
|
||||||
= {
|
|
||||||
/* Char Name TeX Expansion */
|
|
||||||
/* */
|
|
||||||
/* 0: ^@ NUL */ 0,
|
|
||||||
/* 1: ^A SOH */ 0,
|
|
||||||
/* 2: ^B STX */ 0,
|
|
||||||
/* 3: ^C ETX */ 0,
|
|
||||||
/* 4: ^D EOT */ 0,
|
|
||||||
/* 5: ^E ENQ */ 0,
|
|
||||||
/* 6: ^F ACK */ 0,
|
|
||||||
/* 7: ^G BEL */ 0,
|
|
||||||
/* 8: ^H BS */ 0,
|
|
||||||
/* 9: ^I HT */ 0,
|
|
||||||
/* 10: ^J LF */ 0,
|
|
||||||
/* 11: ^K VT */ 0,
|
|
||||||
/* 12: ^L FF */ 0,
|
|
||||||
/* 13: ^M CR */ 0,
|
|
||||||
/* 14: ^N SO */ 0,
|
|
||||||
/* 15: ^O SI */ 0,
|
|
||||||
/* 16: ^P DLE */ 0,
|
|
||||||
/* 17: ^Q DC1 */ 0,
|
|
||||||
/* 18: ^R DC2 */ 0,
|
|
||||||
/* 19: ^S DC3 */ 0,
|
|
||||||
/* 20: ^T DC4 */ 0,
|
|
||||||
/* 21: ^U NAK */ 0,
|
|
||||||
/* 22: ^V SYN */ 0,
|
|
||||||
/* 23: ^W ETB */ 0,
|
|
||||||
/* 24: ^X CAN */ 0,
|
|
||||||
/* 25: ^Y EM */ 0,
|
|
||||||
/* 26: ^Z SUB */ 0,
|
|
||||||
/* 27: ^[ ESC */ 0,
|
|
||||||
/* 28: ^\ FS */ 0,
|
|
||||||
/* 29: ^] GS */ 0,
|
|
||||||
/* 30: ^^ RS */ 0,
|
|
||||||
/* 31: ^_ US */ 0,
|
|
||||||
/* 32: SP */ "{\\tenwlb\\char'146}",
|
|
||||||
/* 33: ! */ 0,
|
|
||||||
/* 34: " */ 0,
|
|
||||||
/* 35: # */ "\\#",
|
|
||||||
/* 36: $ */ "{\\dollar}",
|
|
||||||
/* 37: % */ "\\%",
|
|
||||||
/* 38: & */ "\\&",
|
|
||||||
/* 39: ' */ "{'}",
|
|
||||||
/* 40: ( */ 0,
|
|
||||||
/* 41: ) */ 0,
|
|
||||||
/* 42: * */ 0,
|
|
||||||
/* 43: + */ 0,
|
|
||||||
/* 44: , */ 0,
|
|
||||||
/* 45: - */ "{-}",
|
|
||||||
/* 46: . */ 0,
|
|
||||||
/* 47: / */ 0,
|
|
||||||
/* 48: 0 */ 0,
|
|
||||||
/* 49: 1 */ 0,
|
|
||||||
/* 50: 2 */ 0,
|
|
||||||
/* 51: 3 */ 0,
|
|
||||||
/* 52: 4 */ 0,
|
|
||||||
/* 53: 5 */ 0,
|
|
||||||
/* 54: 6 */ 0,
|
|
||||||
/* 55: 7 */ 0,
|
|
||||||
/* 56: 8 */ 0,
|
|
||||||
/* 57: 9 */ 0,
|
|
||||||
/* 58: : */ 0,
|
|
||||||
/* 59: ; */ 0,
|
|
||||||
/* 60: < */ "{\\tenwlb\\char'045}",
|
|
||||||
/* 61: = */ 0,
|
|
||||||
/* 62: > */ "{\\tenwlb\\char'046}",
|
|
||||||
/* 63: ? */ 0,
|
|
||||||
/* 64: @ */ 0,
|
|
||||||
/* 65: A */ 0,
|
|
||||||
/* 66: B */ 0,
|
|
||||||
/* 67: C */ 0,
|
|
||||||
/* 68: D */ 0,
|
|
||||||
/* 69: E */ 0,
|
|
||||||
/* 70: F */ 0,
|
|
||||||
/* 71: G */ 0,
|
|
||||||
/* 72: H */ 0,
|
|
||||||
/* 73: I */ 0,
|
|
||||||
/* 74: J */ 0,
|
|
||||||
/* 75: K */ 0,
|
|
||||||
/* 76: L */ 0,
|
|
||||||
/* 77: M */ 0,
|
|
||||||
/* 78: N */ 0,
|
|
||||||
/* 79: O */ 0,
|
|
||||||
/* 80: P */ 0,
|
|
||||||
/* 81: Q */ 0,
|
|
||||||
/* 82: R */ 0,
|
|
||||||
/* 83: S */ 0,
|
|
||||||
/* 84: T */ 0,
|
|
||||||
/* 85: U */ 0,
|
|
||||||
/* 86: V */ 0,
|
|
||||||
/* 87: W */ 0,
|
|
||||||
/* 88: X */ 0,
|
|
||||||
/* 89: Y */ 0,
|
|
||||||
/* 90: Z */ 0,
|
|
||||||
/* 91: [ */ 0,
|
|
||||||
/* 92: \\ */ "{\\tenwlb\\char'047}",
|
|
||||||
/* 93: ] */ 0,
|
|
||||||
/* 94: ^ */ "{\\tenwlb\\char'064}",
|
|
||||||
/* 95: _ */ "{\\tenwlb\\char'066}",
|
|
||||||
/* 96: ` */ "{`}",
|
|
||||||
/* 97: a */ 0,
|
|
||||||
/* 98: b */ 0,
|
|
||||||
/* 99: c */ 0,
|
|
||||||
/* 100: d */ 0,
|
|
||||||
/* 101: e */ 0,
|
|
||||||
/* 102: f */ 0,
|
|
||||||
/* 103: g */ 0,
|
|
||||||
/* 104: h */ 0,
|
|
||||||
/* 105: i */ 0,
|
|
||||||
/* 106: j */ 0,
|
|
||||||
/* 107: k */ 0,
|
|
||||||
/* 108: l */ 0,
|
|
||||||
/* 109: m */ 0,
|
|
||||||
/* 110: n */ 0,
|
|
||||||
/* 111: o */ 0,
|
|
||||||
/* 112: p */ 0,
|
|
||||||
/* 113: q */ 0,
|
|
||||||
/* 114: r */ 0,
|
|
||||||
/* 115: s */ 0,
|
|
||||||
/* 116: t */ 0,
|
|
||||||
/* 117: u */ 0,
|
|
||||||
/* 118: v */ 0,
|
|
||||||
/* 119: w */ 0,
|
|
||||||
/* 120: x */ 0,
|
|
||||||
/* 121: y */ 0,
|
|
||||||
/* 122: z */ 0,
|
|
||||||
/* 123: { */ "{\\tenwlb\\char'070}",
|
|
||||||
/* 124: | */ "{\\tenwlb\\char'104}",
|
|
||||||
/* 125: } */ "{\\tenwlb\\char'107}",
|
|
||||||
/* 126: ~ */ "{\\tenwlb\\char'116}",
|
|
||||||
/* 127: DEL */ 0,
|
|
||||||
/* 128: undefined */ 0,
|
|
||||||
/* 129: undefined */ 0,
|
|
||||||
/* 130: undefined */ 0,
|
|
||||||
/* 131: undefined */ 0,
|
|
||||||
/* 132: undefined */ 0,
|
|
||||||
/* 133: undefined */ 0,
|
|
||||||
/* 134: undefined */ 0,
|
|
||||||
/* 135: undefined */ 0,
|
|
||||||
/* 136: undefined */ 0,
|
|
||||||
/* 137: undefined */ 0,
|
|
||||||
/* 138: undefined */ 0,
|
|
||||||
/* 139: undefined */ 0,
|
|
||||||
/* 140: undefined */ 0,
|
|
||||||
/* 141: undefined */ 0,
|
|
||||||
/* 142: undefined */ 0,
|
|
||||||
/* 143: undefined */ 0,
|
|
||||||
/* 144: undefined */ 0,
|
|
||||||
/* 145: undefined */ 0,
|
|
||||||
/* 146: undefined */ 0,
|
|
||||||
/* 147: undefined */ 0,
|
|
||||||
/* 148: undefined */ 0,
|
|
||||||
/* 149: undefined */ 0,
|
|
||||||
/* 150: undefined */ 0,
|
|
||||||
/* 151: undefined */ 0,
|
|
||||||
/* 152: undefined */ 0,
|
|
||||||
/* 153: undefined */ 0,
|
|
||||||
/* 154: undefined */ 0,
|
|
||||||
/* 155: undefined */ 0,
|
|
||||||
/* 156: undefined */ 0,
|
|
||||||
/* 157: undefined */ 0,
|
|
||||||
/* 158: undefined */ 0,
|
|
||||||
/* 159: undefined */ 0,
|
|
||||||
/* 160: undefined */ 0,
|
|
||||||
/* 161: A grave */ "{\\tenwlc\\char'041}",
|
|
||||||
/* 162: A circumflex */ "{\\tenwlc\\char'042}",
|
|
||||||
/* 163: E grave */ "{\\tenwlc\\char'043}",
|
|
||||||
/* 164: E circumflex */ "{\\tenwlc\\char'044}",
|
|
||||||
/* 165: E dieresis */ "{\\tenwlc\\char'045}",
|
|
||||||
/* 166: I circumflex */ "{\\tenwlc\\char'046}",
|
|
||||||
/* 167: I dieresis */ "{\\tenwlc\\char'047}",
|
|
||||||
/* 168: acute accent */ "{\\tenwla\\char'023}",
|
|
||||||
/* 169: grave accent */ "{\\tenwla\\char'022}",
|
|
||||||
/* 170: circumflex */ "{\\tenwla\\char'136}",
|
|
||||||
/* 171: dieresis */ "{\\tenwla\\char'177}",
|
|
||||||
/* 172: tilde */ "{\\tenwla\\char'176}",
|
|
||||||
/* 173: U grave */ "{\\tenwlc\\char'050}",
|
|
||||||
/* 174: U circumflex */ "{\\tenwlc\\char'051}",
|
|
||||||
/* 175: Italian Lira */ 0,
|
|
||||||
/* 176: overbar */ 0,
|
|
||||||
/* 177: Y acute */ "{\\tenwlc\\char'053}",
|
|
||||||
/* 178: y acute */ "{\\tenwlc\\char'054}",
|
|
||||||
/* 179: degree */ 0,
|
|
||||||
/* 180: C cedilla */ "{\\tenwla\\char'030}",
|
|
||||||
/* 181: c cedilla */ "{\\tenwla\\char'030}",
|
|
||||||
/* 182: N tilde */ "{\\tenwlc\\char'055}",
|
|
||||||
/* 183: n tilde */ "{\\tenwlc\\char'056}",
|
|
||||||
/* 184: inverted exclamation mark */ "{\\tenwla\\char'074}",
|
|
||||||
/* 185: inverted question mark */ "{\\tenwla\\char'076}",
|
|
||||||
/* 186: currency sign */ 0,
|
|
||||||
/* 187: pound sterling */ 0,
|
|
||||||
/* 188: Yen */ 0,
|
|
||||||
/* 189: Section sign */ 0,
|
|
||||||
/* 190: florin */ 0,
|
|
||||||
/* 191: Cent sign */ 0,
|
|
||||||
/* 192: a circumflex */ "{\\tenwlc\\char'063}",
|
|
||||||
/* 193: e circumflex */ "{\\tenwlc\\char'064}",
|
|
||||||
/* 194: o circumflex */ "{\\tenwlc\\char'065}",
|
|
||||||
/* 195: u circumflex */ "{\\tenwlc\\char'066}",
|
|
||||||
/* 196: a acute */ "{\\tenwlc\\char'067}",
|
|
||||||
/* 197: e acute */ "{\\tenwlc\\char'070}",
|
|
||||||
/* 198: o acute */ "{\\tenwlc\\char'071}",
|
|
||||||
/* 199: u acute */ "{\\tenwlc\\char'072}",
|
|
||||||
/* 200: a grave */ "{\\tenwlc\\char'073}",
|
|
||||||
/* 201: e grave */ "{\\tenwlc\\char'074}",
|
|
||||||
/* 202: o grave */ "{\\tenwlc\\char'075}",
|
|
||||||
/* 203: u grave */ "{\\tenwlc\\char'076}",
|
|
||||||
/* 204: a dieresis */ "{\\tenwlc\\char'077}",
|
|
||||||
/* 205: e dieresis */ "{\\tenwlc\\char'100}",
|
|
||||||
/* 206: o dieresis */ "{\\tenwlc\\char'101}",
|
|
||||||
/* 207: u dieresis */ "{\\tenwlc\\char'102}",
|
|
||||||
/* 208: A angstrom */ "{\\tenwlc\\char'103}",
|
|
||||||
/* 209: i circumflex */ "{\\tenwlc\\char'104}",
|
|
||||||
/* 210: O slash */ "{\\tenwla\\char'037}",
|
|
||||||
/* 211: AE ligature */ "{\\tenwla\\char'035}",
|
|
||||||
/* 212: a angstrom */ "{\\tenwlc\\char'105}",
|
|
||||||
/* 213: i acute */ "{\\tenwlc\\char'106}",
|
|
||||||
/* 214: o slash */ "{\\tenwla\\char'034}",
|
|
||||||
/* 215: ae ligature */ "{\\tenwla\\char'032}",
|
|
||||||
/* 216: A dieresis */ "{\\tenwlc\\char'107}",
|
|
||||||
/* 217: i grave */ "{\\tenwlc\\char'110}",
|
|
||||||
/* 218: O dieresis */ "{\\tenwlc\\char'111}",
|
|
||||||
/* 219: U dieresis */ "{\\tenwlc\\char'112}",
|
|
||||||
/* 220: E acute */ "{\\tenwlc\\char'113}",
|
|
||||||
/* 221: i dieresis */ "{\\tenwlc\\char'114}",
|
|
||||||
/* 222: SS ligature */ "{\\tenwla\\char'031}",
|
|
||||||
/* 223: O circumflex */ "{\\tenwlc\\char'115}",
|
|
||||||
/* 224: A acute */ "{\\tenwlc\\char'116}",
|
|
||||||
/* 225: A tilde */ "{\\tenwlc\\char'117}",
|
|
||||||
/* 226: a tilde */ "{\\tenwlc\\char'120}",
|
|
||||||
/* 227: Eth */ 0,
|
|
||||||
/* 228: eth */ 0,
|
|
||||||
/* 229: I acute */ "{\\tenwlc\\char'121}",
|
|
||||||
/* 230: I grave */ "{\\tenwlc\\char'122}",
|
|
||||||
/* 231: O acute */ "{\\tenwlc\\char'123}",
|
|
||||||
/* 232: O grave */ "{\\tenwlc\\char'124}",
|
|
||||||
/* 233: O tilde */ "{\\tenwlc\\char'125}",
|
|
||||||
/* 234: o tilde */ "{\\tenwlc\\char'126}",
|
|
||||||
/* 235: S caron */ "{\\tenwlc\\char'127}",
|
|
||||||
/* 236: s caron */ "{\\tenwlc\\char'130}",
|
|
||||||
/* 237: U acute */ "{\\tenwlc\\char'131}",
|
|
||||||
/* 238: Y dieresis */ "{\\tenwlc\\char'132}",
|
|
||||||
/* 239: y dieresis */ "{\\tenwlc\\char'133}",
|
|
||||||
/* 240: Thorn */ 0,
|
|
||||||
/* 241: thorn */ 0,
|
|
||||||
/* 242: undefined */ 0,
|
|
||||||
/* 243: mu */ 0,
|
|
||||||
/* 244: paragraph sign */ 0,
|
|
||||||
/* 245: fraction 3/4 */ 0,
|
|
||||||
/* 246: long dash */ 0,
|
|
||||||
/* 247: fraction 1/4 */ 0,
|
|
||||||
/* 248: fraction 1/2 */ 0,
|
|
||||||
/* 249: Female ordinal */ 0,
|
|
||||||
/* 250: Male ordinal */ 0,
|
|
||||||
/* 251: French double open quote */ 0,
|
|
||||||
/* 252: Solid square */ 0,
|
|
||||||
/* 253: French double close quote */ 0,
|
|
||||||
/* 254: Plus over minus sign */ 0,
|
|
||||||
/* 255: undefined */ 0
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
|
|
|
@ -1,156 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: charconv.h /main/3 1995/11/08 09:29:21 rswiston $ */
|
|
||||||
EXTERN M_WCHAR pc8_to_r8 [256]
|
|
||||||
#if defined(DEFINE)
|
|
||||||
= {
|
|
||||||
'\000','\001','\002','\003','\004','\005','\006','\007','\010','\011',
|
|
||||||
'\012','\013','\014','\015','\016','\017','\020','\021','\022','\023',
|
|
||||||
'\024','\025','\026','\027','\030','\031','\032','\033','\034','\035',
|
|
||||||
'\036','\037','\040','\041','\042','\043','\044','\045','\046','\047',
|
|
||||||
'\050','\051','\052','\053','\054','\055','\056','\057','\060','\061',
|
|
||||||
'\062','\063','\064','\065','\066','\067','\070','\071','\072','\073',
|
|
||||||
'\074','\075','\076','\077','\100','\101','\102','\103','\104','\105',
|
|
||||||
'\106','\107','\110','\111','\112','\113','\114','\115','\116','\117',
|
|
||||||
'\120','\121','\122','\123','\124','\125','\126','\127','\130','\131',
|
|
||||||
'\132','\133','\134','\135','\136','\137','\140','\141','\142','\143',
|
|
||||||
'\144','\145','\146','\147','\150','\151','\152','\153','\154','\155',
|
|
||||||
'\156','\157','\160','\161','\162','\163','\164','\165','\166','\167',
|
|
||||||
'\170','\171','\172','\173','\174','\175','\176','\177','\264','\317',
|
|
||||||
'\305','\300','\314','\310','\324','\265','\301','\315','\311','\335',
|
|
||||||
'\321','\331','\330','\320','\334','\327','\323','\302','\316','\312',
|
|
||||||
'\303','\313','\357','\332','\333','\277','\273','\274','\120','\276',
|
|
||||||
'\304','\325','\306','\307','\267','\266','\371','\372','\271','\055',
|
|
||||||
'\052','\370','\367','\270','\373','\375','\374','\374','\374','\174',
|
|
||||||
'\053','\043','\053','\053','\043','\043','\174','\043','\043','\053',
|
|
||||||
'\043','\053','\053','\053','\053','\053','\055','\053','\043','\053',
|
|
||||||
'\043','\043','\043','\043','\043','\075','\043','\043','\053','\043',
|
|
||||||
'\053','\053','\043','\043','\053','\053','\043','\053','\053','\374',
|
|
||||||
'\374','\374','\374','\374','\052','\336','\052','\052','\052','\052',
|
|
||||||
'\363','\052','\052','\052','\052','\052','\052','\326','\052','\052',
|
|
||||||
'\052','\376','\052','\052','\174','\174','\057','\176','\263','\362',
|
|
||||||
'\362','\052','\052','\052','\374','\377'
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
|
|
||||||
EXTERN M_WCHAR pc8dn_to_r8 [256]
|
|
||||||
#if defined(DEFINE)
|
|
||||||
= {
|
|
||||||
'\000','\001','\002','\003','\004','\005','\006','\007','\010','\011',
|
|
||||||
'\012','\013','\014','\015','\016','\017','\020','\021','\022','\023',
|
|
||||||
'\024','\025','\026','\027','\030','\031','\032','\033','\034','\035',
|
|
||||||
'\036','\037','\040','\041','\042','\043','\044','\045','\046','\047',
|
|
||||||
'\050','\051','\052','\053','\054','\055','\056','\057','\060','\061',
|
|
||||||
'\062','\063','\064','\065','\066','\067','\070','\071','\072','\073',
|
|
||||||
'\074','\075','\076','\077','\100','\101','\102','\103','\104','\105',
|
|
||||||
'\106','\107','\110','\111','\112','\113','\114','\115','\116','\117',
|
|
||||||
'\120','\121','\122','\123','\124','\125','\126','\127','\130','\131',
|
|
||||||
'\132','\133','\134','\135','\136','\137','\140','\141','\142','\143',
|
|
||||||
'\144','\145','\146','\147','\150','\151','\152','\153','\154','\155',
|
|
||||||
'\156','\157','\160','\161','\162','\163','\164','\165','\166','\167',
|
|
||||||
'\170','\171','\172','\173','\174','\175','\176','\177','\264','\317',
|
|
||||||
'\305','\300','\314','\310','\324','\265','\301','\315','\311','\335',
|
|
||||||
'\321','\331','\330','\320','\334','\327','\323','\302','\316','\312',
|
|
||||||
'\303','\313','\357','\332','\333','\326','\273','\322','\114','\154',
|
|
||||||
'\304','\325','\306','\307','\267','\266','\352','\351','\271','\342',
|
|
||||||
'\341','\154','\156','\270','\052','\272','\374','\374','\374','\174',
|
|
||||||
'\053','\043','\053','\053','\043','\043','\174','\043','\043','\053',
|
|
||||||
'\043','\053','\053','\053','\053','\053','\055','\053','\043','\053',
|
|
||||||
'\043','\043','\043','\043','\043','\075','\043','\043','\053','\043',
|
|
||||||
'\053','\053','\043','\043','\053','\053','\043','\053','\053','\374',
|
|
||||||
'\374','\374','\374','\374','\052','\336','\052','\052','\052','\052',
|
|
||||||
'\363','\052','\052','\052','\052','\052','\052','\326','\052','\052',
|
|
||||||
'\052','\376','\052','\052','\174','\174','\057','\176','\263','\362',
|
|
||||||
'\362','\052','\052','\052','\374','\377'
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
|
|
||||||
EXTERN M_WCHAR r8_to_pc8 [256]
|
|
||||||
#if defined(DEFINE)
|
|
||||||
= {
|
|
||||||
'\000','\001','\002','\003','\004','\005','\006','\007','\010','\011',
|
|
||||||
'\012','\013','\014','\015','\016','\017','\020','\021','\022','\023',
|
|
||||||
'\024','\025','\026','\027','\030','\031','\032','\033','\034','\035',
|
|
||||||
'\036','\037','\040','\041','\042','\043','\044','\045','\046','\047',
|
|
||||||
'\050','\051','\052','\053','\054','\055','\056','\057','\060','\061',
|
|
||||||
'\062','\063','\064','\065','\066','\067','\070','\071','\072','\073',
|
|
||||||
'\074','\075','\076','\077','\100','\101','\102','\103','\104','\105',
|
|
||||||
'\106','\107','\110','\111','\112','\113','\114','\115','\116','\117',
|
|
||||||
'\120','\121','\122','\123','\124','\125','\126','\127','\130','\131',
|
|
||||||
'\132','\133','\134','\135','\136','\137','\140','\141','\142','\143',
|
|
||||||
'\144','\145','\146','\147','\150','\151','\152','\153','\154','\155',
|
|
||||||
'\156','\157','\160','\161','\162','\163','\164','\165','\166','\167',
|
|
||||||
'\170','\171','\172','\173','\174','\175','\176','\177','\200','\201',
|
|
||||||
'\202','\203','\204','\205','\206','\207','\210','\211','\212','\213',
|
|
||||||
'\214','\215','\216','\217','\220','\221','\222','\223','\224','\225',
|
|
||||||
'\226','\227','\230','\231','\232','\233','\234','\235','\236','\237',
|
|
||||||
'\040','\101','\101','\105','\105','\105','\111','\111','\047','\140',
|
|
||||||
'\136','\042','\176','\125','\125','\234','\055','\131','\171','\370',
|
|
||||||
'\200','\207','\245','\244','\255','\250','\052','\234','\235','\052',
|
|
||||||
'\237','\233','\203','\210','\223','\226','\240','\202','\242','\243',
|
|
||||||
'\205','\212','\225','\227','\204','\211','\224','\201','\217','\214',
|
|
||||||
'\117','\222','\206','\241','\355','\221','\216','\215','\231','\232',
|
|
||||||
'\220','\213','\341','\117','\101','\101','\141','\104','\144','\111',
|
|
||||||
'\111','\117','\117','\117','\157','\123','\163','\125','\131','\230',
|
|
||||||
'\052','\052','\372','\346','\052','\052','\304','\254','\253','\246',
|
|
||||||
'\247','\256','\376','\257','\361','\040'
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
|
|
||||||
EXTERN M_WCHAR r8_to_pc8dn [256]
|
|
||||||
#if defined(DEFINE)
|
|
||||||
= {
|
|
||||||
'\000','\001','\002','\003','\004','\005','\006','\007','\010','\011',
|
|
||||||
'\012','\013','\014','\015','\016','\017','\020','\021','\022','\023',
|
|
||||||
'\024','\025','\026','\027','\030','\031','\032','\033','\034','\035',
|
|
||||||
'\036','\037','\040','\041','\042','\043','\044','\045','\046','\047',
|
|
||||||
'\050','\051','\052','\053','\054','\055','\056','\057','\060','\061',
|
|
||||||
'\062','\063','\064','\065','\066','\067','\070','\071','\072','\073',
|
|
||||||
'\074','\075','\076','\077','\100','\101','\102','\103','\104','\105',
|
|
||||||
'\106','\107','\110','\111','\112','\113','\114','\115','\116','\117',
|
|
||||||
'\120','\121','\122','\123','\124','\125','\126','\127','\130','\131',
|
|
||||||
'\132','\133','\134','\135','\136','\137','\140','\141','\142','\143',
|
|
||||||
'\144','\145','\146','\147','\150','\151','\152','\153','\154','\155',
|
|
||||||
'\156','\157','\160','\161','\162','\163','\164','\165','\166','\167',
|
|
||||||
'\170','\171','\172','\173','\174','\175','\176','\177','\200','\201',
|
|
||||||
'\202','\203','\204','\205','\206','\207','\210','\211','\212','\213',
|
|
||||||
'\214','\215','\216','\217','\220','\221','\222','\223','\224','\225',
|
|
||||||
'\226','\227','\230','\231','\232','\233','\234','\235','\236','\237',
|
|
||||||
'\040','\101','\101','\105','\105','\105','\111','\111','\047','\140',
|
|
||||||
'\136','\042','\176','\125','\125','\234','\055','\131','\171','\370',
|
|
||||||
'\200','\207','\245','\244','\255','\250','\257','\234','\131','\052',
|
|
||||||
'\146','\143','\203','\210','\223','\226','\240','\202','\242','\243',
|
|
||||||
'\205','\212','\225','\227','\204','\211','\224','\201','\217','\214',
|
|
||||||
'\235','\222','\206','\241','\233','\221','\216','\215','\231','\232',
|
|
||||||
'\220','\213','\341','\117','\101','\252','\251','\104','\144','\111',
|
|
||||||
'\111','\117','\117','\247','\246','\123','\163','\125','\131','\230',
|
|
||||||
'\052','\052','\372','\346','\052','\052','\304','\052','\052','\052',
|
|
||||||
'\052','\074','\376','\076','\361','\040'
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
|
|
||||||
/* Obsolete */
|
|
|
@ -1,29 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: figure.c /main/3 1995/11/08 09:29:52 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1988, 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
/* Figure.c contains HP Tag to TeX figure processing */
|
|
||||||
|
|
||||||
/* Obsolete */
|
|
|
@ -150,8 +150,6 @@ void strcode(M_WCHAR *string, FILE *outfile);
|
||||||
|
|
||||||
void mb_strcode(char *string, FILE *outfile);
|
void mb_strcode(char *string, FILE *outfile);
|
||||||
|
|
||||||
char *strstr(const char *s1, const char *s2);
|
|
||||||
|
|
||||||
void svhdstring(M_WCHAR *string);
|
void svhdstring(M_WCHAR *string);
|
||||||
|
|
||||||
void svtcstring(M_WCHAR *string);
|
void svtcstring(M_WCHAR *string);
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: grphpar.c /main/3 1995/11/08 09:30:22 rswiston $ */
|
|
||||||
/* Copyright (c) 1988, 1989 Hewlett-Packard Co. */
|
|
||||||
/* HP Tag/TeX figure aspect ratio calculations */
|
|
||||||
|
|
||||||
#define GRAPHDEF
|
|
||||||
|
|
||||||
/* Obsolete */
|
|
|
@ -1,28 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: grphpar.h /main/3 1995/11/08 09:30:34 rswiston $ */
|
|
||||||
/* Copyright (c) 1988, 1989 Hewlett-Packard Co. */
|
|
||||||
/* Variable definitions for HP Tag/TeX for figures and graphics */
|
|
||||||
/* when adding, check "global.h" for conflicts */
|
|
||||||
|
|
||||||
/* Obsolete */
|
|
|
@ -1,48 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: make.c /main/3 1995/11/08 09:31:30 rswiston $ */
|
|
||||||
/* Copyright (c) 1986, 1987, 1988, 1989 Hewlett-Packard Co. */
|
|
||||||
/* Functions for pseudo-make features of HP Tag/TeX translator, i.e.,
|
|
||||||
for testing which generated files are current and which must be
|
|
||||||
recreated. */
|
|
||||||
/*
|
|
||||||
NOTE : This file is used as a Microsoft Linker overlay, so it cannot
|
|
||||||
have functions as pointers, eg. (proc *) f(). Routines that are
|
|
||||||
or invoke function pointers should be in tex.c.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#if defined(_AIX) || defined(sun)
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#if defined(_AIX) || defined(sun)
|
|
||||||
#undef M_PI /* M_PI is used by markup, we don't need the math PI */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
/* Obsolete */
|
|
|
@ -1,24 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: need.c /main/3 1995/11/08 09:31:41 rswiston $ */
|
|
||||||
/* Obsolete */
|
|
|
@ -1,24 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: table.c /main/3 1995/11/08 09:32:57 rswiston $ */
|
|
||||||
/* Obsolete */
|
|
|
@ -1,24 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: addinput.c /main/3 1995/11/08 09:34:10 rswiston $ */
|
|
||||||
/* Obsolete */
|
|
|
@ -1,61 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: delfree.c /main/3 1995/11/08 09:35:18 rswiston $ */
|
|
||||||
/* Copyright (c) 1988 Hewlett-Packard Co. */
|
|
||||||
|
|
||||||
/* Versions of m_free and m_malloc for debugging. */
|
|
||||||
|
|
||||||
/**/
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "basic.h"
|
|
||||||
#include "trie.h"
|
|
||||||
#include "dtd.h"
|
|
||||||
#include "parser.h"
|
|
||||||
|
|
||||||
m_free(block, msg)
|
|
||||||
char *block ;
|
|
||||||
char *msg ;
|
|
||||||
{
|
|
||||||
free(block) ;
|
|
||||||
fprintf(m_outfile, "%5u:%5u- Freed %s\n",
|
|
||||||
(unsigned int) ((unsigned long) block >> 16),
|
|
||||||
(unsigned int) block, msg) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
char *m_mallocx(size, msg)
|
|
||||||
int size ;
|
|
||||||
char *msg ;
|
|
||||||
{
|
|
||||||
char *p ;
|
|
||||||
|
|
||||||
if (! size) return(NULL) ;
|
|
||||||
p = malloc(size) ;
|
|
||||||
if (! p) {
|
|
||||||
m_err1("Unable to allocate space for %s", msg) ;
|
|
||||||
exit(TRUE) ;
|
|
||||||
}
|
|
||||||
fprintf(m_outfile, "%5u:%5u- Allocated %s\n",
|
|
||||||
(unsigned int) ((unsigned long) p >> 16), (unsigned int) p, msg) ;
|
|
||||||
return(p) ;
|
|
||||||
}
|
|
|
@ -1,50 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: dmpline.c /main/3 1995/11/08 09:35:33 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1988, 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
/* Write input file and line number for an error message */
|
|
||||||
void m_dumpline(file, line)
|
|
||||||
M_WCHAR *file ;
|
|
||||||
int line ;
|
|
||||||
{
|
|
||||||
char buffer[10] ;
|
|
||||||
|
|
||||||
m_errline("Line ") ;
|
|
||||||
sprintf(buffer, "%d", line) ;
|
|
||||||
m_errline(buffer) ;
|
|
||||||
if (file)
|
|
||||||
{
|
|
||||||
char mb_file;
|
|
||||||
|
|
||||||
m_errline(" of File ") ;
|
|
||||||
mb_file = MakeMByteString(file);
|
|
||||||
m_errline(mb_file) ;
|
|
||||||
m_free(mb_file,"multi-byte string");
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,36 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: eprefix.c /main/3 1995/11/08 09:36:12 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1988, 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
/* Write error message prefix */
|
|
||||||
void m_eprefix(void)
|
|
||||||
{
|
|
||||||
m_errline("\n*****\n") ;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,42 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: errline.c /main/3 1995/11/08 09:36:25 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1988, 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
/* Process error message text */
|
|
||||||
void m_errline(p)
|
|
||||||
M_WCHAR *p ;
|
|
||||||
{
|
|
||||||
char mb_p;
|
|
||||||
|
|
||||||
mb_p = MakeMByteString(p);
|
|
||||||
fputs(mb_p, m_errfile) ;
|
|
||||||
fputs(mb_p, stderr) ;
|
|
||||||
m_free(mb_p,"multi-byte string");
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,43 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: esuffix.c /main/3 1995/11/08 09:36:52 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1988, 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
/* Write error message suffix */
|
|
||||||
void m_esuffix(void)
|
|
||||||
{
|
|
||||||
m_errline("\n") ;
|
|
||||||
m_dumpline(m_thisfile(), m_thisline()) ;
|
|
||||||
m_errline(":\n") ;
|
|
||||||
m_lastchars() ;
|
|
||||||
if (++m_errcnt == m_errlim) {
|
|
||||||
m_error("Too many errors, processing stopped") ;
|
|
||||||
m_exit(TRUE) ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,92 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: findpar.c /main/3 1995/11/08 09:37:18 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "basic.h"
|
|
||||||
#include "trie.h"
|
|
||||||
#include "dtdext.h"
|
|
||||||
#include "parser.h"
|
|
||||||
|
|
||||||
/* Function callable by interface designers. Returns index in parameter
|
|
||||||
list of a specified parameter for an element (i.e., 1 for first parameter
|
|
||||||
specified in the DTD, 2 for second, etc.). First parameter, elt, is
|
|
||||||
the name of the element. Second parameter is the name of the parameter
|
|
||||||
or NULL. Third parameter is used only if second parameter is NULL. In
|
|
||||||
the latter case, function returns first keyword parameter, if any, for
|
|
||||||
which the specified value is a legal value and otherwise first
|
|
||||||
Returns 0 if elt is not a valid element name, if param is specified
|
|
||||||
but is not a valid parameter name, or if param is NULL and value is
|
|
||||||
not a valid value of any of elt's parameters. */
|
|
||||||
int m_findpar( const char *elt , const char *param , const M_WCHAR *value )
|
|
||||||
{
|
|
||||||
M_ELEMENT eltid ;
|
|
||||||
int par ;
|
|
||||||
int i ;
|
|
||||||
M_WCHAR *wc_elt;
|
|
||||||
|
|
||||||
wc_elt = MakeWideCharString(elt);
|
|
||||||
if (! (eltid = m_packedlook(m_entree, wc_elt)))
|
|
||||||
{
|
|
||||||
m_free(wc_elt,"wide character string");
|
|
||||||
return(M_NULLVAL) ;
|
|
||||||
}
|
|
||||||
m_free(wc_elt,"wide character string");
|
|
||||||
|
|
||||||
/* A parameter name specified */
|
|
||||||
if (param)
|
|
||||||
{
|
|
||||||
for (par = m_element[eltid - 1].parptr, i = 1 ;
|
|
||||||
|
|
||||||
i <= m_element[eltid - 1].parcount ;
|
|
||||||
par++, i++)
|
|
||||||
if (!m_wcmbupstrcmp(&m_pname[m_parameter[par - 1].paramname], param))
|
|
||||||
return(i) ;
|
|
||||||
return(M_NULLVAL) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* No parameter name specified */
|
|
||||||
|
|
||||||
/* First check is it a valid keyword? */
|
|
||||||
for (par = m_element[eltid - 1].parptr, i = 1 ;
|
|
||||||
i <= m_element[eltid - 1].parcount ;
|
|
||||||
par++, i++)
|
|
||||||
if (m_parameter[par - 1].type == M_KEYWORD)
|
|
||||||
if (m_partype(par, value)) return(i) ;
|
|
||||||
|
|
||||||
/* It wasn't a keyword. Check for valid value for some other parameter.*/
|
|
||||||
for (par = m_element[eltid - 1].parptr, i = 1 ;
|
|
||||||
i <= m_element[eltid - 1].parcount ;
|
|
||||||
par++, i++)
|
|
||||||
{
|
|
||||||
if (m_parameter[par - 1].type == M_KEYWORD) continue ;
|
|
||||||
if (m_partype(par, value)) return(i) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Not a valid value for any parameter */
|
|
||||||
return(M_NULLVAL) ;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,35 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: getc.c /main/3 1995/11/08 09:37:33 rswiston $ */
|
|
||||||
/* Copyright 1988, 1989 Hewlett-Packard Co. */
|
|
||||||
|
|
||||||
/* Default get-char procedure */
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
int m_getc(m_ptr)
|
|
||||||
void *m_ptr ;
|
|
||||||
{
|
|
||||||
return(getc((FILE*) m_ptr)) ;
|
|
||||||
}
|
|
|
@ -1,71 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: ifdata.c /main/3 1995/11/08 09:38:00 rswiston $ */
|
|
||||||
/* Copyright 1988, 1989 Hewlett-Packard Co. */
|
|
||||||
|
|
||||||
/* Ifdata.c contains functions used by the interface to access the
|
|
||||||
single item of interface-determined data stored on the parse stack. */
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "basic.h"
|
|
||||||
#include "trie.h"
|
|
||||||
#include "dtdext.h"
|
|
||||||
#include "parser.h"
|
|
||||||
|
|
||||||
/* Retrieve the interface data stored with the current element's nth parent */
|
|
||||||
void *m_getdata(n, flag)
|
|
||||||
int n ;
|
|
||||||
LOGICAL *flag ;
|
|
||||||
{
|
|
||||||
M_PARSE *stackptr ;
|
|
||||||
|
|
||||||
for (stackptr = m_stacktop ;
|
|
||||||
stackptr->oldtop && n >= 0 ;
|
|
||||||
stackptr = stackptr->oldtop, n--) {
|
|
||||||
if (! n) {
|
|
||||||
*flag = TRUE ;
|
|
||||||
return(stackptr->ifdata) ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*flag = FALSE ;
|
|
||||||
return(NULL) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Store interface data for the current element's nth parent */
|
|
||||||
LOGICAL m_putdata(data, n)
|
|
||||||
void *data ;
|
|
||||||
int n ;
|
|
||||||
{
|
|
||||||
M_PARSE *stackptr ;
|
|
||||||
|
|
||||||
for (stackptr = m_stacktop ;
|
|
||||||
stackptr->oldtop && n >= 0 ;
|
|
||||||
stackptr = stackptr->oldtop, n--) {
|
|
||||||
if (! n) {
|
|
||||||
stackptr->ifdata = data ;
|
|
||||||
return(TRUE) ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return(FALSE) ;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: openent.c /main/3 1995/11/08 09:39:07 rswiston $ */
|
|
||||||
/* Copyright 1988, 1989 Hewlett-Packard Co. */
|
|
||||||
|
|
||||||
/* Default open SYSTEM entity procedure */
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
void *m_openent(entcontent)
|
|
||||||
M_WCHAR *entcontent ;
|
|
||||||
{
|
|
||||||
return((void *) fopen(entcontent, "r")) ;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: openfrst.c /main/3 1995/11/08 09:39:20 rswiston $ */
|
|
||||||
/* Copyright 1988, 1989 Hewlett-Packard Co. */
|
|
||||||
|
|
||||||
/* Default open SYSTEM entity procedure */
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
void *m_openfirst(void)
|
|
||||||
{
|
|
||||||
return((void *) stdin) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -1,44 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: parcount.c /main/3 1995/11/08 09:40:02 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "basic.h"
|
|
||||||
#include "trie.h"
|
|
||||||
#include "dtdext.h"
|
|
||||||
#include "parser.h"
|
|
||||||
|
|
||||||
/* Function callable by interface designers. Returns number of parameters
|
|
||||||
of specified element (-1 indicates error). */
|
|
||||||
int m_parcount(elt)
|
|
||||||
M_WCHAR *elt ;
|
|
||||||
{
|
|
||||||
M_ELEMENT eltid ;
|
|
||||||
|
|
||||||
if (! (eltid = m_packedlook(m_entree, elt))) return(-1) ;
|
|
||||||
return(m_element[eltid - 1].parcount) ;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,61 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: pardef.c /main/3 1995/11/08 09:40:15 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "basic.h"
|
|
||||||
#include "trie.h"
|
|
||||||
#include "dtdext.h"
|
|
||||||
#include "parser.h"
|
|
||||||
|
|
||||||
/* Function callable by interface designers. Returns pointer to default
|
|
||||||
value of a parameter of an element. Type is set to indicate type of
|
|
||||||
default. Error indication is type is 0 and function returns NULL. */
|
|
||||||
M_WCHAR *m_pardefault(elt, param, type)
|
|
||||||
M_WCHAR *elt ;
|
|
||||||
M_WCHAR *param ;
|
|
||||||
unsigned char *type ;
|
|
||||||
{
|
|
||||||
M_ELEMENT eltid ;
|
|
||||||
int par ;
|
|
||||||
int i ;
|
|
||||||
|
|
||||||
*type = M_NULLVAL ;
|
|
||||||
if (! (eltid = m_packedlook(m_entree, elt))) return(NULL) ;
|
|
||||||
|
|
||||||
for (par = m_element[eltid - 1].parptr, i = 0 ;
|
|
||||||
i < m_element[eltid - 1].parcount ;
|
|
||||||
par++, i++)
|
|
||||||
if (! m_wcupstrcmp(&m_pname[m_parameter[par - 1].paramname], param)) {
|
|
||||||
*type = (unsigned char) m_parameter[par - 1].deftype ;
|
|
||||||
if (*type == M_REQUIRED || *type == M_NULLDEF) return(NULL) ;
|
|
||||||
return(m_parameter[par -1].defval) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Can't find the parameter */
|
|
||||||
return(NULL) ;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,58 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: parname.c /main/3 1995/11/08 09:40:42 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "basic.h"
|
|
||||||
#include "trie.h"
|
|
||||||
#include "dtdext.h"
|
|
||||||
#include "parser.h"
|
|
||||||
|
|
||||||
/* Function callable by interface designers. Returns name of nth parameter
|
|
||||||
of specified element (NULL indicates error). */
|
|
||||||
M_WCHAR *m_parname(elt, n)
|
|
||||||
M_WCHAR *elt ;
|
|
||||||
int n ;
|
|
||||||
{
|
|
||||||
M_ELEMENT eltid ;
|
|
||||||
|
|
||||||
if (! (eltid = m_packedlook(m_entree, elt))) return(NULL) ;
|
|
||||||
if (n < 1 || n > m_element[eltid - 1].parcount) return(NULL) ;
|
|
||||||
return(&m_pname[m_parameter[(n - 1) + m_element[eltid - 1].parptr - 1].
|
|
||||||
paramname]) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
M_WCHAR *m_mbparname(elt, n)
|
|
||||||
char *elt ;
|
|
||||||
int n ;
|
|
||||||
{
|
|
||||||
M_WCHAR *wc_elt, *retval;
|
|
||||||
|
|
||||||
wc_elt = MakeWideCharString(elt);
|
|
||||||
retval = m_parname(wc_elt, n);
|
|
||||||
m_free(wc_elt,"wide character string");
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,54 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: parvalok.c /main/3 1995/11/08 09:41:38 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "basic.h"
|
|
||||||
#include "trie.h"
|
|
||||||
#include "dtdext.h"
|
|
||||||
#include "parser.h"
|
|
||||||
|
|
||||||
/* Function callable by interface designers. Returns TRUE if specified value
|
|
||||||
is a legal value for the indicated parameter of the given element,
|
|
||||||
FALSE otherwise. */
|
|
||||||
LOGICAL m_parvalok( M_WCHAR *elt , M_WCHAR *param , const M_WCHAR *value )
|
|
||||||
{
|
|
||||||
M_ELEMENT eltid ;
|
|
||||||
int par ;
|
|
||||||
int i ;
|
|
||||||
|
|
||||||
if (! (eltid = m_packedlook(m_entree, elt))) return(FALSE) ;
|
|
||||||
for (par = m_element[eltid - 1].parptr, i = 1 ;
|
|
||||||
i <= m_element[eltid - 1].parcount ;
|
|
||||||
par++, i++)
|
|
||||||
if (! m_wcupstrcmp(&m_pname[m_parameter[par - 1].paramname], param))
|
|
||||||
if (m_partype(par, value)) return(TRUE) ;
|
|
||||||
else return(FALSE) ;
|
|
||||||
|
|
||||||
/* No such parameter */
|
|
||||||
return(FALSE) ;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,39 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: procscmp.c /main/3 1995/11/08 09:42:07 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1986 Tandem Computers Incorporated.
|
|
||||||
This product and information is proprietary of Tandem Computers Incorporated.
|
|
||||||
Copyright 1986, 1987, 1988, 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Procscmp.c prefixes the interface's procs.c file with appropriate
|
|
||||||
declarations so it can be compiled. */
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
/* Include any procedures specified by the interface designer */
|
|
||||||
#include "procs.c"
|
|
||||||
|
|
||||||
|
|
|
@ -153,8 +153,6 @@ void m_holdproc(void);
|
||||||
|
|
||||||
void m_inctest(int *count, int limit, char *message);
|
void m_inctest(int *count, int limit, char *message);
|
||||||
|
|
||||||
void m_initctype(void);
|
|
||||||
|
|
||||||
void m_initialize(void);
|
void m_initialize(void);
|
||||||
|
|
||||||
void m_lastchars(void);
|
void m_lastchars(void);
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: setopt.c /main/3 1995/11/08 09:42:58 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1988, 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
|
|
||||||
/* Set program options */
|
|
||||||
void m_setoptions(void)
|
|
||||||
{
|
|
||||||
if (m_argc > 1) m_optstring(m_argv[1]) ;
|
|
||||||
}
|
|
|
@ -1,40 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: signmsg.c /main/3 1995/11/08 09:43:25 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1988, 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
/* Process signon message text */
|
|
||||||
void m_signmsg(p)
|
|
||||||
M_WCHAR *p ;
|
|
||||||
{
|
|
||||||
char mb_p;
|
|
||||||
|
|
||||||
mb_p = MakeMByteString(p);
|
|
||||||
m_errline(mb_p) ;
|
|
||||||
m_free(mb_p,"multi-byte string");
|
|
||||||
}
|
|
|
@ -1,39 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: startdoc.c /main/3 1995/11/08 09:43:53 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
/* Default function called at start of document instance. Allows interface
|
|
||||||
control after all entity declarations have been processed. Not needed
|
|
||||||
in valid documents (when it is called just prior to global start-code),
|
|
||||||
but may be useful in some applications nevertheless. */
|
|
||||||
void m_startdoc(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -1,46 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: trace.c /main/3 1995/11/08 09:45:23 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1988, 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
/* Write debugging trace information */
|
|
||||||
void m_wctrace(p)
|
|
||||||
M_WCHAR *p ;
|
|
||||||
{
|
|
||||||
char *mb_p;
|
|
||||||
|
|
||||||
mb_p = MakeMByteString(p);
|
|
||||||
fputs(mb_p, m_outfile) ;
|
|
||||||
m_free(mb_p,"multi-byte string");
|
|
||||||
}
|
|
||||||
|
|
||||||
void m_trace(p)
|
|
||||||
char *p ;
|
|
||||||
{
|
|
||||||
fputs(p, m_outfile);
|
|
||||||
}
|
|
|
@ -1,40 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: emptyfil.c /main/3 1995/11/08 09:49:33 rswiston $ */
|
|
||||||
/* Copyright (c) 1988, 1989 Hewlett-Packard Co. */
|
|
||||||
/* Creates a file with nothing in it */
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "basic.h"
|
|
||||||
|
|
||||||
void main(int argc, char **argv);
|
|
||||||
|
|
||||||
void main(int argc, char **argv)
|
|
||||||
{
|
|
||||||
if (argc != 2) {
|
|
||||||
fprintf(stderr, "Usage: emptyfil filename\n") ;
|
|
||||||
exit(1) ;
|
|
||||||
}
|
|
||||||
if (! fopen(argv[1], "w"))
|
|
||||||
fprintf(stderr, "Unable to open %s\n", argv[1]) ;
|
|
||||||
return 0;
|
|
||||||
}
|
|
|
@ -1,160 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: fclndir.c /main/3 1995/11/08 09:51:14 rswiston $ */
|
|
||||||
/* Copyright (c) 1987-1990 Hewlett-Packard Co.
|
|
||||||
|
|
||||||
Fclndir.c compares two files, ignoring C line directives that appear
|
|
||||||
within them as well as blank lines, and leading white space. It exits
|
|
||||||
with an error code of 0 if the files are the same, 1 if they differ, and
|
|
||||||
2 if the program was called incorrectly.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Feb. 11, 1991, CED: Added v2 fixes to v3 version of fclndir.
|
|
||||||
Thus, both versions now copy the source file to the target if
|
|
||||||
the files differ.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include "basic.h"
|
|
||||||
#define SAME 0
|
|
||||||
/* different defined to be 0 as of 12-1-89, because fclndir now does
|
|
||||||
the file-copy if the files are different, or if the second file
|
|
||||||
doesn't exist. (different used to be 1.) --ced */
|
|
||||||
#define DIFFERENT 0
|
|
||||||
#define ERROR 2
|
|
||||||
|
|
||||||
struct data {
|
|
||||||
int c ;
|
|
||||||
LOGICAL linestart ;
|
|
||||||
char *p ;
|
|
||||||
char *q ;
|
|
||||||
} data1, data2 ;
|
|
||||||
|
|
||||||
char linedir[] = "#line" ;
|
|
||||||
char *p = linedir, *q = linedir + 1 ;
|
|
||||||
|
|
||||||
void main(int argc, char **argv);
|
|
||||||
|
|
||||||
void copyfile(char *pfile1, char *pfile2);
|
|
||||||
|
|
||||||
int nextchar(FILE *file, struct data *data);
|
|
||||||
|
|
||||||
void main(int argc, char **argv)
|
|
||||||
{
|
|
||||||
FILE *one, *two ;
|
|
||||||
int c1, c2 ;
|
|
||||||
|
|
||||||
if (argc != 3) {
|
|
||||||
fputs("Usage: fclndir file1 (=source) file2 (=target)\n", stderr) ;
|
|
||||||
exit(ERROR) ;
|
|
||||||
}
|
|
||||||
if (! (one = fopen(argv[1], "r"))) {
|
|
||||||
fprintf(stderr, "ERROR: source file unavailable: %s\n", argv[1]) ;
|
|
||||||
exit(ERROR) ;
|
|
||||||
}
|
|
||||||
if (! (two = fopen(argv[2], "r"))) {
|
|
||||||
fprintf(stderr, "No target file %s; copying source file...\n", argv[2]) ;
|
|
||||||
/* call to copyfile entered by ced, 12-29-89. */
|
|
||||||
copyfile(argv[1],argv[2]);
|
|
||||||
exit(DIFFERENT) ;
|
|
||||||
}
|
|
||||||
data1.linestart = data2.linestart = TRUE ;
|
|
||||||
data1.p = data2.p = linedir ;
|
|
||||||
data1.q = data2.q = linedir + 1 ;
|
|
||||||
c1 = nextchar(one, &data1) ;
|
|
||||||
c2 = nextchar(two, &data2) ;
|
|
||||||
while (c1 != EOF && c2 != EOF) {
|
|
||||||
if (c1 != c2) {
|
|
||||||
fprintf(stderr, "%s and %s are different; copying source...\n",
|
|
||||||
argv[1], argv[2]) ;
|
|
||||||
/* call to copyfile entered by ced, 12-1-89. */
|
|
||||||
copyfile(argv[1],argv[2]);
|
|
||||||
exit(DIFFERENT) ;
|
|
||||||
}
|
|
||||||
c1 = nextchar(one, &data1) ;
|
|
||||||
c2 = nextchar(two, &data2) ;
|
|
||||||
}
|
|
||||||
if (c1 != c2) {
|
|
||||||
fprintf(stderr, "%s and %s are different; copying source...\n",
|
|
||||||
argv[1], argv[2]) ;
|
|
||||||
/* call to copyfile entered by ced, 12-1-89. */
|
|
||||||
copyfile(argv[1],argv[2]);
|
|
||||||
exit(DIFFERENT) ;
|
|
||||||
}
|
|
||||||
fprintf(stderr, "%s and %s are the same\n", argv[1], argv[2]) ;
|
|
||||||
exit(SAME) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* copyfile inserted by ced, 12-1-89. */
|
|
||||||
void copyfile(char *pfile1, char *pfile2)
|
|
||||||
{
|
|
||||||
int ret;
|
|
||||||
char *pcmd;
|
|
||||||
int slen;
|
|
||||||
|
|
||||||
/* malloc space for the system command: two filenames, plus a command,
|
|
||||||
spaces, and the terminating null */
|
|
||||||
slen = strlen(pfile1) + strlen(pfile2) + 8;
|
|
||||||
pcmd = (char *) malloc(slen);
|
|
||||||
ret = snprintf(pcmd, slen, "cp %s %s",pfile1,pfile2);
|
|
||||||
ret = system(pcmd);
|
|
||||||
ret = snprintf(pcmd, slen, "touch %s",pfile2);
|
|
||||||
ret = system(pcmd);
|
|
||||||
free(pcmd);
|
|
||||||
}
|
|
||||||
|
|
||||||
int nextchar(FILE *file, struct data *data)
|
|
||||||
{
|
|
||||||
while (data->linestart) {
|
|
||||||
data->linestart = FALSE ;
|
|
||||||
for (data->p = linedir ; *data->p; data->p++)
|
|
||||||
if ((data->c = getc(file)) != (int) *data->p) break ;
|
|
||||||
/* Found a line directive, skip remainder of line */
|
|
||||||
if (! *data->p) {
|
|
||||||
data->c = getc(file) ;
|
|
||||||
while (data->c != '\n' && data->c != EOF)
|
|
||||||
data->c = getc(file) ;
|
|
||||||
data->linestart = TRUE ;
|
|
||||||
continue ;
|
|
||||||
}
|
|
||||||
/* Check for leading blanks */
|
|
||||||
else if (data->p == linedir) {
|
|
||||||
while (data->c == ' ' || data->c == '\t') data->c = getc(file) ;
|
|
||||||
if (data->c == '\n') {
|
|
||||||
data->linestart = TRUE ;
|
|
||||||
continue ;
|
|
||||||
}
|
|
||||||
return(data->c) ;
|
|
||||||
}
|
|
||||||
/* Line began with a prefix of #line */
|
|
||||||
data->q = linedir ;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (data->q < data->p) return(*data->q++) ;
|
|
||||||
else if (data->q++ != data->p) data->c = getc(file) ;
|
|
||||||
if (data->c == '\n') data->linestart = TRUE ;
|
|
||||||
return(data->c) ;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,45 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: initct.c /main/3 1995/11/08 09:51:46 rswiston $ */
|
|
||||||
/* Copyright (c) 1987, 1988 Hewlett-Packard Co. */
|
|
||||||
/* M_initctype initializes the array used to indicate which ASCII
|
|
||||||
characters can appear within SGML names */
|
|
||||||
|
|
||||||
#include "basic.h"
|
|
||||||
#include "common.h"
|
|
||||||
extern char m_chartype[M_CHARSETLEN] ;
|
|
||||||
|
|
||||||
void m_initctype(void)
|
|
||||||
{
|
|
||||||
int i ;
|
|
||||||
|
|
||||||
/* ****************************** NOTE: **********************************
|
|
||||||
If the set of name characters is ever modified, make appropriate changes
|
|
||||||
in ELTDEF's scanner for testing for valid C identifiers as parameter
|
|
||||||
names */
|
|
||||||
for (i = 0 ; i < M_CHARSETLEN ; i++) m_chartype[i] = M_NONNAME ;
|
|
||||||
for (i = 'A' ; i <= 'Z' ; i++) m_chartype[i] = M_NMSTART ;
|
|
||||||
for (i = 'a' ; i <= 'z' ; i++) m_chartype[i] = M_NMSTART ;
|
|
||||||
for (i = '0' ; i <= '9' ; i++) m_chartype[i] = M_DIGIT ;
|
|
||||||
m_chartype['.'] = m_chartype['-'] = M_NAMECHAR ;
|
|
||||||
}
|
|
|
@ -1,40 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: strstr.c /main/3 1995/11/08 09:54:55 rswiston $ */
|
|
||||||
char *strstr (char *s1, char *s2)
|
|
||||||
{
|
|
||||||
|
|
||||||
int x, y ;
|
|
||||||
|
|
||||||
y = strlen ( s2 ) ;
|
|
||||||
x = strlen ( s1 ) - y ;
|
|
||||||
|
|
||||||
if ( x < 0 ) return ( ( char * ) 0L ) ;
|
|
||||||
do {
|
|
||||||
if ( strncmp ( s1 + x, s2, y ) == 0 ) return ( s1 + x ) ;
|
|
||||||
}
|
|
||||||
while ( --x >= 0 ) ;
|
|
||||||
|
|
||||||
return ( ( char * ) 0L ) ;
|
|
||||||
}
|
|
||||||
|
|
|
@ -128,8 +128,6 @@ int gettoken(int *c, int context);
|
||||||
|
|
||||||
TREE *gettreenode(void);
|
TREE *gettreenode(void);
|
||||||
|
|
||||||
void m_initctype(void);
|
|
||||||
|
|
||||||
void initialize(void);
|
void initialize(void);
|
||||||
|
|
||||||
LOGICAL litproc(int delim);
|
LOGICAL litproc(int delim);
|
||||||
|
|
|
@ -90,8 +90,6 @@ void getname(int first);
|
||||||
|
|
||||||
int gettoken(int *c, int context);
|
int gettoken(int *c, int context);
|
||||||
|
|
||||||
void m_initctype(void);
|
|
||||||
|
|
||||||
void initialize(void);
|
void initialize(void);
|
||||||
|
|
||||||
LOGICAL m_letter(M_WCHAR c);
|
LOGICAL m_letter(M_WCHAR c);
|
||||||
|
|
|
@ -28,5 +28,5 @@ AM_CPPFLAGS = -I. -I$(HELPPARSERSRC) -I$(HELPUTILSRC) \
|
||||||
|
|
||||||
# needed by parser/
|
# needed by parser/
|
||||||
noinst_LIBRARIES = libhelptag.a
|
noinst_LIBRARIES = libhelptag.a
|
||||||
libhelptag_a_SOURCES = custom.c default.c help.c make.c option.c \
|
libhelptag_a_SOURCES = custom.c default.c help.c option.c \
|
||||||
special.c out.c xref.c global.c ../parser/delim.h
|
special.c out.c xref.c global.c ../parser/delim.h
|
||||||
|
|
|
@ -1,37 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: calculat.c /main/3 1995/11/08 10:06:50 rswiston $ */
|
|
||||||
/*
|
|
||||||
* Copyright 1989 Hewlett-Packard Co.
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* procedures used by calculator elements for 1.2 release 26jul89-pj
|
|
||||||
*
|
|
||||||
* NOTE : This file is used as a Microsoft Linker overlay, so it cannot
|
|
||||||
* have functions as pointers, eg. (proc *) f(). Routines that are
|
|
||||||
* or invoke function pointers should be in tex.c.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Obsolete */
|
|
||||||
|
|
|
@ -1,828 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: calculat.h /main/3 1995/11/08 10:07:11 rswiston $ */
|
|
||||||
/* this file contains special character expansions for various characters
|
|
||||||
* in Dot Matrix (computer), Menu Label (ml), and White Menu Label (wl)
|
|
||||||
* arrays are: ccompspec[] --> computer specials
|
|
||||||
* cmenlspec[] --> menu label specials
|
|
||||||
* cwmenlspec[]--> white menu label specials
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* special computer expansions for dot matrix in calculator style */
|
|
||||||
EXTERN char *ccompspec[256]
|
|
||||||
#if defined(DEFINE)
|
|
||||||
= {
|
|
||||||
/* Char Name TeX Expansion */
|
|
||||||
/* */
|
|
||||||
/* 0: ^@ NUL */ 0,
|
|
||||||
/* 1: ^A SOH */ 0,
|
|
||||||
/* 2: ^B STX */ 0,
|
|
||||||
/* 3: ^C ETX */ 0,
|
|
||||||
/* 4: ^D EOT */ 0,
|
|
||||||
/* 5: ^E ENQ */ 0,
|
|
||||||
/* 6: ^F ACK */ 0,
|
|
||||||
/* 7: ^G BEL */ 0,
|
|
||||||
/* 8: ^H BS */ 0,
|
|
||||||
/* 9: ^I HT */ 0,
|
|
||||||
/* 10: ^J LF */ 0,
|
|
||||||
/* 11: ^K VT */ 0,
|
|
||||||
/* 12: ^L FF */ 0,
|
|
||||||
/* 13: ^M CR */ 0,
|
|
||||||
/* 14: ^N SO */ 0,
|
|
||||||
/* 15: ^O SI */ 0,
|
|
||||||
/* 16: ^P DLE */ 0,
|
|
||||||
/* 17: ^Q DC1 */ 0,
|
|
||||||
/* 18: ^R DC2 */ 0,
|
|
||||||
/* 19: ^S DC3 */ 0,
|
|
||||||
/* 20: ^T DC4 */ 0,
|
|
||||||
/* 21: ^U NAK */ 0,
|
|
||||||
/* 22: ^V SYN */ 0,
|
|
||||||
/* 23: ^W ETB */ 0,
|
|
||||||
/* 24: ^X CAN */ 0,
|
|
||||||
/* 25: ^Y EM */ 0,
|
|
||||||
/* 26: ^Z SUB */ 0,
|
|
||||||
/* 27: ^[ ESC */ 0,
|
|
||||||
/* 28: ^\ FS */ 0,
|
|
||||||
/* 29: ^] GS */ 0,
|
|
||||||
/* 30: ^^ RS */ 0,
|
|
||||||
/* 31: ^_ US */ 0,
|
|
||||||
/* 32: SP */ 0,
|
|
||||||
/* 33: ! */ 0,
|
|
||||||
/* 34: " */ 0,
|
|
||||||
/* 35: # */ "\\#",
|
|
||||||
/* 36: $ */ "{\\dollar}",
|
|
||||||
/* 37: % */ "\\%",
|
|
||||||
/* 38: & */ "\\&",
|
|
||||||
/* 39: ' */ "{'}",
|
|
||||||
/* 40: ( */ 0,
|
|
||||||
/* 41: ) */ 0,
|
|
||||||
/* 42: * */ 0,
|
|
||||||
/* 43: + */ 0,
|
|
||||||
/* 44: , */ 0,
|
|
||||||
/* 45: - */ "{-}",
|
|
||||||
/* 46: . */ 0,
|
|
||||||
/* 47: / */ 0,
|
|
||||||
/* 48: 0 */ 0,
|
|
||||||
/* 49: 1 */ 0,
|
|
||||||
/* 50: 2 */ 0,
|
|
||||||
/* 51: 3 */ 0,
|
|
||||||
/* 52: 4 */ 0,
|
|
||||||
/* 53: 5 */ 0,
|
|
||||||
/* 54: 6 */ 0,
|
|
||||||
/* 55: 7 */ 0,
|
|
||||||
/* 56: 8 */ 0,
|
|
||||||
/* 57: 9 */ 0,
|
|
||||||
/* 58: : */ 0,
|
|
||||||
/* 59: ; */ 0,
|
|
||||||
/* 60: < */ "{\\tendmb\\char'045}",
|
|
||||||
/* 61: = */ 0,
|
|
||||||
/* 62: > */ "{\\tendmb\\char'046}",
|
|
||||||
/* 63: ? */ 0,
|
|
||||||
/* 64: @ */ 0,
|
|
||||||
/* 65: A */ 0,
|
|
||||||
/* 66: B */ 0,
|
|
||||||
/* 67: C */ 0,
|
|
||||||
/* 68: D */ 0,
|
|
||||||
/* 69: E */ 0,
|
|
||||||
/* 70: F */ 0,
|
|
||||||
/* 71: G */ 0,
|
|
||||||
/* 72: H */ 0,
|
|
||||||
/* 73: I */ 0,
|
|
||||||
/* 74: J */ 0,
|
|
||||||
/* 75: K */ 0,
|
|
||||||
/* 76: L */ 0,
|
|
||||||
/* 77: M */ 0,
|
|
||||||
/* 78: N */ 0,
|
|
||||||
/* 79: O */ 0,
|
|
||||||
/* 80: P */ 0,
|
|
||||||
/* 81: Q */ 0,
|
|
||||||
/* 82: R */ 0,
|
|
||||||
/* 83: S */ 0,
|
|
||||||
/* 84: T */ 0,
|
|
||||||
/* 85: U */ 0,
|
|
||||||
/* 86: V */ 0,
|
|
||||||
/* 87: W */ 0,
|
|
||||||
/* 88: X */ 0,
|
|
||||||
/* 89: Y */ 0,
|
|
||||||
/* 90: Z */ 0,
|
|
||||||
/* 91: [ */ 0,
|
|
||||||
/* 92: \\ */ "{\\tendmb\\char'047}",
|
|
||||||
/* 93: ] */ 0,
|
|
||||||
/* 94: ^ */ "{\\tendmb\\char'064}",
|
|
||||||
/* 95: _ */ "{\\tendmb\\char'066}",
|
|
||||||
/* 96: ` */ "{`}",
|
|
||||||
/* 97: a */ 0,
|
|
||||||
/* 98: b */ 0,
|
|
||||||
/* 99: c */ 0,
|
|
||||||
/* 100: d */ 0,
|
|
||||||
/* 101: e */ 0,
|
|
||||||
/* 102: f */ 0,
|
|
||||||
/* 103: g */ 0,
|
|
||||||
/* 104: h */ 0,
|
|
||||||
/* 105: i */ 0,
|
|
||||||
/* 106: j */ 0,
|
|
||||||
/* 107: k */ 0,
|
|
||||||
/* 108: l */ 0,
|
|
||||||
/* 109: m */ 0,
|
|
||||||
/* 110: n */ 0,
|
|
||||||
/* 111: o */ 0,
|
|
||||||
/* 112: p */ 0,
|
|
||||||
/* 113: q */ 0,
|
|
||||||
/* 114: r */ 0,
|
|
||||||
/* 115: s */ 0,
|
|
||||||
/* 116: t */ 0,
|
|
||||||
/* 117: u */ 0,
|
|
||||||
/* 118: v */ 0,
|
|
||||||
/* 119: w */ 0,
|
|
||||||
/* 120: x */ 0,
|
|
||||||
/* 121: y */ 0,
|
|
||||||
/* 122: z */ 0,
|
|
||||||
/* 123: { */ "{\\tendmb\\char'070}",
|
|
||||||
/* 124: | */ "{\\tendmb\\char'104}",
|
|
||||||
/* 125: } */ "{\\tendmb\\char'107}",
|
|
||||||
/* 126: ~ */ "{\\tendmb\\char'116}",
|
|
||||||
/* 127: DEL */ 0,
|
|
||||||
/* 128: undefined */ 0,
|
|
||||||
/* 129: undefined */ 0,
|
|
||||||
/* 130: undefined */ 0,
|
|
||||||
/* 131: undefined */ 0,
|
|
||||||
/* 132: undefined */ 0,
|
|
||||||
/* 133: undefined */ 0,
|
|
||||||
/* 134: undefined */ 0,
|
|
||||||
/* 135: undefined */ 0,
|
|
||||||
/* 136: undefined */ 0,
|
|
||||||
/* 137: undefined */ 0,
|
|
||||||
/* 138: undefined */ 0,
|
|
||||||
/* 139: undefined */ 0,
|
|
||||||
/* 140: undefined */ 0,
|
|
||||||
/* 141: undefined */ 0,
|
|
||||||
/* 142: undefined */ 0,
|
|
||||||
/* 143: undefined */ 0,
|
|
||||||
/* 144: undefined */ 0,
|
|
||||||
/* 145: undefined */ 0,
|
|
||||||
/* 146: undefined */ 0,
|
|
||||||
/* 147: undefined */ 0,
|
|
||||||
/* 148: undefined */ 0,
|
|
||||||
/* 149: undefined */ 0,
|
|
||||||
/* 150: undefined */ 0,
|
|
||||||
/* 151: undefined */ 0,
|
|
||||||
/* 152: undefined */ 0,
|
|
||||||
/* 153: undefined */ 0,
|
|
||||||
/* 154: undefined */ 0,
|
|
||||||
/* 155: undefined */ 0,
|
|
||||||
/* 156: undefined */ 0,
|
|
||||||
/* 157: undefined */ 0,
|
|
||||||
/* 158: undefined */ 0,
|
|
||||||
/* 159: undefined */ 0,
|
|
||||||
/* 160: undefined */ 0,
|
|
||||||
/* 161: A grave */ "{\\tendmc\\char'041}",
|
|
||||||
/* 162: A circumflex */ "{\\tendmc\\char'042}",
|
|
||||||
/* 163: E grave */ "{\\tendmc\\char'043}",
|
|
||||||
/* 164: E circumflex */ "{\\tendmc\\char'044}",
|
|
||||||
/* 165: E dieresis */ "{\\tendmc\\char'045}",
|
|
||||||
/* 166: I circumflex */ "{\\tendmc\\char'046}",
|
|
||||||
/* 167: I dieresis */ "{\\tendmc\\char'047}",
|
|
||||||
/* 168: acute accent */ "{\\tendma\\char'023}",
|
|
||||||
/* 169: grave accent */ "{\\tendma\\char'022}",
|
|
||||||
/* 170: circumflex */ "{\\tendma\\char'136}",
|
|
||||||
/* 171: dieresis */ "{\\tendma\\char'177}",
|
|
||||||
/* 172: tilde */ "{\\tendma\\char'176}",
|
|
||||||
/* 173: U grave */ "{\\tendmc\\char'050}",
|
|
||||||
/* 174: U circumflex */ "{\\tendmc\\char'051}",
|
|
||||||
/* 175: Italian Lira */ 0,
|
|
||||||
/* 176: overbar */ 0,
|
|
||||||
/* 177: Y acute */ "{\\tendmc\\char'053}",
|
|
||||||
/* 178: y acute */ "{\\tendmc\\char'054}",
|
|
||||||
/* 179: degree */ 0,
|
|
||||||
/* 180: C cedilla */ "{\\tendma\\char'030}",
|
|
||||||
/* 181: c cedilla */ "{\\tendma\\char'030}",
|
|
||||||
/* 182: N tilde */ "{\\tendmc\\char'055}",
|
|
||||||
/* 183: n tilde */ "{\\tendmc\\char'056}",
|
|
||||||
/* 184: inverted exclamation mark */ "{\\tendma\\char'074}",
|
|
||||||
/* 185: inverted question mark */ "{\\tendma\\char'076}",
|
|
||||||
/* 186: currency sign */ 0,
|
|
||||||
/* 187: pound sterling */ 0,
|
|
||||||
/* 188: Yen */ 0,
|
|
||||||
/* 189: Section sign */ 0,
|
|
||||||
/* 190: florin */ 0,
|
|
||||||
/* 191: Cent sign */ 0,
|
|
||||||
/* 192: a circumflex */ "{\\tendmc\\char'063}",
|
|
||||||
/* 193: e circumflex */ "{\\tendmc\\char'064}",
|
|
||||||
/* 194: o circumflex */ "{\\tendmc\\char'065}",
|
|
||||||
/* 195: u circumflex */ "{\\tendmc\\char'066}",
|
|
||||||
/* 196: a acute */ "{\\tendmc\\char'067}",
|
|
||||||
/* 197: e acute */ "{\\tendmc\\char'070}",
|
|
||||||
/* 198: o acute */ "{\\tendmc\\char'071}",
|
|
||||||
/* 199: u acute */ "{\\tendmc\\char'072}",
|
|
||||||
/* 200: a grave */ "{\\tendmc\\char'073}",
|
|
||||||
/* 201: e grave */ "{\\tendmc\\char'074}",
|
|
||||||
/* 202: o grave */ "{\\tendmc\\char'075}",
|
|
||||||
/* 203: u grave */ "{\\tendmc\\char'076}",
|
|
||||||
/* 204: a dieresis */ "{\\tendmc\\char'077}",
|
|
||||||
/* 205: e dieresis */ "{\\tendmc\\char'100}",
|
|
||||||
/* 206: o dieresis */ "{\\tendmc\\char'101}",
|
|
||||||
/* 207: u dieresis */ "{\\tendmc\\char'102}",
|
|
||||||
/* 208: A angstrom */ "{\\tendmc\\char'103}",
|
|
||||||
/* 209: i circumflex */ "{\\tendmc\\char'104}",
|
|
||||||
/* 210: O slash */ "{\\tendma\\char'037}",
|
|
||||||
/* 211: AE ligature */ "{\\tendma\\char'035}",
|
|
||||||
/* 212: a angstrom */ "{\\tendmc\\char'105}",
|
|
||||||
/* 213: i acute */ "{\\tendmc\\char'106}",
|
|
||||||
/* 214: o slash */ "{\\tendma\\char'034}",
|
|
||||||
/* 215: ae ligature */ "{\\tendma\\char'032}",
|
|
||||||
/* 216: A dieresis */ "{\\tendmc\\char'107}",
|
|
||||||
/* 217: i grave */ "{\\tendmc\\char'110}",
|
|
||||||
/* 218: O dieresis */ "{\\tendmc\\char'111}",
|
|
||||||
/* 219: U dieresis */ "{\\tendmc\\char'112}",
|
|
||||||
/* 220: E acute */ "{\\tendmc\\char'113}",
|
|
||||||
/* 221: i dieresis */ "{\\tendmc\\char'114}",
|
|
||||||
/* 222: SS ligature */ "{\\tendma\\char'031}",
|
|
||||||
/* 223: O circumflex */ "{\\tendmc\\char'115}",
|
|
||||||
/* 224: A acute */ "{\\tendmc\\char'116}",
|
|
||||||
/* 225: A tilde */ "{\\tendmc\\char'117}",
|
|
||||||
/* 226: a tilde */ "{\\tendmc\\char'120}",
|
|
||||||
/* 227: Eth */ 0,
|
|
||||||
/* 228: eth */ 0,
|
|
||||||
/* 229: I acute */ "{\\tendmc\\char'121}",
|
|
||||||
/* 230: I grave */ "{\\tendmc\\char'122}",
|
|
||||||
/* 231: O acute */ "{\\tendmc\\char'123}",
|
|
||||||
/* 232: O grave */ "{\\tendmc\\char'124}",
|
|
||||||
/* 233: O tilde */ "{\\tendmc\\char'125}",
|
|
||||||
/* 234: o tilde */ "{\\tendmc\\char'126}",
|
|
||||||
/* 235: S caron */ "{\\tendmc\\char'127}",
|
|
||||||
/* 236: s caron */ "{\\tendmc\\char'130}",
|
|
||||||
/* 237: U acute */ "{\\tendmc\\char'131}",
|
|
||||||
/* 238: Y dieresis */ "{\\tendmc\\char'132}",
|
|
||||||
/* 239: y dieresis */ "{\\tendmc\\char'133}",
|
|
||||||
/* 240: Thorn */ 0,
|
|
||||||
/* 241: thorn */ 0,
|
|
||||||
/* 242: undefined */ 0,
|
|
||||||
/* 243: mu */ 0,
|
|
||||||
/* 244: paragraph sign */ 0,
|
|
||||||
/* 245: fraction 3/4 */ 0,
|
|
||||||
/* 246: long dash */ 0,
|
|
||||||
/* 247: fraction 1/4 */ 0,
|
|
||||||
/* 248: fraction 1/2 */ 0,
|
|
||||||
/* 249: Female ordinal */ 0,
|
|
||||||
/* 250: Male ordinal */ 0,
|
|
||||||
/* 251: French double open quote */ 0,
|
|
||||||
/* 252: Solid square */ 0,
|
|
||||||
/* 253: French double close quote */ 0,
|
|
||||||
/* 254: Plus over minus sign */ 0,
|
|
||||||
/* 255: undefined */ 0
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
|
|
||||||
/* special menu label character expansions */
|
|
||||||
EXTERN char *cmenlspec[256]
|
|
||||||
#if defined(DEFINE)
|
|
||||||
= {
|
|
||||||
/* Char Name TeX Expansion */
|
|
||||||
/* */
|
|
||||||
/* 0: ^@ NUL */ 0,
|
|
||||||
/* 1: ^A SOH */ 0,
|
|
||||||
/* 2: ^B STX */ 0,
|
|
||||||
/* 3: ^C ETX */ 0,
|
|
||||||
/* 4: ^D EOT */ 0,
|
|
||||||
/* 5: ^E ENQ */ 0,
|
|
||||||
/* 6: ^F ACK */ 0,
|
|
||||||
/* 7: ^G BEL */ 0,
|
|
||||||
/* 8: ^H BS */ 0,
|
|
||||||
/* 9: ^I HT */ 0,
|
|
||||||
/* 10: ^J LF */ 0,
|
|
||||||
/* 11: ^K VT */ 0,
|
|
||||||
/* 12: ^L FF */ 0,
|
|
||||||
/* 13: ^M CR */ 0,
|
|
||||||
/* 14: ^N SO */ 0,
|
|
||||||
/* 15: ^O SI */ 0,
|
|
||||||
/* 16: ^P DLE */ 0,
|
|
||||||
/* 17: ^Q DC1 */ 0,
|
|
||||||
/* 18: ^R DC2 */ 0,
|
|
||||||
/* 19: ^S DC3 */ 0,
|
|
||||||
/* 20: ^T DC4 */ 0,
|
|
||||||
/* 21: ^U NAK */ 0,
|
|
||||||
/* 22: ^V SYN */ 0,
|
|
||||||
/* 23: ^W ETB */ 0,
|
|
||||||
/* 24: ^X CAN */ 0,
|
|
||||||
/* 25: ^Y EM */ 0,
|
|
||||||
/* 26: ^Z SUB */ 0,
|
|
||||||
/* 27: ^[ ESC */ 0,
|
|
||||||
/* 28: ^\ FS */ 0,
|
|
||||||
/* 29: ^] GS */ 0,
|
|
||||||
/* 30: ^^ RS */ 0,
|
|
||||||
/* 31: ^_ US */ 0,
|
|
||||||
/* 32: SP */ "{\\tenmlb\\char'146}",
|
|
||||||
/* 33: ! */ 0,
|
|
||||||
/* 34: " */ 0,
|
|
||||||
/* 35: # */ "\\#",
|
|
||||||
/* 36: $ */ "{\\dollar}",
|
|
||||||
/* 37: % */ "\\%",
|
|
||||||
/* 38: & */ "\\&",
|
|
||||||
/* 39: ' */ "{'}",
|
|
||||||
/* 40: ( */ 0,
|
|
||||||
/* 41: ) */ 0,
|
|
||||||
/* 42: * */ 0,
|
|
||||||
/* 43: + */ 0,
|
|
||||||
/* 44: , */ 0,
|
|
||||||
/* 45: - */ "{-}",
|
|
||||||
/* 46: . */ 0,
|
|
||||||
/* 47: / */ 0,
|
|
||||||
/* 48: 0 */ 0,
|
|
||||||
/* 49: 1 */ 0,
|
|
||||||
/* 50: 2 */ 0,
|
|
||||||
/* 51: 3 */ 0,
|
|
||||||
/* 52: 4 */ 0,
|
|
||||||
/* 53: 5 */ 0,
|
|
||||||
/* 54: 6 */ 0,
|
|
||||||
/* 55: 7 */ 0,
|
|
||||||
/* 56: 8 */ 0,
|
|
||||||
/* 57: 9 */ 0,
|
|
||||||
/* 58: : */ 0,
|
|
||||||
/* 59: ; */ 0,
|
|
||||||
/* 60: < */ "{\\tenmlb\\char'045}",
|
|
||||||
/* 61: = */ 0,
|
|
||||||
/* 62: > */ "{\\tenmlb\\char'046}",
|
|
||||||
/* 63: ? */ 0,
|
|
||||||
/* 64: @ */ 0,
|
|
||||||
/* 65: A */ 0,
|
|
||||||
/* 66: B */ 0,
|
|
||||||
/* 67: C */ 0,
|
|
||||||
/* 68: D */ 0,
|
|
||||||
/* 69: E */ 0,
|
|
||||||
/* 70: F */ 0,
|
|
||||||
/* 71: G */ 0,
|
|
||||||
/* 72: H */ 0,
|
|
||||||
/* 73: I */ 0,
|
|
||||||
/* 74: J */ 0,
|
|
||||||
/* 75: K */ 0,
|
|
||||||
/* 76: L */ 0,
|
|
||||||
/* 77: M */ 0,
|
|
||||||
/* 78: N */ 0,
|
|
||||||
/* 79: O */ 0,
|
|
||||||
/* 80: P */ 0,
|
|
||||||
/* 81: Q */ 0,
|
|
||||||
/* 82: R */ 0,
|
|
||||||
/* 83: S */ 0,
|
|
||||||
/* 84: T */ 0,
|
|
||||||
/* 85: U */ 0,
|
|
||||||
/* 86: V */ 0,
|
|
||||||
/* 87: W */ 0,
|
|
||||||
/* 88: X */ 0,
|
|
||||||
/* 89: Y */ 0,
|
|
||||||
/* 90: Z */ 0,
|
|
||||||
/* 91: [ */ 0,
|
|
||||||
/* 92: \\ */ "{\\tenmlb\\char'047}",
|
|
||||||
/* 93: ] */ 0,
|
|
||||||
/* 94: ^ */ "{\\tenmlb\\char'064}",
|
|
||||||
/* 95: _ */ "{\\tenmlb\\char'066}",
|
|
||||||
/* 96: ` */ "{`}",
|
|
||||||
/* 97: a */ 0,
|
|
||||||
/* 98: b */ 0,
|
|
||||||
/* 99: c */ 0,
|
|
||||||
/* 100: d */ 0,
|
|
||||||
/* 101: e */ 0,
|
|
||||||
/* 102: f */ 0,
|
|
||||||
/* 103: g */ 0,
|
|
||||||
/* 104: h */ 0,
|
|
||||||
/* 105: i */ 0,
|
|
||||||
/* 106: j */ 0,
|
|
||||||
/* 107: k */ 0,
|
|
||||||
/* 108: l */ 0,
|
|
||||||
/* 109: m */ 0,
|
|
||||||
/* 110: n */ 0,
|
|
||||||
/* 111: o */ 0,
|
|
||||||
/* 112: p */ 0,
|
|
||||||
/* 113: q */ 0,
|
|
||||||
/* 114: r */ 0,
|
|
||||||
/* 115: s */ 0,
|
|
||||||
/* 116: t */ 0,
|
|
||||||
/* 117: u */ 0,
|
|
||||||
/* 118: v */ 0,
|
|
||||||
/* 119: w */ 0,
|
|
||||||
/* 120: x */ 0,
|
|
||||||
/* 121: y */ 0,
|
|
||||||
/* 122: z */ 0,
|
|
||||||
/* 123: { */ "{\\tenmlb\\char'070}",
|
|
||||||
/* 124: | */ "{\\tenmlb\\char'104}",
|
|
||||||
/* 125: } */ "{\\tenmlb\\char'107}",
|
|
||||||
/* 126: ~ */ "{\\tenmlb\\char'116}",
|
|
||||||
/* 127: DEL */ 0,
|
|
||||||
/* 128: undefined */ 0,
|
|
||||||
/* 129: undefined */ 0,
|
|
||||||
/* 130: undefined */ 0,
|
|
||||||
/* 131: undefined */ 0,
|
|
||||||
/* 132: undefined */ 0,
|
|
||||||
/* 133: undefined */ 0,
|
|
||||||
/* 134: undefined */ 0,
|
|
||||||
/* 135: undefined */ 0,
|
|
||||||
/* 136: undefined */ 0,
|
|
||||||
/* 137: undefined */ 0,
|
|
||||||
/* 138: undefined */ 0,
|
|
||||||
/* 139: undefined */ 0,
|
|
||||||
/* 140: undefined */ 0,
|
|
||||||
/* 141: undefined */ 0,
|
|
||||||
/* 142: undefined */ 0,
|
|
||||||
/* 143: undefined */ 0,
|
|
||||||
/* 144: undefined */ 0,
|
|
||||||
/* 145: undefined */ 0,
|
|
||||||
/* 146: undefined */ 0,
|
|
||||||
/* 147: undefined */ 0,
|
|
||||||
/* 148: undefined */ 0,
|
|
||||||
/* 149: undefined */ 0,
|
|
||||||
/* 150: undefined */ 0,
|
|
||||||
/* 151: undefined */ 0,
|
|
||||||
/* 152: undefined */ 0,
|
|
||||||
/* 153: undefined */ 0,
|
|
||||||
/* 154: undefined */ 0,
|
|
||||||
/* 155: undefined */ 0,
|
|
||||||
/* 156: undefined */ 0,
|
|
||||||
/* 157: undefined */ 0,
|
|
||||||
/* 158: undefined */ 0,
|
|
||||||
/* 159: undefined */ 0,
|
|
||||||
/* 160: undefined */ 0,
|
|
||||||
/* 161: A grave */ "{\\tenmlc\\char'041}",
|
|
||||||
/* 162: A circumflex */ "{\\tenmlc\\char'042}",
|
|
||||||
/* 163: E grave */ "{\\tenmlc\\char'043}",
|
|
||||||
/* 164: E circumflex */ "{\\tenmlc\\char'044}",
|
|
||||||
/* 165: E dieresis */ "{\\tenmlc\\char'045}",
|
|
||||||
/* 166: I circumflex */ "{\\tenmlc\\char'046}",
|
|
||||||
/* 167: I dieresis */ "{\\tenmlc\\char'047}",
|
|
||||||
/* 168: acute accent */ "{\\tenmla\\char'023}",
|
|
||||||
/* 169: grave accent */ "{\\tenmla\\char'022}",
|
|
||||||
/* 170: circumflex */ "{\\tenmla\\char'136}",
|
|
||||||
/* 171: dieresis */ "{\\tenmla\\char'177}",
|
|
||||||
/* 172: tilde */ "{\\tenmla\\char'176}",
|
|
||||||
/* 173: U grave */ "{\\tenmlc\\char'050}",
|
|
||||||
/* 174: U circumflex */ "{\\tenmlc\\char'051}",
|
|
||||||
/* 175: Italian Lira */ 0,
|
|
||||||
/* 176: overbar */ 0,
|
|
||||||
/* 177: Y acute */ "{\\tenmlc\\char'053}",
|
|
||||||
/* 178: y acute */ "{\\tenmlc\\char'054}",
|
|
||||||
/* 179: degree */ 0,
|
|
||||||
/* 180: C cedilla */ "{\\tenmla\\char'030}",
|
|
||||||
/* 181: c cedilla */ "{\\tenmla\\char'030}",
|
|
||||||
/* 182: N tilde */ "{\\tenmlc\\char'055}",
|
|
||||||
/* 183: n tilde */ "{\\tenmlc\\char'056}",
|
|
||||||
/* 184: inverted exclamation mark */ "{\\tenmla\\char'074}",
|
|
||||||
/* 185: inverted question mark */ "{\\tenmla\\char'076}",
|
|
||||||
/* 186: currency sign */ 0,
|
|
||||||
/* 187: pound sterling */ 0,
|
|
||||||
/* 188: Yen */ 0,
|
|
||||||
/* 189: Section sign */ 0,
|
|
||||||
/* 190: florin */ 0,
|
|
||||||
/* 191: Cent sign */ 0,
|
|
||||||
/* 192: a circumflex */ "{\\tenmlc\\char'063}",
|
|
||||||
/* 193: e circumflex */ "{\\tenmlc\\char'064}",
|
|
||||||
/* 194: o circumflex */ "{\\tenmlc\\char'065}",
|
|
||||||
/* 195: u circumflex */ "{\\tenmlc\\char'066}",
|
|
||||||
/* 196: a acute */ "{\\tenmlc\\char'067}",
|
|
||||||
/* 197: e acute */ "{\\tenmlc\\char'070}",
|
|
||||||
/* 198: o acute */ "{\\tenmlc\\char'071}",
|
|
||||||
/* 199: u acute */ "{\\tenmlc\\char'072}",
|
|
||||||
/* 200: a grave */ "{\\tenmlc\\char'073}",
|
|
||||||
/* 201: e grave */ "{\\tenmlc\\char'074}",
|
|
||||||
/* 202: o grave */ "{\\tenmlc\\char'075}",
|
|
||||||
/* 203: u grave */ "{\\tenmlc\\char'076}",
|
|
||||||
/* 204: a dieresis */ "{\\tenmlc\\char'077}",
|
|
||||||
/* 205: e dieresis */ "{\\tenmlc\\char'100}",
|
|
||||||
/* 206: o dieresis */ "{\\tenmlc\\char'101}",
|
|
||||||
/* 207: u dieresis */ "{\\tenmlc\\char'102}",
|
|
||||||
/* 208: A angstrom */ "{\\tenmlc\\char'103}",
|
|
||||||
/* 209: i circumflex */ "{\\tenmlc\\char'104}",
|
|
||||||
/* 210: O slash */ "{\\tenmla\\char'037}",
|
|
||||||
/* 211: AE ligature */ "{\\tenmla\\char'035}",
|
|
||||||
/* 212: a angstrom */ "{\\tenmlc\\char'105}",
|
|
||||||
/* 213: i acute */ "{\\tenmlc\\char'106}",
|
|
||||||
/* 214: o slash */ "{\\tenmla\\char'034}",
|
|
||||||
/* 215: ae ligature */ "{\\tenmla\\char'032}",
|
|
||||||
/* 216: A dieresis */ "{\\tenmlc\\char'107}",
|
|
||||||
/* 217: i grave */ "{\\tenmlc\\char'110}",
|
|
||||||
/* 218: O dieresis */ "{\\tenmlc\\char'111}",
|
|
||||||
/* 219: U dieresis */ "{\\tenmlc\\char'112}",
|
|
||||||
/* 220: E acute */ "{\\tenmlc\\char'113}",
|
|
||||||
/* 221: i dieresis */ "{\\tenmlc\\char'114}",
|
|
||||||
/* 222: SS ligature */ "{\\tenmla\\char'031}",
|
|
||||||
/* 223: O circumflex */ "{\\tenmlc\\char'115}",
|
|
||||||
/* 224: A acute */ "{\\tenmlc\\char'116}",
|
|
||||||
/* 225: A tilde */ "{\\tenmlc\\char'117}",
|
|
||||||
/* 226: a tilde */ "{\\tenmlc\\char'120}",
|
|
||||||
/* 227: Eth */ 0,
|
|
||||||
/* 228: eth */ 0,
|
|
||||||
/* 229: I acute */ "{\\tenmlc\\char'121}",
|
|
||||||
/* 230: I grave */ "{\\tenmlc\\char'122}",
|
|
||||||
/* 231: O acute */ "{\\tenmlc\\char'123}",
|
|
||||||
/* 232: O grave */ "{\\tenmlc\\char'124}",
|
|
||||||
/* 233: O tilde */ "{\\tenmlc\\char'125}",
|
|
||||||
/* 234: o tilde */ "{\\tenmlc\\char'126}",
|
|
||||||
/* 235: S caron */ "{\\tenmlc\\char'127}",
|
|
||||||
/* 236: s caron */ "{\\tenmlc\\char'130}",
|
|
||||||
/* 237: U acute */ "{\\tenmlc\\char'131}",
|
|
||||||
/* 238: Y dieresis */ "{\\tenmlc\\char'132}",
|
|
||||||
/* 239: y dieresis */ "{\\tenmlc\\char'133}",
|
|
||||||
/* 240: Thorn */ 0,
|
|
||||||
/* 241: thorn */ 0,
|
|
||||||
/* 242: undefined */ 0,
|
|
||||||
/* 243: mu */ 0,
|
|
||||||
/* 244: paragraph sign */ 0,
|
|
||||||
/* 245: fraction 3/4 */ 0,
|
|
||||||
/* 246: long dash */ 0,
|
|
||||||
/* 247: fraction 1/4 */ 0,
|
|
||||||
/* 248: fraction 1/2 */ 0,
|
|
||||||
/* 249: Female ordinal */ 0,
|
|
||||||
/* 250: Male ordinal */ 0,
|
|
||||||
/* 251: French double open quote */ 0,
|
|
||||||
/* 252: Solid square */ 0,
|
|
||||||
/* 253: French double close quote */ 0,
|
|
||||||
/* 254: Plus over minus sign */ 0,
|
|
||||||
/* 255: undefined */ 0
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
|
|
||||||
/* white menu label special character expansions */
|
|
||||||
EXTERN char *cwmenlspec[256]
|
|
||||||
#if defined(DEFINE)
|
|
||||||
= {
|
|
||||||
/* Char Name TeX Expansion */
|
|
||||||
/* */
|
|
||||||
/* 0: ^@ NUL */ 0,
|
|
||||||
/* 1: ^A SOH */ 0,
|
|
||||||
/* 2: ^B STX */ 0,
|
|
||||||
/* 3: ^C ETX */ 0,
|
|
||||||
/* 4: ^D EOT */ 0,
|
|
||||||
/* 5: ^E ENQ */ 0,
|
|
||||||
/* 6: ^F ACK */ 0,
|
|
||||||
/* 7: ^G BEL */ 0,
|
|
||||||
/* 8: ^H BS */ 0,
|
|
||||||
/* 9: ^I HT */ 0,
|
|
||||||
/* 10: ^J LF */ 0,
|
|
||||||
/* 11: ^K VT */ 0,
|
|
||||||
/* 12: ^L FF */ 0,
|
|
||||||
/* 13: ^M CR */ 0,
|
|
||||||
/* 14: ^N SO */ 0,
|
|
||||||
/* 15: ^O SI */ 0,
|
|
||||||
/* 16: ^P DLE */ 0,
|
|
||||||
/* 17: ^Q DC1 */ 0,
|
|
||||||
/* 18: ^R DC2 */ 0,
|
|
||||||
/* 19: ^S DC3 */ 0,
|
|
||||||
/* 20: ^T DC4 */ 0,
|
|
||||||
/* 21: ^U NAK */ 0,
|
|
||||||
/* 22: ^V SYN */ 0,
|
|
||||||
/* 23: ^W ETB */ 0,
|
|
||||||
/* 24: ^X CAN */ 0,
|
|
||||||
/* 25: ^Y EM */ 0,
|
|
||||||
/* 26: ^Z SUB */ 0,
|
|
||||||
/* 27: ^[ ESC */ 0,
|
|
||||||
/* 28: ^\ FS */ 0,
|
|
||||||
/* 29: ^] GS */ 0,
|
|
||||||
/* 30: ^^ RS */ 0,
|
|
||||||
/* 31: ^_ US */ 0,
|
|
||||||
/* 32: SP */ "{\\tenwlb\\char'146}",
|
|
||||||
/* 33: ! */ 0,
|
|
||||||
/* 34: " */ 0,
|
|
||||||
/* 35: # */ "\\#",
|
|
||||||
/* 36: $ */ "{\\dollar}",
|
|
||||||
/* 37: % */ "\\%",
|
|
||||||
/* 38: & */ "\\&",
|
|
||||||
/* 39: ' */ "{'}",
|
|
||||||
/* 40: ( */ 0,
|
|
||||||
/* 41: ) */ 0,
|
|
||||||
/* 42: * */ 0,
|
|
||||||
/* 43: + */ 0,
|
|
||||||
/* 44: , */ 0,
|
|
||||||
/* 45: - */ "{-}",
|
|
||||||
/* 46: . */ 0,
|
|
||||||
/* 47: / */ 0,
|
|
||||||
/* 48: 0 */ 0,
|
|
||||||
/* 49: 1 */ 0,
|
|
||||||
/* 50: 2 */ 0,
|
|
||||||
/* 51: 3 */ 0,
|
|
||||||
/* 52: 4 */ 0,
|
|
||||||
/* 53: 5 */ 0,
|
|
||||||
/* 54: 6 */ 0,
|
|
||||||
/* 55: 7 */ 0,
|
|
||||||
/* 56: 8 */ 0,
|
|
||||||
/* 57: 9 */ 0,
|
|
||||||
/* 58: : */ 0,
|
|
||||||
/* 59: ; */ 0,
|
|
||||||
/* 60: < */ "{\\tenwlb\\char'045}",
|
|
||||||
/* 61: = */ 0,
|
|
||||||
/* 62: > */ "{\\tenwlb\\char'046}",
|
|
||||||
/* 63: ? */ 0,
|
|
||||||
/* 64: @ */ 0,
|
|
||||||
/* 65: A */ 0,
|
|
||||||
/* 66: B */ 0,
|
|
||||||
/* 67: C */ 0,
|
|
||||||
/* 68: D */ 0,
|
|
||||||
/* 69: E */ 0,
|
|
||||||
/* 70: F */ 0,
|
|
||||||
/* 71: G */ 0,
|
|
||||||
/* 72: H */ 0,
|
|
||||||
/* 73: I */ 0,
|
|
||||||
/* 74: J */ 0,
|
|
||||||
/* 75: K */ 0,
|
|
||||||
/* 76: L */ 0,
|
|
||||||
/* 77: M */ 0,
|
|
||||||
/* 78: N */ 0,
|
|
||||||
/* 79: O */ 0,
|
|
||||||
/* 80: P */ 0,
|
|
||||||
/* 81: Q */ 0,
|
|
||||||
/* 82: R */ 0,
|
|
||||||
/* 83: S */ 0,
|
|
||||||
/* 84: T */ 0,
|
|
||||||
/* 85: U */ 0,
|
|
||||||
/* 86: V */ 0,
|
|
||||||
/* 87: W */ 0,
|
|
||||||
/* 88: X */ 0,
|
|
||||||
/* 89: Y */ 0,
|
|
||||||
/* 90: Z */ 0,
|
|
||||||
/* 91: [ */ 0,
|
|
||||||
/* 92: \\ */ "{\\tenwlb\\char'047}",
|
|
||||||
/* 93: ] */ 0,
|
|
||||||
/* 94: ^ */ "{\\tenwlb\\char'064}",
|
|
||||||
/* 95: _ */ "{\\tenwlb\\char'066}",
|
|
||||||
/* 96: ` */ "{`}",
|
|
||||||
/* 97: a */ 0,
|
|
||||||
/* 98: b */ 0,
|
|
||||||
/* 99: c */ 0,
|
|
||||||
/* 100: d */ 0,
|
|
||||||
/* 101: e */ 0,
|
|
||||||
/* 102: f */ 0,
|
|
||||||
/* 103: g */ 0,
|
|
||||||
/* 104: h */ 0,
|
|
||||||
/* 105: i */ 0,
|
|
||||||
/* 106: j */ 0,
|
|
||||||
/* 107: k */ 0,
|
|
||||||
/* 108: l */ 0,
|
|
||||||
/* 109: m */ 0,
|
|
||||||
/* 110: n */ 0,
|
|
||||||
/* 111: o */ 0,
|
|
||||||
/* 112: p */ 0,
|
|
||||||
/* 113: q */ 0,
|
|
||||||
/* 114: r */ 0,
|
|
||||||
/* 115: s */ 0,
|
|
||||||
/* 116: t */ 0,
|
|
||||||
/* 117: u */ 0,
|
|
||||||
/* 118: v */ 0,
|
|
||||||
/* 119: w */ 0,
|
|
||||||
/* 120: x */ 0,
|
|
||||||
/* 121: y */ 0,
|
|
||||||
/* 122: z */ 0,
|
|
||||||
/* 123: { */ "{\\tenwlb\\char'070}",
|
|
||||||
/* 124: | */ "{\\tenwlb\\char'104}",
|
|
||||||
/* 125: } */ "{\\tenwlb\\char'107}",
|
|
||||||
/* 126: ~ */ "{\\tenwlb\\char'116}",
|
|
||||||
/* 127: DEL */ 0,
|
|
||||||
/* 128: undefined */ 0,
|
|
||||||
/* 129: undefined */ 0,
|
|
||||||
/* 130: undefined */ 0,
|
|
||||||
/* 131: undefined */ 0,
|
|
||||||
/* 132: undefined */ 0,
|
|
||||||
/* 133: undefined */ 0,
|
|
||||||
/* 134: undefined */ 0,
|
|
||||||
/* 135: undefined */ 0,
|
|
||||||
/* 136: undefined */ 0,
|
|
||||||
/* 137: undefined */ 0,
|
|
||||||
/* 138: undefined */ 0,
|
|
||||||
/* 139: undefined */ 0,
|
|
||||||
/* 140: undefined */ 0,
|
|
||||||
/* 141: undefined */ 0,
|
|
||||||
/* 142: undefined */ 0,
|
|
||||||
/* 143: undefined */ 0,
|
|
||||||
/* 144: undefined */ 0,
|
|
||||||
/* 145: undefined */ 0,
|
|
||||||
/* 146: undefined */ 0,
|
|
||||||
/* 147: undefined */ 0,
|
|
||||||
/* 148: undefined */ 0,
|
|
||||||
/* 149: undefined */ 0,
|
|
||||||
/* 150: undefined */ 0,
|
|
||||||
/* 151: undefined */ 0,
|
|
||||||
/* 152: undefined */ 0,
|
|
||||||
/* 153: undefined */ 0,
|
|
||||||
/* 154: undefined */ 0,
|
|
||||||
/* 155: undefined */ 0,
|
|
||||||
/* 156: undefined */ 0,
|
|
||||||
/* 157: undefined */ 0,
|
|
||||||
/* 158: undefined */ 0,
|
|
||||||
/* 159: undefined */ 0,
|
|
||||||
/* 160: undefined */ 0,
|
|
||||||
/* 161: A grave */ "{\\tenwlc\\char'041}",
|
|
||||||
/* 162: A circumflex */ "{\\tenwlc\\char'042}",
|
|
||||||
/* 163: E grave */ "{\\tenwlc\\char'043}",
|
|
||||||
/* 164: E circumflex */ "{\\tenwlc\\char'044}",
|
|
||||||
/* 165: E dieresis */ "{\\tenwlc\\char'045}",
|
|
||||||
/* 166: I circumflex */ "{\\tenwlc\\char'046}",
|
|
||||||
/* 167: I dieresis */ "{\\tenwlc\\char'047}",
|
|
||||||
/* 168: acute accent */ "{\\tenwla\\char'023}",
|
|
||||||
/* 169: grave accent */ "{\\tenwla\\char'022}",
|
|
||||||
/* 170: circumflex */ "{\\tenwla\\char'136}",
|
|
||||||
/* 171: dieresis */ "{\\tenwla\\char'177}",
|
|
||||||
/* 172: tilde */ "{\\tenwla\\char'176}",
|
|
||||||
/* 173: U grave */ "{\\tenwlc\\char'050}",
|
|
||||||
/* 174: U circumflex */ "{\\tenwlc\\char'051}",
|
|
||||||
/* 175: Italian Lira */ 0,
|
|
||||||
/* 176: overbar */ 0,
|
|
||||||
/* 177: Y acute */ "{\\tenwlc\\char'053}",
|
|
||||||
/* 178: y acute */ "{\\tenwlc\\char'054}",
|
|
||||||
/* 179: degree */ 0,
|
|
||||||
/* 180: C cedilla */ "{\\tenwla\\char'030}",
|
|
||||||
/* 181: c cedilla */ "{\\tenwla\\char'030}",
|
|
||||||
/* 182: N tilde */ "{\\tenwlc\\char'055}",
|
|
||||||
/* 183: n tilde */ "{\\tenwlc\\char'056}",
|
|
||||||
/* 184: inverted exclamation mark */ "{\\tenwla\\char'074}",
|
|
||||||
/* 185: inverted question mark */ "{\\tenwla\\char'076}",
|
|
||||||
/* 186: currency sign */ 0,
|
|
||||||
/* 187: pound sterling */ 0,
|
|
||||||
/* 188: Yen */ 0,
|
|
||||||
/* 189: Section sign */ 0,
|
|
||||||
/* 190: florin */ 0,
|
|
||||||
/* 191: Cent sign */ 0,
|
|
||||||
/* 192: a circumflex */ "{\\tenwlc\\char'063}",
|
|
||||||
/* 193: e circumflex */ "{\\tenwlc\\char'064}",
|
|
||||||
/* 194: o circumflex */ "{\\tenwlc\\char'065}",
|
|
||||||
/* 195: u circumflex */ "{\\tenwlc\\char'066}",
|
|
||||||
/* 196: a acute */ "{\\tenwlc\\char'067}",
|
|
||||||
/* 197: e acute */ "{\\tenwlc\\char'070}",
|
|
||||||
/* 198: o acute */ "{\\tenwlc\\char'071}",
|
|
||||||
/* 199: u acute */ "{\\tenwlc\\char'072}",
|
|
||||||
/* 200: a grave */ "{\\tenwlc\\char'073}",
|
|
||||||
/* 201: e grave */ "{\\tenwlc\\char'074}",
|
|
||||||
/* 202: o grave */ "{\\tenwlc\\char'075}",
|
|
||||||
/* 203: u grave */ "{\\tenwlc\\char'076}",
|
|
||||||
/* 204: a dieresis */ "{\\tenwlc\\char'077}",
|
|
||||||
/* 205: e dieresis */ "{\\tenwlc\\char'100}",
|
|
||||||
/* 206: o dieresis */ "{\\tenwlc\\char'101}",
|
|
||||||
/* 207: u dieresis */ "{\\tenwlc\\char'102}",
|
|
||||||
/* 208: A angstrom */ "{\\tenwlc\\char'103}",
|
|
||||||
/* 209: i circumflex */ "{\\tenwlc\\char'104}",
|
|
||||||
/* 210: O slash */ "{\\tenwla\\char'037}",
|
|
||||||
/* 211: AE ligature */ "{\\tenwla\\char'035}",
|
|
||||||
/* 212: a angstrom */ "{\\tenwlc\\char'105}",
|
|
||||||
/* 213: i acute */ "{\\tenwlc\\char'106}",
|
|
||||||
/* 214: o slash */ "{\\tenwla\\char'034}",
|
|
||||||
/* 215: ae ligature */ "{\\tenwla\\char'032}",
|
|
||||||
/* 216: A dieresis */ "{\\tenwlc\\char'107}",
|
|
||||||
/* 217: i grave */ "{\\tenwlc\\char'110}",
|
|
||||||
/* 218: O dieresis */ "{\\tenwlc\\char'111}",
|
|
||||||
/* 219: U dieresis */ "{\\tenwlc\\char'112}",
|
|
||||||
/* 220: E acute */ "{\\tenwlc\\char'113}",
|
|
||||||
/* 221: i dieresis */ "{\\tenwlc\\char'114}",
|
|
||||||
/* 222: SS ligature */ "{\\tenwla\\char'031}",
|
|
||||||
/* 223: O circumflex */ "{\\tenwlc\\char'115}",
|
|
||||||
/* 224: A acute */ "{\\tenwlc\\char'116}",
|
|
||||||
/* 225: A tilde */ "{\\tenwlc\\char'117}",
|
|
||||||
/* 226: a tilde */ "{\\tenwlc\\char'120}",
|
|
||||||
/* 227: Eth */ 0,
|
|
||||||
/* 228: eth */ 0,
|
|
||||||
/* 229: I acute */ "{\\tenwlc\\char'121}",
|
|
||||||
/* 230: I grave */ "{\\tenwlc\\char'122}",
|
|
||||||
/* 231: O acute */ "{\\tenwlc\\char'123}",
|
|
||||||
/* 232: O grave */ "{\\tenwlc\\char'124}",
|
|
||||||
/* 233: O tilde */ "{\\tenwlc\\char'125}",
|
|
||||||
/* 234: o tilde */ "{\\tenwlc\\char'126}",
|
|
||||||
/* 235: S caron */ "{\\tenwlc\\char'127}",
|
|
||||||
/* 236: s caron */ "{\\tenwlc\\char'130}",
|
|
||||||
/* 237: U acute */ "{\\tenwlc\\char'131}",
|
|
||||||
/* 238: Y dieresis */ "{\\tenwlc\\char'132}",
|
|
||||||
/* 239: y dieresis */ "{\\tenwlc\\char'133}",
|
|
||||||
/* 240: Thorn */ 0,
|
|
||||||
/* 241: thorn */ 0,
|
|
||||||
/* 242: undefined */ 0,
|
|
||||||
/* 243: mu */ 0,
|
|
||||||
/* 244: paragraph sign */ 0,
|
|
||||||
/* 245: fraction 3/4 */ 0,
|
|
||||||
/* 246: long dash */ 0,
|
|
||||||
/* 247: fraction 1/4 */ 0,
|
|
||||||
/* 248: fraction 1/2 */ 0,
|
|
||||||
/* 249: Female ordinal */ 0,
|
|
||||||
/* 250: Male ordinal */ 0,
|
|
||||||
/* 251: French double open quote */ 0,
|
|
||||||
/* 252: Solid square */ 0,
|
|
||||||
/* 253: French double close quote */ 0,
|
|
||||||
/* 254: Plus over minus sign */ 0,
|
|
||||||
/* 255: undefined */ 0
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
|
|
|
@ -1,156 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: charconv.h /main/3 1995/11/08 10:07:32 rswiston $ */
|
|
||||||
EXTERN M_WCHAR pc8_to_r8 [256]
|
|
||||||
#if defined(DEFINE)
|
|
||||||
= {
|
|
||||||
'\000','\001','\002','\003','\004','\005','\006','\007','\010','\011',
|
|
||||||
'\012','\013','\014','\015','\016','\017','\020','\021','\022','\023',
|
|
||||||
'\024','\025','\026','\027','\030','\031','\032','\033','\034','\035',
|
|
||||||
'\036','\037','\040','\041','\042','\043','\044','\045','\046','\047',
|
|
||||||
'\050','\051','\052','\053','\054','\055','\056','\057','\060','\061',
|
|
||||||
'\062','\063','\064','\065','\066','\067','\070','\071','\072','\073',
|
|
||||||
'\074','\075','\076','\077','\100','\101','\102','\103','\104','\105',
|
|
||||||
'\106','\107','\110','\111','\112','\113','\114','\115','\116','\117',
|
|
||||||
'\120','\121','\122','\123','\124','\125','\126','\127','\130','\131',
|
|
||||||
'\132','\133','\134','\135','\136','\137','\140','\141','\142','\143',
|
|
||||||
'\144','\145','\146','\147','\150','\151','\152','\153','\154','\155',
|
|
||||||
'\156','\157','\160','\161','\162','\163','\164','\165','\166','\167',
|
|
||||||
'\170','\171','\172','\173','\174','\175','\176','\177','\264','\317',
|
|
||||||
'\305','\300','\314','\310','\324','\265','\301','\315','\311','\335',
|
|
||||||
'\321','\331','\330','\320','\334','\327','\323','\302','\316','\312',
|
|
||||||
'\303','\313','\357','\332','\333','\277','\273','\274','\120','\276',
|
|
||||||
'\304','\325','\306','\307','\267','\266','\371','\372','\271','\055',
|
|
||||||
'\052','\370','\367','\270','\373','\375','\374','\374','\374','\174',
|
|
||||||
'\053','\043','\053','\053','\043','\043','\174','\043','\043','\053',
|
|
||||||
'\043','\053','\053','\053','\053','\053','\055','\053','\043','\053',
|
|
||||||
'\043','\043','\043','\043','\043','\075','\043','\043','\053','\043',
|
|
||||||
'\053','\053','\043','\043','\053','\053','\043','\053','\053','\374',
|
|
||||||
'\374','\374','\374','\374','\052','\336','\052','\052','\052','\052',
|
|
||||||
'\363','\052','\052','\052','\052','\052','\052','\326','\052','\052',
|
|
||||||
'\052','\376','\052','\052','\174','\174','\057','\176','\263','\362',
|
|
||||||
'\362','\052','\052','\052','\374','\377'
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
|
|
||||||
EXTERN M_WCHAR pc8dn_to_r8 [256]
|
|
||||||
#if defined(DEFINE)
|
|
||||||
= {
|
|
||||||
'\000','\001','\002','\003','\004','\005','\006','\007','\010','\011',
|
|
||||||
'\012','\013','\014','\015','\016','\017','\020','\021','\022','\023',
|
|
||||||
'\024','\025','\026','\027','\030','\031','\032','\033','\034','\035',
|
|
||||||
'\036','\037','\040','\041','\042','\043','\044','\045','\046','\047',
|
|
||||||
'\050','\051','\052','\053','\054','\055','\056','\057','\060','\061',
|
|
||||||
'\062','\063','\064','\065','\066','\067','\070','\071','\072','\073',
|
|
||||||
'\074','\075','\076','\077','\100','\101','\102','\103','\104','\105',
|
|
||||||
'\106','\107','\110','\111','\112','\113','\114','\115','\116','\117',
|
|
||||||
'\120','\121','\122','\123','\124','\125','\126','\127','\130','\131',
|
|
||||||
'\132','\133','\134','\135','\136','\137','\140','\141','\142','\143',
|
|
||||||
'\144','\145','\146','\147','\150','\151','\152','\153','\154','\155',
|
|
||||||
'\156','\157','\160','\161','\162','\163','\164','\165','\166','\167',
|
|
||||||
'\170','\171','\172','\173','\174','\175','\176','\177','\264','\317',
|
|
||||||
'\305','\300','\314','\310','\324','\265','\301','\315','\311','\335',
|
|
||||||
'\321','\331','\330','\320','\334','\327','\323','\302','\316','\312',
|
|
||||||
'\303','\313','\357','\332','\333','\326','\273','\322','\114','\154',
|
|
||||||
'\304','\325','\306','\307','\267','\266','\352','\351','\271','\342',
|
|
||||||
'\341','\154','\156','\270','\052','\272','\374','\374','\374','\174',
|
|
||||||
'\053','\043','\053','\053','\043','\043','\174','\043','\043','\053',
|
|
||||||
'\043','\053','\053','\053','\053','\053','\055','\053','\043','\053',
|
|
||||||
'\043','\043','\043','\043','\043','\075','\043','\043','\053','\043',
|
|
||||||
'\053','\053','\043','\043','\053','\053','\043','\053','\053','\374',
|
|
||||||
'\374','\374','\374','\374','\052','\336','\052','\052','\052','\052',
|
|
||||||
'\363','\052','\052','\052','\052','\052','\052','\326','\052','\052',
|
|
||||||
'\052','\376','\052','\052','\174','\174','\057','\176','\263','\362',
|
|
||||||
'\362','\052','\052','\052','\374','\377'
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
|
|
||||||
EXTERN M_WCHAR r8_to_pc8 [256]
|
|
||||||
#if defined(DEFINE)
|
|
||||||
= {
|
|
||||||
'\000','\001','\002','\003','\004','\005','\006','\007','\010','\011',
|
|
||||||
'\012','\013','\014','\015','\016','\017','\020','\021','\022','\023',
|
|
||||||
'\024','\025','\026','\027','\030','\031','\032','\033','\034','\035',
|
|
||||||
'\036','\037','\040','\041','\042','\043','\044','\045','\046','\047',
|
|
||||||
'\050','\051','\052','\053','\054','\055','\056','\057','\060','\061',
|
|
||||||
'\062','\063','\064','\065','\066','\067','\070','\071','\072','\073',
|
|
||||||
'\074','\075','\076','\077','\100','\101','\102','\103','\104','\105',
|
|
||||||
'\106','\107','\110','\111','\112','\113','\114','\115','\116','\117',
|
|
||||||
'\120','\121','\122','\123','\124','\125','\126','\127','\130','\131',
|
|
||||||
'\132','\133','\134','\135','\136','\137','\140','\141','\142','\143',
|
|
||||||
'\144','\145','\146','\147','\150','\151','\152','\153','\154','\155',
|
|
||||||
'\156','\157','\160','\161','\162','\163','\164','\165','\166','\167',
|
|
||||||
'\170','\171','\172','\173','\174','\175','\176','\177','\200','\201',
|
|
||||||
'\202','\203','\204','\205','\206','\207','\210','\211','\212','\213',
|
|
||||||
'\214','\215','\216','\217','\220','\221','\222','\223','\224','\225',
|
|
||||||
'\226','\227','\230','\231','\232','\233','\234','\235','\236','\237',
|
|
||||||
'\040','\101','\101','\105','\105','\105','\111','\111','\047','\140',
|
|
||||||
'\136','\042','\176','\125','\125','\234','\055','\131','\171','\370',
|
|
||||||
'\200','\207','\245','\244','\255','\250','\052','\234','\235','\052',
|
|
||||||
'\237','\233','\203','\210','\223','\226','\240','\202','\242','\243',
|
|
||||||
'\205','\212','\225','\227','\204','\211','\224','\201','\217','\214',
|
|
||||||
'\117','\222','\206','\241','\355','\221','\216','\215','\231','\232',
|
|
||||||
'\220','\213','\341','\117','\101','\101','\141','\104','\144','\111',
|
|
||||||
'\111','\117','\117','\117','\157','\123','\163','\125','\131','\230',
|
|
||||||
'\052','\052','\372','\346','\052','\052','\304','\254','\253','\246',
|
|
||||||
'\247','\256','\376','\257','\361','\040'
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
|
|
||||||
EXTERN M_WCHAR r8_to_pc8dn [256]
|
|
||||||
#if defined(DEFINE)
|
|
||||||
= {
|
|
||||||
'\000','\001','\002','\003','\004','\005','\006','\007','\010','\011',
|
|
||||||
'\012','\013','\014','\015','\016','\017','\020','\021','\022','\023',
|
|
||||||
'\024','\025','\026','\027','\030','\031','\032','\033','\034','\035',
|
|
||||||
'\036','\037','\040','\041','\042','\043','\044','\045','\046','\047',
|
|
||||||
'\050','\051','\052','\053','\054','\055','\056','\057','\060','\061',
|
|
||||||
'\062','\063','\064','\065','\066','\067','\070','\071','\072','\073',
|
|
||||||
'\074','\075','\076','\077','\100','\101','\102','\103','\104','\105',
|
|
||||||
'\106','\107','\110','\111','\112','\113','\114','\115','\116','\117',
|
|
||||||
'\120','\121','\122','\123','\124','\125','\126','\127','\130','\131',
|
|
||||||
'\132','\133','\134','\135','\136','\137','\140','\141','\142','\143',
|
|
||||||
'\144','\145','\146','\147','\150','\151','\152','\153','\154','\155',
|
|
||||||
'\156','\157','\160','\161','\162','\163','\164','\165','\166','\167',
|
|
||||||
'\170','\171','\172','\173','\174','\175','\176','\177','\200','\201',
|
|
||||||
'\202','\203','\204','\205','\206','\207','\210','\211','\212','\213',
|
|
||||||
'\214','\215','\216','\217','\220','\221','\222','\223','\224','\225',
|
|
||||||
'\226','\227','\230','\231','\232','\233','\234','\235','\236','\237',
|
|
||||||
'\040','\101','\101','\105','\105','\105','\111','\111','\047','\140',
|
|
||||||
'\136','\042','\176','\125','\125','\234','\055','\131','\171','\370',
|
|
||||||
'\200','\207','\245','\244','\255','\250','\257','\234','\131','\052',
|
|
||||||
'\146','\143','\203','\210','\223','\226','\240','\202','\242','\243',
|
|
||||||
'\205','\212','\225','\227','\204','\211','\224','\201','\217','\214',
|
|
||||||
'\235','\222','\206','\241','\233','\221','\216','\215','\231','\232',
|
|
||||||
'\220','\213','\341','\117','\101','\252','\251','\104','\144','\111',
|
|
||||||
'\111','\117','\117','\247','\246','\123','\163','\125','\131','\230',
|
|
||||||
'\052','\052','\372','\346','\052','\052','\304','\052','\052','\052',
|
|
||||||
'\052','\074','\376','\076','\361','\040'
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
|
|
||||||
/* Obsolete */
|
|
|
@ -1,29 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: figure.c /main/3 1995/11/08 10:08:13 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1988, 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
/* Figure.c contains HP Tag to TeX figure processing */
|
|
||||||
|
|
||||||
/* Obsolete */
|
|
|
@ -149,8 +149,6 @@ void strcode(M_WCHAR *string, FILE *outfile);
|
||||||
|
|
||||||
void mb_strcode(char *string, FILE *outfile);
|
void mb_strcode(char *string, FILE *outfile);
|
||||||
|
|
||||||
char *strstr(const char *s1, const char *s2);
|
|
||||||
|
|
||||||
void svhdstring(M_WCHAR *string);
|
void svhdstring(M_WCHAR *string);
|
||||||
|
|
||||||
void svtcstring(M_WCHAR *string);
|
void svtcstring(M_WCHAR *string);
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: grphpar.c /main/3 1995/11/08 10:08:53 rswiston $ */
|
|
||||||
/* Copyright (c) 1988, 1989 Hewlett-Packard Co. */
|
|
||||||
/* HP Tag/TeX figure aspect ratio calculations */
|
|
||||||
|
|
||||||
#define GRAPHDEF
|
|
||||||
|
|
||||||
/* Obsolete */
|
|
|
@ -1,28 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: grphpar.h /main/3 1995/11/08 10:09:08 rswiston $ */
|
|
||||||
/* Copyright (c) 1988, 1989 Hewlett-Packard Co. */
|
|
||||||
/* Variable definitions for HP Tag/TeX for figures and graphics */
|
|
||||||
/* when adding, check "global.h" for conflicts */
|
|
||||||
|
|
||||||
/* Obsolete */
|
|
|
@ -1,48 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: make.c /main/3 1995/11/08 10:10:53 rswiston $ */
|
|
||||||
/* Copyright (c) 1986, 1987, 1988, 1989 Hewlett-Packard Co. */
|
|
||||||
/* Functions for pseudo-make features of HP Tag/TeX translator, i.e.,
|
|
||||||
for testing which generated files are current and which must be
|
|
||||||
recreated. */
|
|
||||||
/*
|
|
||||||
NOTE : This file is used as a Microsoft Linker overlay, so it cannot
|
|
||||||
have functions as pointers, eg. (proc *) f(). Routines that are
|
|
||||||
or invoke function pointers should be in tex.c.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#if defined(_AIX) || defined(sun)
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#if defined(_AIX) || defined(sun)
|
|
||||||
#undef M_PI /* M_PI is used by markup, we don't need the math PI */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
/* Obsolete */
|
|
|
@ -1,24 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: need.c /main/3 1995/11/08 10:11:13 rswiston $ */
|
|
||||||
/* Obsolete */
|
|
|
@ -1,24 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: table.c /main/3 1995/11/08 10:13:13 rswiston $ */
|
|
||||||
/* Obsolete */
|
|
|
@ -1,24 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: addinput.c /main/3 1995/11/08 10:14:54 rswiston $ */
|
|
||||||
/* Obsolete */
|
|
|
@ -1,61 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: delfree.c /main/3 1995/11/08 10:16:24 rswiston $ */
|
|
||||||
/* Copyright (c) 1988 Hewlett-Packard Co. */
|
|
||||||
|
|
||||||
/* Versions of m_free and m_malloc for debugging. */
|
|
||||||
|
|
||||||
/**/
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "basic.h"
|
|
||||||
#include "trie.h"
|
|
||||||
#include "dtd.h"
|
|
||||||
#include "parser.h"
|
|
||||||
|
|
||||||
m_free(block, msg)
|
|
||||||
char *block ;
|
|
||||||
char *msg ;
|
|
||||||
{
|
|
||||||
free(block) ;
|
|
||||||
fprintf(m_outfile, "%5u:%5u- Freed %s\n",
|
|
||||||
(unsigned int) ((unsigned long) block >> 16),
|
|
||||||
(unsigned int) block, msg) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
char *m_mallocx(size, msg)
|
|
||||||
int size ;
|
|
||||||
char *msg ;
|
|
||||||
{
|
|
||||||
char *p ;
|
|
||||||
|
|
||||||
if (! size) return(NULL) ;
|
|
||||||
p = malloc(size) ;
|
|
||||||
if (! p) {
|
|
||||||
m_err1("Unable to allocate space for %s", msg) ;
|
|
||||||
exit(TRUE) ;
|
|
||||||
}
|
|
||||||
fprintf(m_outfile, "%5u:%5u- Allocated %s\n",
|
|
||||||
(unsigned int) ((unsigned long) p >> 16), (unsigned int) p, msg) ;
|
|
||||||
return(p) ;
|
|
||||||
}
|
|
|
@ -1,50 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: dmpline.c /main/3 1995/11/08 10:16:42 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1988, 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
/* Write input file and line number for an error message */
|
|
||||||
void m_dumpline(file, line)
|
|
||||||
M_WCHAR *file ;
|
|
||||||
int line ;
|
|
||||||
{
|
|
||||||
char buffer[10] ;
|
|
||||||
|
|
||||||
m_errline("Line ") ;
|
|
||||||
sprintf(buffer, "%d", line) ;
|
|
||||||
m_errline(buffer) ;
|
|
||||||
if (file)
|
|
||||||
{
|
|
||||||
char mb_file;
|
|
||||||
|
|
||||||
m_errline(" of File ") ;
|
|
||||||
mb_file = MakeMByteString(file);
|
|
||||||
m_errline(mb_file) ;
|
|
||||||
m_free(mb_file,"multi-byte string");
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,36 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: eprefix.c /main/3 1995/11/08 10:17:31 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1988, 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
/* Write error message prefix */
|
|
||||||
void m_eprefix(void)
|
|
||||||
{
|
|
||||||
m_errline("\n*****\n") ;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,42 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: errline.c /main/3 1995/11/08 10:17:47 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1988, 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
/* Process error message text */
|
|
||||||
void m_errline(p)
|
|
||||||
M_WCHAR *p ;
|
|
||||||
{
|
|
||||||
char mb_p;
|
|
||||||
|
|
||||||
mb_p = MakeMByteString(p);
|
|
||||||
fputs(mb_p, m_errfile) ;
|
|
||||||
fputs(mb_p, stderr) ;
|
|
||||||
m_free(mb_p,"multi-byte string");
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,43 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: esuffix.c /main/3 1995/11/08 10:18:24 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1988, 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
/* Write error message suffix */
|
|
||||||
void m_esuffix(void)
|
|
||||||
{
|
|
||||||
m_errline("\n") ;
|
|
||||||
m_dumpline(m_thisfile(), m_thisline()) ;
|
|
||||||
m_errline(":\n") ;
|
|
||||||
m_lastchars() ;
|
|
||||||
if (++m_errcnt == m_errlim) {
|
|
||||||
m_error("Too many errors, processing stopped") ;
|
|
||||||
m_exit(TRUE) ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,92 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: findpar.c /main/3 1995/11/08 10:18:57 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "basic.h"
|
|
||||||
#include "trie.h"
|
|
||||||
#include "dtdext.h"
|
|
||||||
#include "parser.h"
|
|
||||||
|
|
||||||
/* Function callable by interface designers. Returns index in parameter
|
|
||||||
list of a specified parameter for an element (i.e., 1 for first parameter
|
|
||||||
specified in the DTD, 2 for second, etc.). First parameter, elt, is
|
|
||||||
the name of the element. Second parameter is the name of the parameter
|
|
||||||
or NULL. Third parameter is used only if second parameter is NULL. In
|
|
||||||
the latter case, function returns first keyword parameter, if any, for
|
|
||||||
which the specified value is a legal value and otherwise first
|
|
||||||
Returns 0 if elt is not a valid element name, if param is specified
|
|
||||||
but is not a valid parameter name, or if param is NULL and value is
|
|
||||||
not a valid value of any of elt's parameters. */
|
|
||||||
int m_findpar( const char *elt , const char *param , const M_WCHAR *value )
|
|
||||||
{
|
|
||||||
M_ELEMENT eltid ;
|
|
||||||
int par ;
|
|
||||||
int i ;
|
|
||||||
M_WCHAR *wc_elt;
|
|
||||||
|
|
||||||
wc_elt = MakeWideCharString(elt);
|
|
||||||
if (! (eltid = m_packedlook(m_entree, wc_elt)))
|
|
||||||
{
|
|
||||||
m_free(wc_elt,"wide character string");
|
|
||||||
return(M_NULLVAL) ;
|
|
||||||
}
|
|
||||||
m_free(wc_elt,"wide character string");
|
|
||||||
|
|
||||||
/* A parameter name specified */
|
|
||||||
if (param)
|
|
||||||
{
|
|
||||||
for (par = m_element[eltid - 1].parptr, i = 1 ;
|
|
||||||
|
|
||||||
i <= m_element[eltid - 1].parcount ;
|
|
||||||
par++, i++)
|
|
||||||
if (!m_wcmbupstrcmp(&m_pname[m_parameter[par - 1].paramname], param))
|
|
||||||
return(i) ;
|
|
||||||
return(M_NULLVAL) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* No parameter name specified */
|
|
||||||
|
|
||||||
/* First check is it a valid keyword? */
|
|
||||||
for (par = m_element[eltid - 1].parptr, i = 1 ;
|
|
||||||
i <= m_element[eltid - 1].parcount ;
|
|
||||||
par++, i++)
|
|
||||||
if (m_parameter[par - 1].type == M_KEYWORD)
|
|
||||||
if (m_partype(par, value)) return(i) ;
|
|
||||||
|
|
||||||
/* It wasn't a keyword. Check for valid value for some other parameter.*/
|
|
||||||
for (par = m_element[eltid - 1].parptr, i = 1 ;
|
|
||||||
i <= m_element[eltid - 1].parcount ;
|
|
||||||
par++, i++)
|
|
||||||
{
|
|
||||||
if (m_parameter[par - 1].type == M_KEYWORD) continue ;
|
|
||||||
if (m_partype(par, value)) return(i) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Not a valid value for any parameter */
|
|
||||||
return(M_NULLVAL) ;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,35 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: getc.c /main/3 1995/11/08 10:19:11 rswiston $ */
|
|
||||||
/* Copyright 1988, 1989 Hewlett-Packard Co. */
|
|
||||||
|
|
||||||
/* Default get-char procedure */
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
int m_getc(m_ptr)
|
|
||||||
void *m_ptr ;
|
|
||||||
{
|
|
||||||
return(getc((FILE*) m_ptr)) ;
|
|
||||||
}
|
|
|
@ -1,71 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: ifdata.c /main/3 1995/11/08 10:19:44 rswiston $ */
|
|
||||||
/* Copyright 1988, 1989 Hewlett-Packard Co. */
|
|
||||||
|
|
||||||
/* Ifdata.c contains functions used by the interface to access the
|
|
||||||
single item of interface-determined data stored on the parse stack. */
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "basic.h"
|
|
||||||
#include "trie.h"
|
|
||||||
#include "dtdext.h"
|
|
||||||
#include "parser.h"
|
|
||||||
|
|
||||||
/* Retrieve the interface data stored with the current element's nth parent */
|
|
||||||
void *m_getdata(n, flag)
|
|
||||||
int n ;
|
|
||||||
LOGICAL *flag ;
|
|
||||||
{
|
|
||||||
M_PARSE *stackptr ;
|
|
||||||
|
|
||||||
for (stackptr = m_stacktop ;
|
|
||||||
stackptr->oldtop && n >= 0 ;
|
|
||||||
stackptr = stackptr->oldtop, n--) {
|
|
||||||
if (! n) {
|
|
||||||
*flag = TRUE ;
|
|
||||||
return(stackptr->ifdata) ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*flag = FALSE ;
|
|
||||||
return(NULL) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Store interface data for the current element's nth parent */
|
|
||||||
LOGICAL m_putdata(data, n)
|
|
||||||
void *data ;
|
|
||||||
int n ;
|
|
||||||
{
|
|
||||||
M_PARSE *stackptr ;
|
|
||||||
|
|
||||||
for (stackptr = m_stacktop ;
|
|
||||||
stackptr->oldtop && n >= 0 ;
|
|
||||||
stackptr = stackptr->oldtop, n--) {
|
|
||||||
if (! n) {
|
|
||||||
stackptr->ifdata = data ;
|
|
||||||
return(TRUE) ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return(FALSE) ;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: openent.c /main/3 1995/11/08 10:21:06 rswiston $ */
|
|
||||||
/* Copyright 1988, 1989 Hewlett-Packard Co. */
|
|
||||||
|
|
||||||
/* Default open SYSTEM entity procedure */
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
void *m_openent(entcontent)
|
|
||||||
M_WCHAR *entcontent ;
|
|
||||||
{
|
|
||||||
return((void *) fopen(entcontent, "r")) ;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: openfrst.c /main/3 1995/11/08 10:21:22 rswiston $ */
|
|
||||||
/* Copyright 1988, 1989 Hewlett-Packard Co. */
|
|
||||||
|
|
||||||
/* Default open SYSTEM entity procedure */
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
void *m_openfirst(void)
|
|
||||||
{
|
|
||||||
return((void *) stdin) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -1,44 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: parcount.c /main/3 1995/11/08 10:22:26 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "basic.h"
|
|
||||||
#include "trie.h"
|
|
||||||
#include "dtdext.h"
|
|
||||||
#include "parser.h"
|
|
||||||
|
|
||||||
/* Function callable by interface designers. Returns number of parameters
|
|
||||||
of specified element (-1 indicates error). */
|
|
||||||
int m_parcount(elt)
|
|
||||||
M_WCHAR *elt ;
|
|
||||||
{
|
|
||||||
M_ELEMENT eltid ;
|
|
||||||
|
|
||||||
if (! (eltid = m_packedlook(m_entree, elt))) return(-1) ;
|
|
||||||
return(m_element[eltid - 1].parcount) ;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,61 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: pardef.c /main/3 1995/11/08 10:22:42 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "basic.h"
|
|
||||||
#include "trie.h"
|
|
||||||
#include "dtdext.h"
|
|
||||||
#include "parser.h"
|
|
||||||
|
|
||||||
/* Function callable by interface designers. Returns pointer to default
|
|
||||||
value of a parameter of an element. Type is set to indicate type of
|
|
||||||
default. Error indication is type is 0 and function returns NULL. */
|
|
||||||
M_WCHAR *m_pardefault(elt, param, type)
|
|
||||||
M_WCHAR *elt ;
|
|
||||||
M_WCHAR *param ;
|
|
||||||
unsigned char *type ;
|
|
||||||
{
|
|
||||||
M_ELEMENT eltid ;
|
|
||||||
int par ;
|
|
||||||
int i ;
|
|
||||||
|
|
||||||
*type = M_NULLVAL ;
|
|
||||||
if (! (eltid = m_packedlook(m_entree, elt))) return(NULL) ;
|
|
||||||
|
|
||||||
for (par = m_element[eltid - 1].parptr, i = 0 ;
|
|
||||||
i < m_element[eltid - 1].parcount ;
|
|
||||||
par++, i++)
|
|
||||||
if (! m_wcupstrcmp(&m_pname[m_parameter[par - 1].paramname], param)) {
|
|
||||||
*type = (unsigned char) m_parameter[par - 1].deftype ;
|
|
||||||
if (*type == M_REQUIRED || *type == M_NULLDEF) return(NULL) ;
|
|
||||||
return(m_parameter[par -1].defval) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Can't find the parameter */
|
|
||||||
return(NULL) ;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,58 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: parname.c /main/3 1995/11/08 10:23:17 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "basic.h"
|
|
||||||
#include "trie.h"
|
|
||||||
#include "dtdext.h"
|
|
||||||
#include "parser.h"
|
|
||||||
|
|
||||||
/* Function callable by interface designers. Returns name of nth parameter
|
|
||||||
of specified element (NULL indicates error). */
|
|
||||||
M_WCHAR *m_parname(elt, n)
|
|
||||||
M_WCHAR *elt ;
|
|
||||||
int n ;
|
|
||||||
{
|
|
||||||
M_ELEMENT eltid ;
|
|
||||||
|
|
||||||
if (! (eltid = m_packedlook(m_entree, elt))) return(NULL) ;
|
|
||||||
if (n < 1 || n > m_element[eltid - 1].parcount) return(NULL) ;
|
|
||||||
return(&m_pname[m_parameter[(n - 1) + m_element[eltid - 1].parptr - 1].
|
|
||||||
paramname]) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
M_WCHAR *m_mbparname(elt, n)
|
|
||||||
char *elt ;
|
|
||||||
int n ;
|
|
||||||
{
|
|
||||||
M_WCHAR *wc_elt, *retval;
|
|
||||||
|
|
||||||
wc_elt = MakeWideCharString(elt);
|
|
||||||
retval = m_parname(wc_elt, n);
|
|
||||||
m_free(wc_elt,"wide character string");
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,54 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: parvalok.c /main/3 1995/11/08 10:24:04 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "basic.h"
|
|
||||||
#include "trie.h"
|
|
||||||
#include "dtdext.h"
|
|
||||||
#include "parser.h"
|
|
||||||
|
|
||||||
/* Function callable by interface designers. Returns TRUE if specified value
|
|
||||||
is a legal value for the indicated parameter of the given element,
|
|
||||||
FALSE otherwise. */
|
|
||||||
LOGICAL m_parvalok( M_WCHAR *elt , M_WCHAR *param , const M_WCHAR *value )
|
|
||||||
{
|
|
||||||
M_ELEMENT eltid ;
|
|
||||||
int par ;
|
|
||||||
int i ;
|
|
||||||
|
|
||||||
if (! (eltid = m_packedlook(m_entree, elt))) return(FALSE) ;
|
|
||||||
for (par = m_element[eltid - 1].parptr, i = 1 ;
|
|
||||||
i <= m_element[eltid - 1].parcount ;
|
|
||||||
par++, i++)
|
|
||||||
if (! m_wcupstrcmp(&m_pname[m_parameter[par - 1].paramname], param))
|
|
||||||
if (m_partype(par, value)) return(TRUE) ;
|
|
||||||
else return(FALSE) ;
|
|
||||||
|
|
||||||
/* No such parameter */
|
|
||||||
return(FALSE) ;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,39 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: procscmp.c /main/3 1995/11/08 10:24:29 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1986 Tandem Computers Incorporated.
|
|
||||||
This product and information is proprietary of Tandem Computers Incorporated.
|
|
||||||
Copyright 1986, 1987, 1988, 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Procscmp.c prefixes the interface's procs.c file with appropriate
|
|
||||||
declarations so it can be compiled. */
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
/* Include any procedures specified by the interface designer */
|
|
||||||
#include "procs.c"
|
|
||||||
|
|
||||||
|
|
|
@ -153,8 +153,6 @@ void m_holdproc(void);
|
||||||
|
|
||||||
void m_inctest(int *count, int limit, char *message);
|
void m_inctest(int *count, int limit, char *message);
|
||||||
|
|
||||||
void m_initctype(void);
|
|
||||||
|
|
||||||
void m_initialize(void);
|
void m_initialize(void);
|
||||||
|
|
||||||
void m_lastchars(void);
|
void m_lastchars(void);
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: setopt.c /main/3 1995/11/08 10:25:07 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1988, 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
|
|
||||||
/* Set program options */
|
|
||||||
void m_setoptions(void)
|
|
||||||
{
|
|
||||||
if (m_argc > 1) m_optstring(m_argv[1]) ;
|
|
||||||
}
|
|
|
@ -1,39 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: startdoc.c /main/3 1995/11/08 10:25:53 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
/* Default function called at start of document instance. Allows interface
|
|
||||||
control after all entity declarations have been processed. Not needed
|
|
||||||
in valid documents (when it is called just prior to global start-code),
|
|
||||||
but may be useful in some applications nevertheless. */
|
|
||||||
void m_startdoc(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -1,46 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: trace.c /main/3 1995/11/08 10:26:46 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1988, 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
/* Write debugging trace information */
|
|
||||||
void m_wctrace(p)
|
|
||||||
M_WCHAR *p ;
|
|
||||||
{
|
|
||||||
char *mb_p;
|
|
||||||
|
|
||||||
mb_p = MakeMByteString(p);
|
|
||||||
fputs(mb_p, m_outfile) ;
|
|
||||||
m_free(mb_p,"multi-byte string");
|
|
||||||
}
|
|
||||||
|
|
||||||
void m_trace(p)
|
|
||||||
char *p ;
|
|
||||||
{
|
|
||||||
fputs(p, m_outfile);
|
|
||||||
}
|
|
|
@ -1,38 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: emptyfil.c /main/3 1995/11/08 10:30:15 rswiston $ */
|
|
||||||
/* Copyright (c) 1988, 1989 Hewlett-Packard Co. */
|
|
||||||
/* Creates a file with nothing in it */
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "basic.h"
|
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
|
||||||
{
|
|
||||||
if (argc != 2) {
|
|
||||||
fprintf(stderr, "Usage: emptyfil filename\n") ;
|
|
||||||
exit(1) ;
|
|
||||||
}
|
|
||||||
if (! fopen(argv[1], "w"))
|
|
||||||
fprintf(stderr, "Unable to open %s\n", argv[1]) ;
|
|
||||||
return 0;
|
|
||||||
}
|
|
|
@ -1,160 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: fclndir.c /main/3 1995/11/08 10:32:12 rswiston $ */
|
|
||||||
/* Copyright (c) 1987-1990 Hewlett-Packard Co.
|
|
||||||
|
|
||||||
Fclndir.c compares two files, ignoring C line directives that appear
|
|
||||||
within them as well as blank lines, and leading white space. It exits
|
|
||||||
with an error code of 0 if the files are the same, 1 if they differ, and
|
|
||||||
2 if the program was called incorrectly.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Feb. 11, 1991, CED: Added v2 fixes to v3 version of fclndir.
|
|
||||||
Thus, both versions now copy the source file to the target if
|
|
||||||
the files differ.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include "basic.h"
|
|
||||||
#define SAME 0
|
|
||||||
/* different defined to be 0 as of 12-1-89, because fclndir now does
|
|
||||||
the file-copy if the files are different, or if the second file
|
|
||||||
doesn't exist. (different used to be 1.) --ced */
|
|
||||||
#define DIFFERENT 0
|
|
||||||
#define ERROR 2
|
|
||||||
|
|
||||||
struct data {
|
|
||||||
int c ;
|
|
||||||
LOGICAL linestart ;
|
|
||||||
char *p ;
|
|
||||||
char *q ;
|
|
||||||
} data1, data2 ;
|
|
||||||
|
|
||||||
char linedir[] = "#line" ;
|
|
||||||
char *p = linedir, *q = linedir + 1 ;
|
|
||||||
|
|
||||||
int main(int argc, char **argv);
|
|
||||||
|
|
||||||
void copyfile(char *pfile1, char *pfile2);
|
|
||||||
|
|
||||||
int nextchar(FILE *file, struct data *data);
|
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
|
||||||
{
|
|
||||||
FILE *one, *two ;
|
|
||||||
int c1, c2 ;
|
|
||||||
|
|
||||||
if (argc != 3) {
|
|
||||||
fputs("Usage: fclndir file1 (=source) file2 (=target)\n", stderr) ;
|
|
||||||
exit(ERROR) ;
|
|
||||||
}
|
|
||||||
if (! (one = fopen(argv[1], "r"))) {
|
|
||||||
fprintf(stderr, "ERROR: source file unavailable: %s\n", argv[1]) ;
|
|
||||||
exit(ERROR) ;
|
|
||||||
}
|
|
||||||
if (! (two = fopen(argv[2], "r"))) {
|
|
||||||
fprintf(stderr, "No target file %s; copying source file...\n", argv[2]) ;
|
|
||||||
/* call to copyfile entered by ced, 12-29-89. */
|
|
||||||
copyfile(argv[1],argv[2]);
|
|
||||||
exit(DIFFERENT) ;
|
|
||||||
}
|
|
||||||
data1.linestart = data2.linestart = TRUE ;
|
|
||||||
data1.p = data2.p = linedir ;
|
|
||||||
data1.q = data2.q = linedir + 1 ;
|
|
||||||
c1 = nextchar(one, &data1) ;
|
|
||||||
c2 = nextchar(two, &data2) ;
|
|
||||||
while (c1 != EOF && c2 != EOF) {
|
|
||||||
if (c1 != c2) {
|
|
||||||
fprintf(stderr, "%s and %s are different; copying source...\n",
|
|
||||||
argv[1], argv[2]) ;
|
|
||||||
/* call to copyfile entered by ced, 12-1-89. */
|
|
||||||
copyfile(argv[1],argv[2]);
|
|
||||||
exit(DIFFERENT) ;
|
|
||||||
}
|
|
||||||
c1 = nextchar(one, &data1) ;
|
|
||||||
c2 = nextchar(two, &data2) ;
|
|
||||||
}
|
|
||||||
if (c1 != c2) {
|
|
||||||
fprintf(stderr, "%s and %s are different; copying source...\n",
|
|
||||||
argv[1], argv[2]) ;
|
|
||||||
/* call to copyfile entered by ced, 12-1-89. */
|
|
||||||
copyfile(argv[1],argv[2]);
|
|
||||||
exit(DIFFERENT) ;
|
|
||||||
}
|
|
||||||
fprintf(stderr, "%s and %s are the same\n", argv[1], argv[2]) ;
|
|
||||||
exit(SAME) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* copyfile inserted by ced, 12-1-89. */
|
|
||||||
void copyfile(char *pfile1, char *pfile2)
|
|
||||||
{
|
|
||||||
int ret;
|
|
||||||
char *pcmd;
|
|
||||||
int slen;
|
|
||||||
|
|
||||||
/* malloc space for the system command: two filenames, plus a command,
|
|
||||||
spaces, and the terminating null */
|
|
||||||
slen = strlen(pfile1) + strlen(pfile2) + 8;
|
|
||||||
pcmd = (char *) malloc(slen);
|
|
||||||
ret = snprintf(pcmd, slen, "cp %s %s",pfile1,pfile2);
|
|
||||||
ret = system(pcmd);
|
|
||||||
ret = snprintf(pcmd, slen, "touch %s",pfile2);
|
|
||||||
ret = system(pcmd);
|
|
||||||
free(pcmd);
|
|
||||||
}
|
|
||||||
|
|
||||||
int nextchar(FILE *file, struct data *data)
|
|
||||||
{
|
|
||||||
while (data->linestart) {
|
|
||||||
data->linestart = FALSE ;
|
|
||||||
for (data->p = linedir ; *data->p; data->p++)
|
|
||||||
if ((data->c = getc(file)) != (int) *data->p) break ;
|
|
||||||
/* Found a line directive, skip remainder of line */
|
|
||||||
if (! *data->p) {
|
|
||||||
data->c = getc(file) ;
|
|
||||||
while (data->c != '\n' && data->c != EOF)
|
|
||||||
data->c = getc(file) ;
|
|
||||||
data->linestart = TRUE ;
|
|
||||||
continue ;
|
|
||||||
}
|
|
||||||
/* Check for leading blanks */
|
|
||||||
else if (data->p == linedir) {
|
|
||||||
while (data->c == ' ' || data->c == '\t') data->c = getc(file) ;
|
|
||||||
if (data->c == '\n') {
|
|
||||||
data->linestart = TRUE ;
|
|
||||||
continue ;
|
|
||||||
}
|
|
||||||
return(data->c) ;
|
|
||||||
}
|
|
||||||
/* Line began with a prefix of #line */
|
|
||||||
data->q = linedir ;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (data->q < data->p) return(*data->q++) ;
|
|
||||||
else if (data->q++ != data->p) data->c = getc(file) ;
|
|
||||||
if (data->c == '\n') data->linestart = TRUE ;
|
|
||||||
return(data->c) ;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,45 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: initct.c /main/3 1995/11/08 10:32:53 rswiston $ */
|
|
||||||
/* Copyright (c) 1987, 1988 Hewlett-Packard Co. */
|
|
||||||
/* M_initctype initializes the array used to indicate which ASCII
|
|
||||||
characters can appear within SGML names */
|
|
||||||
|
|
||||||
#include "basic.h"
|
|
||||||
#include "common.h"
|
|
||||||
extern char m_chartype[M_CHARSETLEN] ;
|
|
||||||
|
|
||||||
void m_initctype(void)
|
|
||||||
{
|
|
||||||
int i ;
|
|
||||||
|
|
||||||
/* ****************************** NOTE: **********************************
|
|
||||||
If the set of name characters is ever modified, make appropriate changes
|
|
||||||
in ELTDEF's scanner for testing for valid C identifiers as parameter
|
|
||||||
names */
|
|
||||||
for (i = 0 ; i < M_CHARSETLEN ; i++) m_chartype[i] = M_NONNAME ;
|
|
||||||
for (i = 'A' ; i <= 'Z' ; i++) m_chartype[i] = M_NMSTART ;
|
|
||||||
for (i = 'a' ; i <= 'z' ; i++) m_chartype[i] = M_NMSTART ;
|
|
||||||
for (i = '0' ; i <= '9' ; i++) m_chartype[i] = M_DIGIT ;
|
|
||||||
m_chartype['.'] = m_chartype['-'] = M_NAMECHAR ;
|
|
||||||
}
|
|
|
@ -1,40 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: strstr.c /main/3 1995/11/08 10:36:55 rswiston $ */
|
|
||||||
char *strstr ( s1, s2 )
|
|
||||||
char *s1, *s2 ; {
|
|
||||||
|
|
||||||
int x, y ;
|
|
||||||
|
|
||||||
y = strlen ( s2 ) ;
|
|
||||||
x = strlen ( s1 ) - y ;
|
|
||||||
|
|
||||||
if ( x < 0 ) return ( ( char * ) 0L ) ;
|
|
||||||
do {
|
|
||||||
if ( strncmp ( s1 + x, s2, y ) == 0 ) return ( s1 + x ) ;
|
|
||||||
}
|
|
||||||
while ( --x >= 0 ) ;
|
|
||||||
|
|
||||||
return ( ( char * ) 0L ) ;
|
|
||||||
}
|
|
||||||
|
|
|
@ -128,8 +128,6 @@ int gettoken(int *c, int context);
|
||||||
|
|
||||||
TREE *gettreenode(void);
|
TREE *gettreenode(void);
|
||||||
|
|
||||||
void m_initctype(void);
|
|
||||||
|
|
||||||
void initialize(void);
|
void initialize(void);
|
||||||
|
|
||||||
LOGICAL litproc(int delim);
|
LOGICAL litproc(int delim);
|
||||||
|
|
|
@ -90,8 +90,6 @@ void getname(int first);
|
||||||
|
|
||||||
int gettoken(int *c, int context);
|
int gettoken(int *c, int context);
|
||||||
|
|
||||||
void m_initctype(void);
|
|
||||||
|
|
||||||
void initialize(void);
|
void initialize(void);
|
||||||
|
|
||||||
LOGICAL m_letter(M_WCHAR c);
|
LOGICAL m_letter(M_WCHAR c);
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: addinput.c /main/3 1995/11/08 10:48:50 rswiston $ */
|
|
||||||
/* Obsolete */
|
|
|
@ -1,61 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: delfree.c /main/3 1995/11/08 10:50:16 rswiston $ */
|
|
||||||
/* Copyright (c) 1988 Hewlett-Packard Co. */
|
|
||||||
|
|
||||||
/* Versions of m_free and m_malloc for debugging. */
|
|
||||||
|
|
||||||
/**/
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "basic.h"
|
|
||||||
#include "trie.h"
|
|
||||||
#include "dtd.h"
|
|
||||||
#include "parser.h"
|
|
||||||
|
|
||||||
m_free(block, msg)
|
|
||||||
char *block ;
|
|
||||||
char *msg ;
|
|
||||||
{
|
|
||||||
free(block) ;
|
|
||||||
fprintf(m_outfile, "%5u:%5u- Freed %s\n",
|
|
||||||
(unsigned int) ((unsigned long) block >> 16),
|
|
||||||
(unsigned int) block, msg) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
char *m_mallocx(size, msg)
|
|
||||||
int size ;
|
|
||||||
char *msg ;
|
|
||||||
{
|
|
||||||
char *p ;
|
|
||||||
|
|
||||||
if (! size) return(NULL) ;
|
|
||||||
p = malloc(size) ;
|
|
||||||
if (! p) {
|
|
||||||
m_err1("Unable to allocate space for %s", msg) ;
|
|
||||||
exit(TRUE) ;
|
|
||||||
}
|
|
||||||
fprintf(m_outfile, "%5u:%5u- Allocated %s\n",
|
|
||||||
(unsigned int) ((unsigned long) p >> 16), (unsigned int) p, msg) ;
|
|
||||||
return(p) ;
|
|
||||||
}
|
|
|
@ -1,50 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: dmpline.c /main/3 1995/11/08 10:50:31 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1988, 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
/* Write input file and line number for an error message */
|
|
||||||
void m_dumpline(file, line)
|
|
||||||
M_WCHAR *file ;
|
|
||||||
int line ;
|
|
||||||
{
|
|
||||||
char buffer[10] ;
|
|
||||||
|
|
||||||
m_errline("Line ") ;
|
|
||||||
sprintf(buffer, "%d", line) ;
|
|
||||||
m_errline(buffer) ;
|
|
||||||
if (file)
|
|
||||||
{
|
|
||||||
char mb_file;
|
|
||||||
|
|
||||||
m_errline(" of File ") ;
|
|
||||||
mb_file = MakeMByteString(file);
|
|
||||||
m_errline(mb_file) ;
|
|
||||||
m_free(mb_file,"multi-byte string");
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,36 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: eprefix.c /main/3 1995/11/08 10:51:14 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1988, 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
/* Write error message prefix */
|
|
||||||
void m_eprefix(void)
|
|
||||||
{
|
|
||||||
m_errline("\n*****\n") ;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,42 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: errline.c /main/3 1995/11/08 10:51:28 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1988, 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
/* Process error message text */
|
|
||||||
void m_errline(p)
|
|
||||||
M_WCHAR *p ;
|
|
||||||
{
|
|
||||||
char mb_p;
|
|
||||||
|
|
||||||
mb_p = MakeMByteString(p);
|
|
||||||
fputs(mb_p, m_errfile) ;
|
|
||||||
fputs(mb_p, stderr) ;
|
|
||||||
m_free(mb_p,"multi-byte string");
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,43 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: esuffix.c /main/3 1995/11/08 10:52:01 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1988, 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
/* Write error message suffix */
|
|
||||||
void m_esuffix(void)
|
|
||||||
{
|
|
||||||
m_errline("\n") ;
|
|
||||||
m_dumpline(m_thisfile(), m_thisline()) ;
|
|
||||||
m_errline(":\n") ;
|
|
||||||
m_lastchars() ;
|
|
||||||
if (++m_errcnt == m_errlim) {
|
|
||||||
m_error("Too many errors, processing stopped") ;
|
|
||||||
m_exit(TRUE) ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,92 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: findpar.c /main/3 1995/11/08 10:52:30 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "basic.h"
|
|
||||||
#include "trie.h"
|
|
||||||
#include "dtdext.h"
|
|
||||||
#include "parser.h"
|
|
||||||
|
|
||||||
/* Function callable by interface designers. Returns index in parameter
|
|
||||||
list of a specified parameter for an element (i.e., 1 for first parameter
|
|
||||||
specified in the DTD, 2 for second, etc.). First parameter, elt, is
|
|
||||||
the name of the element. Second parameter is the name of the parameter
|
|
||||||
or NULL. Third parameter is used only if second parameter is NULL. In
|
|
||||||
the latter case, function returns first keyword parameter, if any, for
|
|
||||||
which the specified value is a legal value and otherwise first
|
|
||||||
Returns 0 if elt is not a valid element name, if param is specified
|
|
||||||
but is not a valid parameter name, or if param is NULL and value is
|
|
||||||
not a valid value of any of elt's parameters. */
|
|
||||||
int m_findpar( const char *elt , const char *param , const M_WCHAR *value )
|
|
||||||
{
|
|
||||||
M_ELEMENT eltid ;
|
|
||||||
int par ;
|
|
||||||
int i ;
|
|
||||||
M_WCHAR *wc_elt;
|
|
||||||
|
|
||||||
wc_elt = MakeWideCharString(elt);
|
|
||||||
if (! (eltid = m_packedlook(m_entree, wc_elt)))
|
|
||||||
{
|
|
||||||
m_free(wc_elt,"wide character string");
|
|
||||||
return(M_NULLVAL) ;
|
|
||||||
}
|
|
||||||
m_free(wc_elt,"wide character string");
|
|
||||||
|
|
||||||
/* A parameter name specified */
|
|
||||||
if (param)
|
|
||||||
{
|
|
||||||
for (par = m_element[eltid - 1].parptr, i = 1 ;
|
|
||||||
|
|
||||||
i <= m_element[eltid - 1].parcount ;
|
|
||||||
par++, i++)
|
|
||||||
if (!m_wcmbupstrcmp(&m_pname[m_parameter[par - 1].paramname], param))
|
|
||||||
return(i) ;
|
|
||||||
return(M_NULLVAL) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* No parameter name specified */
|
|
||||||
|
|
||||||
/* First check is it a valid keyword? */
|
|
||||||
for (par = m_element[eltid - 1].parptr, i = 1 ;
|
|
||||||
i <= m_element[eltid - 1].parcount ;
|
|
||||||
par++, i++)
|
|
||||||
if (m_parameter[par - 1].type == M_KEYWORD)
|
|
||||||
if (m_partype(par, value)) return(i) ;
|
|
||||||
|
|
||||||
/* It wasn't a keyword. Check for valid value for some other parameter.*/
|
|
||||||
for (par = m_element[eltid - 1].parptr, i = 1 ;
|
|
||||||
i <= m_element[eltid - 1].parcount ;
|
|
||||||
par++, i++)
|
|
||||||
{
|
|
||||||
if (m_parameter[par - 1].type == M_KEYWORD) continue ;
|
|
||||||
if (m_partype(par, value)) return(i) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Not a valid value for any parameter */
|
|
||||||
return(M_NULLVAL) ;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,35 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: getc.c /main/3 1995/11/08 10:52:46 rswiston $ */
|
|
||||||
/* Copyright 1988, 1989 Hewlett-Packard Co. */
|
|
||||||
|
|
||||||
/* Default get-char procedure */
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
int m_getc(m_ptr)
|
|
||||||
void *m_ptr ;
|
|
||||||
{
|
|
||||||
return(getc((FILE*) m_ptr)) ;
|
|
||||||
}
|
|
|
@ -1,71 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: ifdata.c /main/3 1995/11/08 10:53:18 rswiston $ */
|
|
||||||
/* Copyright 1988, 1989 Hewlett-Packard Co. */
|
|
||||||
|
|
||||||
/* Ifdata.c contains functions used by the interface to access the
|
|
||||||
single item of interface-determined data stored on the parse stack. */
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "basic.h"
|
|
||||||
#include "trie.h"
|
|
||||||
#include "dtdext.h"
|
|
||||||
#include "parser.h"
|
|
||||||
|
|
||||||
/* Retrieve the interface data stored with the current element's nth parent */
|
|
||||||
void *m_getdata(n, flag)
|
|
||||||
int n ;
|
|
||||||
LOGICAL *flag ;
|
|
||||||
{
|
|
||||||
M_PARSE *stackptr ;
|
|
||||||
|
|
||||||
for (stackptr = m_stacktop ;
|
|
||||||
stackptr->oldtop && n >= 0 ;
|
|
||||||
stackptr = stackptr->oldtop, n--) {
|
|
||||||
if (! n) {
|
|
||||||
*flag = TRUE ;
|
|
||||||
return(stackptr->ifdata) ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*flag = FALSE ;
|
|
||||||
return(NULL) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Store interface data for the current element's nth parent */
|
|
||||||
LOGICAL m_putdata(data, n)
|
|
||||||
void *data ;
|
|
||||||
int n ;
|
|
||||||
{
|
|
||||||
M_PARSE *stackptr ;
|
|
||||||
|
|
||||||
for (stackptr = m_stacktop ;
|
|
||||||
stackptr->oldtop && n >= 0 ;
|
|
||||||
stackptr = stackptr->oldtop, n--) {
|
|
||||||
if (! n) {
|
|
||||||
stackptr->ifdata = data ;
|
|
||||||
return(TRUE) ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return(FALSE) ;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: openent.c /main/3 1995/11/08 10:54:37 rswiston $ */
|
|
||||||
/* Copyright 1988, 1989 Hewlett-Packard Co. */
|
|
||||||
|
|
||||||
/* Default open SYSTEM entity procedure */
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
void *m_openent(entcontent)
|
|
||||||
M_WCHAR *entcontent ;
|
|
||||||
{
|
|
||||||
return((void *) fopen(entcontent, "r")) ;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: openfrst.c /main/3 1995/11/08 10:54:51 rswiston $ */
|
|
||||||
/* Copyright 1988, 1989 Hewlett-Packard Co. */
|
|
||||||
|
|
||||||
/* Default open SYSTEM entity procedure */
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
void *m_openfirst(void)
|
|
||||||
{
|
|
||||||
return((void *) stdin) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -1,44 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: parcount.c /main/3 1995/11/08 10:55:34 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "basic.h"
|
|
||||||
#include "trie.h"
|
|
||||||
#include "dtdext.h"
|
|
||||||
#include "parser.h"
|
|
||||||
|
|
||||||
/* Function callable by interface designers. Returns number of parameters
|
|
||||||
of specified element (-1 indicates error). */
|
|
||||||
int m_parcount(elt)
|
|
||||||
M_WCHAR *elt ;
|
|
||||||
{
|
|
||||||
M_ELEMENT eltid ;
|
|
||||||
|
|
||||||
if (! (eltid = m_packedlook(m_entree, elt))) return(-1) ;
|
|
||||||
return(m_element[eltid - 1].parcount) ;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,61 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: pardef.c /main/3 1995/11/08 10:55:48 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "basic.h"
|
|
||||||
#include "trie.h"
|
|
||||||
#include "dtdext.h"
|
|
||||||
#include "parser.h"
|
|
||||||
|
|
||||||
/* Function callable by interface designers. Returns pointer to default
|
|
||||||
value of a parameter of an element. Type is set to indicate type of
|
|
||||||
default. Error indication is type is 0 and function returns NULL. */
|
|
||||||
M_WCHAR *m_pardefault(elt, param, type)
|
|
||||||
M_WCHAR *elt ;
|
|
||||||
M_WCHAR *param ;
|
|
||||||
unsigned char *type ;
|
|
||||||
{
|
|
||||||
M_ELEMENT eltid ;
|
|
||||||
int par ;
|
|
||||||
int i ;
|
|
||||||
|
|
||||||
*type = M_NULLVAL ;
|
|
||||||
if (! (eltid = m_packedlook(m_entree, elt))) return(NULL) ;
|
|
||||||
|
|
||||||
for (par = m_element[eltid - 1].parptr, i = 0 ;
|
|
||||||
i < m_element[eltid - 1].parcount ;
|
|
||||||
par++, i++)
|
|
||||||
if (! m_wcupstrcmp(&m_pname[m_parameter[par - 1].paramname], param)) {
|
|
||||||
*type = (unsigned char) m_parameter[par - 1].deftype ;
|
|
||||||
if (*type == M_REQUIRED || *type == M_NULLDEF) return(NULL) ;
|
|
||||||
return(m_parameter[par -1].defval) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Can't find the parameter */
|
|
||||||
return(NULL) ;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,58 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: parname.c /main/3 1995/11/08 10:56:15 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "basic.h"
|
|
||||||
#include "trie.h"
|
|
||||||
#include "dtdext.h"
|
|
||||||
#include "parser.h"
|
|
||||||
|
|
||||||
/* Function callable by interface designers. Returns name of nth parameter
|
|
||||||
of specified element (NULL indicates error). */
|
|
||||||
M_WCHAR *m_parname(elt, n)
|
|
||||||
M_WCHAR *elt ;
|
|
||||||
int n ;
|
|
||||||
{
|
|
||||||
M_ELEMENT eltid ;
|
|
||||||
|
|
||||||
if (! (eltid = m_packedlook(m_entree, elt))) return(NULL) ;
|
|
||||||
if (n < 1 || n > m_element[eltid - 1].parcount) return(NULL) ;
|
|
||||||
return(&m_pname[m_parameter[(n - 1) + m_element[eltid - 1].parptr - 1].
|
|
||||||
paramname]) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
M_WCHAR *m_mbparname(elt, n)
|
|
||||||
char *elt ;
|
|
||||||
int n ;
|
|
||||||
{
|
|
||||||
M_WCHAR *wc_elt, *retval;
|
|
||||||
|
|
||||||
wc_elt = MakeWideCharString(elt);
|
|
||||||
retval = m_parname(wc_elt, n);
|
|
||||||
m_free(wc_elt,"wide character string");
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,54 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: parvalok.c /main/3 1995/11/08 10:57:12 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "basic.h"
|
|
||||||
#include "trie.h"
|
|
||||||
#include "dtdext.h"
|
|
||||||
#include "parser.h"
|
|
||||||
|
|
||||||
/* Function callable by interface designers. Returns TRUE if specified value
|
|
||||||
is a legal value for the indicated parameter of the given element,
|
|
||||||
FALSE otherwise. */
|
|
||||||
LOGICAL m_parvalok( M_WCHAR *elt , M_WCHAR *param , const M_WCHAR *value )
|
|
||||||
{
|
|
||||||
M_ELEMENT eltid ;
|
|
||||||
int par ;
|
|
||||||
int i ;
|
|
||||||
|
|
||||||
if (! (eltid = m_packedlook(m_entree, elt))) return(FALSE) ;
|
|
||||||
for (par = m_element[eltid - 1].parptr, i = 1 ;
|
|
||||||
i <= m_element[eltid - 1].parcount ;
|
|
||||||
par++, i++)
|
|
||||||
if (! m_wcupstrcmp(&m_pname[m_parameter[par - 1].paramname], param))
|
|
||||||
if (m_partype(par, value)) return(TRUE) ;
|
|
||||||
else return(FALSE) ;
|
|
||||||
|
|
||||||
/* No such parameter */
|
|
||||||
return(FALSE) ;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,39 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: procscmp.c /main/3 1995/11/08 10:57:41 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1986 Tandem Computers Incorporated.
|
|
||||||
This product and information is proprietary of Tandem Computers Incorporated.
|
|
||||||
Copyright 1986, 1987, 1988, 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Procscmp.c prefixes the interface's procs.c file with appropriate
|
|
||||||
declarations so it can be compiled. */
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
/* Include any procedures specified by the interface designer */
|
|
||||||
#include "procs.c"
|
|
||||||
|
|
||||||
|
|
|
@ -153,8 +153,6 @@ void m_holdproc(void);
|
||||||
|
|
||||||
void m_inctest(int *count, int limit, char *message);
|
void m_inctest(int *count, int limit, char *message);
|
||||||
|
|
||||||
void m_initctype(void);
|
|
||||||
|
|
||||||
void m_initialize(void);
|
void m_initialize(void);
|
||||||
|
|
||||||
void m_lastchars(void);
|
void m_lastchars(void);
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: setopt.c /main/3 1995/11/08 10:58:30 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1988, 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
|
|
||||||
/* Set program options */
|
|
||||||
void m_setoptions(void)
|
|
||||||
{
|
|
||||||
if (m_argc > 1) m_optstring(m_argv[1]) ;
|
|
||||||
}
|
|
|
@ -1,40 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: signmsg.c /main/3 1995/11/08 10:58:59 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1988, 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
/* Process signon message text */
|
|
||||||
void m_signmsg(p)
|
|
||||||
M_WCHAR *p ;
|
|
||||||
{
|
|
||||||
char mb_p;
|
|
||||||
|
|
||||||
mb_p = MakeMByteString(p);
|
|
||||||
m_errline(mb_p) ;
|
|
||||||
m_free(mb_p,"multi-byte string");
|
|
||||||
}
|
|
|
@ -1,39 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: startdoc.c /main/3 1995/11/08 10:59:27 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
/* Default function called at start of document instance. Allows interface
|
|
||||||
control after all entity declarations have been processed. Not needed
|
|
||||||
in valid documents (when it is called just prior to global start-code),
|
|
||||||
but may be useful in some applications nevertheless. */
|
|
||||||
void m_startdoc(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -1,46 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: trace.c /main/3 1995/11/08 11:00:43 rswiston $ */
|
|
||||||
/*
|
|
||||||
Copyright 1988, 1989 Hewlett-Packard Co.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "userinc.h"
|
|
||||||
#include "globdec.h"
|
|
||||||
|
|
||||||
/* Write debugging trace information */
|
|
||||||
void m_wctrace(p)
|
|
||||||
M_WCHAR *p ;
|
|
||||||
{
|
|
||||||
char *mb_p;
|
|
||||||
|
|
||||||
mb_p = MakeMByteString(p);
|
|
||||||
fputs(mb_p, m_outfile) ;
|
|
||||||
m_free(mb_p,"multi-byte string");
|
|
||||||
}
|
|
||||||
|
|
||||||
void m_trace(p)
|
|
||||||
char *p ;
|
|
||||||
{
|
|
||||||
fputs(p, m_outfile);
|
|
||||||
}
|
|
|
@ -1,42 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: emptyfil.c /main/3 1995/11/08 11:04:00 rswiston $ */
|
|
||||||
/* Copyright (c) 1988, 1989 Hewlett-Packard Co. */
|
|
||||||
/* Creates a file with nothing in it */
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "basic.h"
|
|
||||||
|
|
||||||
void main(int argc, char **argv);
|
|
||||||
|
|
||||||
void main(argc, argv)
|
|
||||||
int argc ;
|
|
||||||
char **argv ;
|
|
||||||
{
|
|
||||||
if (argc != 2) {
|
|
||||||
fprintf(stderr, "Usage: emptyfil filename\n") ;
|
|
||||||
exit(1) ;
|
|
||||||
}
|
|
||||||
if (! fopen(argv[1], "w"))
|
|
||||||
fprintf(stderr, "Unable to open %s\n", argv[1]) ;
|
|
||||||
return 0;
|
|
||||||
}
|
|
|
@ -1,160 +0,0 @@
|
||||||
/*
|
|
||||||
* CDE - Common Desktop Environment
|
|
||||||
*
|
|
||||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
||||||
*
|
|
||||||
* These libraries and programs are free software; you can
|
|
||||||
* redistribute them and/or modify them under the terms of the GNU
|
|
||||||
* Lesser General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* These libraries and programs are distributed in the hope that
|
|
||||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
||||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE. See the GNU Lesser General Public License for more
|
|
||||||
* details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with these libraries and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/* $XConsortium: fclndir.c /main/3 1995/11/08 11:05:25 rswiston $ */
|
|
||||||
/* Copyright (c) 1987-1990 Hewlett-Packard Co.
|
|
||||||
|
|
||||||
Fclndir.c compares two files, ignoring C line directives that appear
|
|
||||||
within them as well as blank lines, and leading white space. It exits
|
|
||||||
with an error code of 0 if the files are the same, 1 if they differ, and
|
|
||||||
2 if the program was called incorrectly.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Feb. 11, 1991, CED: Added v2 fixes to v3 version of fclndir.
|
|
||||||
Thus, both versions now copy the source file to the target if
|
|
||||||
the files differ.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include "basic.h"
|
|
||||||
#define SAME 0
|
|
||||||
/* different defined to be 0 as of 12-1-89, because fclndir now does
|
|
||||||
the file-copy if the files are different, or if the second file
|
|
||||||
doesn't exist. (different used to be 1.) --ced */
|
|
||||||
#define DIFFERENT 0
|
|
||||||
#define ERROR 2
|
|
||||||
|
|
||||||
struct data {
|
|
||||||
int c ;
|
|
||||||
LOGICAL linestart ;
|
|
||||||
char *p ;
|
|
||||||
char *q ;
|
|
||||||
} data1, data2 ;
|
|
||||||
|
|
||||||
char linedir[] = "#line" ;
|
|
||||||
char *p = linedir, *q = linedir + 1 ;
|
|
||||||
|
|
||||||
void main(int argc, char **argv);
|
|
||||||
|
|
||||||
void copyfile(char *pfile1, char *pfile2);
|
|
||||||
|
|
||||||
int nextchar(FILE *file, struct data *data);
|
|
||||||
|
|
||||||
void main(int argc, char **argv)
|
|
||||||
{
|
|
||||||
FILE *one, *two ;
|
|
||||||
int c1, c2 ;
|
|
||||||
|
|
||||||
if (argc != 3) {
|
|
||||||
fputs("Usage: fclndir file1 (=source) file2 (=target)\n", stderr) ;
|
|
||||||
exit(ERROR) ;
|
|
||||||
}
|
|
||||||
if (! (one = fopen(argv[1], "r"))) {
|
|
||||||
fprintf(stderr, "ERROR: source file unavailable: %s\n", argv[1]) ;
|
|
||||||
exit(ERROR) ;
|
|
||||||
}
|
|
||||||
if (! (two = fopen(argv[2], "r"))) {
|
|
||||||
fprintf(stderr, "No target file %s; copying source file...\n", argv[2]) ;
|
|
||||||
/* call to copyfile entered by ced, 12-29-89. */
|
|
||||||
copyfile(argv[1],argv[2]);
|
|
||||||
exit(DIFFERENT) ;
|
|
||||||
}
|
|
||||||
data1.linestart = data2.linestart = TRUE ;
|
|
||||||
data1.p = data2.p = linedir ;
|
|
||||||
data1.q = data2.q = linedir + 1 ;
|
|
||||||
c1 = nextchar(one, &data1) ;
|
|
||||||
c2 = nextchar(two, &data2) ;
|
|
||||||
while (c1 != EOF && c2 != EOF) {
|
|
||||||
if (c1 != c2) {
|
|
||||||
fprintf(stderr, "%s and %s are different; copying source...\n",
|
|
||||||
argv[1], argv[2]) ;
|
|
||||||
/* call to copyfile entered by ced, 12-1-89. */
|
|
||||||
copyfile(argv[1],argv[2]);
|
|
||||||
exit(DIFFERENT) ;
|
|
||||||
}
|
|
||||||
c1 = nextchar(one, &data1) ;
|
|
||||||
c2 = nextchar(two, &data2) ;
|
|
||||||
}
|
|
||||||
if (c1 != c2) {
|
|
||||||
fprintf(stderr, "%s and %s are different; copying source...\n",
|
|
||||||
argv[1], argv[2]) ;
|
|
||||||
/* call to copyfile entered by ced, 12-1-89. */
|
|
||||||
copyfile(argv[1],argv[2]);
|
|
||||||
exit(DIFFERENT) ;
|
|
||||||
}
|
|
||||||
fprintf(stderr, "%s and %s are the same\n", argv[1], argv[2]) ;
|
|
||||||
exit(SAME) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* copyfile inserted by ced, 12-1-89. */
|
|
||||||
void copyfile(char *pfile1, char *pfile2)
|
|
||||||
{
|
|
||||||
int ret;
|
|
||||||
char *pcmd;
|
|
||||||
int slen;
|
|
||||||
|
|
||||||
/* malloc space for the system command: two filenames, plus a command,
|
|
||||||
spaces, and the terminating null */
|
|
||||||
slen = strlen(pfile1) + strlen(pfile2) + 8;
|
|
||||||
pcmd = (char *) malloc(slen);
|
|
||||||
ret = snprintf(pcmd, slen, "cp %s %s",pfile1,pfile2);
|
|
||||||
ret = system(pcmd);
|
|
||||||
ret = snprintf(pcmd, slen, "touch %s",pfile2);
|
|
||||||
ret = system(pcmd);
|
|
||||||
free(pcmd);
|
|
||||||
}
|
|
||||||
|
|
||||||
int nextchar(FILE *file, struct data *data)
|
|
||||||
{
|
|
||||||
while (data->linestart) {
|
|
||||||
data->linestart = FALSE ;
|
|
||||||
for (data->p = linedir ; *data->p; data->p++)
|
|
||||||
if ((data->c = getc(file)) != (int) *data->p) break ;
|
|
||||||
/* Found a line directive, skip remainder of line */
|
|
||||||
if (! *data->p) {
|
|
||||||
data->c = getc(file) ;
|
|
||||||
while (data->c != '\n' && data->c != EOF)
|
|
||||||
data->c = getc(file) ;
|
|
||||||
data->linestart = TRUE ;
|
|
||||||
continue ;
|
|
||||||
}
|
|
||||||
/* Check for leading blanks */
|
|
||||||
else if (data->p == linedir) {
|
|
||||||
while (data->c == ' ' || data->c == '\t') data->c = getc(file) ;
|
|
||||||
if (data->c == '\n') {
|
|
||||||
data->linestart = TRUE ;
|
|
||||||
continue ;
|
|
||||||
}
|
|
||||||
return(data->c) ;
|
|
||||||
}
|
|
||||||
/* Line began with a prefix of #line */
|
|
||||||
data->q = linedir ;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (data->q < data->p) return(*data->q++) ;
|
|
||||||
else if (data->q++ != data->p) data->c = getc(file) ;
|
|
||||||
if (data->c == '\n') data->linestart = TRUE ;
|
|
||||||
return(data->c) ;
|
|
||||||
}
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue