From mint-bounce@lists.fishpool.fi  Tue Sep  1 17:45:42 2009
X-Authenticated: #48718759
X-Provags-ID: V01U2FsdGVkX18kJJxpzN0knCbaqlT2llDYctco3jY0YvwpTWSk66
	RPKUKpK2uICmsZ
Message-ID: <233654.951767193-sendEmail@descaro>
From: "hk10@gmx.de" <hk10@gmx.de>
To: "mint" <mint@fishpool.com>
Cc: "hk10@gmx.de" <hk10@gmx.de>
Subject: [MiNT] XaAES:update#1:info.c
Date: Tue, 1 Sep 2009 21:17:15 +0000
X-Mailer: sendEmail-1.55
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----MIME delimiter for sendEmail-829479.988505231"
X-Antivirus: avast! (VPS 090901-0, 01.09.2009), Outbound message
X-Antivirus-Status: Clean
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.83,0.51
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-to: mint-bounce@lists.fishpool.fi
X-original-sender: hk10@gmx.de
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>

This is a multi-part message in MIME format. To properly display this message you need a MIME-Version 1.0 compliant Email program.

------MIME delimiter for sendEmail-829479.988505231
Content-Type: text/plain;
 	   charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

This is a complete new file.
 
changelog:
 
----------------------------------------------------------------------
Extracetd from xa_appl.c. Should be compiled on every build to get real compile-time.
----------------------------------------------------------------------



------MIME delimiter for sendEmail-829479.988505231
Content-Type: text/plain;
 	   name="info.c.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
  filename="info.c.patch"

--- orig/info.c	2009-09-01 23:01:27.000000000 +0200
+++ info.c	2009-08-31 21:29:28.703125000 +0200
@@ -0,0 +1,74 @@
+/*
+ * Init certain things in the info_tab used by appl_getinfo()
+ *
+ * In non-release-version build status-string
+ *
+ * file is updated on every build
+ *
+ */
+
+#include "xa_global.h"
+#include "info.h"
+#include "version.h"
+
+extern short info_tab[][4];	/* xa_appl.c */
+
+static char *mcs(char *d, char *s)
+{
+	while ((*d++ = *s++))
+		;
+
+	return d - 1;
+}
+
+
+void
+init_apgi_infotab(void)
+{
+#if !XAAES_RELEASE
+	char *s = info_string;
+	
+
+	/*
+	 * Build status string
+	 */
+
+#if 0
+	s = mcs(s, version);
+	*s++ = 0x7c;
+	
+
+	if (DEV_STATUS & AES_FDEVSTATUS_STABLE)
+		s = mcs(s, "Stable ");
+	else
+		s = mcs(s, "");
+		
+	s = mcs(s, ASCII_DEV_STATUS);
+	*s++ = 0x7c;
+	s = mcs(s, ASCII_ARCH_TARGET);
+	*s++ = 0x7c;
+#endif
+
+	s = mcs(s, BDATE);*s++ = 0x20;
+	s = mcs(s, BTIME);
+	*s++ = 0x7c;
+	s = mcs(s, BCOMPILER);
+#if 0
+	s = mcs(s, BC_MAJ);
+	s = mcs(s, ".");
+	s = mcs(s, BC_MIN);
+#endif
+	*s++ = 0;
+
+	DIAGS(("Build status-string '%s'", info_string));
+#endif
+	info_tab[0][0] = screen.standard_font_height;
+ 	info_tab[0][1] = screen.standard_font_id;
+	info_tab[1][0] = screen.small_font_height;
+	info_tab[1][1] = screen.small_font_id;
+	
+	info_tab[2][0] = xbios_getrez();
+	info_tab[2][1] = 256;
+	info_tab[2][2] = 1;
+	info_tab[2][3] = 1; // + 2;
+}

------MIME delimiter for sendEmail-829479.988505231--


