home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2980 < prev    next >
Encoding:
Internet Message Format  |  1991-03-05  |  50.6 KB

  1. From: guido@cwi.nl (Guido van Rossum)
  2. Newsgroups: alt.sources
  3. Subject: STDWIN 0.9.5, Part 19/19
  4. Message-ID: <3083@charon.cwi.nl>
  5. Date: 4 Mar 91 11:58:40 GMT
  6.  
  7. Archive-name: stdwin/part19
  8.  
  9. #! /bin/sh
  10. # This is a shell archive.  Remove anything before this line, then unpack
  11. # it by saving it into a file and typing "sh file".  To overwrite existing
  12. # files, type "sh file -c".  You can also feed this as standard input via
  13. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  14. # will see the following message at the end:
  15. #        "End of archive 19 (of 19)."
  16. # Contents:  Appls/bed/Make.proto Appls/bed/bed.h Appls/bed/menu.h
  17. #   Appls/dpv/Make.proto Appls/dpv/To.do Appls/dpv/dpv.h
  18. #   Appls/dpv/funnyproto Appls/dpv/makefunny Appls/dpv/symbol
  19. #   Appls/dpv/symbola Appls/klok/Make.proto Appls/klok/amsetdate.c
  20. #   Appls/miniedit/Make.proto Appls/miniedit/regexp.h
  21. #   Appls/miniedit/regmagic.h Appls/repeat/Make.proto
  22. #   Appls/test/README Appls/test/test0.c Appls/test/test2.c
  23. #   Appls/tetris/Make.proto Conf/fastmkdep Conf/mkall
  24. #   Conf/proto.arch.mips Conf/proto.arch.sgi Conf/proto.arch.sun3
  25. #   Conf/proto.arch.sun4 Conf/proto.arch.tahoe Conf/proto.arch.vax
  26. #   Conf/proto.os.sunos Conf/proto.os.ultrix Conf/proto.port.alfa
  27. #   Conf/proto.port.x11 Conf/putlibmf Conf/putobjs Conf/putprogmf
  28. #   Conf/puttargets Conf/slowmkdep Doc/README Gen/waskync.c
  29. #   Gen/wperror.c Gen/wsetclip.c Gen/wsetcutbuffer.c
  30. #   Gen/wsetselection.c Gen/wstyle.c H/endian.h H/filedefs.h
  31. #   H/sigtype.h H/stdwconf.h H/style.h H/tilist.h H/vtserial.h
  32. #   Packs/vt/To.do Packs/vt/vtpanic.c Packs/vt/vtsend.c
  33. #   Packs/vt/vtusesend.c Ports/alfa/BUGS Ports/alfa/Make.proto
  34. #   Ports/alfa/menu.h Ports/mac_mpw/README Ports/msdos/README
  35. #   Ports/msdos/dir.h Ports/msdos/lib. Ports/x11/Make.proto
  36. # Wrapped by guido@voorn.cwi.nl on Mon Mar  4 12:37:39 1991
  37. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  38. if test -f 'Appls/bed/Make.proto' -a "${1}" != "-c" ; then 
  39.   echo shar: Will not clobber existing file \"'Appls/bed/Make.proto'\"
  40. else
  41. echo shar: Extracting \"'Appls/bed/Make.proto'\" \(264 characters\)
  42. sed "s/^X//" >'Appls/bed/Make.proto' <<'END_OF_FILE'
  43. X
  44. X#
  45. X# Makefile prototype for bed (bitmap editor) application
  46. X#
  47. X
  48. XBED=        $(APPLS)/bed
  49. X
  50. XSRCS=        \
  51. X        $(BED)/bed.c \
  52. X        $(BED)/file.c \
  53. X        $(BED)/fmenu.c \
  54. X        $(BED)/mouse.c \
  55. X        $(BED)/mmenu.c \
  56. X        $(BED)/opmenu.c
  57. X
  58. XSRCLIBS=    -lm
  59. X
  60. Xall:        bed
  61. X
  62. X_bootstrap:
  63. X    @putprogmf bed $(SRCS)
  64. END_OF_FILE
  65. if test 264 -ne `wc -c <'Appls/bed/Make.proto'`; then
  66.     echo shar: \"'Appls/bed/Make.proto'\" unpacked with wrong size!
  67. fi
  68. # end of 'Appls/bed/Make.proto'
  69. fi
  70. if test -f 'Appls/bed/bed.h' -a "${1}" != "-c" ; then 
  71.   echo shar: Will not clobber existing file \"'Appls/bed/bed.h'\"
  72. else
  73. echo shar: Extracting \"'Appls/bed/bed.h'\" \(80 characters\)
  74. sed "s/^X//" >'Appls/bed/bed.h' <<'END_OF_FILE'
  75. X#include "stdwin.h"
  76. X#include "tools.h"
  77. X
  78. X#define DEF_ROWS    48
  79. X#define    DEF_COLS    48
  80. END_OF_FILE
  81. if test 80 -ne `wc -c <'Appls/bed/bed.h'`; then
  82.     echo shar: \"'Appls/bed/bed.h'\" unpacked with wrong size!
  83. fi
  84. # end of 'Appls/bed/bed.h'
  85. fi
  86. if test -f 'Appls/bed/menu.h' -a "${1}" != "-c" ; then 
  87.   echo shar: Will not clobber existing file \"'Appls/bed/menu.h'\"
  88. else
  89. echo shar: Extracting \"'Appls/bed/menu.h'\" \(520 characters\)
  90. sed "s/^X//" >'Appls/bed/menu.h' <<'END_OF_FILE'
  91. X#define FILE_MENU    1
  92. X
  93. X#define OPEN_ITEM    0
  94. X#define NEW_ITEM    1
  95. X#define SAVE_ITEM    3
  96. X#define SAVE_AS_ITEM    4
  97. X#define QUIT_ITEM    6
  98. X
  99. X#define MODE_MENU    2
  100. X
  101. X#define PENCIL_ITEM    0
  102. X#define LINE_ITEM    1
  103. X#define CIRCLE_ITEM    2
  104. X#define SELECT_ITEM    3
  105. X
  106. X#define OP_MENU        3
  107. X
  108. X#define CLEAR_ITEM    0
  109. X#define SET_ITEM    1
  110. X#define INVERT_ITEM    2
  111. X#define TRANS_MAJ_ITEM    4
  112. X#define TRANS_MIN_ITEM    5
  113. X#define ROT_LEFT_ITEM    6
  114. X#define ROT_RIGHT_ITEM    7
  115. X#define FLIP_HOR_ITEM    8
  116. X#define FLIP_VERT_ITEM    9
  117. X#define ZOOM_IN        10
  118. X#define ZOOM_OUT    11
  119. X
  120. X#define NOPS        11
  121. END_OF_FILE
  122. if test 520 -ne `wc -c <'Appls/bed/menu.h'`; then
  123.     echo shar: \"'Appls/bed/menu.h'\" unpacked with wrong size!
  124. fi
  125. # end of 'Appls/bed/menu.h'
  126. fi
  127. if test -f 'Appls/dpv/Make.proto' -a "${1}" != "-c" ; then 
  128.   echo shar: Will not clobber existing file \"'Appls/dpv/Make.proto'\"
  129. else
  130. echo shar: Extracting \"'Appls/dpv/Make.proto'\" \(357 characters\)
  131. sed "s/^X//" >'Appls/dpv/Make.proto' <<'END_OF_FILE'
  132. X
  133. X#
  134. X# Makefile prototype for dpv application
  135. X#
  136. X
  137. XDPV=        $(APPLS)/dpv
  138. X
  139. XSRCS=        \
  140. X        $(DPV)/dpv.c \
  141. X        $(DPV)/dpvcontrol.c \
  142. X        $(DPV)/dpvfonts.c \
  143. X        $(DPV)/dpvfunny.c \
  144. X        $(DPV)/dpvmachine.c \
  145. X        $(DPV)/dpvoutput.c \
  146. X        $(DPV)/dpvparse.c \
  147. X        $(DPV)/dpvrestart.c
  148. X
  149. XSRCLIBS=    -lm
  150. X
  151. Xall:        dpv choose
  152. X
  153. X_bootstrap:
  154. X    @putprogmf dpv $(SRCS)
  155. X    @putprogmf choose $(DPV)/choose.c
  156. X
  157. END_OF_FILE
  158. if test 357 -ne `wc -c <'Appls/dpv/Make.proto'`; then
  159.     echo shar: \"'Appls/dpv/Make.proto'\" unpacked with wrong size!
  160. fi
  161. # end of 'Appls/dpv/Make.proto'
  162. fi
  163. if test -f 'Appls/dpv/To.do' -a "${1}" != "-c" ; then 
  164.   echo shar: Will not clobber existing file \"'Appls/dpv/To.do'\"
  165. else
  166. echo shar: Extracting \"'Appls/dpv/To.do'\" \(270 characters\)
  167. sed "s/^X//" >'Appls/dpv/To.do' <<'END_OF_FILE'
  168. XIncorporate Robbert's changes to arcs (see ../ndpv)
  169. X
  170. XRe-read the input (so user can rerun ditroff w/o need to restart dpv)
  171. X
  172. XRead the print menu from a file
  173. X
  174. XAdd ditroff new names to funny char table
  175. X
  176. XShow external page numbers; use external page numbers in GOTO command
  177. END_OF_FILE
  178. if test 270 -ne `wc -c <'Appls/dpv/To.do'`; then
  179.     echo shar: \"'Appls/dpv/To.do'\" unpacked with wrong size!
  180. fi
  181. # end of 'Appls/dpv/To.do'
  182. fi
  183. if test -f 'Appls/dpv/dpv.h' -a "${1}" != "-c" ; then 
  184.   echo shar: Will not clobber existing file \"'Appls/dpv/dpv.h'\"
  185. else
  186. echo shar: Extracting \"'Appls/dpv/dpv.h'\" \(461 characters\)
  187. sed "s/^X//" >'Appls/dpv/dpv.h' <<'END_OF_FILE'
  188. X/* dpv -- ditroff previewer.  Global definitions */
  189. X
  190. X#include "tools.h"
  191. X#include <stdwin.h>
  192. X
  193. X#define DEBUGABLE        /* defined if can set dbg flag (-d) */
  194. X
  195. X#define ABORT    2        /* exit code for aborts */
  196. X#define    FATAL    1        /* type of error */
  197. X#define WARNING 0        /* non-fatal (also !FATAL) */
  198. X
  199. Xextern int    dbg;        /* amount of debugging output wanted */
  200. X
  201. Xextern char    *progname;    /* program name, for error messages */
  202. Xextern char    *funnyfile;    /* alternate funnytab filename */
  203. END_OF_FILE
  204. if test 461 -ne `wc -c <'Appls/dpv/dpv.h'`; then
  205.     echo shar: \"'Appls/dpv/dpv.h'\" unpacked with wrong size!
  206. fi
  207. # end of 'Appls/dpv/dpv.h'
  208. fi
  209. if test -f 'Appls/dpv/funnyproto' -a "${1}" != "-c" ; then 
  210.   echo shar: Will not clobber existing file \"'Appls/dpv/funnyproto'\"
  211. else
  212. echo shar: Extracting \"'Appls/dpv/funnyproto'\" \(164 characters\)
  213. sed "s/^X//" >'Appls/dpv/funnyproto' <<'END_OF_FILE'
  214. Xff    -    "ff"
  215. Xfi    -    "fi"
  216. Xfl    -    "fl"
  217. XFi    -    "ffi"
  218. XFl    -    "ffl"
  219. XAE    -    "AE"
  220. XOE    -    "OE"
  221. Xae    -    "ae"
  222. Xoe    -    "oe"
  223. X\-    -    "-"
  224. X\_    -    "_"
  225. Xhy    -    "-"
  226. Xru    -    "_"
  227. Xem    -    "-"
  228. Xaa    -    "'"
  229. Xga    -    "`"
  230. Xct    -    "c"
  231. END_OF_FILE
  232. if test 164 -ne `wc -c <'Appls/dpv/funnyproto'`; then
  233.     echo shar: \"'Appls/dpv/funnyproto'\" unpacked with wrong size!
  234. fi
  235. # end of 'Appls/dpv/funnyproto'
  236. fi
  237. if test -f 'Appls/dpv/makefunny' -a "${1}" != "-c" ; then 
  238.   echo shar: Will not clobber existing file \"'Appls/dpv/makefunny'\"
  239. else
  240. echo shar: Extracting \"'Appls/dpv/makefunny'\" \(109 characters\)
  241. sed "s/^X//" >'Appls/dpv/makefunny' <<'END_OF_FILE'
  242. X#!/bin/sh
  243. X# Make funny character translation tables
  244. X
  245. Xfor file
  246. Xdo
  247. X    sed "s/ - /    `basename $file`    /" $file
  248. Xdone
  249. END_OF_FILE
  250. if test 109 -ne `wc -c <'Appls/dpv/makefunny'`; then
  251.     echo shar: \"'Appls/dpv/makefunny'\" unpacked with wrong size!
  252. fi
  253. chmod +x 'Appls/dpv/makefunny'
  254. # end of 'Appls/dpv/makefunny'
  255. fi
  256. if test -f 'Appls/dpv/symbol' -a "${1}" != "-c" ; then 
  257.   echo shar: Will not clobber existing file \"'Appls/dpv/symbol'\"
  258. else
  259. echo shar: Extracting \"'Appls/dpv/symbol'\" \(630 characters\)
  260. sed "s/^X//" >'Appls/dpv/symbol' <<'END_OF_FILE'
  261. XoA - 0x22
  262. XoE - 0x24
  263. Xcn - 0x27
  264. X** - 0x2A
  265. Xpl - 0x2B
  266. Xmi - 0x2D
  267. Xsl - 0x2F
  268. Xeq - 0x3D
  269. X=~ - 0x40
  270. X*A - 0x41
  271. X*B - 0x42
  272. X*X - 0x43
  273. X*D - 0x44
  274. X*E - 0x45
  275. X*F - 0x46
  276. X*G - 0x47
  277. X*Y - 0x48
  278. X*I - 0x49
  279. X*K - 0x4B
  280. X*L - 0x4C
  281. X*M - 0x4D
  282. X*N - 0x4E
  283. X*O - 0x4F
  284. X*P - 0x50
  285. X*H - 0x51
  286. X*R - 0x52
  287. X*S - 0x53
  288. X*T - 0x54
  289. X*U - 0x55
  290. Xts - 0x56
  291. X*W - 0x57
  292. X*C - 0x58
  293. X*Q - 0x59
  294. X*Z - 0x5A
  295. Xul - 0x5F
  296. Xrn - 0x60
  297. X*a - 0x61
  298. X*b - 0x62
  299. X*x - 0x63
  300. X*d - 0x64
  301. X*e - 0x65
  302. X*f - 0x66
  303. X*g - 0x67
  304. X*y - 0x68
  305. X*i - 0x69
  306. X*f - 0x6A
  307. X*k - 0x6B
  308. X*l - 0x6C
  309. X*m - 0x6D
  310. X*n - 0x6E
  311. X*o - 0x6F
  312. X*p - 0x70
  313. X*h - 0x71
  314. X*r - 0x72
  315. X*s - 0x73
  316. X*t - 0x74
  317. X*u - 0x75
  318. X*w - 0x77
  319. X*c - 0x78
  320. X*q - 0x79
  321. X*z - 0x7A
  322. Xor - 0x7C
  323. Xap - 0x7E
  324. END_OF_FILE
  325. if test 630 -ne `wc -c <'Appls/dpv/symbol'`; then
  326.     echo shar: \"'Appls/dpv/symbol'\" unpacked with wrong size!
  327. fi
  328. # end of 'Appls/dpv/symbol'
  329. fi
  330. if test -f 'Appls/dpv/symbola' -a "${1}" != "-c" ; then 
  331.   echo shar: Will not clobber existing file \"'Appls/dpv/symbola'\"
  332. else
  333. echo shar: Extracting \"'Appls/dpv/symbola'\" \(630 characters\)
  334. sed "s/^X//" >'Appls/dpv/symbola' <<'END_OF_FILE'
  335. Xfm - 0x22
  336. X<= - 0x23
  337. Xsl - 0x24
  338. Xif - 0x25
  339. X$D - 0x26
  340. Xbs - 0x29
  341. Xlr - 0x2B
  342. X<- - 0x2C
  343. Xua - 0x2D
  344. X-> - 0x2E
  345. Xda - 0x2F
  346. Xde - 0x30
  347. X+- - 0x31
  348. X>= - 0x33
  349. Xmu - 0x34
  350. Xpt - 0x35
  351. Xpd - 0x36
  352. Xbu - 0x37
  353. Xdi - 0x38
  354. X!= - 0x39
  355. X== - 0x3A
  356. X~= - 0x3B
  357. Xbr - 0x3D
  358. XAh - 0x40
  359. Xc* - 0x44
  360. Xc+ - 0x45
  361. Xes - 0x46
  362. Xca - 0x47
  363. Xcu - 0x48
  364. Xsp - 0x49
  365. Xip - 0x4A
  366. Xsb - 0x4C
  367. Xib - 0x4D
  368. Xmo - 0x4E
  369. Xnm - 0x4F
  370. Xan - 0x50
  371. Xgr - 0x51
  372. Xrg - 0x52
  373. Xco - 0x53
  374. Xsr - 0x56
  375. Xno - 0x58
  376. XAN - 0x59
  377. XOR - 0x5A
  378. X<> - 0x5B
  379. XDl - 0x5C
  380. XDu - 0x5D
  381. XDr - 0x5E
  382. XDd - 0x5F
  383. Xfo - 0x61
  384. Xlc - 0x69
  385. Xlf - 0x6B
  386. Xlt - 0x6C
  387. Xlk - 0x6D
  388. Xlb - 0x6E
  389. Xbv - 0x6F
  390. Xbs - 0x70
  391. Xfc - 0x71
  392. Xis - 0x72
  393. Xrc - 0x79
  394. Xrf - 0x7B
  395. Xrt - 0x7C
  396. Xrk - 0x7D
  397. Xrb - 0x7E
  398. END_OF_FILE
  399. if test 630 -ne `wc -c <'Appls/dpv/symbola'`; then
  400.     echo shar: \"'Appls/dpv/symbola'\" unpacked with wrong size!
  401. fi
  402. # end of 'Appls/dpv/symbola'
  403. fi
  404. if test -f 'Appls/klok/Make.proto' -a "${1}" != "-c" ; then 
  405.   echo shar: Will not clobber existing file \"'Appls/klok/Make.proto'\"
  406. else
  407. echo shar: Extracting \"'Appls/klok/Make.proto'\" \(186 characters\)
  408. sed "s/^X//" >'Appls/klok/Make.proto' <<'END_OF_FILE'
  409. X
  410. X#
  411. X# Makefile prototype for klok application
  412. X#
  413. X
  414. XKLOK=        $(APPLS)/klok
  415. X
  416. XSRCS=        \
  417. X        $(KLOK)/klok.c \
  418. X        $(KLOK)/bsdsetdate.c
  419. X
  420. XSRCLIBS=    -lm
  421. X
  422. Xall:        klok
  423. X
  424. X_bootstrap:
  425. X    @putprogmf klok $(SRCS)
  426. X
  427. END_OF_FILE
  428. if test 186 -ne `wc -c <'Appls/klok/Make.proto'`; then
  429.     echo shar: \"'Appls/klok/Make.proto'\" unpacked with wrong size!
  430. fi
  431. # end of 'Appls/klok/Make.proto'
  432. fi
  433. if test -f 'Appls/klok/amsetdate.c' -a "${1}" != "-c" ; then 
  434.   echo shar: Will not clobber existing file \"'Appls/klok/amsetdate.c'\"
  435. else
  436. echo shar: Extracting \"'Appls/klok/amsetdate.c'\" \(638 characters\)
  437. sed "s/^X//" >'Appls/klok/amsetdate.c' <<'END_OF_FILE'
  438. X/* Set the date and time -- Amoeba version */
  439. X
  440. X#include <amtools.h>
  441. X#include <module/tod.h>
  442. X#include <ampolicy.h>
  443. X
  444. X#include <time.h>
  445. X
  446. X/* Set the date and time from a struct tm.
  447. X   The input time is in local time.
  448. X   If 'minchange' is zero, minutes and seconds are not taken
  449. X   from the input but from the current system time. */
  450. X
  451. Xint
  452. Xsetdatetime(tp, minchange)
  453. X    struct tm *tp;
  454. X    int minchange; /* nonzero if we must reset minutes and seconds, too */
  455. X{
  456. X    time_t new;
  457. X    errstat err;
  458. X    
  459. X    new = mktime(tp);
  460. X    if (!minchange)
  461. X        new = new/3600*3600 + time((time_t *)0)%3600;
  462. X    if (tod_settime(new, 0) != STD_OK) {
  463. X        return -1;
  464. X    }
  465. X    else
  466. X        return 0;
  467. X}
  468. END_OF_FILE
  469. if test 638 -ne `wc -c <'Appls/klok/amsetdate.c'`; then
  470.     echo shar: \"'Appls/klok/amsetdate.c'\" unpacked with wrong size!
  471. fi
  472. # end of 'Appls/klok/amsetdate.c'
  473. fi
  474. if test -f 'Appls/miniedit/Make.proto' -a "${1}" != "-c" ; then 
  475.   echo shar: Will not clobber existing file \"'Appls/miniedit/Make.proto'\"
  476. else
  477. echo shar: Extracting \"'Appls/miniedit/Make.proto'\" \(224 characters\)
  478. sed "s/^X//" >'Appls/miniedit/Make.proto' <<'END_OF_FILE'
  479. X
  480. X#
  481. X# Makefile prototype for miniedit application
  482. X#
  483. X
  484. XMINIEDIT=    $(APPLS)/miniedit
  485. X
  486. XSRCS=        \
  487. X        $(MINIEDIT)/miniedit.c \
  488. X        $(MINIEDIT)/regexp.c \
  489. X        $(MINIEDIT)/regsub.c
  490. X
  491. Xall:        miniedit
  492. X
  493. X_bootstrap:
  494. X    @putprogmf miniedit $(SRCS)
  495. X
  496. END_OF_FILE
  497. if test 224 -ne `wc -c <'Appls/miniedit/Make.proto'`; then
  498.     echo shar: \"'Appls/miniedit/Make.proto'\" unpacked with wrong size!
  499. fi
  500. # end of 'Appls/miniedit/Make.proto'
  501. fi
  502. if test -f 'Appls/miniedit/regexp.h' -a "${1}" != "-c" ; then 
  503.   echo shar: Will not clobber existing file \"'Appls/miniedit/regexp.h'\"
  504. else
  505. echo shar: Extracting \"'Appls/miniedit/regexp.h'\" \(683 characters\)
  506. sed "s/^X//" >'Appls/miniedit/regexp.h' <<'END_OF_FILE'
  507. X/*
  508. X * Definitions etc. for regexp(3) routines.
  509. X *
  510. X * Caveat:  this is V8 regexp(3) [actually, a reimplementation thereof],
  511. X * not the System V one.
  512. X */
  513. X
  514. X#ifdef THINK_C
  515. X#define STATIC /**/
  516. X#endif
  517. X#define MULTILINE
  518. X
  519. X#define NSUBEXP  10
  520. Xtypedef struct regexp {
  521. X    char *startp[NSUBEXP];
  522. X    char *endp[NSUBEXP];
  523. X    char regstart;        /* Internal use only. */
  524. X    char reganch;        /* Internal use only. */
  525. X    char *regmust;        /* Internal use only. */
  526. X    int regmlen;        /* Internal use only. */
  527. X    char program[1];    /* Unwarranted chumminess with compiler. */
  528. X} regexp;
  529. X
  530. Xextern regexp *regcomp();
  531. Xextern int regexec();
  532. X#ifdef MULTILINE
  533. Xextern int reglexec();
  534. X#endif
  535. Xextern void regsub();
  536. Xextern void regerror();
  537. END_OF_FILE
  538. if test 683 -ne `wc -c <'Appls/miniedit/regexp.h'`; then
  539.     echo shar: \"'Appls/miniedit/regexp.h'\" unpacked with wrong size!
  540. fi
  541. # end of 'Appls/miniedit/regexp.h'
  542. fi
  543. if test -f 'Appls/miniedit/regmagic.h' -a "${1}" != "-c" ; then 
  544.   echo shar: Will not clobber existing file \"'Appls/miniedit/regmagic.h'\"
  545. else
  546. echo shar: Extracting \"'Appls/miniedit/regmagic.h'\" \(153 characters\)
  547. sed "s/^X//" >'Appls/miniedit/regmagic.h' <<'END_OF_FILE'
  548. X/*
  549. X * The first byte of the regexp internal "program" is actually this magic
  550. X * number; the start node begins in the second byte.
  551. X */
  552. X#define    MAGIC    0234
  553. END_OF_FILE
  554. if test 153 -ne `wc -c <'Appls/miniedit/regmagic.h'`; then
  555.     echo shar: \"'Appls/miniedit/regmagic.h'\" unpacked with wrong size!
  556. fi
  557. # end of 'Appls/miniedit/regmagic.h'
  558. fi
  559. if test -f 'Appls/repeat/Make.proto' -a "${1}" != "-c" ; then 
  560.   echo shar: Will not clobber existing file \"'Appls/repeat/Make.proto'\"
  561. else
  562. echo shar: Extracting \"'Appls/repeat/Make.proto'\" \(161 characters\)
  563. sed "s/^X//" >'Appls/repeat/Make.proto' <<'END_OF_FILE'
  564. X
  565. X#
  566. X# Makefile prototype for repeat application
  567. X#
  568. X
  569. XREPEAT=        $(APPLS)/repeat
  570. X
  571. XSRCS=        \
  572. X        $(REPEAT)/repeat.c
  573. X
  574. Xall:        repeat
  575. X
  576. X_bootstrap:
  577. X    @putprogmf repeat $(SRCS)
  578. X
  579. END_OF_FILE
  580. if test 161 -ne `wc -c <'Appls/repeat/Make.proto'`; then
  581.     echo shar: \"'Appls/repeat/Make.proto'\" unpacked with wrong size!
  582. fi
  583. # end of 'Appls/repeat/Make.proto'
  584. fi
  585. if test -f 'Appls/test/README' -a "${1}" != "-c" ; then 
  586.   echo shar: Will not clobber existing file \"'Appls/test/README'\"
  587. else
  588. echo shar: Extracting \"'Appls/test/README'\" \(63 characters\)
  589. sed "s/^X//" >'Appls/test/README' <<'END_OF_FILE'
  590. XThis is a random collection of sometimes-useful test programs.
  591. END_OF_FILE
  592. if test 63 -ne `wc -c <'Appls/test/README'`; then
  593.     echo shar: \"'Appls/test/README'\" unpacked with wrong size!
  594. fi
  595. # end of 'Appls/test/README'
  596. fi
  597. if test -f 'Appls/test/test0.c' -a "${1}" != "-c" ; then 
  598.   echo shar: Will not clobber existing file \"'Appls/test/test0.c'\"
  599. else
  600. echo shar: Extracting \"'Appls/test/test0.c'\" \(167 characters\)
  601. sed "s/^X//" >'Appls/test/test0.c' <<'END_OF_FILE'
  602. X/* Minimal test -- just call winit() and wdone(). */
  603. X
  604. X#include "stdwin.h"
  605. X
  606. Xmain(argc, argv)
  607. X    int argc;
  608. X    char **argv;
  609. X{
  610. X    winitargs(&argc, &argv);
  611. X    wdone();
  612. X    exit(0);
  613. X}
  614. END_OF_FILE
  615. if test 167 -ne `wc -c <'Appls/test/test0.c'`; then
  616.     echo shar: \"'Appls/test/test0.c'\" unpacked with wrong size!
  617. fi
  618. # end of 'Appls/test/test0.c'
  619. fi
  620. if test -f 'Appls/test/test2.c' -a "${1}" != "-c" ; then 
  621.   echo shar: Will not clobber existing file \"'Appls/test/test2.c'\"
  622. else
  623. echo shar: Extracting \"'Appls/test/test2.c'\" \(544 characters\)
  624. sed "s/^X//" >'Appls/test/test2.c' <<'END_OF_FILE'
  625. X/* Typical test -- a window saying Hello, world. */
  626. X
  627. X#include "stdwin.h"
  628. X
  629. Xvoid
  630. Xdrawproc(win, l, t, r, b)
  631. X    WINDOW *win;
  632. X{
  633. X    wdrawtext(0, 0, "Hello, world", -1);
  634. X}
  635. X
  636. Xmain(argc, argv)
  637. X    int argc;
  638. X    char **argv;
  639. X{
  640. X    WINDOW *win;
  641. X    winitargs(&argc, &argv);
  642. X    win= wopen("Hello test", drawproc);
  643. X    for (;;) {
  644. X        EVENT e;
  645. X        wgetevent(&e);
  646. X        if (e.type == WE_CHAR && e.u.character == 'q')
  647. X            break;
  648. X        if (e.type == WE_CLOSE ||
  649. X            e.type == WE_COMMAND &&
  650. X            (e.u.command == WC_CLOSE || e.u.command == WC_CANCEL))
  651. X            break;
  652. X    }
  653. X    wclose(win);
  654. X    wdone();
  655. X    exit(0);
  656. X}
  657. END_OF_FILE
  658. if test 544 -ne `wc -c <'Appls/test/test2.c'`; then
  659.     echo shar: \"'Appls/test/test2.c'\" unpacked with wrong size!
  660. fi
  661. # end of 'Appls/test/test2.c'
  662. fi
  663. if test -f 'Appls/tetris/Make.proto' -a "${1}" != "-c" ; then 
  664.   echo shar: Will not clobber existing file \"'Appls/tetris/Make.proto'\"
  665. else
  666. echo shar: Extracting \"'Appls/tetris/Make.proto'\" \(161 characters\)
  667. sed "s/^X//" >'Appls/tetris/Make.proto' <<'END_OF_FILE'
  668. X
  669. X#
  670. X# Makefile prototype for tetris application
  671. X#
  672. X
  673. XTETRIS=        $(APPLS)/tetris
  674. X
  675. XSRCS=        \
  676. X        $(TETRIS)/tetris.c
  677. X
  678. Xall:        tetris
  679. X
  680. X_bootstrap:
  681. X    @putprogmf tetris $(SRCS)
  682. X
  683. END_OF_FILE
  684. if test 161 -ne `wc -c <'Appls/tetris/Make.proto'`; then
  685.     echo shar: \"'Appls/tetris/Make.proto'\" unpacked with wrong size!
  686. fi
  687. # end of 'Appls/tetris/Make.proto'
  688. fi
  689. if test -f 'Conf/fastmkdep' -a "${1}" != "-c" ; then 
  690.   echo shar: Will not clobber existing file \"'Conf/fastmkdep'\"
  691. else
  692. echo shar: Extracting \"'Conf/fastmkdep'\" \(304 characters\)
  693. sed "s/^X//" >'Conf/fastmkdep' <<'END_OF_FILE'
  694. X#! /bin/sh
  695. X
  696. X# Update the dependencies of the Makefile in place.
  697. X# usage: $0 $(CFLAGS) $(SRCS)
  698. X
  699. X{
  700. X    sed '/^# DO NOT DELETE THIS LINE/,$d' Makefile &&
  701. X    echo &&
  702. X    echo '# DO NOT DELETE THIS LINE -- make depend depends on it.' &&
  703. X    echo &&
  704. X    cc -M $*
  705. X} >>Mf.dep &&
  706. Xmv Makefile Makefile.bak &&
  707. Xmv Mf.dep Makefile
  708. END_OF_FILE
  709. if test 304 -ne `wc -c <'Conf/fastmkdep'`; then
  710.     echo shar: \"'Conf/fastmkdep'\" unpacked with wrong size!
  711. fi
  712. chmod +x 'Conf/fastmkdep'
  713. # end of 'Conf/fastmkdep'
  714. fi
  715. if test -f 'Conf/mkall' -a "${1}" != "-c" ; then 
  716.   echo shar: Will not clobber existing file \"'Conf/mkall'\"
  717. else
  718. echo shar: Extracting \"'Conf/mkall'\" \(140 characters\)
  719. sed "s/^X//" >'Conf/mkall' <<'END_OF_FILE'
  720. Xecho + mkmf $*
  721. Xmkmf $*
  722. Xfor dir in `ls ../Appls`
  723. Xdo
  724. X    if test -f ../Appls/$dir/Make.proto
  725. X    then
  726. X        echo + mkmf $* $dir
  727. X        mkmf $* $dir
  728. X    fi
  729. Xdone
  730. END_OF_FILE
  731. if test 140 -ne `wc -c <'Conf/mkall'`; then
  732.     echo shar: \"'Conf/mkall'\" unpacked with wrong size!
  733. fi
  734. chmod +x 'Conf/mkall'
  735. # end of 'Conf/mkall'
  736. fi
  737. if test -f 'Conf/proto.arch.mips' -a "${1}" != "-c" ; then 
  738.   echo shar: Will not clobber existing file \"'Conf/proto.arch.mips'\"
  739. else
  740. echo shar: Extracting \"'Conf/proto.arch.mips'\" \(172 characters\)
  741. sed "s/^X//" >'Conf/proto.arch.mips' <<'END_OF_FILE'
  742. X
  743. X#
  744. X# Definitions pertaining to the DEC mips architecture
  745. X#
  746. X
  747. X# The name of this architecture
  748. XARCH=        mips
  749. X
  750. X# Script to add dependencies to Makefile
  751. XMKDEP=        $(CONF)/fastmkdep
  752. END_OF_FILE
  753. if test 172 -ne `wc -c <'Conf/proto.arch.mips'`; then
  754.     echo shar: \"'Conf/proto.arch.mips'\" unpacked with wrong size!
  755. fi
  756. # end of 'Conf/proto.arch.mips'
  757. fi
  758. if test -f 'Conf/proto.arch.sgi' -a "${1}" != "-c" ; then 
  759.   echo shar: Will not clobber existing file \"'Conf/proto.arch.sgi'\"
  760. else
  761. echo shar: Extracting \"'Conf/proto.arch.sgi'\" \(500 characters\)
  762. sed "s/^X//" >'Conf/proto.arch.sgi' <<'END_OF_FILE'
  763. X
  764. X#
  765. X# Definitions pertaining to architecture SGI (Silicon Graphics)
  766. X#
  767. X
  768. X# Define the name of this architecture here.
  769. X# This is used as a subdirectory name where all the objects for this
  770. X# architecture live: $(TOP)/Build/$(ARCH)
  771. X#
  772. XARCH=        sgi
  773. X
  774. X# The system libraries to link with programs that use termcap and X11
  775. X#
  776. XLIBTERMCAP=    -ltermcap
  777. XLIBX11=        -lX11 -lbsd
  778. X
  779. X# Pretend it's an ANSI compiler (not quite true but close)
  780. X# This assumes IRIX 3.3 or higher
  781. X#
  782. XARCHOPTS=    -prototypes -acpp
  783. XARCHDEFS=    -D__STDC__
  784. END_OF_FILE
  785. if test 500 -ne `wc -c <'Conf/proto.arch.sgi'`; then
  786.     echo shar: \"'Conf/proto.arch.sgi'\" unpacked with wrong size!
  787. fi
  788. # end of 'Conf/proto.arch.sgi'
  789. fi
  790. if test -f 'Conf/proto.arch.sun3' -a "${1}" != "-c" ; then 
  791.   echo shar: Will not clobber existing file \"'Conf/proto.arch.sun3'\"
  792. else
  793. echo shar: Extracting \"'Conf/proto.arch.sun3'\" \(270 characters\)
  794. sed "s/^X//" >'Conf/proto.arch.sun3' <<'END_OF_FILE'
  795. X
  796. X#
  797. X# Definitions pertaining to Sun3 (mc680x0) architecture
  798. X#
  799. X
  800. X# Define the name of this architecture here.
  801. X# This is used as a subdirectory name where all the objects for this
  802. X# architecture live: $(TOP)/Build/$(ARCH)
  803. X#
  804. XARCH=        sun3
  805. X
  806. XOSINCLS=    -I/usr/local/X/usr/include
  807. X
  808. END_OF_FILE
  809. if test 270 -ne `wc -c <'Conf/proto.arch.sun3'`; then
  810.     echo shar: \"'Conf/proto.arch.sun3'\" unpacked with wrong size!
  811. fi
  812. # end of 'Conf/proto.arch.sun3'
  813. fi
  814. if test -f 'Conf/proto.arch.sun4' -a "${1}" != "-c" ; then 
  815.   echo shar: Will not clobber existing file \"'Conf/proto.arch.sun4'\"
  816. else
  817. echo shar: Extracting \"'Conf/proto.arch.sun4'\" \(231 characters\)
  818. sed "s/^X//" >'Conf/proto.arch.sun4' <<'END_OF_FILE'
  819. X
  820. X#
  821. X# Definitions pertaining to Sun4 (SPARC) architecture
  822. X#
  823. X
  824. X# Define the name of this architecture here.
  825. X# This is used as a subdirectory name where all the objects for this
  826. X# architecture live: $(TOP)/Build/$(ARCH)
  827. X#
  828. XARCH=        sun4
  829. X
  830. END_OF_FILE
  831. if test 231 -ne `wc -c <'Conf/proto.arch.sun4'`; then
  832.     echo shar: \"'Conf/proto.arch.sun4'\" unpacked with wrong size!
  833. fi
  834. # end of 'Conf/proto.arch.sun4'
  835. fi
  836. if test -f 'Conf/proto.arch.tahoe' -a "${1}" != "-c" ; then 
  837.   echo shar: Will not clobber existing file \"'Conf/proto.arch.tahoe'\"
  838. else
  839. echo shar: Extracting \"'Conf/proto.arch.tahoe'\" \(174 characters\)
  840. sed "s/^X//" >'Conf/proto.arch.tahoe' <<'END_OF_FILE'
  841. X
  842. X#
  843. X# Definitions pertaining to  the TAHOE architecture
  844. X#
  845. X
  846. X# The name of this architecture
  847. XARCH=        tahoe
  848. X
  849. X# Program to update Makefile dependencies
  850. X#
  851. XMKDEP=        $(CONF)/slowmkdep
  852. END_OF_FILE
  853. if test 174 -ne `wc -c <'Conf/proto.arch.tahoe'`; then
  854.     echo shar: \"'Conf/proto.arch.tahoe'\" unpacked with wrong size!
  855. fi
  856. # end of 'Conf/proto.arch.tahoe'
  857. fi
  858. if test -f 'Conf/proto.arch.vax' -a "${1}" != "-c" ; then 
  859.   echo shar: Will not clobber existing file \"'Conf/proto.arch.vax'\"
  860. else
  861. echo shar: Extracting \"'Conf/proto.arch.vax'\" \(174 characters\)
  862. sed "s/^X//" >'Conf/proto.arch.vax' <<'END_OF_FILE'
  863. X
  864. X#
  865. X# Definitions pertaining to  the DEC VAX architecture
  866. X#
  867. X
  868. X# The name of this architecture
  869. XARCH=        vax
  870. X
  871. X# Program to update Makefile dependencies
  872. X#
  873. XMKDEP=        $(CONF)/slowmkdep
  874. END_OF_FILE
  875. if test 174 -ne `wc -c <'Conf/proto.arch.vax'`; then
  876.     echo shar: \"'Conf/proto.arch.vax'\" unpacked with wrong size!
  877. fi
  878. # end of 'Conf/proto.arch.vax'
  879. fi
  880. if test -f 'Conf/proto.os.sunos' -a "${1}" != "-c" ; then 
  881.   echo shar: Will not clobber existing file \"'Conf/proto.os.sunos'\"
  882. else
  883. echo shar: Extracting \"'Conf/proto.os.sunos'\" \(444 characters\)
  884. sed "s/^X//" >'Conf/proto.os.sunos' <<'END_OF_FILE'
  885. X
  886. X#
  887. X# Definitions pertaining to SunOS (hopefully all versions)
  888. X#
  889. X
  890. X# Define the name of this O.S. here.
  891. X#
  892. XOS=        sunos
  893. X
  894. X# BSD-based systems will need ranlib to be called after a library is
  895. X# changed.
  896. X#
  897. XRANLIB=        ranlib            # for BSD-based systems
  898. X
  899. X# The mkdep using cc -M will work for any architecture (I hope)
  900. X#
  901. XMKDEP=        $(CONF)/fastmkdep
  902. X
  903. X# The system libraries to link with programs that use termcap and X11
  904. X#
  905. XLIBTERMCAP=    -ltermcap
  906. XLIBX11=        -lX11
  907. X
  908. END_OF_FILE
  909. if test 444 -ne `wc -c <'Conf/proto.os.sunos'`; then
  910.     echo shar: \"'Conf/proto.os.sunos'\" unpacked with wrong size!
  911. fi
  912. # end of 'Conf/proto.os.sunos'
  913. fi
  914. if test -f 'Conf/proto.os.ultrix' -a "${1}" != "-c" ; then 
  915.   echo shar: Will not clobber existing file \"'Conf/proto.os.ultrix'\"
  916. else
  917. echo shar: Extracting \"'Conf/proto.os.ultrix'\" \(182 characters\)
  918. sed "s/^X//" >'Conf/proto.os.ultrix' <<'END_OF_FILE'
  919. X
  920. X#
  921. X# Definitions pertaining to DEC Ultrix (tested with 2.2 or 3.0)
  922. X#
  923. X
  924. XOS=        ultrix
  925. XRANLIB=        ranlib
  926. X
  927. X# MKDEP is defined in proto.arch.{vax,mips}
  928. X
  929. XLIBTERMCAP=    -ltermcap
  930. XLIBX11=        -lX11
  931. X
  932. END_OF_FILE
  933. if test 182 -ne `wc -c <'Conf/proto.os.ultrix'`; then
  934.     echo shar: \"'Conf/proto.os.ultrix'\" unpacked with wrong size!
  935. fi
  936. # end of 'Conf/proto.os.ultrix'
  937. fi
  938. if test -f 'Conf/proto.port.alfa' -a "${1}" != "-c" ; then 
  939.   echo shar: Will not clobber existing file \"'Conf/proto.port.alfa'\"
  940. else
  941. echo shar: Extracting \"'Conf/proto.port.alfa'\" \(544 characters\)
  942. sed "s/^X//" >'Conf/proto.port.alfa' <<'END_OF_FILE'
  943. X
  944. X#
  945. X# Definitions pertaining to the alphanumeric port (using termcap)
  946. X#
  947. X
  948. X# Define the name of this port.
  949. X# This is used as a subdirectory name where all the objects for this
  950. X# port for a given architecture live: $(TOP)/Build/$(ARCH)/$(PORT)
  951. X#
  952. XPORT=        alfa
  953. X
  954. X# Libraries to link with for the X11 port.
  955. X# The first part is boilerplate, the rest depends on which other
  956. X# libraries your port needs.
  957. X#
  958. XPORTOWNLIBS=    $(PORTBUILD)/lib/lib.a
  959. XPORTSYSLIBS=    $(LIBTERMCAP)
  960. XPORTLIBS=    $(PORTOWNLIBS) $(PORTSYSLIBS)
  961. X
  962. X# NB: -ltermcap is really OS-specific, sigh.
  963. X
  964. END_OF_FILE
  965. if test 544 -ne `wc -c <'Conf/proto.port.alfa'`; then
  966.     echo shar: \"'Conf/proto.port.alfa'\" unpacked with wrong size!
  967. fi
  968. # end of 'Conf/proto.port.alfa'
  969. fi
  970. if test -f 'Conf/proto.port.x11' -a "${1}" != "-c" ; then 
  971.   echo shar: Will not clobber existing file \"'Conf/proto.port.x11'\"
  972. else
  973. echo shar: Extracting \"'Conf/proto.port.x11'\" \(201 characters\)
  974. sed "s/^X//" >'Conf/proto.port.x11' <<'END_OF_FILE'
  975. X
  976. X#
  977. X# Definitions pertaining to the X11 port
  978. X#
  979. X
  980. XPORT=        x11
  981. X
  982. X# Libraries to link with for the X11 port
  983. XPORTOWNLIBS=    $(PORTBUILD)/lib/lib.a
  984. XPORTSYSLIBS=    $(LIBX11)
  985. XPORTLIBS=    $(PORTOWNLIBS) $(PORTSYSLIBS)
  986. X
  987. END_OF_FILE
  988. if test 201 -ne `wc -c <'Conf/proto.port.x11'`; then
  989.     echo shar: \"'Conf/proto.port.x11'\" unpacked with wrong size!
  990. fi
  991. # end of 'Conf/proto.port.x11'
  992. fi
  993. if test -f 'Conf/putlibmf' -a "${1}" != "-c" ; then 
  994.   echo shar: Will not clobber existing file \"'Conf/putlibmf'\"
  995. else
  996. echo shar: Extracting \"'Conf/putlibmf'\" \(548 characters\)
  997. sed "s/^X//" >'Conf/putlibmf' <<'END_OF_FILE'
  998. X#!/bin/sh
  999. X
  1000. X# Construct a segment of a Makefile for a library.
  1001. X# Writes to stdout.
  1002. X#
  1003. X# usage: putlibmf target $(SRCS)
  1004. X
  1005. X# Check that we have enough arguments
  1006. X#
  1007. Xcase $# in
  1008. X0|1)    echo "usage: $0 target $(SRCS)" 1>&2; exit 2;;
  1009. Xesac
  1010. X
  1011. X
  1012. X# Extract arguments; remaining arguments are source files
  1013. X#
  1014. XTARGET=$1; shift
  1015. X
  1016. Xputobjs "OBJS" $*
  1017. X
  1018. X# Construct rule to build target
  1019. X#
  1020. Xecho
  1021. Xecho "$TARGET: \$(OBJS)"
  1022. Xecho "    ar cr @$TARGET \$(OBJS)"
  1023. Xecho "    \$(RANLIB) @$TARGET"
  1024. Xecho "    mv @$TARGET $TARGET"
  1025. X#     ^^these are tabs!
  1026. Xecho
  1027. Xecho ".PRECIOUS: $TARGET"
  1028. X
  1029. Xputtargets $*
  1030. END_OF_FILE
  1031. if test 548 -ne `wc -c <'Conf/putlibmf'`; then
  1032.     echo shar: \"'Conf/putlibmf'\" unpacked with wrong size!
  1033. fi
  1034. chmod +x 'Conf/putlibmf'
  1035. # end of 'Conf/putlibmf'
  1036. fi
  1037. if test -f 'Conf/putobjs' -a "${1}" != "-c" ; then 
  1038.   echo shar: Will not clobber existing file \"'Conf/putobjs'\"
  1039. else
  1040. echo shar: Extracting \"'Conf/putobjs'\" \(310 characters\)
  1041. sed "s/^X//" >'Conf/putobjs' <<'END_OF_FILE'
  1042. X#! /bin/sh
  1043. X#
  1044. X# Construct OBJS macro definition
  1045. X# usage: putobjs macroname sourcefile ...
  1046. X
  1047. X# Find out which echo we have, sigh
  1048. Xcase `echo -n` in
  1049. X-n)    N=; C='\c';;
  1050. X*)    N=-n; C=;;
  1051. Xesac
  1052. X
  1053. Xecho
  1054. X
  1055. Xecho $N "$1=$C"
  1056. X
  1057. Xshift
  1058. X
  1059. Xfor file
  1060. Xdo
  1061. X    case $file in
  1062. X    *.c)    echo " \\"; echo $N "    `basename $file .c`.o$C";;
  1063. X    esac
  1064. Xdone
  1065. X
  1066. Xecho
  1067. END_OF_FILE
  1068. if test 310 -ne `wc -c <'Conf/putobjs'`; then
  1069.     echo shar: \"'Conf/putobjs'\" unpacked with wrong size!
  1070. fi
  1071. chmod +x 'Conf/putobjs'
  1072. # end of 'Conf/putobjs'
  1073. fi
  1074. if test -f 'Conf/putprogmf' -a "${1}" != "-c" ; then 
  1075.   echo shar: Will not clobber existing file \"'Conf/putprogmf'\"
  1076. else
  1077. echo shar: Extracting \"'Conf/putprogmf'\" \(575 characters\)
  1078. sed "s/^X//" >'Conf/putprogmf' <<'END_OF_FILE'
  1079. X#!/bin/sh
  1080. X
  1081. X# Construct a segment of a Makefile for a program.
  1082. X#
  1083. X# usage: putprogmf target "$(CFLAGS)" $(SRCS)
  1084. X
  1085. X# Check that we have enough arguments
  1086. X#
  1087. Xcase $# in
  1088. X0|1)    echo "usage: $0 target $(SRCS)" 1>&2; exit 2;;
  1089. Xesac
  1090. X
  1091. X# Extract arguments; remaining arguments are source files
  1092. X#
  1093. XTARGET=$1; shift
  1094. X
  1095. Xputobjs "OBJS_$TARGET" $*
  1096. X
  1097. X# Construct rule to build target
  1098. X#
  1099. Xecho
  1100. Xecho "$TARGET: \$(OBJS_$TARGET) $(PORTOWNLIBS)"
  1101. Xecho "    \$(CC) \$(CFLAGS) \$(OBJS_$TARGET) \$(LIBS) -o @$TARGET"
  1102. Xecho "    mv @$TARGET $TARGET"
  1103. X#     ^^these are tabs!
  1104. Xecho
  1105. Xecho ".PRECIOUS: $TARGET"
  1106. X
  1107. Xputtargets $*
  1108. END_OF_FILE
  1109. if test 575 -ne `wc -c <'Conf/putprogmf'`; then
  1110.     echo shar: \"'Conf/putprogmf'\" unpacked with wrong size!
  1111. fi
  1112. chmod +x 'Conf/putprogmf'
  1113. # end of 'Conf/putprogmf'
  1114. fi
  1115. if test -f 'Conf/puttargets' -a "${1}" != "-c" ; then 
  1116.   echo shar: Will not clobber existing file \"'Conf/puttargets'\"
  1117. else
  1118. echo shar: Extracting \"'Conf/puttargets'\" \(254 characters\)
  1119. sed "s/^X//" >'Conf/puttargets' <<'END_OF_FILE'
  1120. X#! /bin/sh
  1121. X#
  1122. X# Construct rules to build individual .o files
  1123. X# usage: puttargets $(SRCS)
  1124. X
  1125. Xfor file
  1126. Xdo
  1127. X    case $file in
  1128. X    *.c)    obj=`basename $file .c`.o
  1129. X        echo
  1130. X        echo "$obj: $file"
  1131. X        echo "    \$(CC) -c \$(CFLAGS) $file"
  1132. X        #     ^^this is a tab!
  1133. X        ;;
  1134. X    esac
  1135. Xdone
  1136. END_OF_FILE
  1137. if test 254 -ne `wc -c <'Conf/puttargets'`; then
  1138.     echo shar: \"'Conf/puttargets'\" unpacked with wrong size!
  1139. fi
  1140. chmod +x 'Conf/puttargets'
  1141. # end of 'Conf/puttargets'
  1142. fi
  1143. if test -f 'Conf/slowmkdep' -a "${1}" != "-c" ; then 
  1144.   echo shar: Will not clobber existing file \"'Conf/slowmkdep'\"
  1145. else
  1146. echo shar: Extracting \"'Conf/slowmkdep'\" \(156 characters\)
  1147. sed "s/^X//" >'Conf/slowmkdep' <<'END_OF_FILE'
  1148. X#! /bin/sh
  1149. X
  1150. X# This script should eventually update the Makefile to contain
  1151. X# dependencies.  For now, call Todd Brunhoff's makedepend.
  1152. X
  1153. Xmakedepend -Dunix $*
  1154. END_OF_FILE
  1155. if test 156 -ne `wc -c <'Conf/slowmkdep'`; then
  1156.     echo shar: \"'Conf/slowmkdep'\" unpacked with wrong size!
  1157. fi
  1158. chmod +x 'Conf/slowmkdep'
  1159. # end of 'Conf/slowmkdep'
  1160. fi
  1161. if test -f 'Doc/README' -a "${1}" != "-c" ; then 
  1162.   echo shar: Will not clobber existing file \"'Doc/README'\"
  1163. else
  1164. echo shar: Extracting \"'Doc/README'\" \(487 characters\)
  1165. sed "s/^X//" >'Doc/README' <<'END_OF_FILE'
  1166. XUnfortunately the documentation for STDWIN is in a sorry state.
  1167. XThere is nothing here that even remotely resembles a user manual;
  1168. X"paper.ms" comes closest to a full description.
  1169. X
  1170. XABOUT        the old STDWIN blurb that I used to mail out
  1171. Xpaper.ms    the original STDWIN report
  1172. Xseldoc.ms    describes using X11 Selections and Cut Buffers in STDWIN
  1173. Xmacros.ms    macrose used by seldoc.ms
  1174. Xvtrmdoc.ms    describes the VTRM package used by ../Ports/alfa
  1175. Xman/        manpages for dpv, packages and X11 stdwin
  1176. X
  1177. X--Guido
  1178. END_OF_FILE
  1179. if test 487 -ne `wc -c <'Doc/README'`; then
  1180.     echo shar: \"'Doc/README'\" unpacked with wrong size!
  1181. fi
  1182. # end of 'Doc/README'
  1183. fi
  1184. if test -f 'Gen/waskync.c' -a "${1}" != "-c" ; then 
  1185.   echo shar: Will not clobber existing file \"'Gen/waskync.c'\"
  1186. else
  1187. echo shar: Extracting \"'Gen/waskync.c'\" \(726 characters\)
  1188. sed "s/^X//" >'Gen/waskync.c' <<'END_OF_FILE'
  1189. X/* STDWIN -- ASK YES/NO QUESTIONS. */
  1190. X
  1191. X#include "tools.h"
  1192. X#include "stdwin.h"
  1193. X
  1194. X/* Ask a yes/no question.
  1195. X   Return value: yes ==> 1, no ==> 0, cancel (^C) ==> -1.
  1196. X   Only the first non-blank character of the string typed is checked.
  1197. X   The 'deflt' parameter is returned when an empty string is typed. */
  1198. X
  1199. Xint
  1200. Xwaskync(question, def)
  1201. X    char *question;
  1202. X    int def;
  1203. X{
  1204. X    char buf[100];
  1205. X    char *p= "";
  1206. X    
  1207. X    switch (def) {
  1208. X    case 1:    p= "Yes"; break;
  1209. X    case 0: p= "No"; break;
  1210. X    }
  1211. X    strcpy(buf, p);
  1212. X    for (;;) {
  1213. X        if (!waskstr(question, buf, sizeof buf))
  1214. X            return -1;
  1215. X        p= buf;
  1216. X        while (isspace(*p))
  1217. X            ++p;
  1218. X        if (*p == EOS)
  1219. X            return def;
  1220. X        switch (*p) {
  1221. X        case 'y':
  1222. X        case 'Y':    return 1;
  1223. X        case 'n':
  1224. X        case 'N':    return 0;
  1225. X        }
  1226. X        wfleep();
  1227. X    }
  1228. X}
  1229. END_OF_FILE
  1230. if test 726 -ne `wc -c <'Gen/waskync.c'`; then
  1231.     echo shar: \"'Gen/waskync.c'\" unpacked with wrong size!
  1232. fi
  1233. # end of 'Gen/waskync.c'
  1234. fi
  1235. if test -f 'Gen/wperror.c' -a "${1}" != "-c" ; then 
  1236.   echo shar: Will not clobber existing file \"'Gen/wperror.c'\"
  1237. else
  1238. echo shar: Extracting \"'Gen/wperror.c'\" \(229 characters\)
  1239. sed "s/^X//" >'Gen/wperror.c' <<'END_OF_FILE'
  1240. X/* STDWIN -- UNIVERSAL WPERROR. */
  1241. X
  1242. X#include "tools.h"
  1243. X#include "stdwin.h"
  1244. X
  1245. X/* STDWIN equivalent of perror(). */
  1246. X
  1247. Xvoid
  1248. Xwperror(name)
  1249. X    char *name;
  1250. X{
  1251. X    char buf[256];
  1252. X    
  1253. X    sprintf(buf, "%s: Error %d.", name, errno);
  1254. X    wmessage(buf);
  1255. X}
  1256. END_OF_FILE
  1257. if test 229 -ne `wc -c <'Gen/wperror.c'`; then
  1258.     echo shar: \"'Gen/wperror.c'\" unpacked with wrong size!
  1259. fi
  1260. # end of 'Gen/wperror.c'
  1261. fi
  1262. if test -f 'Gen/wsetclip.c' -a "${1}" != "-c" ; then 
  1263.   echo shar: Will not clobber existing file \"'Gen/wsetclip.c'\"
  1264. else
  1265. echo shar: Extracting \"'Gen/wsetclip.c'\" \(249 characters\)
  1266. sed "s/^X//" >'Gen/wsetclip.c' <<'END_OF_FILE'
  1267. X/* Simplified Cut Buffer Interface */
  1268. X
  1269. X#include "stdwin.h"
  1270. X#include "tools.h"
  1271. X
  1272. Xvoid
  1273. Xwsetclip(data, len)
  1274. X    char *data;
  1275. X    int len;
  1276. X{
  1277. X    wrotatecutbuffers(1);
  1278. X    wsetcutbuffer(0, data, len);
  1279. X}
  1280. X
  1281. Xchar *
  1282. Xwgetclip()
  1283. X{
  1284. X    int len;
  1285. X    return wgetcutbuffer(0, &len);
  1286. X}
  1287. END_OF_FILE
  1288. if test 249 -ne `wc -c <'Gen/wsetclip.c'`; then
  1289.     echo shar: \"'Gen/wsetclip.c'\" unpacked with wrong size!
  1290. fi
  1291. # end of 'Gen/wsetclip.c'
  1292. fi
  1293. if test -f 'Gen/wsetcutbuffer.c' -a "${1}" != "-c" ; then 
  1294.   echo shar: Will not clobber existing file \"'Gen/wsetcutbuffer.c'\"
  1295. else
  1296. echo shar: Extracting \"'Gen/wsetcutbuffer.c'\" \(615 characters\)
  1297. sed "s/^X//" >'Gen/wsetcutbuffer.c' <<'END_OF_FILE'
  1298. X/* Default Cut Buffer Interface */
  1299. X
  1300. X#include "stdwin.h"
  1301. X#include "tools.h"
  1302. X
  1303. Xstatic char *cb0data = NULL;
  1304. Xstatic int cb0len = 0;
  1305. X
  1306. Xvoid
  1307. Xwsetcutbuffer(ibuffer, data, len)
  1308. X    int ibuffer;
  1309. X    char *data;
  1310. X    int len;
  1311. X{
  1312. X    if (ibuffer != 0)
  1313. X        return;
  1314. X    if (cb0data != NULL)
  1315. X        free(cb0data);
  1316. X    cb0len = 0;
  1317. X    cb0data = malloc(len+1);
  1318. X    if (cb0data != NULL) {
  1319. X        memcpy(cb0data, data, len);
  1320. X        cb0data[len]= EOS;
  1321. X        cb0len = len;
  1322. X    }
  1323. X}
  1324. X
  1325. Xchar *
  1326. Xwgetcutbuffer(ibuffer, len_return)
  1327. X    int ibuffer;
  1328. X    int *len_return;
  1329. X{
  1330. X    if (ibuffer != 0)
  1331. X        return NULL;
  1332. X    *len_return = cb0len;
  1333. X    return cb0data;
  1334. X}
  1335. X
  1336. X/*ARGSUSED*/
  1337. Xvoid
  1338. Xwrotatecutbuffers(n)
  1339. X    int n;
  1340. X{
  1341. X}
  1342. END_OF_FILE
  1343. if test 615 -ne `wc -c <'Gen/wsetcutbuffer.c'`; then
  1344.     echo shar: \"'Gen/wsetcutbuffer.c'\" unpacked with wrong size!
  1345. fi
  1346. # end of 'Gen/wsetcutbuffer.c'
  1347. fi
  1348. if test -f 'Gen/wsetselection.c' -a "${1}" != "-c" ; then 
  1349.   echo shar: Will not clobber existing file \"'Gen/wsetselection.c'\"
  1350. else
  1351. echo shar: Extracting \"'Gen/wsetselection.c'\" \(354 characters\)
  1352. sed "s/^X//" >'Gen/wsetselection.c' <<'END_OF_FILE'
  1353. X/* Dummy Selection Interface (always fails) */
  1354. X
  1355. X#include "stdwin.h"
  1356. X#include "tools.h"
  1357. X
  1358. X/*ARGSUSED*/
  1359. Xint
  1360. Xwsetselection(win, sel, data, len)
  1361. X    WINDOW *win;
  1362. X    int sel;
  1363. X    char *data;
  1364. X    int len;
  1365. X{
  1366. X    return 0;
  1367. X}
  1368. X
  1369. X/*ARGSUSED*/
  1370. Xchar *
  1371. Xwgetselection(sel, len_return)
  1372. X    int sel;
  1373. X    int *len_return;
  1374. X{
  1375. X    return NULL;
  1376. X}
  1377. X
  1378. X/*ARGSUSED*/
  1379. Xvoid
  1380. Xwresetselection(sel)
  1381. X    int sel;
  1382. X{
  1383. X}
  1384. END_OF_FILE
  1385. if test 354 -ne `wc -c <'Gen/wsetselection.c'`; then
  1386.     echo shar: \"'Gen/wsetselection.c'\" unpacked with wrong size!
  1387. fi
  1388. # end of 'Gen/wsetselection.c'
  1389. fi
  1390. if test -f 'Gen/wstyle.c' -a "${1}" != "-c" ; then 
  1391.   echo shar: Will not clobber existing file \"'Gen/wstyle.c'\"
  1392. else
  1393. echo shar: Extracting \"'Gen/wstyle.c'\" \(609 characters\)
  1394. sed "s/^X//" >'Gen/wstyle.c' <<'END_OF_FILE'
  1395. X/* STDWIN -- TEXT ATTRIBUTES. */
  1396. X
  1397. X#include "tools.h"
  1398. X#include "stdwin.h"
  1399. X#include "style.h"
  1400. X
  1401. XTEXTATTR wattr;
  1402. X
  1403. X/* Setting text drawing parameters. */
  1404. X
  1405. Xvoid
  1406. Xwsetplain()
  1407. X{
  1408. X    wattr.style= PLAIN;
  1409. X}
  1410. X
  1411. Xvoid
  1412. Xwsethilite()
  1413. X{
  1414. X    wattr.style |= HILITE;
  1415. X}
  1416. X
  1417. Xvoid
  1418. Xwsetinverse()
  1419. X{
  1420. X    wattr.style |= INVERSE;
  1421. X}
  1422. X
  1423. Xvoid
  1424. Xwsetitalic()
  1425. X{
  1426. X    wattr.style |= ITALIC;
  1427. X}
  1428. X
  1429. Xvoid
  1430. Xwsetbold()
  1431. X{
  1432. X    wattr.style |= BOLD;
  1433. X}
  1434. X
  1435. Xvoid
  1436. Xwsetbolditalic()
  1437. X{
  1438. X    wattr.style |= BOLD|ITALIC;
  1439. X}
  1440. X
  1441. Xvoid
  1442. Xwsetunderline()
  1443. X{
  1444. X    wattr.style |= UNDERLINE;
  1445. X}
  1446. X
  1447. Xvoid
  1448. Xwgettextattr(attr)
  1449. X    TEXTATTR *attr;
  1450. X{
  1451. X    *attr= wattr;
  1452. X}
  1453. X
  1454. Xvoid
  1455. Xwsettextattr(attr)
  1456. X    TEXTATTR *attr;
  1457. X{
  1458. X    wattr= *attr;
  1459. X}
  1460. END_OF_FILE
  1461. if test 609 -ne `wc -c <'Gen/wstyle.c'`; then
  1462.     echo shar: \"'Gen/wstyle.c'\" unpacked with wrong size!
  1463. fi
  1464. # end of 'Gen/wstyle.c'
  1465. fi
  1466. if test -f 'H/endian.h' -a "${1}" != "-c" ; then 
  1467.   echo shar: Will not clobber existing file \"'H/endian.h'\"
  1468. else
  1469. echo shar: Extracting \"'H/endian.h'\" \(139 characters\)
  1470. sed "s/^X//" >'H/endian.h' <<'END_OF_FILE'
  1471. X/* Definitions for byte order. */
  1472. X
  1473. X#define LIL_ENDIAN    1234        /* VAX style */
  1474. X#define BIG_ENDIAN    4321        /* 68000 style */
  1475. X
  1476. Xextern int endian;
  1477. END_OF_FILE
  1478. if test 139 -ne `wc -c <'H/endian.h'`; then
  1479.     echo shar: \"'H/endian.h'\" unpacked with wrong size!
  1480. fi
  1481. # end of 'H/endian.h'
  1482. fi
  1483. if test -f 'H/filedefs.h' -a "${1}" != "-c" ; then 
  1484.   echo shar: Will not clobber existing file \"'H/filedefs.h'\"
  1485. else
  1486. echo shar: Extracting \"'H/filedefs.h'\" \(228 characters\)
  1487. sed "s/^X//" >'H/filedefs.h' <<'END_OF_FILE'
  1488. X/* File name parsing details: */
  1489. X#define SEP '/'        /* Separator in path names */
  1490. X#define CURDIR    "."    /* Current directory */
  1491. X
  1492. X/* Flags for access(2) system call: */
  1493. X#define RMODE    4
  1494. X#define WMODE    2
  1495. X#define XMODE    1
  1496. X#define NOMODE    0
  1497. END_OF_FILE
  1498. if test 228 -ne `wc -c <'H/filedefs.h'`; then
  1499.     echo shar: \"'H/filedefs.h'\" unpacked with wrong size!
  1500. fi
  1501. # end of 'H/filedefs.h'
  1502. fi
  1503. if test -f 'H/sigtype.h' -a "${1}" != "-c" ; then 
  1504.   echo shar: Will not clobber existing file \"'H/sigtype.h'\"
  1505. else
  1506. echo shar: Extracting \"'H/sigtype.h'\" \(479 characters\)
  1507. sed "s/^X//" >'H/sigtype.h' <<'END_OF_FILE'
  1508. X/* The type of signal handlers is somewhat problematic.
  1509. X   This file encapsulates my knowledge about it:
  1510. X   - on the Mac (THINK C), it's int
  1511. X   - on other systems, it's usually void, except it's int on vax Ultrix.
  1512. X   Pass -DSIGTYPE=... to cc if you know better. */
  1513. X
  1514. X#ifndef SIGTYPE
  1515. X
  1516. X#ifdef THINK_C
  1517. X
  1518. X#define SIGTYPE int
  1519. X
  1520. X#else /* !THINK_C */
  1521. X
  1522. X#if defined(vax) && !defined(AMOEBA)
  1523. X#define SIGTYPE int
  1524. X#else
  1525. X#define SIGTYPE void
  1526. X#endif
  1527. X
  1528. X#endif /* !THINK_C */
  1529. X
  1530. X#endif /* !SIGTYPE */
  1531. END_OF_FILE
  1532. if test 479 -ne `wc -c <'H/sigtype.h'`; then
  1533.     echo shar: \"'H/sigtype.h'\" unpacked with wrong size!
  1534. fi
  1535. # end of 'H/sigtype.h'
  1536. fi
  1537. if test -f 'H/stdwconf.h' -a "${1}" != "-c" ; then 
  1538.   echo shar: Will not clobber existing file \"'H/stdwconf.h'\"
  1539. else
  1540. echo shar: Extracting \"'H/stdwconf.h'\" \(775 characters\)
  1541. sed "s/^X//" >'H/stdwconf.h' <<'END_OF_FILE'
  1542. X/* "configure.h" -- mess with predefined symbols.
  1543. X   This file is supposed to be portable between all OSes.
  1544. X   It is also reentrant.
  1545. X*/
  1546. X   
  1547. X/* MPW defines "macintosh"; THINK C defines "THINK_C".
  1548. X   Some portable code tests for "macintosh" to detect any Mac implementation;
  1549. X   the distinction between MPW and THINK C is made by checking for
  1550. X   "MPW" or "THINK_C".
  1551. X*/
  1552. X
  1553. X/* If "macintosh" defined but not "THINK_C", it must be MPW */
  1554. X/* XXX (I hope I remember this right -- I haven't used MPW for years) */
  1555. X#ifdef macintosh
  1556. X#ifndef THINK_C
  1557. X#define MPW
  1558. X#endif
  1559. X#endif
  1560. X
  1561. X/* Under THINK C, turn on "macintosh" if not already on */
  1562. X#ifdef THINK_C
  1563. X#ifndef macintosh
  1564. X#define macintosh
  1565. X#endif
  1566. X#endif
  1567. X
  1568. X#ifdef THINK_C
  1569. X/* #define THINK_C_3_0            /*** TURN THIS ON FOR THINK C 3.0 ****/
  1570. X#endif
  1571. END_OF_FILE
  1572. if test 775 -ne `wc -c <'H/stdwconf.h'`; then
  1573.     echo shar: \"'H/stdwconf.h'\" unpacked with wrong size!
  1574. fi
  1575. # end of 'H/stdwconf.h'
  1576. fi
  1577. if test -f 'H/style.h' -a "${1}" != "-c" ; then 
  1578.   echo shar: Will not clobber existing file \"'H/style.h'\"
  1579. else
  1580. echo shar: Extracting \"'H/style.h'\" \(184 characters\)
  1581. sed "s/^X//" >'H/style.h' <<'END_OF_FILE'
  1582. X/* STDWIN -- TEXT ATTRIBUTES. */
  1583. X
  1584. X#define PLAIN        0x00
  1585. X#define HILITE        0x01
  1586. X#define INVERSE        0x02
  1587. X#define ITALIC        0x04
  1588. X#define BOLD        0x08
  1589. X#define UNDERLINE    0x10
  1590. X
  1591. Xextern TEXTATTR wattr;
  1592. END_OF_FILE
  1593. if test 184 -ne `wc -c <'H/style.h'`; then
  1594.     echo shar: \"'H/style.h'\" unpacked with wrong size!
  1595. fi
  1596. # end of 'H/style.h'
  1597. fi
  1598. if test -f 'H/tilist.h' -a "${1}" != "-c" ; then 
  1599.   echo shar: Will not clobber existing file \"'H/tilist.h'\"
  1600. else
  1601. echo shar: Extracting \"'H/tilist.h'\" \(555 characters\)
  1602. sed "s/^X//" >'H/tilist.h' <<'END_OF_FILE'
  1603. X/* Text Item Lists */
  1604. X
  1605. Xstruct _textitem {
  1606. X    TEXTEDIT *tp;
  1607. X    int left, top, right, bottom;
  1608. X    int active;
  1609. X    struct _textitem *next;
  1610. X    struct _textitemlist *back;
  1611. X};
  1612. X
  1613. Xstruct _textitemlist {
  1614. X    WINDOW *win;
  1615. X    struct _textitem *list;
  1616. X    struct _textitem *focus;
  1617. X};
  1618. X
  1619. X#define TEXTITEM struct _textitem
  1620. X#define TILIST struct _textitemlist
  1621. X
  1622. XTILIST *tilcreate();
  1623. Xvoid tildestroy();
  1624. Xvoid tildraw();
  1625. Xint tilevent();
  1626. Xvoid tilnextfocus();
  1627. X
  1628. XTEXTITEM *tiladd();
  1629. XTEXTITEM *tilinsert();
  1630. Xvoid tilremove();
  1631. X
  1632. Xvoid tilsetactive();
  1633. Xvoid tilfocus();
  1634. Xvoid tilsettext();
  1635. Xchar *tilgettext();
  1636. END_OF_FILE
  1637. if test 555 -ne `wc -c <'H/tilist.h'`; then
  1638.     echo shar: \"'H/tilist.h'\" unpacked with wrong size!
  1639. fi
  1640. # end of 'H/tilist.h'
  1641. fi
  1642. if test -f 'H/vtserial.h' -a "${1}" != "-c" ; then 
  1643.   echo shar: Will not clobber existing file \"'H/vtserial.h'\"
  1644. else
  1645. echo shar: Extracting \"'H/vtserial.h'\" \(532 characters\)
  1646. sed "s/^X//" >'H/vtserial.h' <<'END_OF_FILE'
  1647. X/* Definitions for serial interface */
  1648. X
  1649. X/* Public interface to the serial line drivers (which have a
  1650. X   machine-dependent implementation but a common interface) */
  1651. X
  1652. Xbool openserial _ARGS((void));
  1653. Xbool closeserial _ARGS((void));
  1654. Xbool sendserial _ARGS((char *buf, int len)); /* Blocking write */
  1655. Xint receiveserial _ARGS((char *buf, int len)); /* Non-blocking read */
  1656. Xbool breakserial _ARGS((void));
  1657. Xbool speedserial _ARGS((int baudrate));
  1658. X
  1659. X/* Pseudo event reported when input from serial line available */
  1660. X
  1661. X#define WE_SERIAL_AVAIL 42
  1662. END_OF_FILE
  1663. if test 532 -ne `wc -c <'H/vtserial.h'`; then
  1664.     echo shar: \"'H/vtserial.h'\" unpacked with wrong size!
  1665. fi
  1666. # end of 'H/vtserial.h'
  1667. fi
  1668. if test -f 'Packs/vt/To.do' -a "${1}" != "-c" ; then 
  1669.   echo shar: Will not clobber existing file \"'Packs/vt/To.do'\"
  1670. else
  1671. echo shar: Extracting \"'Packs/vt/To.do'\" \(130 characters\)
  1672. sed "s/^X//" >'Packs/vt/To.do' <<'END_OF_FILE'
  1673. XSelection should remain visible
  1674. X
  1675. XHandle selections involving EOL more like xterm
  1676. X
  1677. XNeed to remove aterm dependencies:
  1678. X    extra_downs
  1679. END_OF_FILE
  1680. if test 130 -ne `wc -c <'Packs/vt/To.do'`; then
  1681.     echo shar: \"'Packs/vt/To.do'\" unpacked with wrong size!
  1682. fi
  1683. # end of 'Packs/vt/To.do'
  1684. fi
  1685. if test -f 'Packs/vt/vtpanic.c' -a "${1}" != "-c" ; then 
  1686.   echo shar: Will not clobber existing file \"'Packs/vt/vtpanic.c'\"
  1687. else
  1688. echo shar: Extracting \"'Packs/vt/vtpanic.c'\" \(233 characters\)
  1689. sed "s/^X//" >'Packs/vt/vtpanic.c' <<'END_OF_FILE'
  1690. X/* Panic function, not if NDEBUG.  The application may provide a better one. */
  1691. X
  1692. X#include "vtimpl.h"
  1693. X
  1694. X#ifndef NDEBUG
  1695. X
  1696. Xvoid
  1697. Xvtpanic(msg)
  1698. X    char *msg;
  1699. X{
  1700. X    fprintf(stderr, "vtpanic: %s\n", msg);
  1701. X    wdone();
  1702. X    abort();
  1703. X}
  1704. X
  1705. X#endif /* NDEBUG */
  1706. END_OF_FILE
  1707. if test 233 -ne `wc -c <'Packs/vt/vtpanic.c'`; then
  1708.     echo shar: \"'Packs/vt/vtpanic.c'\" unpacked with wrong size!
  1709. fi
  1710. # end of 'Packs/vt/vtpanic.c'
  1711. fi
  1712. if test -f 'Packs/vt/vtsend.c' -a "${1}" != "-c" ; then 
  1713.   echo shar: Will not clobber existing file \"'Packs/vt/vtsend.c'\"
  1714. else
  1715. echo shar: Extracting \"'Packs/vt/vtsend.c'\" \(143 characters\)
  1716. sed "s/^X//" >'Packs/vt/vtsend.c' <<'END_OF_FILE'
  1717. X/* Default vtsend function */
  1718. X
  1719. X#include "vtimpl.h"
  1720. X
  1721. Xvoid
  1722. Xvtsend(vt, text, len)
  1723. X    VT *vt;
  1724. X    char *text;
  1725. X    int len;
  1726. X{
  1727. X    vtansiputs(vt, text, len);
  1728. X}
  1729. END_OF_FILE
  1730. if test 143 -ne `wc -c <'Packs/vt/vtsend.c'`; then
  1731.     echo shar: \"'Packs/vt/vtsend.c'\" unpacked with wrong size!
  1732. fi
  1733. # end of 'Packs/vt/vtsend.c'
  1734. fi
  1735. if test -f 'Packs/vt/vtusesend.c' -a "${1}" != "-c" ; then 
  1736.   echo shar: Will not clobber existing file \"'Packs/vt/vtusesend.c'\"
  1737. else
  1738. echo shar: Extracting \"'Packs/vt/vtusesend.c'\" \(344 characters\)
  1739. sed "s/^X//" >'Packs/vt/vtusesend.c' <<'END_OF_FILE'
  1740. X/* VT functions that send data back to the serial port. */
  1741. X
  1742. X#include "vtimpl.h"
  1743. X
  1744. Xvoid
  1745. Xvtsendid(vt)
  1746. X    VT *vt;
  1747. X{
  1748. X    vtsend(vt, "\033[?0;0;0c", -1);
  1749. X}
  1750. X
  1751. Xvoid
  1752. Xvtsendpos(vt)
  1753. X    VT *vt;
  1754. X{
  1755. X    char buf[256];
  1756. X    int row = vt->cur_row - vt->topterm + 1;
  1757. X    int col = vt->cur_col + 1;
  1758. X    CLIPMIN(row, 1);
  1759. X    sprintf(buf, "\033[%d;%dR", row, col);
  1760. X    vtsend(vt, buf, -1);
  1761. X}
  1762. END_OF_FILE
  1763. if test 344 -ne `wc -c <'Packs/vt/vtusesend.c'`; then
  1764.     echo shar: \"'Packs/vt/vtusesend.c'\" unpacked with wrong size!
  1765. fi
  1766. # end of 'Packs/vt/vtusesend.c'
  1767. fi
  1768. if test -f 'Ports/alfa/BUGS' -a "${1}" != "-c" ; then 
  1769.   echo shar: Will not clobber existing file \"'Ports/alfa/BUGS'\"
  1770. else
  1771. echo shar: Extracting \"'Ports/alfa/BUGS'\" \(262 characters\)
  1772. sed "s/^X//" >'Ports/alfa/BUGS' <<'END_OF_FILE'
  1773. XWhen there are multiple windows with global & local menus, opening the
  1774. Xmenus shows the local menus of the highest window instead of those of
  1775. Xthe active window.  (Some menus of other windows may also be shown.)
  1776. XThe menu bar is drawn correctly though.  ("menu.c")
  1777. END_OF_FILE
  1778. if test 262 -ne `wc -c <'Ports/alfa/BUGS'`; then
  1779.     echo shar: \"'Ports/alfa/BUGS'\" unpacked with wrong size!
  1780. fi
  1781. # end of 'Ports/alfa/BUGS'
  1782. fi
  1783. if test -f 'Ports/alfa/Make.proto' -a "${1}" != "-c" ; then 
  1784.   echo shar: Will not clobber existing file \"'Ports/alfa/Make.proto'\"
  1785. else
  1786. echo shar: Extracting \"'Ports/alfa/Make.proto'\" \(519 characters\)
  1787. sed "s/^X//" >'Ports/alfa/Make.proto' <<'END_OF_FILE'
  1788. X#
  1789. X# Makefile prototype for X11 port
  1790. X#
  1791. X
  1792. XSRCS=        \
  1793. X        $(ALFA)/bind.c \
  1794. X        $(ALFA)/draw.c \
  1795. X        $(ALFA)/event.c \
  1796. X        $(ALFA)/keymap.c \
  1797. X        $(ALFA)/measure.c \
  1798. X        $(ALFA)/menu.c \
  1799. X        $(ALFA)/scroll.c \
  1800. X        $(ALFA)/stdwin.c \
  1801. X        $(ALFA)/syswin.c \
  1802. X        $(ALFA)/timer.c \
  1803. X        $(TOOLS)/strdup.c \
  1804. X        $(GEN)/waskfile.c \
  1805. X        $(GEN)/waskync.c \
  1806. X        $(GEN)/wperror.c \
  1807. X        $(GEN)/wstyle.c \
  1808. X        $(GEN)/wsetclip.c \
  1809. X        $(GEN)/wsetcutbuffer.c \
  1810. X        $(GEN)/wsetselection.c \
  1811. X        $(VTRM_ALL) \
  1812. X        $(TEXTEDIT_PACK)
  1813. X
  1814. Xall:        lib.a
  1815. X
  1816. X_bootstrap:
  1817. X    @putlibmf lib.a $(SRCS)
  1818. END_OF_FILE
  1819. if test 519 -ne `wc -c <'Ports/alfa/Make.proto'`; then
  1820.     echo shar: \"'Ports/alfa/Make.proto'\" unpacked with wrong size!
  1821. fi
  1822. # end of 'Ports/alfa/Make.proto'
  1823. fi
  1824. if test -f 'Ports/alfa/menu.h' -a "${1}" != "-c" ; then 
  1825.   echo shar: Will not clobber existing file \"'Ports/alfa/menu.h'\"
  1826. else
  1827. echo shar: Extracting \"'Ports/alfa/menu.h'\" \(699 characters\)
  1828. sed "s/^X//" >'Ports/alfa/menu.h' <<'END_OF_FILE'
  1829. X/* TERMCAP STDWIN -- MENU DEFINITIONS */
  1830. X
  1831. Xstruct item {
  1832. X    char *text;        /* The item's text */
  1833. X    char *shortcut;        /* Visible representation of the shortcuts */
  1834. X    tbool enabled;        /* Can be selected */
  1835. X    tbool checked;        /* Check mark left of menu text */
  1836. X};
  1837. X
  1838. Xstruct _menu {
  1839. X    int id;            /* Menu id, reported by wgetevent */
  1840. X    char *title;        /* Menu title string */
  1841. X    bool local;        /* Set if must explicitly attach to windows */
  1842. X    bool dirty;        /* Set if items have changed */
  1843. X    int left, right;    /* Left & right edge of title in menu bar */
  1844. X    int maxwidth;        /* Max width of items */
  1845. X    int nitems;        /* Number of items */
  1846. X    struct item *itemlist;    /* List of items */
  1847. X};
  1848. X
  1849. Xstruct menubar {
  1850. X    int nmenus;
  1851. X    MENU **menulist;
  1852. X};
  1853. END_OF_FILE
  1854. if test 699 -ne `wc -c <'Ports/alfa/menu.h'`; then
  1855.     echo shar: \"'Ports/alfa/menu.h'\" unpacked with wrong size!
  1856. fi
  1857. # end of 'Ports/alfa/menu.h'
  1858. fi
  1859. if test -f 'Ports/mac_mpw/README' -a "${1}" != "-c" ; then 
  1860.   echo shar: Will not clobber existing file \"'Ports/mac_mpw/README'\"
  1861. else
  1862. echo shar: Extracting \"'Ports/mac_mpw/README'\" \(399 characters\)
  1863. sed "s/^X//" >'Ports/mac_mpw/README' <<'END_OF_FILE'
  1864. XThis directory contains extra files needed to build stdwin for the Mac
  1865. Xunder MPW 2.0.2.  Take these files together with all the files from the
  1866. Xmac subdirectory, plus strdup.c, getopt.c and wtextbreak.c from
  1867. Xelsewhere in the stdwin tree.  The Makefile will build the library.
  1868. X
  1869. XDisclaimer: this hasn't been tested fully yet -- it is just provided in
  1870. Xcase you are stuck with MPW.
  1871. X
  1872. X--Guido (8 Jan 1991)
  1873. END_OF_FILE
  1874. if test 399 -ne `wc -c <'Ports/mac_mpw/README'`; then
  1875.     echo shar: \"'Ports/mac_mpw/README'\" unpacked with wrong size!
  1876. fi
  1877. # end of 'Ports/mac_mpw/README'
  1878. fi
  1879. if test -f 'Ports/msdos/README' -a "${1}" != "-c" ; then 
  1880.   echo shar: Will not clobber existing file \"'Ports/msdos/README'\"
  1881. else
  1882. echo shar: Extracting \"'Ports/msdos/README'\" \(270 characters\)
  1883. sed "s/^X//" >'Ports/msdos/README' <<'END_OF_FILE'
  1884. XSorry, there is no real STDWIN port for MS-DOS yet.  What you can is
  1885. Xto port the alfa version with the help of the file "ptrm.c" in this
  1886. Xdirectory, which is a substitute (using the MS-DOS console driver) for
  1887. Xthe VTRM module used by the alfa version for all its tty I/O.
  1888. END_OF_FILE
  1889. if test 270 -ne `wc -c <'Ports/msdos/README'`; then
  1890.     echo shar: \"'Ports/msdos/README'\" unpacked with wrong size!
  1891. fi
  1892. # end of 'Ports/msdos/README'
  1893. fi
  1894. if test -f 'Ports/msdos/dir.h' -a "${1}" != "-c" ; then 
  1895.   echo shar: Will not clobber existing file \"'Ports/msdos/dir.h'\"
  1896. else
  1897. echo shar: Extracting \"'Ports/msdos/dir.h'\" \(223 characters\)
  1898. sed "s/^X//" >'Ports/msdos/dir.h' <<'END_OF_FILE'
  1899. X/*
  1900. X * Interface for MS-DOS version of UNIX directory access package.
  1901. X * (opendir, readdir, closedir).
  1902. X */
  1903. X
  1904. Xstruct direct {
  1905. X    char d_namlen;
  1906. X    char d_name[13];
  1907. X};
  1908. X
  1909. Xtypedef char DIR;
  1910. X
  1911. XDIR *opendir();
  1912. Xstruct direct *readdir();
  1913. XEND_OF_FILE
  1914. echo shar: 1 control character may be missing from \"'Ports/msdos/dir.h'\"
  1915. if test 223 -ne `wc -c <'Ports/msdos/dir.h'`; then
  1916.     echo shar: \"'Ports/msdos/dir.h'\" unpacked with wrong size!
  1917. fi
  1918. # end of 'Ports/msdos/dir.h'
  1919. fi
  1920. if test -f 'Ports/msdos/lib.' -a "${1}" != "-c" ; then 
  1921.   echo shar: Will not clobber existing file \"'Ports/msdos/lib.'\"
  1922. else
  1923. echo shar: Extracting \"'Ports/msdos/lib.'\" \(626 characters\)
  1924. sed "s/^X//" >'Ports/msdos/lib.' <<'END_OF_FILE'
  1925. X.c.obj:
  1926. X    cl -c -AL -DSYSV $*.c
  1927. X
  1928. XTOOLS=        strdup.obj getopt.obj monocase.obj
  1929. X
  1930. Xstrdup.obj:
  1931. X
  1932. Xgetopt.obj:
  1933. X
  1934. Xmonocase.obj:
  1935. X
  1936. XTEXTEDIT=    textedit.obj textbrk.obj par.obj \
  1937. X        askfile.obj askync.obj style.obj
  1938. X
  1939. Xtextedit.obj:
  1940. X
  1941. Xtextbrk.obj:
  1942. X
  1943. Xpar.obj:
  1944. X
  1945. Xaskfile.obj:
  1946. X
  1947. Xaskync.obj:
  1948. X
  1949. Xstyle.obj:
  1950. X
  1951. XPTRM=        ptrm.obj
  1952. X
  1953. Xptrm.obj:
  1954. X
  1955. XALFA=        bind.obj draw.obj event.obj keymap.obj measure.obj \
  1956. X        menu.obj scroll.obj stdwin.obj syswin.obj
  1957. X
  1958. Xbind.obj: alfa.h
  1959. X
  1960. Xdraw.obj: alfa.h
  1961. X
  1962. Xevent.obj: alfa.h
  1963. X
  1964. Xkeymap.obj: alfa.h
  1965. X
  1966. Xmeasure.obj: alfa.h
  1967. X
  1968. Xmenu.obj: alfa.h
  1969. X
  1970. Xscroll.obj: alfa.h
  1971. X
  1972. Xstdwin.obj: alfa.h
  1973. X
  1974. Xsyswin.obj: alfa.h
  1975. X
  1976. XALL=        $(TOOLS) $(TEXTEDIT) $(PTRM) $(ALFA)
  1977. END_OF_FILE
  1978. if test 626 -ne `wc -c <'Ports/msdos/lib.'`; then
  1979.     echo shar: \"'Ports/msdos/lib.'\" unpacked with wrong size!
  1980. fi
  1981. # end of 'Ports/msdos/lib.'
  1982. fi
  1983. if test -f 'Ports/x11/Make.proto' -a "${1}" != "-c" ; then 
  1984.   echo shar: Will not clobber existing file \"'Ports/x11/Make.proto'\"
  1985. else
  1986. echo shar: Extracting \"'Ports/x11/Make.proto'\" \(542 characters\)
  1987. sed "s/^X//" >'Ports/x11/Make.proto' <<'END_OF_FILE'
  1988. X#
  1989. X# Makefile prototype for X11 port
  1990. X#
  1991. X
  1992. XSRCS=        \
  1993. X        $(X11)/caret.c \
  1994. X        $(X11)/cursor.c \
  1995. X        $(X11)/cutbuffer.c \
  1996. X        $(X11)/dialog.c \
  1997. X        $(X11)/draw.c \
  1998. X        $(X11)/error.c \
  1999. X        $(X11)/event.c \
  2000. X        $(X11)/font.c \
  2001. X        $(X11)/general.c \
  2002. X        $(X11)/llevent.c \
  2003. X        $(X11)/menu.c \
  2004. X        $(X11)/selection.c \
  2005. X        $(X11)/scroll.c \
  2006. X        $(X11)/timer.c \
  2007. X        $(X11)/window.c \
  2008. X        $(TOOLS)/strdup.c \
  2009. X        $(GEN)/waskfile.c \
  2010. X        $(GEN)/wperror.c \
  2011. X        $(GEN)/wsetclip.c \
  2012. X        $(GEN)/wtextbreak.c \
  2013. X        $(TEXTEDIT_PACK) \
  2014. X        $(VT_PACK)
  2015. X
  2016. Xall:        lib.a
  2017. X
  2018. X_bootstrap:
  2019. X    @putlibmf lib.a $(SRCS)
  2020. END_OF_FILE
  2021. if test 542 -ne `wc -c <'Ports/x11/Make.proto'`; then
  2022.     echo shar: \"'Ports/x11/Make.proto'\" unpacked with wrong size!
  2023. fi
  2024. # end of 'Ports/x11/Make.proto'
  2025. fi
  2026. echo shar: End of archive 19 \(of 19\).
  2027. cp /dev/null ark19isdone
  2028. MISSING=""
  2029. for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 ; do
  2030.     if test ! -f ark${I}isdone ; then
  2031.     MISSING="${MISSING} ${I}"
  2032.     fi
  2033. done
  2034. if test "${MISSING}" = "" ; then
  2035.     echo You have unpacked all 19 archives.
  2036.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  2037. else
  2038.     echo You still need to unpack the following archives:
  2039.     echo "        " ${MISSING}
  2040. fi
  2041. ##  End of shell archive.
  2042. exit 0
  2043.