koreth@panarthea.ebay.sun.com (Steven Grimm) (11/11/89)
Submitted-by: charltn@ccu.umanitoba.ca (Jim Charlton) Posting-number: Volume 3, Issue 7 Archive-name: xxed/part03 #!/bin/sh # this is part 3 of a multipart archive # do not concatenate these parts, unpack them in order with /bin/sh # file WIND.C continued # CurArch=3 if test ! -r s2_seq_.tmp then echo "Please unpack part 1 first!" exit 1; fi ( read Scheck if test "$Scheck" != $CurArch then echo "Please unpack part $Scheck next!" exit 1; else exit 0; fi ) < s2_seq_.tmp || exit 1 sed 's/^X//' << 'SHAR_EOF' >> WIND.C X Remove window record from window list. X */ X register windowptr winptr = (windowptr) &firstwindow; X int button; X X wind_delete(thewin->handle); X X while(winptr -> next) X if (winptr -> next == thewin) X break; X else X winptr = winptr -> next; X X if (winptr -> next) X winptr -> next = winptr -> next -> next; X else { X button = form_alert(1, "[1][ Internal Error: | Window pointer not in list. ][OK]"); X shutdown(2); X } X X /* X Update the front window pointer. X */ X if (!firstwindow) X thefrontwin = NULL; X else X if (winptr == (windowptr) &firstwindow) X make_frontwin(winptr -> next); X else X make_frontwin(winptr); X X if(thefrontwin) X immed_redraw(thefrontwin); /* see send.c */ X X /* X Close workstation associated with window. X */ X v_clsvwk(thewin -> graf.handle); X X /* X Release window storage. X */ X free(thewin); X X} X X X/* X make_frontwin - Force a window to the front. X*/ Xmake_frontwin(thewin) X windowptr thewin; X{ X wind_set(thewin -> handle, WF_TOP, 0, 0, 0, 0); X thefrontwin = thewin; X} X Xrot_wind() X{ windowptr winptr, thewin; X X X if(thewin = thefrontwin) X { winptr = firstwindow; X while(winptr != thewin) X winptr = winptr->next; X if((winptr = winptr->next)!=NULL) X make_frontwin(winptr); X else X make_frontwin(firstwindow); X } X} X Xwind_blank(thewin) X windowptr thewin; X{ X int grafhandle; X GRECT windrect; X int x, y, w, h; X X grafhandle = thewin -> graf.handle; X x = thewin->work.g_x; X y = thewin->work.g_y; X w = thewin->work.g_w; X h = thewin->work.g_h; X X rect_set(&windrect, x, y, x+w, y+h); X X vsf_interior(grafhandle, 1); /* set for solid fill */ X vsf_color(grafhandle, 0); /* blank to white */ X X v_bar(grafhandle, &windrect); /* blank the interior */ X} SHAR_EOF chmod 0600 WIND.C || echo "restore of WIND.C fails" sed 's/^X//' << 'SHAR_EOF' > XXED.DEF && XMMRCP2.0XSHAR_EOF chmod 0600 XXED.DEF || echo "restore of XXED.DEF fails" sed 's/^X//' << 'SHAR_EOF' > XXED.H && X#define DIALOG2 2 X#define OK1 8 X#define MENUBAR 0 X#define DESK 3 X#define AA 1 X#define DIALOG4 4 X#define FILE 4 X#define BB 2 X#define MARK 6 X#define EDIT 5 X#define II 3 X#define SEARCH 7 X#define CC 5 X#define JJ 4 X#define WINDOWS 8 X#define KK 6 X#define INFORM 9 X#define DD 7 X#define EE 9 X#define LL 8 X#define ABOUT 12 X#define MM 10 X#define FF 11 X#define GG 13 X#define NN 12 X#define OO 14 X#define HH 15 X#define PP 16 X#define DRBOX 18 X#define OPEN 22 X#define NEW 21 X#define DRSTR1 19 X#define DREXIT 20 X#define CLOSE 24 X#define SAVEAS 26 X#define SAVE 25 X#define DIALOG3 3 X#define ABBUT 1 X#define DELETE 28 X#define SKBUT 3 X#define RPBUT 2 X#define SPACE 29 X#define PRINT 31 X#define DIALOG5 5 X#define QUIT 33 X#define CUT 35 X#define COPY 36 X#define ERASE 38 X#define PASTE 37 X#define INSERT 40 X#define REPLACE 41 X#define START 43 X#define END 44 X#define CLEAR 45 X#define FIND 47 X#define FORWARD 48 X#define BACK 49 X#define ROTATE 51 X#define POS 54 X#define FSIZE 53 X#define RVER 1 X#define DIALOG1 1 X#define RALL 5 X#define RONCE 6 X#define SBACK 3 X#define CANCEL1 4 X#define SFORWARD 2 X#define SSTRING 9 X#define DIALOG6 6 X#define RSTRING 11 X#define SSTRBUT 13 X#define SCUTBUF 14 X#define RSTRBUT 17 X#define RCUTBUF 16 Xextern unsigned char XXEDRSC[]; SHAR_EOF chmod 0600 XXED.H || echo "restore of XXED.H fails" sed 's/^X//' << 'SHAR_EOF' > XXED.RSC && XX:________________________XXXXXXXXXXXbSHAR_EOF chmod 0600 XXED.RSC || echo "restore of XXED.RSC fails" sed 's/^X//' << 'SHAR_EOF' > XXEDRSC.C && X/* X * C version of 'D:\HEXED\XXED.RSC' X */ X Xunsigned char XXEDRSC[] = { X 0,0,4,226,4,142,4,142,4,142,4,142,0,36,4,142,4,142, X 15,122,0,113,0,7,0,3,0,0,0,0,0,0,0,0,15,150, X 98,121,0,74,46,32,67,104,97,114,108,116,111,110,0,40,72,101, X 120,97,100,101,99,105,109,97,108,32,101,100,105,116,111,114,32,118, X 101,114,115,105,111,110,32,49,46,48,41,0,65,76,76,32,82,73, X 71,72,84,83,32,82,69,83,69,82,86,69,68,0,0,84,101,108, X 32,40,50,48,52,41,45,50,54,49,45,55,53,49,50,0,51,48, X 32,80,114,101,115,99,111,116,32,82,100,44,32,87,105,110,110,105, X 112,101,103,44,32,67,97,110,97,100,97,0,79,75,0,88,88,69, X 68,0,32,68,101,115,107,32,0,32,70,105,108,101,32,0,32,69, X 100,105,116,0,32,77,97,114,107,0,32,83,101,97,114,99,104,32, X 0,32,87,105,110,100,111,119,115,0,32,32,73,110,102,111,0,32, X 32,72,101,120,32,69,100,105,116,111,114,0,45,45,45,45,45,45, X 45,45,45,45,45,45,45,45,45,45,45,45,45,45,0,32,32,68, X 101,115,107,32,65,99,99,101,115,115,111,114,121,32,49,32,32,0, X 32,32,68,101,115,107,32,65,99,99,101,115,115,111,114,121,32,50, X 32,32,0,32,32,68,101,115,107,32,65,99,99,101,115,115,111,114, X 121,32,51,32,32,0,32,32,68,101,115,107,32,65,99,99,101,115, X 115,111,114,121,32,52,32,32,0,32,32,68,101,115,107,32,65,99, X 99,101,115,115,111,114,121,32,53,32,32,0,32,32,68,101,115,107, X 32,65,99,99,101,115,115,111,114,121,32,54,32,32,0,32,32,32, X 78,101,119,46,46,46,32,32,0,32,32,32,79,112,101,110,46,46, X 46,0,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,0, X 32,32,32,67,108,111,115,101,32,32,32,0,32,83,32,83,97,118, X 101,32,32,32,0,32,32,32,83,97,118,101,32,65,115,46,46,46, X 32,32,0,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45, X 0,32,32,32,68,101,108,101,116,101,46,46,46,0,32,32,32,68, X 105,115,107,32,83,112,97,99,101,0,45,45,45,45,45,45,45,45, X 45,45,45,45,45,45,45,0,32,32,32,80,114,105,110,116,0,45, X 45,45,45,45,45,45,45,45,45,45,45,45,45,45,0,32,81,32, X 81,117,105,116,32,32,32,32,32,32,32,0,32,88,32,67,117,116, X 0,32,67,32,67,111,112,121,32,32,0,32,86,32,80,97,115,116, X 101,32,0,32,69,32,69,114,97,115,101,32,0,45,45,45,45,45, X 45,45,45,45,45,45,0,32,32,32,73,110,115,101,114,116,0,32, X 32,32,82,101,112,108,97,99,101,0,32,73,32,77,97,114,107,32, X 83,116,97,114,116,0,32,79,32,77,97,114,107,32,69,110,100,32, X 0,32,80,32,67,108,101,97,114,32,77,97,114,107,115,32,0,32, X 70,32,70,105,110,100,0,32,65,32,70,111,114,119,97,114,100,0, X 32,66,32,66,97,99,107,0,32,82,111,116,97,116,101,32,119,105, X 110,100,111,119,115,0,32,70,105,108,101,32,115,105,122,101,58,0, X 32,80,111,115,105,116,105,111,110,58,0,65,0,66,0,73,0,74, X 0,67,0,75,0,68,0,76,0,69,0,77,0,70,0,78,0,71, X 0,79,0,72,0,80,0,83,69,76,69,67,84,32,68,82,73,86, X 69,0,0,69,88,73,84,0,65,66,79,82,84,0,82,69,80,76, X 65,67,69,0,83,75,73,80,0,83,65,86,73,78,71,32,70,73, X 76,69,0,82,101,112,108,97,99,101,32,65,108,108,32,119,105,116, X 104,32,86,101,114,105,102,121,0,82,101,112,108,97,99,101,32,65, X 108,108,0,82,101,112,108,97,99,101,32,79,110,99,101,0,67,65, X 78,67,69,76,0,83,101,97,114,99,104,32,66,65,67,75,87,65, X 82,68,83,0,83,101,97,114,99,104,32,70,79,82,87,65,82,68, X 0,83,101,97,114,99,104,32,97,110,100,32,82,101,112,108,97,99, X 101,32,68,105,97,108,111,103,32,66,111,120,0,95,95,95,95,95, X 95,0,83,101,97,114,99,104,32,32,83,116,114,105,110,103,58,95, X 95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95, X 95,95,95,95,95,0,88,88,88,88,88,88,88,88,88,88,88,88, X 88,88,88,88,88,88,88,88,88,88,88,88,0,95,95,95,95,95, X 0,82,101,112,108,97,99,101,32,83,116,114,105,110,103,58,95,95, X 95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95, X 95,95,95,95,0,88,88,88,88,88,88,88,88,88,88,88,88,88, X 88,88,88,88,88,88,88,88,88,88,88,0,83,101,97,114,99,104, X 32,115,116,114,105,110,103,0,67,117,116,32,98,117,102,102,101,114, X 0,67,117,116,32,98,117,102,102,101,114,0,82,101,112,108,97,99, X 101,32,115,116,114,105,110,103,0,83,101,97,114,99,104,32,102,111, X 114,58,0,82,101,112,108,97,99,101,32,119,105,116,104,58,0,68, X 69,76,69,84,73,78,71,32,70,73,76,69,0,0,0,0,0,84, X 0,0,0,0,0,0,0,104,0,5,0,6,0,0,17,128,0,0, X 0,255,0,20,0,1,0,0,3,163,0,0,3,170,0,0,3,210, X 0,3,0,6,0,0,17,128,0,0,0,255,0,7,0,40,0,0, X 3,235,0,0,3,241,0,0,4,25,0,3,0,6,0,0,17,128, X 0,0,0,255,0,6,0,40,255,255,0,1,0,7,0,20,0,0, X 0,16,0,2,17,0,0,0,0,0,0,58,0,16,0,2,255,255, X 255,255,0,28,0,0,0,0,0,0,0,36,0,26,0,6,0,2, X 0,1,0,3,255,255,255,255,0,28,0,0,0,0,0,0,0,39, X 0,22,0,8,0,11,0,1,0,4,255,255,255,255,0,28,0,0, X 0,0,0,0,0,51,0,12,0,4,0,32,0,1,0,5,255,255, X 255,255,0,21,0,0,0,0,0,0,4,142,0,20,0,11,0,15, X 0,1,0,6,255,255,255,255,0,28,0,0,0,0,0,0,0,105, X 0,18,0,10,0,18,0,1,0,8,255,255,255,255,0,28,0,0, X 0,0,0,0,0,124,0,12,0,9,0,31,0,1,0,0,255,255, X 255,255,0,28,0,32,0,0,0,0,0,159,0,25,0,2,0,4, X 0,1,0,7,255,255,255,255,0,26,0,7,0,0,0,0,0,156, X 0,23,0,13,0,8,0,1,255,255,0,1,0,10,0,25,0,0, X 0,0,0,0,0,0,0,0,0,0,0,80,0,25,0,10,0,2, X 0,2,0,20,0,0,0,0,0,0,17,0,0,0,0,0,0,80, X 2,1,0,1,0,3,0,9,0,25,0,0,0,0,0,0,0,0, X 0,2,0,0,0,51,3,1,0,4,255,255,255,255,0,32,0,0, X 0,0,0,0,0,164,0,0,0,0,0,6,3,1,0,5,255,255, X 255,255,0,32,0,0,0,0,0,0,0,171,0,6,0,0,0,6, X 3,1,0,6,255,255,255,255,0,32,0,0,0,0,0,0,0,178, X 0,12,0,0,0,6,3,1,0,7,255,255,255,255,0,32,0,0, X 0,0,0,0,0,184,0,18,0,0,0,6,3,1,0,8,255,255, X 255,255,0,32,0,0,0,0,0,0,0,190,0,24,0,0,0,9, X 3,1,0,9,255,255,255,255,0,32,0,0,0,0,0,0,0,199, X 0,33,0,0,0,9,3,1,0,2,255,255,255,255,0,32,0,0, X 0,0,0,0,0,208,0,42,0,0,0,9,3,1,0,0,0,11, X 0,52,0,25,0,0,0,0,0,0,0,0,0,0,3,1,0,80, X 0,19,0,20,0,12,0,19,0,20,0,0,0,0,0,255,17,0, X 0,2,0,0,0,20,0,8,0,13,255,255,255,255,0,28,0,0, X 0,0,0,0,0,215,0,0,0,0,0,20,0,1,0,14,255,255, X 255,255,0,28,0,0,0,8,0,0,0,228,0,0,0,1,0,20, X 0,1,0,15,255,255,255,255,0,28,0,0,0,0,0,0,0,249, X 0,0,0,2,0,20,0,1,0,16,255,255,255,255,0,28,0,0, X 0,0,0,0,1,14,0,0,0,3,0,20,0,1,0,17,255,255, X 255,255,0,28,0,0,0,0,0,0,1,35,0,0,0,4,0,20, X 0,1,0,18,255,255,255,255,0,28,0,0,0,0,0,0,1,56, X 0,0,0,5,0,20,0,1,0,19,255,255,255,255,0,28,0,0, X 0,0,0,0,1,77,0,0,0,6,0,20,0,1,0,11,255,255, X 255,255,0,28,0,0,0,0,0,0,1,98,0,0,0,7,0,20, X 0,1,0,34,0,21,0,33,0,20,0,0,0,0,0,255,17,0, X 0,8,0,0,0,15,0,13,0,22,255,255,255,255,0,28,0,0, X 0,0,0,0,1,119,0,0,0,0,0,15,0,1,0,23,255,255, X 255,255,0,28,0,0,0,0,0,0,1,131,0,0,0,1,0,15, X 0,1,0,24,255,255,255,255,0,28,0,0,0,8,0,0,1,142, X 0,0,0,2,0,15,0,1,0,25,255,255,255,255,0,28,0,0, X 0,0,0,0,1,158,0,0,0,3,0,15,0,1,0,26,255,255, X 255,255,0,28,0,0,0,0,0,0,1,170,0,0,0,4,0,15, X 0,1,0,27,255,255,255,255,0,28,0,0,0,0,0,0,1,181, X 0,0,0,5,0,15,0,1,0,28,255,255,255,255,0,28,0,0, X 0,8,0,0,1,197,0,0,0,6,0,15,0,1,0,29,255,255, X 255,255,0,28,0,0,0,0,0,0,1,213,0,0,0,7,0,15, X 0,1,0,30,255,255,255,255,0,28,0,0,0,0,0,0,1,226, X 0,0,0,8,0,15,0,1,0,31,255,255,255,255,0,28,0,0, X 0,8,0,0,1,240,0,0,0,9,0,15,0,1,0,32,255,255, X 255,255,0,28,0,0,0,0,0,0,2,0,0,0,0,10,0,15, X 0,1,0,33,255,255,255,255,0,28,0,0,0,8,0,0,2,9, X 0,0,0,11,0,15,0,1,0,20,255,255,255,255,0,28,0,0, X 0,0,0,0,2,25,0,0,0,12,0,15,0,1,0,42,0,35, X 0,41,0,20,0,0,0,0,0,255,17,0,0,14,0,0,0,11, X 0,7,0,36,255,255,255,255,0,28,0,0,0,8,0,0,2,40, X 0,0,0,0,0,11,0,1,0,37,255,255,255,255,0,28,0,0, X 0,8,0,0,2,47,0,0,0,1,0,11,0,1,0,38,255,255, X 255,255,0,28,0,0,0,8,0,0,2,57,0,0,0,2,0,11, X 0,1,0,39,255,255,255,255,0,28,0,0,0,8,0,0,2,67, X 0,0,0,3,0,11,0,1,0,40,255,255,255,255,0,28,0,0, X 0,8,0,0,2,77,0,0,0,4,0,11,0,1,0,41,255,255, X 255,255,0,28,0,0,0,0,0,0,2,89,0,0,0,5,0,11, X 0,1,0,34,255,255,255,255,0,28,0,0,0,4,0,0,2,99, X 0,0,0,6,0,11,0,1,0,46,0,43,0,45,0,20,0,0, X 0,0,0,255,17,0,0,20,0,0,0,15,0,3,0,44,255,255, X 255,255,0,28,0,0,0,0,0,0,2,110,0,0,0,0,0,15, X 0,1,0,45,255,255,255,255,0,28,0,0,0,0,0,0,2,124, X 0,0,0,1,0,15,0,1,0,42,255,255,255,255,0,28,0,0, X 0,0,0,0,2,137,0,0,0,2,0,15,0,1,0,50,0,47, X 0,49,0,20,0,0,0,0,0,255,17,0,0,26,0,0,0,11, X 0,3,0,48,255,255,255,255,0,28,0,0,0,0,0,0,2,153, X 0,0,0,0,0,10,0,1,0,49,255,255,255,255,0,28,0,0, X 0,0,0,0,2,161,0,0,0,1,0,11,0,1,0,46,255,255, X 255,255,0,28,0,0,0,0,0,0,2,172,0,0,0,2,0,11, X 0,1,0,52,0,51,0,51,0,20,0,0,0,0,0,255,17,0, X 0,35,0,0,0,16,0,1,0,50,255,255,255,255,0,28,0,0, X 0,0,0,0,2,180,0,0,0,0,0,16,0,1,0,10,0,53, X 0,54,0,20,0,0,0,0,0,255,17,0,0,44,0,0,0,20, X 0,2,0,54,255,255,255,255,0,28,0,8,0,0,0,0,2,196, X 0,0,0,0,0,20,0,1,0,52,255,255,255,255,0,28,0,40, X 0,0,0,0,2,208,0,0,0,1,0,20,0,1,255,255,0,1, X 0,20,0,20,0,0,0,16,0,2,17,0,0,0,0,0,0,44, X 0,12,0,2,255,255,255,255,0,26,0,21,0,8,0,0,2,219, X 0,3,0,2,0,3,0,1,0,3,255,255,255,255,0,26,0,21, X 0,8,0,0,2,221,0,8,0,2,0,3,0,1,0,4,255,255, X 255,255,0,26,0,21,0,8,0,0,2,223,0,3,0,4,0,3, X 0,1,0,5,255,255,255,255,0,26,0,21,0,8,0,0,2,225, X 0,8,0,4,0,3,0,1,0,6,255,255,255,255,0,26,0,21, X 0,8,0,0,2,227,0,13,0,2,0,3,0,1,0,7,255,255, X 255,255,0,26,0,21,0,8,0,0,2,229,0,13,0,4,0,3, X 0,1,0,8,255,255,255,255,0,26,0,21,0,8,0,0,2,231, X 0,18,0,2,0,3,0,1,0,9,255,255,255,255,0,26,0,21, X 0,8,0,0,2,233,0,18,0,4,0,3,0,1,0,10,255,255, X 255,255,0,26,0,21,0,8,0,0,2,235,0,23,0,2,0,3, X 0,1,0,11,255,255,255,255,0,26,0,21,0,8,0,0,2,237, X 0,23,0,4,0,3,0,1,0,12,255,255,255,255,0,26,0,21, X 0,8,0,0,2,239,0,28,0,2,0,3,0,1,0,13,255,255, X 255,255,0,26,0,21,0,8,0,0,2,241,0,28,0,4,0,3, X 0,1,0,14,255,255,255,255,0,26,0,21,0,8,0,0,2,243, X 0,33,0,2,0,3,0,1,0,15,255,255,255,255,0,26,0,21, X 0,8,0,0,2,245,0,33,0,4,0,3,0,1,0,16,255,255, X 255,255,0,26,0,21,0,8,0,0,2,247,0,38,0,2,0,3, X 0,1,0,17,255,255,255,255,0,26,0,21,0,8,0,0,2,249, X 0,38,0,4,0,3,0,1,0,18,255,255,255,255,0,28,0,0, X 0,0,0,0,2,251,0,15,0,6,0,12,0,1,0,20,0,19, X 0,19,0,20,0,0,0,0,0,255,1,0,0,2,0,7,0,40, X 0,2,0,18,255,255,255,255,0,28,0,0,0,0,0,0,3,8, X 0,1,0,1,0,37,0,1,0,0,255,255,255,255,0,26,0,39, X 0,0,0,0,3,9,0,17,0,10,0,8,0,1,255,255,0,1, X 0,3,0,20,0,0,0,16,0,2,17,0,0,0,0,0,0,31, X 0,3,0,2,255,255,255,255,0,26,0,21,0,0,0,0,3,14, X 0,21,0,1,0,8,0,1,0,3,255,255,255,255,0,26,0,23, X 0,0,0,0,3,20,0,1,0,1,0,8,0,1,0,0,255,255, X 255,255,0,26,0,53,0,0,0,0,3,28,0,11,0,1,0,8, X 0,1,255,255,0,1,0,1,0,20,0,0,0,0,0,2,17,0, X 0,0,0,0,0,22,0,1,0,0,255,255,255,255,0,28,0,32, X 0,0,0,0,3,33,0,6,0,0,0,11,0,1,255,255,0,1, X 0,19,0,20,0,0,0,16,0,2,17,0,0,0,0,0,0,59, X 0,17,0,5,255,255,255,255,0,26,0,5,0,0,0,0,3,45, X 0,30,0,15,0,25,0,1,0,7,255,255,255,255,0,26,0,7, X 0,0,0,0,3,118,0,3,0,11,0,21,0,1,0,2,255,255, X 255,255,0,26,0,5,0,0,0,0,3,101,0,3,0,13,0,21, X 0,1,0,3,255,255,255,255,0,26,0,5,0,0,0,0,3,94, X 0,3,0,15,0,21,0,1,0,6,255,255,255,255,0,26,0,5, X 0,0,0,0,3,69,0,30,0,13,0,25,0,1,0,4,255,255, X 255,255,0,26,0,5,0,0,0,0,3,81,0,30,0,11,0,25, X 0,1,0,8,255,255,255,255,0,28,0,0,0,0,0,0,3,133, X 0,15,0,1,0,29,0,1,0,10,0,9,0,9,0,20,0,0, X 0,0,0,255,17,0,0,12,0,3,0,39,0,1,0,8,255,255, X 255,255,0,29,0,8,0,0,0,0,4,170,0,0,0,0,0,39, X 0,1,0,12,0,11,0,11,0,20,0,0,0,0,0,255,17,0, X 0,12,0,5,0,39,0,1,0,10,255,255,255,255,0,29,0,8, X 0,0,0,0,4,198,0,0,0,0,0,39,0,1,0,15,0,13, X 0,14,0,20,0,0,0,0,0,255,1,0,0,25,0,7,0,29, X 0,1,0,14,255,255,255,255,0,26,0,17,0,0,0,0,4,50, X 0,1,0,0,0,15,0,1,0,12,255,255,255,255,0,26,0,17, X 0,0,0,0,4,64,0,17,0,0,0,11,0,1,0,18,0,16, X 0,17,0,20,0,0,0,0,0,255,1,0,0,25,0,9,0,29, X 0,1,0,17,255,255,255,255,0,26,0,17,0,0,0,0,4,75, X 0,17,0,0,0,11,0,1,0,15,255,255,255,255,0,26,0,17, X 0,0,0,0,4,86,0,1,0,0,0,15,0,1,0,19,255,255, X 255,255,0,28,0,0,0,0,0,0,4,101,0,8,0,7,0,11, X 0,1,0,0,255,255,255,255,0,28,0,32,0,0,0,0,4,113, X 0,8,0,9,0,13,0,1,255,255,0,1,0,1,0,20,0,0, X 0,0,0,2,17,0,0,0,0,0,0,22,0,1,0,0,255,255, X 255,255,0,28,0,32,0,0,0,0,4,127,0,4,0,0,0,13, X 0,1,0,0,5,186,0,0,13,106,0,0,4,226,0,0,12,218, X 0,0,10,226,0,0,13,58,0,0,15,74 X}; SHAR_EOF chmod 0600 XXEDRSC.C || echo "restore of XXEDRSC.C fails" sed 's/^X//' << 'SHAR_EOF' > XXEDSRC.DOC && X XXED - HEXADECIMAL/ASCII EDITOR X X Written and distributed by Jim Charlton X charltn@ccm.umanitoba.ca X or charltn@ccu.umanitoba.ca X 30 Prescot Road X Winnipeg, Manitoba X CANADA R3T 3X5 X Tel (204)-261-7267 voice X (204)-261-7512 bbs (STadel) X X X XXED copyright Jim Charlton 1989. XXED is freely distributable Xprovided that this file is distributed with the source and executable Xcode. No-one may charge a fee for the executable or source code, nor for Xdistribution of this code. X X Version 1.0 is the first release of this program and all reports of Xproblems, bugs or suggestions for improvements should be forwarded to the Xaddress given above. X X No garantees, written or implied are made as to the suitability of Xthis program for any particular purpose. Anyone who uses it, does so at Xtheir own risk. X X The source code was compiled using Megamax Laser C version 2.0. The Xprogram was tested primarily on a 1040ST (Nov 1985 ROMS), monochrome and Xhas not been extensively tested in colour, although it should work in Xcolour. X X The file FNCTLST.DOC contains a list of all of the functions defined Xin the source code with very brief descriptions of what they do. While Xthe source code is not extensively documented, it should be readable by Xan experience C programmer. The basic program structure is modelled after Xthe example code that comes with the Laser C compiler. Each file has its Xown window and workspace. A linked list is used to keep track of the Xopen windows. Each window has a file buffer which is a linked list of Xblocks. Using linked lists makes memory management easier and speeds Xup inserts and deletes. X X The following very brief instructions should suffice to enable you to Xuse the program. X XFeatures: X 1. Can create and edit files of any format. X 2. Can insert or replace bytes using hexadecimal or ascii input. X 3. Displays simultaneously in hex and ascii. X 4. Can cut, copy, paste and erase. X 5. Can search or search/replace on hex or ascii strings. X 6. Full GEM interface. Open up to 7 files in individual windows. X XInstructions: X Start the program and inspect the menu entries. Under file you can Xopen an existing file or start editing a new file. When you open a file, Xa copy of the file is made in ram which can be edited. This program is Xnot a disk editor, and does not change the copy of the file on the disk Xuntil you specifically save the file. Having opened a file, you can edit Xin hexadecimal or ascii mode. The input mode is switched by clicking the Xmouse in the hex or ascii display area. You can either insert or replace Xbytes. The insert/replace mode is toggled with the insert key or the edit Xmenu. Selected text can be marked using the cursor and the mark menu or Xby dragging the mouse in either the hex or ascii display area (Only the Xhex display is marked). The marked area can be copied or cut to a Xcutbuffer, or erased using the edit menu. Text which has been copied or Xcut to the cutbuffer can be pasted into the file at the cursor position Xusing the paste command in the edit menu. You can search forwards and Xbackwards for ascii strings from the search menu. You can also search and Xreplace from the search menu. You can use the cutbuffer as either the search Xor replace pattern. In this way you can also search or search/replace on Xhex strings. The info menu provides the length of the file and the Xposition of the cursor in the file. The print option under the file menu Xwill print the file in the active window or the marked text (if any) in the Xactive window. Pressing any key during printing will abort printing. X X SHAR_EOF chmod 0600 XXEDSRC.DOC || echo "restore of XXEDSRC.DOC fails" rm -f s2_seq_.tmp echo "You have unpacked the last part" exit 0