🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.pc
Article #5996

Re: MicroEmacs for PC-AT (public domain)

#5996
From: rickf
Date: Mon, 17 Mar 1986 17:25
75 lines
3000 bytes
># Written 11:55 am  Mar 11, 1986 by pogo!jutz in hplsla:net.micro.pc
># ---------- "MicroEmacs for PC-AT (public domain)" ---------- 
>
>
> 	Just yesterday I posted MicroEmacs for the PC-AT in 
>	net.sources.  There were two entries.  I forgot to 
>	include "ed.h" in the first submission.  The other 
>	I posted today.
>
>
>		Curt jutzi
>		tektronix!pogo!jutz
>

I pulled off the source including ed.h.  I split the large file into
its components on my UNIX machine, before transferring them to my AT
clone (HP Vectra).  I then attempted to compile and link (MS C 3.0)
and found the following problems:

main.c had syntax errors.  The following source is taken straight
out of the un-split micro.emacs:

>/*
> * Execute a macro.
> * The command argument is the number of times to loop. Quit as soon as a
> * command gets an error. Return TRUE if all ok, else FALSE.
> */
>ctlxe(f, n)
>{
>        register int    c;
>        register int    af;
>        register int    an;
>        register int    s;
>
>        if (kbdmip!=NULL || kbdmop!=NULL) {
>                mlwrite("Not now");
>                return (FALSE);
>        }
>        if (n <= 0) 
>                return (TRUE);
>        do {
>                kbdmop = &kbdm[0];
>                do {
>                        af = FALSE;
>                        an = 1;
>                        if ((c = *kbdmop++) == (CTRL|'U')) {
>                                af = TRUE;
>                                an = *kbdmop++;
>                                c  = *kbdmop++;
>                        }
>                        s = TRUE;
>                } while (c!=(CTLX|')') && (s=execute(c, af, an))==TRUE);
>--------- meta.c
>
>#include        <stdio.h>
>#include        "ed.h"
>
>#define 	NMETA_CMDS  52
>

It looks to me as though some lines from main.c (which contain cltxe()) did
not make it into the posting.  The enclosing while to the first do in this
function is missing.

Could this missing source also explain why I get "ctrlg: Unresolved external"
when I link my files. (I took a guess at the missing while to get main.c
to compile).

I suppose that there is a chance that my site is at fault.  If anyone has
a solution please help by posting it here or to net.sources.

Thanks,

Rick Freeman   (hplsla!rickf)
Technical Details
Message-ID: <7800001@hplsla.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!tektronix!uw-beaver!tikal!hplsla!rickf
References: <2396@pogo.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: Notesfiles hp 1.3 exp 09/24/84; site hplsla.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!tektronix!uw-beaver!tikal!hplsla!rickf
From: rickf@hplsla.UUCP (rickf)
Newsgroups: net.micro.pc
Subject: Re: MicroEmacs for PC-AT (public domain)
Message-ID: <7800001@hplsla.UUCP>
Date: Mon, 17-Mar-86 12:25:00 EST
Article-I.D.: hplsla.7800001
Posted: Mon Mar 17 12:25:00 1986
Date-Received: Sat, 22-Mar-86 05:29:35 EST
References: <2396@pogo.UUCP>
Lines: 75
Nf-ID: #R:pogo:-239600:hplsla:7800001:000:2282
Nf-From: hplsla!rickf    Mar 17 10:25:00 1986