Category : Files from Magazines
Archive   : PJ82.ZIP
Filename : FIG.4

 
Output of file : FIG.4 contained in archive : PJ82.ZIP
/* excerpts from the Lex module for the Windows DDE Communications server. */

setdcb [sS][eE][tT][dD][cC][bB] /* only opcode we recognize */
integer [0-9]+
%{

extern LPSTR cmdstr; /* execute command string from client */

/* not interactive */
#undef YY_INTERACTIVE
#define YY_INTERACTIVE 0

/* this seems to allow lex to restart after seeing EOF */
#define YY_PRESERVE

/* define our own input */
#undef yygetc
#define yygetc() mygetc()

/* don't need this one */
#undef output
#define output(c)

/* take care of fatal errors a la windows */
#undef YY_FATAL
#define YY_FATAL(msg) { MessageBox(hWndMain, msg, szAppName, \
MB_OK | MB_ICONEXCLAMATION); \
PostMessage(hWndMain, WM_SYSCOMMAND, SC_CLOSE, 0L); }
%}

%%
{setdcb} {
return SETDCB;
}

{integer} {
yylval = atoi(yytext);
return INTEGER;
}

. {
return *yytext; /* let yacc handle any unexpected input */
}
%%

/* read the command string */
static int NEAR mygetc()
{
register ch = *cmdstr++;
return(ch ? ch : EOF);
}


  3 Responses to “Category : Files from Magazines
Archive   : PJ82.ZIP
Filename : FIG.4

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/