[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pdomain for MagiC 4



Hello,

>I'd rather suggest
>+	if (_app)
>+		_pdomain = Pdomain(1);

I agree with this. The patch should look like:

--- main.c.orig	Fri Nov 10 09:37:13 1995
+++ main.c	Fri Nov 10 15:05:40 1995
@@ -17,6 +17,7 @@
 
 int	errno;
 int	__mint;		/* 0 for TOS, MiNT version number otherwise */
+int	_pdomain;       /* errorcode of Pdomain call */
 
 char	_rootdir;	/* user's preferred root directory */
 
@@ -103,8 +104,8 @@
  * check for MiNT
  */
 	(void)Supexec(getMiNT);
-	if (__mint && _app)
-		(void)Pdomain(1);	/* set MiNT domain */
+	if (_app)
+		_pdomain = Pdomain(1);	/* set MiNT domain */
 
 /*
  * initialize UNIXMODE stuff. Note that this library supports only

Dirk