* mpw-config.in (i386-unknown-go32): Change from aout.

(sh-hitachi-hms): New target.
	* mpw-make.in (BISON): Use byacc instead of bison.
	(VERSION): Bump to 4.14.1.
	(*-pinsn.*): Remove mentions everywhere.
	(all): Don't build MacGDB.
	(gdb, SiowGDB): Depend on Version.r.
	(Version.r): Generate from version info.
	* main.c (main): Pass program name to START_PROGRESS, END_PROGRESS.
	(main) [MPW]: Remove debugging hook.
	* mac-xdep.c (debug_openp): New flag.
	(mac_init): Set flag if env variable defined.
	* ser-mac.c (mac_open): Clarify error message.
	(mac_readchar): Call PROGRESS while looping.
	(mac_write): Call sleep instead of sec_sleep.
	(sec_sleep): Remove.
	* source.c (openp) [MPW]: Only print debugging info if debugging.
	* utils.c (query) [MPW]: Clarify that behavior is a bug.
This commit is contained in:
Stan Shebs
1995-03-17 23:21:12 +00:00
parent bff1e14da7
commit e70a10c35a
5 changed files with 108 additions and 66 deletions

View File

@@ -95,7 +95,7 @@ mac_open (scb, name)
}
else
{
error ("You must specify a port. Choices are `modem' or `printer'.");
error ("You must specify a valid serial port name; your choices are `modem' or `printer'.");
errno = ENOENT;
return (-1);
}
@@ -195,6 +195,7 @@ mac_readchar (scb, timeout)
if (now > start_time + timeout)
return SERIAL_TIMEOUT;
}
PROGRESS (1);
}
}
@@ -267,7 +268,7 @@ mac_write (scb, str, len)
if (first_mac_write++ < 4)
{
sec_sleep (1);
sleep (1);
}
pb.ioRefNum = output_refnum;
pb.ioBuffer = (Ptr) str;
@@ -280,20 +281,6 @@ mac_write (scb, str, len)
return 0;
}
sec_sleep (int timeout)
{
unsigned long start_time, now;
time (&start_time);
while (1)
{
time (&now);
if (now > start_time + timeout)
return;
}
}
static void
mac_close (serial_t scb)
{