| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | MSGAPI38 mods for MSC 6.0 |
Here are the changes you need to apply to MSGAPI38 to make it handle OS/2
16-bit MSC 6.0...
Index: msgapi/api_sq.c
diff -c msgapi\api_sq.c:1.11 msgapi\api_sq.c:1.12
*** msgapi\api_sq.c:1.11 Wed Jul 24 01:50:42 1996
--- msgapi\api_sq.c Sat Aug 17 13:16:56 1996
***************
*** 27,33 ****
* *
***************************************************************************/
! /* $Id: api_sq.c,v 1.11 1996/07/24 01:50:43 edwards Exp $ */
#define NOVARS
#define NOVER
--- 27,33 ----
* *
***************************************************************************/
! /* $Id: api_sq.c,v 1.12 1996/08/17 13:16:57 edwards Exp $ */
#define NOVARS
#define NOVER
***************
*** 1770,1776 ****
Sqd->idxbuf_size += (sizeof(SQIDX) * EXTRA_BUF);
if (
! #if (defined(__MSDOS__) && !defined(__FLAT__))
Sqd->idxbuf_size >= 65300L ||
#endif
(Sqd->idxbuf=farrealloc(Sqd->idxbuf,
(word)Sqd->idxbuf_size))==NULL)
--- 1770,1776 ----
Sqd->idxbuf_size += (sizeof(SQIDX) * EXTRA_BUF);
if (
! #if ((defined(__MSDOS__) && !defined(__FLAT__)) || defined(__MSC__))
Sqd->idxbuf_size >= 65300L ||
#endif
(Sqd->idxbuf=farrealloc(Sqd->idxbuf,
(word)Sqd->idxbuf_size))==NULL)
***************
*** 1886,1892 ****
Sqd->idxbuf_size=ofslen+(EXTRA_BUF*(dword)sizeof(SQIDX));
if (
! #if (defined(__MSDOS__) && !defined(__FLAT__))
Sqd->idxbuf_size >= 65300L ||
#endif
(Sqd->idxbuf=farpalloc((size_t)Sqd->idxbuf_size))==NULL)
--- 1886,1892 ----
Sqd->idxbuf_size=ofslen+(EXTRA_BUF*(dword)sizeof(SQIDX));
if (
! #if ((defined(__MSDOS__) && !defined(__FLAT__)) || defined(__MSC__))
Sqd->idxbuf_size >= 65300L ||
#endif
(Sqd->idxbuf=farpalloc((size_t)Sqd->idxbuf_size))==NULL)
Index: msgapi/compiler.h
diff -c msgapi\compiler.h:1.6 msgapi\compiler.h:1.7
*** msgapi\compiler.h:1.6 Wed Jul 24 01:50:46 1996
--- msgapi\compiler.h Sat Aug 17 13:17:00 1996
***************
*** 27,33 ****
* *
***************************************************************************/
! /* $Id: compiler.h,v 1.6 1996/07/24 01:50:46 edwards Exp $ */
/* Non-DOS systems... Just do a "#define __FARCODE__",
*
* "#define __FARDATA__" and "#define __LARGE__" in
place of this file. */
--- 27,33 ----
* *
***************************************************************************/
! /* $Id: compiler.h,v 1.7 1996/08/17 13:17:00 edwards Exp $ */
/* Non-DOS systems... Just do a "#define __FARCODE__",
*
* "#define __FARDATA__" and "#define __LARGE__" in
place of this file. */
***************
*** 56,65 ****
#ifdef OS_2
#if !defined(__MSC__)
#ifndef __386__
#define __386__
#endif
-
#ifndef __FLAT__
#define __FLAT__
#endif
--- 56,65 ----
#ifdef OS_2
#if !defined(__MSC__)
+
#ifndef __386__
#define __386__
#endif
#ifndef __FLAT__
#define __FLAT__
#endif
***************
*** 233,238 ****
--- 233,242 ----
/* MSC 6.0 doesn't appear to have lock + unlock */
#define unlock(a,b,c) NW(a)
#define lock(a,b,c) 0
+ #if defined(OS_2)
+ #define farread read
+ #define farwrite write
+ #endif
#elif defined(__WATCOMC__)
Index: msgapi/makefile.mso
diff -c msgapi\makefile.mso:1.2 msgapi\makefile.mso:1.3
*** msgapi\makefile.mso:1.2 Sun Jul 21 20:35:36 1996
--- msgapi\makefile.mso Sat Aug 17 13:22:08 1996
***************
*** 10,16 ****
OBJS= 1stchar.obj msgapi.obj api_sdm.obj api_sq.obj cvtdate.obj \
date2bin.obj dosdate.obj fexist.obj ffind.obj flush.obj \
months.obj parsenn.obj qksort.obj strftim.obj stristr.obj \
! strocpy.obj trail.obj weekday.obj sqasm.obj
.c.obj:
$(CC) $(CFLAGS) $(CDEFS) $(COPT) -I$(I) -c $<
--- 10,16 ----
OBJS= 1stchar.obj msgapi.obj api_sdm.obj api_sq.obj cvtdate.obj \
date2bin.obj dosdate.obj fexist.obj ffind.obj flush.obj \
months.obj parsenn.obj qksort.obj strftim.obj stristr.obj \
! strocpy.obj trail.obj weekday.obj
.c.obj:
$(CC) $(CFLAGS) $(CDEFS) $(COPT) -I$(I) -c $<
***************
*** 38,44 ****
lib ${at} +strocpy.obj,,
lib ${at} +trail.obj,,
lib ${at} +weekday.obj,,
- lib ${at} +sqasm.obj,,
clean:
$(RM) msgapi.lib $(TARGET) $(OBJS) 2>/dev/nul
--- 38,43 ----
Index: msgapi/msgapi.h
diff -c msgapi\msgapi.h:1.3 msgapi\msgapi.h:1.4
*** msgapi\msgapi.h:1.3 Wed Jul 24 01:50:46 1996
--- msgapi\msgapi.h Sat Aug 17 13:17:00 1996
***************
*** 27,33 ****
* *
***************************************************************************/
! /* $Id: msgapi.h,v 1.3 1996/07/24 01:50:47 edwards Exp $ */
#ifndef __SQAPI_H_DEFINED
#define __SQAPI_H_DEFINED
--- 27,33 ----
* *
***************************************************************************/
! /* $Id: msgapi.h,v 1.4 1996/08/17 13:17:01 edwards Exp $ */
#ifndef __SQAPI_H_DEFINED
#define __SQAPI_H_DEFINED
***************
*** 369,375 ****
word EXPENTRY NumKludges(char *txt);
void EXPENTRY RemoveFromCtrl(byte *ctrl,byte *what);
! #if (defined(__MSC__) || !defined(OS_2) && !defined(__FLAT__))
sword far pascal farread(sword handle,byte far *buf,word len);
sword far pascal farwrite(sword handle,byte far *buf,word len);
#endif
--- 369,375 ----
word EXPENTRY NumKludges(char *txt);
void EXPENTRY RemoveFromCtrl(byte *ctrl,byte *what);
! #if (!defined(OS_2) && !defined(__FLAT__))
sword far pascal farread(sword handle,byte far *buf,word len);
sword far pascal farwrite(sword handle,byte far *buf,word len);
#endif
@EOT:
---
SDޝ9
* Origin: X (3:711/934.9)SEEN-BY: 633/267 270 @PATH: 711/934 808 50/99 635/544 727 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.