]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/lib_head.h
fixed font offset calculation
[16.git] / src / lib / lib_head.h
index 34fcb3a0fbd2ef7271e8d0786a7b18ccabe6b147..3d5355d30748f76d6c9a03373a21aa2e05e7b871 100644 (file)
@@ -1,3 +1,25 @@
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>, or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
 #ifndef _LIBHEAD_H_
 #define _LIBHEAD_H_
 #include <dos.h>
 #define KEY_MENU               (0x75)
 */
 
-//typedef unsigned char byte;
-//typedef unsigned int word;
-//typedef unsigned short syte;
+//#define      FARPTR(S, O)    MK_FP(S, O)\r
+\r
+//#define      inportb(P)      inp(P)\r
+//#define      outportb(P,V)   outp(P,V)\r
+//#define      outportw(P,V)   outpw(P,V)\r
+\r
+//#define      R_AX            w.ax\r
+//#define      R_BX            w.bx\r
+//#define      R_BP            w.bp\r
+//#define      R_ES            w.es\r
+\r
+/* WARNING: for 32-bit code, unused fields of regs_t\r
+must be zeroed before using this macro */\r
+//#define      trap(N,R)       intr(N,R)\r
+
+typedef union REGPACK  regs_t;
+typedef        enum    {false,true}    boolean;
 
 void wait(clock_t wait);
 void* AllocateLargestFreeBlock(size_t* Size);
 size_t GetFreeSize(void);
+long int filesize(FILE *fp);
 
 /* THIS FUNCTION CONVERTS A POINTER TO AN INTEL LONG              */\r
 //int long ptr2long(char *p);