build: add the SIBO SDK
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
/* Generated by Ctran from aclist.cl */
|
||||
#define ACLIST_G
|
||||
#ifndef LODGER_G
|
||||
#include <lodger.g>
|
||||
#endif
|
||||
#ifndef VARES_G
|
||||
#include <vares.g>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_SMACLIST 22
|
||||
#define C_ACLIST 23
|
||||
/* Method Numbers */
|
||||
/* Constants for smaclist */
|
||||
#define SMACLIST_MAX_STRING 80
|
||||
/* Types for smaclist */
|
||||
typedef struct
|
||||
{
|
||||
short int width;
|
||||
short int x;
|
||||
} BUT_POS;
|
||||
typedef struct
|
||||
{
|
||||
short int rid;
|
||||
} IN_ACLIST;
|
||||
/* Property of smaclist */
|
||||
typedef struct {
|
||||
PR_VARES *data;
|
||||
BUT_POS *pos;
|
||||
unsigned short int totalwidth;
|
||||
unsigned short int num;
|
||||
unsigned short int lwidth;
|
||||
} PRS_SMACLIST;
|
||||
typedef struct pr_smaclist
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_LODGER lodger;
|
||||
PRS_SMACLIST smaclist;
|
||||
} PR_SMACLIST;
|
||||
/* Types for aclist */
|
||||
typedef struct
|
||||
{
|
||||
short int keycode;
|
||||
char str[1];
|
||||
} PUSH_BUT;
|
||||
/* Property of aclist */
|
||||
typedef struct {
|
||||
PR_VARES *text;
|
||||
short int width;
|
||||
unsigned short int y1;
|
||||
unsigned short int y2;
|
||||
} PRS_ACLIST;
|
||||
typedef struct pr_aclist
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_LODGER lodger;
|
||||
PRS_SMACLIST smaclist;
|
||||
PRS_ACLIST aclist;
|
||||
} PR_ACLIST;
|
||||
@@ -0,0 +1,55 @@
|
||||
; Generated by Ctran from aclist.cl
|
||||
ACLIST_ING equ 1
|
||||
IFNDEF LODGER_ING
|
||||
INCLUDE ..\inc\LODGER.ING
|
||||
ENDIF
|
||||
IFNDEF VARES_ING
|
||||
INCLUDE ..\inc\VARES.ING
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_SMACLIST equ 22
|
||||
C_ACLIST equ 23
|
||||
; Method Numbers
|
||||
; Constants for smaclist
|
||||
SMACLIST_MAX_STRING equ (80)
|
||||
; Types for smaclist
|
||||
BUT_POS struc
|
||||
BUT_POSWidth dw ?
|
||||
BUT_POSX dw ?
|
||||
BUT_POS ends
|
||||
IN_ACLIST struc
|
||||
IN_ACLISTRid dw ?
|
||||
IN_ACLIST ends
|
||||
; Property of smaclist
|
||||
PRS_SMACLIST struc
|
||||
SmaclistData dw ?
|
||||
SmaclistPos dw ?
|
||||
SmaclistTotalwidth dw ?
|
||||
SmaclistNum dw ?
|
||||
SmaclistLwidth dw ?
|
||||
PRS_SMACLIST ends
|
||||
PR_SMACLIST struc
|
||||
SmaclistRoot PRS_ROOT <>
|
||||
SmaclistWin PRS_WIN <>
|
||||
SmaclistLodger PRS_LODGER <>
|
||||
SmaclistSmaclist PRS_SMACLIST <>
|
||||
PR_SMACLIST ends
|
||||
; Types for aclist
|
||||
PUSH_BUT struc
|
||||
PUSH_BUTKeycode dw ?
|
||||
PUSH_BUTStr db (1) * 1 dup (?)
|
||||
PUSH_BUT ends
|
||||
; Property of aclist
|
||||
PRS_ACLIST struc
|
||||
AclistText dw ?
|
||||
AclistWidth dw ?
|
||||
AclistY1 dw ?
|
||||
AclistY2 dw ?
|
||||
PRS_ACLIST ends
|
||||
PR_ACLIST struc
|
||||
AclistRoot PRS_ROOT <>
|
||||
AclistWin PRS_WIN <>
|
||||
AclistLodger PRS_LODGER <>
|
||||
AclistSmaclist PRS_SMACLIST <>
|
||||
AclistAclist PRS_ACLIST <>
|
||||
PR_ACLIST ends
|
||||
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
Symbols in the agn symbol fonts
|
||||
*/
|
||||
|
||||
/* avoiding using 0 */
|
||||
#define AGN_SYM_BELL 1
|
||||
#define AGN_SYM_MEMO 2
|
||||
#define AGN_SYM_CHEVRON 3 /* could use CHAR 175 of standard fonts instead */
|
||||
#define AGN_SYM_CANDLE 4
|
||||
#define AGN_SYM_UNTIL_ARROW 5
|
||||
#define AGN_SYM_BULLET 6
|
||||
#define AGN_SYM_NONBRK_SPACE 7
|
||||
#define AGN_SYM_TODO_PTY(X) (11+X)
|
||||
#define AGN_SYM_UP_ARROW 24
|
||||
#define AGN_SYM_DOWN_ARROW 25
|
||||
#define AGN_SYM_RIGHT_ARROW 26
|
||||
#define AGN_SYM_LEFT_ARROW 27
|
||||
@@ -0,0 +1,86 @@
|
||||
/* Release 3.00 */
|
||||
|
||||
/*-------------------------------------------------------------------------*
|
||||
* *
|
||||
* alloc.h - header file for memory allocation functions. *
|
||||
* *
|
||||
* COPYRIGHT (C) 1989 Jensen and Partners. All Rights Reserved *
|
||||
* *
|
||||
*--------------------------------------------------------------------------*/
|
||||
#include <stdepoc.h>
|
||||
|
||||
#ifndef _ALLOC_INC_
|
||||
#define _ALLOC_INC_
|
||||
|
||||
#ifndef _SIZE_T
|
||||
#define _SIZE_T
|
||||
typedef unsigned size_t;
|
||||
#endif
|
||||
|
||||
#ifndef NULL
|
||||
#define NULL 0
|
||||
#endif
|
||||
|
||||
struct _heapinfo {
|
||||
int * _pentry;
|
||||
size_t _size;
|
||||
int _useflag;
|
||||
void * _secret;
|
||||
};
|
||||
|
||||
#ifndef __STDC__
|
||||
struct _nheapinfo {
|
||||
int * _pentry;
|
||||
size_t _size;
|
||||
int _useflag;
|
||||
void * _secret;
|
||||
};
|
||||
#endif
|
||||
|
||||
#define _HEAPOK 0
|
||||
#define _HEAPEMPTY -1
|
||||
#define _HEAPBADBEGIN -2
|
||||
#define _HEAPBADNODE -3
|
||||
#define _HEAPOVERFLOW -4
|
||||
#define _HEAPEND -5
|
||||
#define _HEAPBADPTR -6
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
extern void * calloc(size_t _num, size_t _size);
|
||||
extern void free(void *_block);
|
||||
extern void * malloc(size_t _size);
|
||||
extern void * realloc(void *_block, size_t _size);
|
||||
extern size_t stackavail(void);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef __STDC__
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
extern int _msize(void *_buffer);
|
||||
extern size_t _memmax(void);
|
||||
extern size_t _memavl(void);
|
||||
extern int _heapchk(void);
|
||||
extern int _heapset(int _fill);
|
||||
extern int _heapwalk(struct _heapinfo *_entry);
|
||||
extern unsigned _freect(size_t _size);
|
||||
extern unsigned coreleft(void);
|
||||
extern void * _ncalloc(size_t num, size_t _size);
|
||||
extern void _nfree(void *_block);
|
||||
extern void * _nmalloc(size_t _size);
|
||||
extern void * _nrealloc(void *_block, size_t _size);
|
||||
extern int _nheapchk(void);
|
||||
extern int _nheapset(int _fill);
|
||||
extern int _nheapwalk(struct _nheapinfo *_nearentry);
|
||||
extern int _nmsize(void *_buffer);
|
||||
extern unsigned nearcoreleft(void);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,180 @@
|
||||
/* Generated by Ctran from appman.cat */
|
||||
#define APPMAN_G
|
||||
#ifndef VARRAY_G
|
||||
#include <varray.g>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_CLEANUP 9
|
||||
#define C_ACTIVE 10
|
||||
#define C_AIDLE 11
|
||||
#define C_RSCFILE 12
|
||||
#define C_SYSTEM 13
|
||||
#define C_IPCS 14
|
||||
#define C_APPMAN 15
|
||||
/* Method Numbers */
|
||||
#define O_RS_READ_BUF 3
|
||||
#define O_CL_REMOVE 26
|
||||
#define O_CL_CLEAN_LEVEL 28
|
||||
#define O_SY_ICON_POS 2
|
||||
#define O_CL_INIT 24
|
||||
#define O_SY_LINK_PASTE 4
|
||||
#define O_CL_SET_LEVEL 29
|
||||
#define O_SY_LINK_SERVER 3
|
||||
#define O_AM_NOTIFYERR 10
|
||||
#define O_AM_ADD_TASK 4
|
||||
#define O_AM_WAIT 5
|
||||
#define O_AO_ABRUN 3
|
||||
#define O_AM_START 2
|
||||
#define O_AM_NOTIFY 9
|
||||
#define O_AM_CLEAN_UP 11
|
||||
#define O_AO_CANCEL 2
|
||||
#define O_AO_QUEUE 4
|
||||
#define O_AM_RSCNAME 8
|
||||
#define O_SY_EXEC_OPEN 5
|
||||
#define O_AO_INIT 1
|
||||
#define O_CL_CLEAN_ITEM 27
|
||||
#define O_RS_READ 2
|
||||
#define O_CL_ADD 25
|
||||
#define O_AM_ONLYONE 12
|
||||
#define O_SY_INIT 1
|
||||
#define O_IP_ADD_SERVER 6
|
||||
#define O_AM_FINDIMG 13
|
||||
#define O_RS_INIT 1
|
||||
#define O_AM_LOAD_RES_BUF 7
|
||||
#define O_AO_RUN 5
|
||||
#define O_AM_STOP 3
|
||||
#define O_AM_CHANGE_PRI 14
|
||||
#define O_AM_INIT 1
|
||||
#define O_AM_LOAD_RESOURCE 6
|
||||
/* Constants for cleanup */
|
||||
#define TY_CLEANUP_DYL -5
|
||||
#define TY_CLEANUP_SHARED -4
|
||||
#define TY_CLEANUP_VOID -3
|
||||
#define TY_CLEANUP_ALLOC -2
|
||||
#define TY_CLEANUP_IOCHAN -1
|
||||
#define TY_CLEANUP_OBJECT 0
|
||||
/* Types for cleanup */
|
||||
typedef struct
|
||||
{
|
||||
char type;
|
||||
unsigned char level;
|
||||
int h;
|
||||
} RC_CLEANUP;
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int nref;
|
||||
} SHARED_ALLOC;
|
||||
/* Property of cleanup */
|
||||
typedef struct {
|
||||
unsigned short int level;
|
||||
} PRS_CLEANUP;
|
||||
typedef struct pr_cleanup
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_VAROOT varoot;
|
||||
PRS_VAFIX vafix;
|
||||
PRS_VAFLAT vaflat;
|
||||
PRS_CLEANUP cleanup;
|
||||
} PR_CLEANUP;
|
||||
/* Constants for active */
|
||||
#define PRIORITY_ACTIVE_POSTER 100
|
||||
#define PRIORITY_ACTIVE_IPCS 80
|
||||
#define PRIORITY_ACTIVE_VOICE 70
|
||||
#define PRIORITY_ACTIVE_WSERV 60
|
||||
#define PRIORITY_ACTIVE_COMMAND 40
|
||||
#define PRIORITY_ACTIVE_SERIAL 20
|
||||
#define PRIORITY_ACTIVE_ALARM 0
|
||||
#define PRIORITY_ACTIVE_FILES -20
|
||||
#define PRIORITY_ACTIVE_REPEATER -40
|
||||
#define PRIORITY_ACTIVE_PRINT -60
|
||||
#define PRIORITY_ACTIVE_COMPUTE -100
|
||||
/* Property of active */
|
||||
typedef struct {
|
||||
P_QUE q;
|
||||
char priority;
|
||||
unsigned char isactive;
|
||||
unsigned char *pcb;
|
||||
short int stat;
|
||||
} PRS_ACTIVE;
|
||||
typedef struct pr_active
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
} PR_ACTIVE;
|
||||
/* Property of aidle */
|
||||
typedef struct pr_aidle
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
} PR_AIDLE;
|
||||
/* Types for rscfile */
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int pos;
|
||||
unsigned short int len;
|
||||
} PR_RSCFILE_HEAD;
|
||||
/* Property of rscfile */
|
||||
typedef struct {
|
||||
unsigned char *pcb;
|
||||
PR_RSCFILE_HEAD ix;
|
||||
unsigned short int offset;
|
||||
unsigned long int hftree;
|
||||
} PRS_RSCFILE;
|
||||
typedef struct pr_rscfile
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_RSCFILE rscfile;
|
||||
} PR_RSCFILE;
|
||||
/* Constants for system */
|
||||
#define IC_SYSTEM_ALLOC 0
|
||||
#define IC_SYSTEM_REMOVE 1
|
||||
#define IC_SYSTEM_REPLACE 2
|
||||
/* Property of system */
|
||||
typedef struct {
|
||||
unsigned short int pid;
|
||||
} PRS_SYSTEM;
|
||||
typedef struct pr_system
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_SYSTEM system;
|
||||
} PR_SYSTEM;
|
||||
/* Property of ipcs */
|
||||
typedef struct {
|
||||
P_QUE hd;
|
||||
} PRS_IPCS;
|
||||
typedef struct pr_ipcs
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
PRS_IPCS ipcs;
|
||||
} PR_IPCS;
|
||||
/* Constants for appman */
|
||||
#define FLG_APPMAN_CLEAN 0x01
|
||||
#define FLG_APPMAN_SYSTEM 0x02
|
||||
#define FLG_APPMAN_RSCFILE 0x04
|
||||
#define FLG_APPMAN_SRSCFILE 0x08
|
||||
#define FLG_APPMAN_IPCS 0x10
|
||||
#define FLG_APPMAN_ONLYONE 0x20
|
||||
#define FLG_APPMAN_NODBG 0x40
|
||||
#define RUN_ACTIVE_UNUSED 0
|
||||
#define RUN_ACTIVE_USED 1
|
||||
#define ERR_APPMAN_APPL -512
|
||||
/* Property of appman */
|
||||
typedef struct {
|
||||
PR_CLEANUP *clean;
|
||||
PR_SYSTEM *system;
|
||||
PR_RSCFILE *rcb;
|
||||
PR_RSCFILE *srcb;
|
||||
PR_IPCS *ipcs;
|
||||
P_QUE task;
|
||||
unsigned short int stop;
|
||||
short int nrid;
|
||||
short int err;
|
||||
unsigned char *spare1;
|
||||
unsigned char *spare2;
|
||||
} PRS_APPMAN;
|
||||
typedef struct pr_appman
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_APPMAN appman;
|
||||
} PR_APPMAN;
|
||||
@@ -0,0 +1,170 @@
|
||||
; Generated by Ctran from appman.cat
|
||||
APPMAN_ING equ 1
|
||||
IFNDEF VARRAY_ING
|
||||
INCLUDE ..\inc\VARRAY.ING
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_CLEANUP equ 9
|
||||
C_ACTIVE equ 10
|
||||
C_AIDLE equ 11
|
||||
C_RSCFILE equ 12
|
||||
C_SYSTEM equ 13
|
||||
C_IPCS equ 14
|
||||
C_APPMAN equ 15
|
||||
; Method Numbers
|
||||
O_RS_READ_BUF equ 3
|
||||
O_CL_REMOVE equ 26
|
||||
O_CL_CLEAN_LEVEL equ 28
|
||||
O_SY_ICON_POS equ 2
|
||||
O_CL_INIT equ 24
|
||||
O_SY_LINK_PASTE equ 4
|
||||
O_CL_SET_LEVEL equ 29
|
||||
O_SY_LINK_SERVER equ 3
|
||||
O_AM_NOTIFYERR equ 10
|
||||
O_AM_ADD_TASK equ 4
|
||||
O_AM_WAIT equ 5
|
||||
O_AO_ABRUN equ 3
|
||||
O_AM_START equ 2
|
||||
O_AM_NOTIFY equ 9
|
||||
O_AM_CLEAN_UP equ 11
|
||||
O_AO_CANCEL equ 2
|
||||
O_AO_QUEUE equ 4
|
||||
O_AM_RSCNAME equ 8
|
||||
O_SY_EXEC_OPEN equ 5
|
||||
O_AO_INIT equ 1
|
||||
O_CL_CLEAN_ITEM equ 27
|
||||
O_RS_READ equ 2
|
||||
O_CL_ADD equ 25
|
||||
O_AM_ONLYONE equ 12
|
||||
O_SY_INIT equ 1
|
||||
O_IP_ADD_SERVER equ 6
|
||||
O_AM_FINDIMG equ 13
|
||||
O_RS_INIT equ 1
|
||||
O_AM_LOAD_RES_BUF equ 7
|
||||
O_AO_RUN equ 5
|
||||
O_AM_STOP equ 3
|
||||
O_AM_CHANGE_PRI equ 14
|
||||
O_AM_INIT equ 1
|
||||
O_AM_LOAD_RESOURCE equ 6
|
||||
; Constants for cleanup
|
||||
TY_CLEANUP_DYL equ (-5)
|
||||
TY_CLEANUP_SHARED equ (-4)
|
||||
TY_CLEANUP_VOID equ (-3)
|
||||
TY_CLEANUP_ALLOC equ (-2)
|
||||
TY_CLEANUP_IOCHAN equ (-1)
|
||||
TY_CLEANUP_OBJECT equ (0)
|
||||
; Types for cleanup
|
||||
RC_CLEANUP struc
|
||||
RC_CLEANUPType db ?
|
||||
RC_CLEANUPLevel db ?
|
||||
RC_CLEANUPH dw ?
|
||||
RC_CLEANUP ends
|
||||
SHARED_ALLOC struc
|
||||
SHARED_ALLOCNref dw ?
|
||||
SHARED_ALLOC ends
|
||||
; Property of cleanup
|
||||
PRS_CLEANUP struc
|
||||
CleanupLevel dw ?
|
||||
PRS_CLEANUP ends
|
||||
PR_CLEANUP struc
|
||||
CleanupRoot PRS_ROOT <>
|
||||
CleanupVaroot PRS_VAROOT <>
|
||||
CleanupVafix PRS_VAFIX <>
|
||||
CleanupVaflat PRS_VAFLAT <>
|
||||
CleanupCleanup PRS_CLEANUP <>
|
||||
PR_CLEANUP ends
|
||||
; Constants for active
|
||||
PRIORITY_ACTIVE_POSTER equ (100)
|
||||
PRIORITY_ACTIVE_IPCS equ (80)
|
||||
PRIORITY_ACTIVE_VOICE equ (70)
|
||||
PRIORITY_ACTIVE_WSERV equ (60)
|
||||
PRIORITY_ACTIVE_COMMAND equ (40)
|
||||
PRIORITY_ACTIVE_SERIAL equ (20)
|
||||
PRIORITY_ACTIVE_ALARM equ (0)
|
||||
PRIORITY_ACTIVE_FILES equ (-20)
|
||||
PRIORITY_ACTIVE_REPEATER equ (-40)
|
||||
PRIORITY_ACTIVE_PRINT equ (-60)
|
||||
PRIORITY_ACTIVE_COMPUTE equ (-100)
|
||||
; Property of active
|
||||
PRS_ACTIVE struc
|
||||
ActiveQ P_QUE <>
|
||||
ActivePriority db ?
|
||||
ActiveIsactive db ?
|
||||
ActivePcb dw ?
|
||||
ActiveStat dw ?
|
||||
PRS_ACTIVE ends
|
||||
PR_ACTIVE struc
|
||||
ActiveRoot PRS_ROOT <>
|
||||
ActiveActive PRS_ACTIVE <>
|
||||
PR_ACTIVE ends
|
||||
; Property of aidle
|
||||
PR_AIDLE struc
|
||||
AidleRoot PRS_ROOT <>
|
||||
AidleActive PRS_ACTIVE <>
|
||||
PR_AIDLE ends
|
||||
; Types for rscfile
|
||||
PR_RSCFILE_HEAD struc
|
||||
PR_RSCFILE_HEADPos dw ?
|
||||
PR_RSCFILE_HEADLen dw ?
|
||||
PR_RSCFILE_HEAD ends
|
||||
; Property of rscfile
|
||||
PRS_RSCFILE struc
|
||||
RscfilePcb dw ?
|
||||
RscfileIx PR_RSCFILE_HEAD <>
|
||||
RscfileOffset dw ?
|
||||
RscfileHftree dd ?
|
||||
PRS_RSCFILE ends
|
||||
PR_RSCFILE struc
|
||||
RscfileRoot PRS_ROOT <>
|
||||
RscfileRscfile PRS_RSCFILE <>
|
||||
PR_RSCFILE ends
|
||||
; Constants for system
|
||||
IC_SYSTEM_ALLOC equ (0)
|
||||
IC_SYSTEM_REMOVE equ (1)
|
||||
IC_SYSTEM_REPLACE equ (2)
|
||||
; Property of system
|
||||
PRS_SYSTEM struc
|
||||
SystemPid dw ?
|
||||
PRS_SYSTEM ends
|
||||
PR_SYSTEM struc
|
||||
SystemRoot PRS_ROOT <>
|
||||
SystemSystem PRS_SYSTEM <>
|
||||
PR_SYSTEM ends
|
||||
; Property of ipcs
|
||||
PRS_IPCS struc
|
||||
IpcsHd P_QUE <>
|
||||
PRS_IPCS ends
|
||||
PR_IPCS struc
|
||||
IpcsRoot PRS_ROOT <>
|
||||
IpcsActive PRS_ACTIVE <>
|
||||
IpcsIpcs PRS_IPCS <>
|
||||
PR_IPCS ends
|
||||
; Constants for appman
|
||||
FLG_APPMAN_CLEAN equ (001h)
|
||||
FLG_APPMAN_SYSTEM equ (002h)
|
||||
FLG_APPMAN_RSCFILE equ (004h)
|
||||
FLG_APPMAN_SRSCFILE equ (008h)
|
||||
FLG_APPMAN_IPCS equ (010h)
|
||||
FLG_APPMAN_ONLYONE equ (020h)
|
||||
FLG_APPMAN_NODBG equ (040h)
|
||||
RUN_ACTIVE_UNUSED equ (0)
|
||||
RUN_ACTIVE_USED equ (1)
|
||||
ERR_APPMAN_APPL equ (-512)
|
||||
; Property of appman
|
||||
PRS_APPMAN struc
|
||||
AppmanClean dw ?
|
||||
AppmanSystem dw ?
|
||||
AppmanRcb dw ?
|
||||
AppmanSrcb dw ?
|
||||
AppmanIpcs dw ?
|
||||
AppmanTask P_QUE <>
|
||||
AppmanStop dw ?
|
||||
AppmanNrid dw ?
|
||||
AppmanErr dw ?
|
||||
AppmanSpare1 dw ?
|
||||
AppmanSpare2 dw ?
|
||||
PRS_APPMAN ends
|
||||
PR_APPMAN struc
|
||||
AppmanRoot PRS_ROOT <>
|
||||
AppmanAppman PRS_APPMAN <>
|
||||
PR_APPMAN ends
|
||||
@@ -0,0 +1,28 @@
|
||||
/* Release 3.00 */
|
||||
|
||||
/*-------------------------------------------------------------------------*
|
||||
* *
|
||||
* assert.h - assert macro. *
|
||||
* *
|
||||
* COPYRIGHT (C) 1989 Jensen and Partners. All Rights Reserved *
|
||||
* *
|
||||
*--------------------------------------------------------------------------*/
|
||||
#include <stdepoc.h>
|
||||
|
||||
#ifdef NDEBUG
|
||||
#define assert(ignore) ((void) 0)
|
||||
#else
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
extern void abort(void);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#define assert(p) ((p) ? ((void) 0) : (( (void) fprintf(stderr,\
|
||||
"Assertion failed: %s, file %s, line %d\n",\
|
||||
#p, __FILE__, __LINE__)), (abort())))
|
||||
#endif
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
File: ATS.H
|
||||
Copyright (C) Psion PLC 1993
|
||||
Started by : DavidW
|
||||
Started on: 12/02/93
|
||||
*/
|
||||
#ifndef ATS_H
|
||||
#define ATS_H
|
||||
|
||||
#include <p_std.h>
|
||||
#include <epoc.h>
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UWORD main;
|
||||
UWORD mainlen;
|
||||
UWORD buts;
|
||||
WORD butslen;
|
||||
} ATS_DIAL_DEF;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UWORD key;
|
||||
UWORD mod;
|
||||
} ATS_KEY_DEF;
|
||||
|
||||
typedef union
|
||||
{
|
||||
UWORD position;
|
||||
ATS_KEY_DEF k;
|
||||
ATS_DIAL_DEF d;
|
||||
UWORD delay;
|
||||
VOID *offs;
|
||||
WORD par;
|
||||
UWORD wid;
|
||||
} ATS_MESS_BODY;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
E_MESSAGE mess;
|
||||
ATS_MESS_BODY u;
|
||||
} ATS_MESS;
|
||||
|
||||
#define TY_ATS_CLIENT_POS 0x30
|
||||
#define TY_ATS_KEY 0x31
|
||||
#define TY_ATS_PAUSE 0x32
|
||||
#define TY_ATS_MESSAGE 0x33
|
||||
#define TY_ATS_DIALOG 0x34
|
||||
#define TY_ATS_SELF_CHECK 0x35
|
||||
#define TY_ATS_WINDOW_XSUM 0x36
|
||||
#define TY_ATS_RECORD 0x37
|
||||
#define TY_ATS_GET_KEY 0x38
|
||||
#define TY_ATS_ALLCOUNT 0x39
|
||||
|
||||
#define TY_ATS_START_RANGE 0x30
|
||||
#define TY_ATS_END_RANGE 0x3f
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UWORD time;
|
||||
UWORD keycode;
|
||||
UBYTE modifiers;
|
||||
UBYTE count;
|
||||
} ATS_KEY;
|
||||
|
||||
#define ATS_MAX_EDITOR_LEN 256 /* includes trailing zero */
|
||||
|
||||
#endif // ATS_H
|
||||
@@ -0,0 +1,40 @@
|
||||
/* Generated by Ctran from atssv.cl */
|
||||
#define ATSSV_G
|
||||
#ifndef IPC_G
|
||||
#include <ipc.g>
|
||||
#endif
|
||||
#ifndef TIMER_G
|
||||
#include <timer.g>
|
||||
#endif
|
||||
#ifndef ATS_H
|
||||
#include <ats.h>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_ATSSV 13
|
||||
#define C_ATSTIM 14
|
||||
/* Method Numbers */
|
||||
#define O_SV_KEY 5
|
||||
#define O_SV_FREE 4
|
||||
/* Property of atssv */
|
||||
typedef struct {
|
||||
PR_TIMER *timer;
|
||||
void *pm;
|
||||
short int freed;
|
||||
void *pm_key;
|
||||
} PRS_ATSSV;
|
||||
typedef struct pr_atssv
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_SERVER server;
|
||||
PRS_ATSSV atssv;
|
||||
} PR_ATSSV;
|
||||
/* Property of atstim */
|
||||
typedef struct {
|
||||
void *owner;
|
||||
} PRS_ATSTIM;
|
||||
typedef struct pr_atstim
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
PRS_ATSTIM atstim;
|
||||
} PR_ATSTIM;
|
||||
@@ -0,0 +1,38 @@
|
||||
; Generated by Ctran from atssv.cl
|
||||
ATSSV_ING equ 1
|
||||
IFNDEF IPC_ING
|
||||
INCLUDE ..\inc\IPC.ING
|
||||
ENDIF
|
||||
IFNDEF TIMER_ING
|
||||
INCLUDE ..\inc\TIMER.ING
|
||||
ENDIF
|
||||
IFNDEF ATS_INC
|
||||
INCLUDE ..\inc\ATS.INC
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_ATSSV equ 13
|
||||
C_ATSTIM equ 14
|
||||
; Method Numbers
|
||||
O_SV_KEY equ 5
|
||||
O_SV_FREE equ 4
|
||||
; Property of atssv
|
||||
PRS_ATSSV struc
|
||||
AtssvTimer dw ?
|
||||
AtssvPm dw ?
|
||||
AtssvFreed dw ?
|
||||
AtssvPm_key dw ?
|
||||
PRS_ATSSV ends
|
||||
PR_ATSSV struc
|
||||
AtssvRoot PRS_ROOT <>
|
||||
AtssvServer PRS_SERVER <>
|
||||
AtssvAtssv PRS_ATSSV <>
|
||||
PR_ATSSV ends
|
||||
; Property of atstim
|
||||
PRS_ATSTIM struc
|
||||
AtstimOwner dw ?
|
||||
PRS_ATSTIM ends
|
||||
PR_ATSTIM struc
|
||||
AtstimRoot PRS_ROOT <>
|
||||
AtstimActive PRS_ACTIVE <>
|
||||
AtstimAtstim PRS_ATSTIM <>
|
||||
PR_ATSTIM ends
|
||||
@@ -0,0 +1,338 @@
|
||||
/* Release 3.10 */
|
||||
/*-------------------------------------------------------------------------*
|
||||
* *
|
||||
* BCD.HPP - header file for BCD math. *
|
||||
* *
|
||||
* COPYRIGHT (C) 1990..1992 Clarion Software Corporation *
|
||||
* All Rights Reserved *
|
||||
* *
|
||||
*--------------------------------------------------------------------------*/
|
||||
#include <stdepoc.h>
|
||||
|
||||
#ifndef __BCD_INC_
|
||||
#define __BCD_INC_
|
||||
|
||||
#include <math.h>
|
||||
#include <iostream.hpp>
|
||||
|
||||
#define _BcdMaxDecimals 100
|
||||
|
||||
typedef enum { ExpZero, ExpNan };
|
||||
|
||||
class bcd {
|
||||
|
||||
friend long double real(bcd&);
|
||||
|
||||
friend bcd abs(bcd&);
|
||||
friend bcd acos(bcd&);
|
||||
friend bcd asin(bcd&);
|
||||
friend bcd atan(bcd&);
|
||||
friend bcd cos(bcd&);
|
||||
friend bcd cosh(bcd&);
|
||||
friend bcd exp(bcd&);
|
||||
friend bcd log(bcd&);
|
||||
friend bcd log10(bcd&);
|
||||
friend bcd pow(bcd& base, bcd& expon);
|
||||
friend bcd sin(bcd&);
|
||||
friend bcd sinh(bcd&);
|
||||
friend bcd sqrt(bcd&);
|
||||
friend bcd tan(bcd&);
|
||||
friend bcd tanh(bcd&);
|
||||
|
||||
friend bcd operator+(bcd&, bcd&);
|
||||
friend bcd operator+(long double, bcd&);
|
||||
friend bcd operator+(bcd&, long double);
|
||||
friend bcd operator-(bcd&, bcd&);
|
||||
friend bcd operator-(long double, bcd&);
|
||||
friend bcd operator-(bcd&, long double);
|
||||
friend bcd operator*(bcd&, bcd&);
|
||||
friend bcd operator*(long double, bcd&);
|
||||
friend bcd operator*(bcd&, long double);
|
||||
friend bcd operator/(bcd&, bcd&);
|
||||
friend bcd operator/(long double, bcd&);
|
||||
friend bcd operator/(bcd&, long double);
|
||||
friend int operator==(bcd&, bcd&);
|
||||
friend int operator!=(bcd&, bcd&);
|
||||
friend int operator>=(bcd&, bcd&);
|
||||
friend int operator<=(bcd&, bcd&);
|
||||
friend int operator>(bcd&, bcd&);
|
||||
friend int operator<(bcd&, bcd&);
|
||||
friend ostream& operator<<(ostream&, bcd&);
|
||||
friend istream& operator>>(istream&, bcd&);
|
||||
|
||||
public:
|
||||
|
||||
bcd(int x=0);
|
||||
bcd(unsigned x);
|
||||
bcd(long x);
|
||||
bcd(unsigned long x);
|
||||
bcd(double x, int decimals = _BcdMaxDecimals);
|
||||
bcd(long double x, int decimals = _BcdMaxDecimals);
|
||||
|
||||
bcd& operator+=(bcd&);
|
||||
bcd& operator+=(long double);
|
||||
bcd& operator-=(bcd&);
|
||||
bcd& operator-=(long double);
|
||||
bcd& operator*=(bcd&);
|
||||
bcd& operator*=(long double);
|
||||
bcd& operator/=(bcd&);
|
||||
bcd& operator/=(long double);
|
||||
bcd operator+();
|
||||
bcd operator-();
|
||||
|
||||
long double dec_to_real();
|
||||
void real_to_dec(long double num, int decimals = _BcdMaxDecimals);
|
||||
|
||||
private:
|
||||
|
||||
void int_to_dec(unsigned long);
|
||||
void bcd_copy_from(unsigned char *dest);
|
||||
void bcd_copy_to(unsigned char *source);
|
||||
|
||||
unsigned char bcd_array[10];
|
||||
unsigned char exp;
|
||||
};
|
||||
|
||||
|
||||
inline bcd::bcd(long double x, int decimals) {
|
||||
|
||||
real_to_dec(x, decimals);
|
||||
}
|
||||
|
||||
inline bcd::bcd(double x, int decimals) {
|
||||
|
||||
real_to_dec((long double) x, decimals);
|
||||
}
|
||||
|
||||
|
||||
inline long double real(bcd& z) {
|
||||
|
||||
return z.dec_to_real();
|
||||
}
|
||||
|
||||
inline bcd& bcd::operator+=(bcd& b) {
|
||||
|
||||
real_to_dec(real(*this)+real(b));
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline bcd& bcd::operator+=(long double b) {
|
||||
|
||||
real_to_dec(real(*this)+b);
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline bcd& bcd::operator-=(bcd& b) {
|
||||
|
||||
real_to_dec(real(*this)-real(b));
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline bcd& bcd::operator-=(long double b) {
|
||||
|
||||
real_to_dec(real(*this)-b);
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline bcd& bcd::operator*=(bcd& b) {
|
||||
|
||||
real_to_dec(real(*this)*real(b));
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline bcd& bcd::operator*=(long double b) {
|
||||
|
||||
real_to_dec(real(*this)*b);
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline bcd& bcd::operator/=(bcd& b) {
|
||||
|
||||
real_to_dec(real(*this)/real(b));
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline bcd& bcd::operator/=(long double b) {
|
||||
|
||||
real_to_dec(real(*this)/b);
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline bcd operator+(bcd& a, bcd& b) {
|
||||
|
||||
return bcd(real(a)+real(b));
|
||||
}
|
||||
|
||||
inline bcd operator+(long double a, bcd& b) {
|
||||
|
||||
return bcd(a+real(b));
|
||||
}
|
||||
|
||||
inline bcd operator+(bcd& a, long double b) {
|
||||
|
||||
return bcd(real(a)+b);
|
||||
}
|
||||
|
||||
inline bcd operator-(bcd& a, bcd& b) {
|
||||
|
||||
return bcd(real(a)-real(b));
|
||||
}
|
||||
|
||||
inline bcd operator-(long double a, bcd& b) {
|
||||
|
||||
return bcd(a-real(b));
|
||||
}
|
||||
|
||||
inline bcd operator-(bcd& a, long double b) {
|
||||
|
||||
return bcd(real(a)-b);
|
||||
}
|
||||
|
||||
inline bcd operator*(bcd& a, bcd& b) {
|
||||
|
||||
return bcd(real(a)*real(b));
|
||||
}
|
||||
|
||||
inline bcd operator*(long double a, bcd& b) {
|
||||
|
||||
return bcd(a*real(b));
|
||||
}
|
||||
|
||||
inline bcd operator*(bcd& a, long double b) {
|
||||
|
||||
return bcd(real(a)*b);
|
||||
}
|
||||
|
||||
inline bcd operator/(bcd& a, bcd& b) {
|
||||
|
||||
return bcd(real(a)/real(b));
|
||||
}
|
||||
|
||||
inline bcd operator/(long double a, bcd& b) {
|
||||
|
||||
return bcd(a/real(b));
|
||||
}
|
||||
|
||||
inline bcd operator/(bcd& a, long double b) {
|
||||
|
||||
return bcd(real(a)/b);
|
||||
}
|
||||
|
||||
inline int operator==(bcd& a, bcd& b) {
|
||||
|
||||
return real(a) == real(b);
|
||||
}
|
||||
|
||||
inline int operator!=(bcd& a, bcd& b) {
|
||||
|
||||
return real(a) != real(b);
|
||||
}
|
||||
|
||||
inline int operator>=(bcd& a, bcd& b) {
|
||||
|
||||
return real(a) >= real(b);
|
||||
}
|
||||
|
||||
inline int operator<=(bcd& a, bcd& b) {
|
||||
|
||||
return real(a) <= real(b);
|
||||
}
|
||||
|
||||
inline int operator<(bcd& a, bcd& b) {
|
||||
|
||||
return real(a) < real(b);
|
||||
}
|
||||
|
||||
inline int operator>(bcd& a, bcd& b) {
|
||||
|
||||
return real(a) > real(b);
|
||||
}
|
||||
|
||||
inline bcd bcd::operator+() {
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline bcd abs(bcd& a) {
|
||||
|
||||
return bcd(fabsl(real(a)));
|
||||
}
|
||||
|
||||
inline bcd acos(bcd& a) {
|
||||
|
||||
return bcd(acosl(real(a)));
|
||||
}
|
||||
|
||||
inline bcd asin(bcd& a) {
|
||||
|
||||
return bcd(asinl(real(a)));
|
||||
}
|
||||
|
||||
inline bcd atan(bcd& a) {
|
||||
|
||||
return bcd(atanl(real(a)));
|
||||
}
|
||||
|
||||
inline bcd cos(bcd& a) {
|
||||
|
||||
return bcd(cosl(real(a)));
|
||||
}
|
||||
|
||||
inline bcd cosh(bcd& a) {
|
||||
|
||||
return bcd(coshl(real(a)));
|
||||
}
|
||||
|
||||
inline bcd exp(bcd& a) {
|
||||
|
||||
return bcd(expl(real(a)));
|
||||
}
|
||||
|
||||
inline bcd log(bcd& a) {
|
||||
|
||||
return bcd(logl(real(a)));
|
||||
}
|
||||
|
||||
inline bcd log10(bcd& a) {
|
||||
|
||||
return bcd(log10l(real(a)));
|
||||
}
|
||||
|
||||
inline bcd sin(bcd& a) {
|
||||
|
||||
return bcd(sinl(real(a)));
|
||||
}
|
||||
|
||||
inline bcd sinhl(bcd& a) {
|
||||
|
||||
return bcd(sinhl(real(a)));
|
||||
}
|
||||
|
||||
inline bcd sqrt(bcd& a) {
|
||||
|
||||
return bcd(sqrtl(real(a)));
|
||||
}
|
||||
|
||||
inline bcd tan(bcd& a) {
|
||||
|
||||
return bcd(tanl(real(a)));
|
||||
}
|
||||
|
||||
inline bcd tanh(bcd& a) {
|
||||
|
||||
return bcd(tanhl(real(a)));
|
||||
}
|
||||
|
||||
inline bcd pow(bcd& a, bcd& b) {
|
||||
|
||||
return bcd(powl(real(a), real(b)));
|
||||
}
|
||||
|
||||
inline bcd pow10(int n, bcd& a) {
|
||||
|
||||
return bcd( pow10(n) * real(a) );
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/* Generated by Ctran from bwin.cl */
|
||||
#define BWIN_G
|
||||
#ifndef WIN_G
|
||||
#include <win.g>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_BWIN 2
|
||||
/* Method Numbers */
|
||||
/* Constants for bwin */
|
||||
#define IN_BWIN_CORNER_4 PR_BWIN_CORNER_4
|
||||
#define IN_BWIN_SHADOW_1 PR_BWIN_SHADOW_1
|
||||
#define IN_BWIN_SHADOW_2 PR_BWIN_SHADOW_2
|
||||
#define IN_BWIN_CUSHION PR_BWIN_CUSHION
|
||||
#define IN_BWIN_OPEN PR_BWIN_OPEN
|
||||
#define BWIN_CUSHION_X 1
|
||||
#define BWIN_CUSHION_Y 1
|
||||
#define BWIN_SHADOW_1_HEIGHT 1
|
||||
#define BWIN_SHADOW_1_WIDTH 1
|
||||
#define BWIN_SHADOW_2_HEIGHT 2
|
||||
#define BWIN_SHADOW_2_WIDTH 2
|
||||
/* Property of bwin */
|
||||
typedef struct pr_bwin
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
} PR_BWIN;
|
||||
@@ -0,0 +1,25 @@
|
||||
; Generated by Ctran from bwin.cl
|
||||
BWIN_ING equ 1
|
||||
IFNDEF WIN_ING
|
||||
INCLUDE ..\inc\WIN.ING
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_BWIN equ 2
|
||||
; Method Numbers
|
||||
; Constants for bwin
|
||||
IN_BWIN_CORNER_4 equ (PR_BWIN_CORNER_4)
|
||||
IN_BWIN_SHADOW_1 equ (PR_BWIN_SHADOW_1)
|
||||
IN_BWIN_SHADOW_2 equ (PR_BWIN_SHADOW_2)
|
||||
IN_BWIN_CUSHION equ (PR_BWIN_CUSHION)
|
||||
IN_BWIN_OPEN equ (PR_BWIN_OPEN)
|
||||
BWIN_CUSHION_X equ (1)
|
||||
BWIN_CUSHION_Y equ (1)
|
||||
BWIN_SHADOW_1_HEIGHT equ (1)
|
||||
BWIN_SHADOW_1_WIDTH equ (1)
|
||||
BWIN_SHADOW_2_HEIGHT equ (2)
|
||||
BWIN_SHADOW_2_WIDTH equ (2)
|
||||
; Property of bwin
|
||||
PR_BWIN struc
|
||||
BwinRoot PRS_ROOT <>
|
||||
BwinWin PRS_WIN <>
|
||||
PR_BWIN ends
|
||||
@@ -0,0 +1,126 @@
|
||||
/* Generated by Ctran from calimg.cat */
|
||||
#define CALIMG_G
|
||||
#ifndef WLIB_H
|
||||
#include <wlib.h>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_CALIMG 11
|
||||
/* Method Numbers */
|
||||
#define O_CI_SENSE 8
|
||||
#define O_CI_TODAY_CHANGED 11
|
||||
#define O_CI_MOVE_CURSOR 4
|
||||
#define O_CI_REDRAW 7
|
||||
#define O_CI_EMPHASISE 3
|
||||
#define O_CI_GOTO_DATE 5
|
||||
#define O_CI_POS_MXY 10
|
||||
#define O_CI_SET_TITLE 2
|
||||
#define O_CI_ADJUST_DATE 6
|
||||
#define O_CI_INIT 1
|
||||
#define O_CI_VIEW 9
|
||||
/* Constants for calimg */
|
||||
#define CI_MAX_MONTH 12
|
||||
#define CI_GRIDY TRUE
|
||||
#define CI_GRIDX FALSE
|
||||
#define CALIMG_CURSOR_NO_FLASH 0x01
|
||||
#define CALIMG_DOW_EVERY_ROW 0x02
|
||||
#define CALIMG_FONT_DATA_KNOWN 0x04
|
||||
#define CALIMG_LEFT 0x00
|
||||
#define CALIMG_HOME 0x01
|
||||
#define CALIMG_PREV_DAY 0x02
|
||||
#define CALIMG_PREV_MONTH 0x03
|
||||
#define CALIMG_RIGHT 0x04
|
||||
#define CALIMG_END 0x05
|
||||
#define CALIMG_NEXT_DAY 0x06
|
||||
#define CALIMG_NEXT_MONTH 0x07
|
||||
#define CALIMG_UP 0x08
|
||||
#define CALIMG_PAGEUP 0x09
|
||||
#define CALIMG_PREV_WEEK 0x0A
|
||||
#define CALIMG_PREV_YEAR 0x0B
|
||||
#define CALIMG_DOWN 0x0C
|
||||
#define CALIMG_PAGEDN 0x0D
|
||||
#define CALIMG_NEXT_WEEK 0x0E
|
||||
#define CALIMG_NEXT_YEAR 0x0F
|
||||
#define CALIMG_GOTO_TODAY 0x10
|
||||
#define CALIMG_WEST 0x01
|
||||
#define CALIMG_EAST 0x02
|
||||
#define CALIMG_NORTH 0x03
|
||||
#define CALIMG_SOUTH 0x04
|
||||
#define CALIMG_ADJ_DAY 0x01
|
||||
#define CALIMG_ADJ_MONTH 0x02
|
||||
#define CALIMG_ADJ_YEAR 0x04
|
||||
/* Types for calimg */
|
||||
typedef struct
|
||||
{
|
||||
unsigned char title_ascent;
|
||||
unsigned char title_lht;
|
||||
unsigned char dow_ascent;
|
||||
unsigned char dow_lht;
|
||||
unsigned char mth_ascent;
|
||||
unsigned char mth_lht;
|
||||
unsigned char day_ascent;
|
||||
unsigned char day_lht;
|
||||
unsigned char daygapx;
|
||||
unsigned char daywidth;
|
||||
} CI_EXT_FONT;
|
||||
typedef struct
|
||||
{
|
||||
short int fid;
|
||||
unsigned short int style;
|
||||
unsigned short int leading;
|
||||
} CI_FONT_DATA;
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int wid;
|
||||
unsigned short int width;
|
||||
P_POINT tl;
|
||||
unsigned char mrow;
|
||||
unsigned char mcol;
|
||||
unsigned short int flags;
|
||||
CI_FONT_DATA title;
|
||||
CI_FONT_DATA month;
|
||||
CI_FONT_DATA dow;
|
||||
CI_FONT_DATA day;
|
||||
unsigned short int daygap;
|
||||
unsigned char mthgapx;
|
||||
unsigned char hscrlm;
|
||||
unsigned short int startm;
|
||||
unsigned long int days;
|
||||
CI_EXT_FONT font;
|
||||
} IN_CALIMG;
|
||||
typedef struct
|
||||
{
|
||||
unsigned char year;
|
||||
unsigned char month;
|
||||
P_POINT pos;
|
||||
} CI_CURSOR;
|
||||
typedef struct
|
||||
{
|
||||
short int year;
|
||||
short int month;
|
||||
short int day;
|
||||
}CI_DATE;
|
||||
/* Property of calimg */
|
||||
typedef struct {
|
||||
P_RECT rect[12];
|
||||
P_RECT title_rect;
|
||||
CI_CURSOR crs;
|
||||
char day;
|
||||
unsigned char startOfWeek;
|
||||
unsigned char thisyear;
|
||||
unsigned char thismth;
|
||||
unsigned char thisday;
|
||||
unsigned char ystart;
|
||||
unsigned char bwidth;
|
||||
unsigned char filler;
|
||||
char dayNameAbbrev[7];
|
||||
char deftitle[3];
|
||||
char *title;
|
||||
short int emphasised;
|
||||
IN_CALIMG img;
|
||||
int bmid;
|
||||
} PRS_CALIMG;
|
||||
typedef struct pr_calimg
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_CALIMG calimg;
|
||||
} PR_CALIMG;
|
||||
@@ -0,0 +1,120 @@
|
||||
; Generated by Ctran from calimg.cl
|
||||
CALIMG_ING equ 1
|
||||
IFNDEF WLIB_INC
|
||||
INCLUDE ..\inc\WLIB.INC
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_CALIMG equ 11
|
||||
; Method Numbers
|
||||
O_CI_SENSE equ 8
|
||||
O_CI_TODAY_CHANGED equ 11
|
||||
O_CI_MOVE_CURSOR equ 4
|
||||
O_CI_REDRAW equ 7
|
||||
O_CI_EMPHASISE equ 3
|
||||
O_CI_GOTO_DATE equ 5
|
||||
O_CI_POS_MXY equ 10
|
||||
O_CI_SET_TITLE equ 2
|
||||
O_CI_ADJUST_DATE equ 6
|
||||
O_CI_INIT equ 1
|
||||
O_CI_VIEW equ 9
|
||||
; Constants for calimg
|
||||
CI_MAX_MONTH equ (12)
|
||||
CI_GRIDY equ (TRUE)
|
||||
CI_GRIDX equ (FALSE)
|
||||
CALIMG_CURSOR_NO_FLASH equ (001h)
|
||||
CALIMG_DOW_EVERY_ROW equ (002h)
|
||||
CALIMG_FONT_DATA_KNOWN equ (004h)
|
||||
CALIMG_LEFT equ (000h)
|
||||
CALIMG_HOME equ (001h)
|
||||
CALIMG_PREV_DAY equ (002h)
|
||||
CALIMG_PREV_MONTH equ (003h)
|
||||
CALIMG_RIGHT equ (004h)
|
||||
CALIMG_END equ (005h)
|
||||
CALIMG_NEXT_DAY equ (006h)
|
||||
CALIMG_NEXT_MONTH equ (007h)
|
||||
CALIMG_UP equ (008h)
|
||||
CALIMG_PAGEUP equ (009h)
|
||||
CALIMG_PREV_WEEK equ (00Ah)
|
||||
CALIMG_PREV_YEAR equ (00Bh)
|
||||
CALIMG_DOWN equ (00Ch)
|
||||
CALIMG_PAGEDN equ (00Dh)
|
||||
CALIMG_NEXT_WEEK equ (00Eh)
|
||||
CALIMG_NEXT_YEAR equ (00Fh)
|
||||
CALIMG_GOTO_TODAY equ (010h)
|
||||
CALIMG_WEST equ (001h)
|
||||
CALIMG_EAST equ (002h)
|
||||
CALIMG_NORTH equ (003h)
|
||||
CALIMG_SOUTH equ (004h)
|
||||
CALIMG_ADJ_DAY equ (001h)
|
||||
CALIMG_ADJ_MONTH equ (002h)
|
||||
CALIMG_ADJ_YEAR equ (004h)
|
||||
; Types for calimg
|
||||
CI_EXT_FONT struc
|
||||
CI_EXT_FONTTitle_ascent db ?
|
||||
CI_EXT_FONTTitle_lht db ?
|
||||
CI_EXT_FONTDow_ascent db ?
|
||||
CI_EXT_FONTDow_lht db ?
|
||||
CI_EXT_FONTMth_ascent db ?
|
||||
CI_EXT_FONTMth_lht db ?
|
||||
CI_EXT_FONTDay_ascent db ?
|
||||
CI_EXT_FONTDay_lht db ?
|
||||
CI_EXT_FONTDaygapx db ?
|
||||
CI_EXT_FONTDaywidth db ?
|
||||
CI_EXT_FONT ends
|
||||
CI_FONT_DATA struc
|
||||
CI_FONT_DATAFid dw ?
|
||||
CI_FONT_DATAStyle dw ?
|
||||
CI_FONT_DATALeading dw ?
|
||||
CI_FONT_DATA ends
|
||||
IN_CALIMG struc
|
||||
IN_CALIMGWid dw ?
|
||||
IN_CALIMGWidth dw ?
|
||||
IN_CALIMGTl P_POINT <>
|
||||
IN_CALIMGMrow db ?
|
||||
IN_CALIMGMcol db ?
|
||||
IN_CALIMGFlags dw ?
|
||||
IN_CALIMGTitle CI_FONT_DATA <>
|
||||
IN_CALIMGMonth CI_FONT_DATA <>
|
||||
IN_CALIMGDow CI_FONT_DATA <>
|
||||
IN_CALIMGDay CI_FONT_DATA <>
|
||||
IN_CALIMGDaygap dw ?
|
||||
IN_CALIMGMthgapx db ?
|
||||
IN_CALIMGHscrlm db ?
|
||||
IN_CALIMGStartm dw ?
|
||||
IN_CALIMGDays dd ?
|
||||
IN_CALIMGFont CI_EXT_FONT <>
|
||||
IN_CALIMG ends
|
||||
CI_CURSOR struc
|
||||
CI_CURSORYear db ?
|
||||
CI_CURSORMonth db ?
|
||||
CI_CURSORPos P_POINT <>
|
||||
CI_CURSOR ends
|
||||
CI_DATE struc
|
||||
CI_DATEYear dw ?
|
||||
CI_DATEMonth dw ?
|
||||
CI_DATEDay dw ?
|
||||
CI_DATE ends
|
||||
; Property of calimg
|
||||
PRS_CALIMG struc
|
||||
CalimgRect db (size P_RECT)* 12 dup (?)
|
||||
CalimgTitle_rect P_RECT <>
|
||||
CalimgCrs CI_CURSOR <>
|
||||
CalimgDay db ?
|
||||
CalimgStartOfWeek db ?
|
||||
CalimgThisyear db ?
|
||||
CalimgThismth db ?
|
||||
CalimgThisday db ?
|
||||
CalimgYstart db ?
|
||||
CalimgBwidth db ?
|
||||
CalimgFiller db ?
|
||||
CalimgDayNameAbbrev db (1) * 7 dup (?)
|
||||
CalimgDeftitle db (1) * 3 dup (?)
|
||||
CalimgTitle dw ?
|
||||
CalimgEmphasised dw ?
|
||||
CalimgImg IN_CALIMG <>
|
||||
CalimgBmid dw ?
|
||||
PRS_CALIMG ends
|
||||
PR_CALIMG struc
|
||||
CalimgRoot PRS_ROOT <>
|
||||
CalimgCalimg PRS_CALIMG <>
|
||||
PR_CALIMG ends
|
||||
@@ -0,0 +1,48 @@
|
||||
/* Generated by Ctran from calwin.cl */
|
||||
#define CALWIN_G
|
||||
#ifndef BWIN_G
|
||||
#include <bwin.g>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_CALIMGWN 9
|
||||
#define C_CALWIN 10
|
||||
/* Method Numbers */
|
||||
/* Property of calimgwn */
|
||||
typedef struct {
|
||||
void *calimg;
|
||||
} PRS_CALIMGWN;
|
||||
typedef struct pr_calimgwn
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_CALIMGWN calimgwn;
|
||||
} PR_CALIMGWN;
|
||||
/* Constants for calwin */
|
||||
#define IN_CALWIN_1_MONTH 0x0001
|
||||
#define IN_CALWIN_3_MONTH 0x0002
|
||||
#define IN_CALWIN_12_MONTH 0x0004
|
||||
#define IN_CALWIN_STD_FLAGS 0x0007
|
||||
#define IN_CALWIN_USER_SPEC 0x0010
|
||||
#define PR_CALWIN_TODAY_HOOKED 0x0020
|
||||
/* Types for calwin */
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int flags;
|
||||
unsigned long int days;
|
||||
P_POINT pos;
|
||||
void *calimg;
|
||||
void **self_ptr;
|
||||
} IN_CALWIN;
|
||||
/* Property of calwin */
|
||||
typedef struct {
|
||||
PR_CALIMGWN *calimgwn;
|
||||
void *calimg;
|
||||
unsigned short int flags;
|
||||
void **self_ptr;
|
||||
} PRS_CALWIN;
|
||||
typedef struct pr_calwin
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_CALWIN calwin;
|
||||
} PR_CALWIN;
|
||||
@@ -0,0 +1,45 @@
|
||||
; Generated by Ctran from calwin.cl
|
||||
CALWIN_ING equ 1
|
||||
IFNDEF BWIN_ING
|
||||
INCLUDE ..\inc\BWIN.ING
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_CALIMGWN equ 9
|
||||
C_CALWIN equ 10
|
||||
; Method Numbers
|
||||
; Property of calimgwn
|
||||
PRS_CALIMGWN struc
|
||||
CalimgwnCalimg dw ?
|
||||
PRS_CALIMGWN ends
|
||||
PR_CALIMGWN struc
|
||||
CalimgwnRoot PRS_ROOT <>
|
||||
CalimgwnWin PRS_WIN <>
|
||||
CalimgwnCalimgwn PRS_CALIMGWN <>
|
||||
PR_CALIMGWN ends
|
||||
; Constants for calwin
|
||||
IN_CALWIN_1_MONTH equ (00001h)
|
||||
IN_CALWIN_3_MONTH equ (00002h)
|
||||
IN_CALWIN_12_MONTH equ (00004h)
|
||||
IN_CALWIN_STD_FLAGS equ (00007h)
|
||||
IN_CALWIN_USER_SPEC equ (00010h)
|
||||
PR_CALWIN_TODAY_HOOKED equ (00020h)
|
||||
; Types for calwin
|
||||
IN_CALWIN struc
|
||||
IN_CALWINFlags dw ?
|
||||
IN_CALWINDays dd ?
|
||||
IN_CALWINPos P_POINT <>
|
||||
IN_CALWINCalimg dw ?
|
||||
IN_CALWINSelf_ptr dw ?
|
||||
IN_CALWIN ends
|
||||
; Property of calwin
|
||||
PRS_CALWIN struc
|
||||
CalwinCalimgwn dw ?
|
||||
CalwinCalimg dw ?
|
||||
CalwinFlags dw ?
|
||||
CalwinSelf_ptr dw ?
|
||||
PRS_CALWIN ends
|
||||
PR_CALWIN struc
|
||||
CalwinRoot PRS_ROOT <>
|
||||
CalwinWin PRS_WIN <>
|
||||
CalwinCalwin PRS_CALWIN <>
|
||||
PR_CALWIN ends
|
||||
@@ -0,0 +1,54 @@
|
||||
/* Generated by Ctran from chlist.cl */
|
||||
#define CHLIST_G
|
||||
#ifndef LODGER_G
|
||||
#include <lodger.g>
|
||||
#endif
|
||||
#ifndef VARES_G
|
||||
#include <vares.g>
|
||||
#endif
|
||||
#ifndef MATCHER_G
|
||||
#include <matcher.g>
|
||||
#endif
|
||||
#ifndef LISTBOX_G
|
||||
#include <listbox.g>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_CHLIST 21
|
||||
/* Method Numbers */
|
||||
/* Constants for chlist */
|
||||
#define SE_CHLIST_NSEL 0x01
|
||||
#define SE_CHLIST_DATA 0x02
|
||||
#define SE_CHLIST_RETAIN 0x04
|
||||
#define IN_CHLIST_INCREMENTAL 0x01
|
||||
#define PR_CHLIST_RETAIN 0x04
|
||||
#define PR_CHLIST_SUSPENDED 0x08
|
||||
#define PR_CHLIST_FIXED_WIDTH 0x10
|
||||
/* Types for chlist */
|
||||
typedef struct
|
||||
{
|
||||
short int rid;
|
||||
unsigned char nsel;
|
||||
unsigned char flags;
|
||||
} IN_CHLIST;
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int set_flags;
|
||||
PR_VAROOT *data;
|
||||
unsigned short int nsel;
|
||||
} SE_CHLIST;
|
||||
/* Property of chlist */
|
||||
typedef struct {
|
||||
PR_LISTBOX *pop;
|
||||
PR_VMATCHER *matcher;
|
||||
PR_VARES *data;
|
||||
unsigned short int nsel;
|
||||
unsigned short int flags;
|
||||
unsigned short int matchlen;
|
||||
} PRS_CHLIST;
|
||||
typedef struct pr_chlist
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_LODGER lodger;
|
||||
PRS_CHLIST chlist;
|
||||
} PR_CHLIST;
|
||||
@@ -0,0 +1,51 @@
|
||||
; Generated by Ctran from chlist.cl
|
||||
CHLIST_ING equ 1
|
||||
IFNDEF LODGER_ING
|
||||
INCLUDE ..\inc\LODGER.ING
|
||||
ENDIF
|
||||
IFNDEF VARES_ING
|
||||
INCLUDE ..\inc\VARES.ING
|
||||
ENDIF
|
||||
IFNDEF MATCHER_ING
|
||||
INCLUDE ..\inc\MATCHER.ING
|
||||
ENDIF
|
||||
IFNDEF LISTBOX_ING
|
||||
INCLUDE ..\inc\LISTBOX.ING
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_CHLIST equ 21
|
||||
; Method Numbers
|
||||
; Constants for chlist
|
||||
SE_CHLIST_NSEL equ (001h)
|
||||
SE_CHLIST_DATA equ (002h)
|
||||
SE_CHLIST_RETAIN equ (004h)
|
||||
IN_CHLIST_INCREMENTAL equ (001h)
|
||||
PR_CHLIST_RETAIN equ (004h)
|
||||
PR_CHLIST_SUSPENDED equ (008h)
|
||||
PR_CHLIST_FIXED_WIDTH equ (010h)
|
||||
; Types for chlist
|
||||
IN_CHLIST struc
|
||||
IN_CHLISTRid dw ?
|
||||
IN_CHLISTNsel db ?
|
||||
IN_CHLISTFlags db ?
|
||||
IN_CHLIST ends
|
||||
SE_CHLIST struc
|
||||
SE_CHLISTSet_flags dw ?
|
||||
SE_CHLISTData dw ?
|
||||
SE_CHLISTNsel dw ?
|
||||
SE_CHLIST ends
|
||||
; Property of chlist
|
||||
PRS_CHLIST struc
|
||||
ChlistPop dw ?
|
||||
ChlistMatcher dw ?
|
||||
ChlistData dw ?
|
||||
ChlistNsel dw ?
|
||||
ChlistFlags dw ?
|
||||
ChlistMatchlen dw ?
|
||||
PRS_CHLIST ends
|
||||
PR_CHLIST struc
|
||||
ChlistRoot PRS_ROOT <>
|
||||
ChlistWin PRS_WIN <>
|
||||
ChlistLodger PRS_LODGER <>
|
||||
ChlistChlist PRS_CHLIST <>
|
||||
PR_CHLIST ends
|
||||
@@ -0,0 +1,290 @@
|
||||
/* Release 3.00 */
|
||||
|
||||
/*-------------------------------------------------------------------------*
|
||||
* *
|
||||
* clib.h - internal header file for C library. *
|
||||
* *
|
||||
* COPYRIGHT (C) 1989, 1990 Jensen and Partners. All Rights Reserved *
|
||||
* *
|
||||
*--------------------------------------------------------------------------*/
|
||||
#include <stdepoc.h>
|
||||
|
||||
#ifndef _CLIB_INC_
|
||||
#define _CLIB_INC_
|
||||
|
||||
#pragma warn(wall => on) /* enable all warnings */
|
||||
|
||||
#define _STATIC static /* hide local stuff */
|
||||
|
||||
#define _IO_MTF
|
||||
#define _CT_MTF
|
||||
|
||||
#define LONGDOUBLE long double
|
||||
#define FLOORL(x) floorl(x)
|
||||
#define LOG10L(x) log10l(x)
|
||||
|
||||
#include <epocdefs.h>
|
||||
#include <alloc.h>
|
||||
#ifdef _USE_CONIO
|
||||
#include <conio.h>
|
||||
#endif
|
||||
#include <ctype.h>
|
||||
#include <dir.h>
|
||||
#include <errno.h>
|
||||
#include <dos.h>
|
||||
#include <fcntl.h>
|
||||
#ifdef _USE_FLOAT
|
||||
#include <float.h>
|
||||
#endif
|
||||
#ifndef _NO_IO
|
||||
#include <io.h>
|
||||
#endif
|
||||
#include <limits.h>
|
||||
#include <locale.h>
|
||||
#include <mem.h>
|
||||
#include <math.h>
|
||||
#include <process.h>
|
||||
#include <search.h>
|
||||
#include <setjmp.h>
|
||||
#include <share.h>
|
||||
#include <signal.h>
|
||||
#include <stat.h>
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#ifdef _USE_TIME
|
||||
#include <time.h>
|
||||
#include <timeb.h>
|
||||
#endif
|
||||
|
||||
typedef struct sfc { /* control structure for vscanner */
|
||||
FILE *_stream; /* file pointer */
|
||||
int (*_vs_fill)(FILE *st); /* filler function pointer */
|
||||
int _vs_count; /* character count */
|
||||
int _s_args; /* argument count */
|
||||
jmp_buf _EOFhandler; /* EOF jump environment */
|
||||
} SF ;
|
||||
|
||||
typedef struct pf {
|
||||
FILE *_stream; /* file pointer */
|
||||
int (*_vp_flush)(FILE *st); /* output function pointer */
|
||||
int _vp_ret; /* character count */
|
||||
} PF;
|
||||
|
||||
extern int (*_vs_fill)(FILE *st); /* filler function pointer */
|
||||
extern int (*_vp_flush)(FILE *st); /* output function pointer */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
extern int _filler(FILE *st);
|
||||
extern int _flusher(FILE *st);
|
||||
|
||||
extern int _dup(int handle); /* low level I/O */
|
||||
extern int _dup2(int h1, int h2);
|
||||
extern void _ioerr(int code);
|
||||
extern unsigned lsl(unsigned sel);
|
||||
|
||||
extern void _exit1(void);
|
||||
extern void _exit2(void);
|
||||
extern void _exitf(void);
|
||||
|
||||
extern char *_d_cgets(char *s);
|
||||
extern int _d_putch(int c);
|
||||
extern int (*_i_putch)(int c);
|
||||
extern char *(*_i_cgets)(char *s);
|
||||
|
||||
extern char *_ld_format(char *fmt_buf, LONGDOUBLE num, int flag, int prec);
|
||||
extern char *_v_format(unsigned long l, char *s);
|
||||
|
||||
extern int _matherr(struct exception *x);
|
||||
extern int _flsbuf(int ch, FILE *st);
|
||||
extern int _filbuf(FILE *st);
|
||||
|
||||
#ifdef _USE_TIME
|
||||
extern clock_t _clock_time(void);
|
||||
extern size_t _set_date(char *s, size_t scount, size_t lim, char *st);
|
||||
extern unsigned long _t_calc(struct date dte, struct time tme);
|
||||
extern int _t_to_struct(unsigned long val, struct date *dte, struct time *tme);
|
||||
extern struct tm * _t_to_tm(unsigned long clock);
|
||||
extern unsigned long _t_norm(struct tm *timeptr);
|
||||
extern unsigned long _ytable(int n);
|
||||
#endif
|
||||
|
||||
extern va_list _rreal_out(va_list _v_argptr, int flag, int wid, int prec);
|
||||
extern va_list _real_pdef(va_list _v_argptr, int flag, int wid, int prec);
|
||||
extern va_list _rreal_in(int pmod, int smod, unsigned flag, int width, va_list _v_argptr);
|
||||
extern va_list _real_sdef(int pmod, int smod, unsigned flag, int width, va_list _v_argptr);
|
||||
|
||||
extern char *_f_fmt(char *_fmt_buf, LONGDOUBLE num, int flag, int prec);
|
||||
extern char *_fptoa(unsigned long, char *s);
|
||||
|
||||
extern double _atof(const char *s, int flag, int *pos);
|
||||
|
||||
extern int _pf_entry(FILE *st);
|
||||
extern void _pf_exit(FILE *st, int flag);
|
||||
extern void _vp_setbuf(FILE *st, char *buf);
|
||||
extern void _vp_freebuf(FILE *st);
|
||||
|
||||
extern FILE *_alloc_stream(FILE *stream, int handle, int flag);
|
||||
extern void _flushall(void);
|
||||
extern int _free_stream(void);
|
||||
extern int _getfmode(const char *path);
|
||||
extern int _open_stream(const char *path, int *fptr, int mode);
|
||||
extern int _scan_type(const char *type, int *fptr, int *mptr);
|
||||
extern int _valid_stream(FILE *st);
|
||||
|
||||
#pragma save
|
||||
#pragma call(reg_saved=>(ds, di, si,st1,st2), reg_param=>(ax,bx,cx,dx))
|
||||
extern int _vgetc(void);
|
||||
extern int _vungetc(int c);
|
||||
|
||||
extern void _justify(char *s, int flag, int width);
|
||||
extern void _str_out(char *s, int flag, int width, int precision);
|
||||
extern void _vputc(int ch);
|
||||
#pragma restore
|
||||
|
||||
extern unsigned char _exists(const char *path);
|
||||
|
||||
extern void _swap(void *b1, void *b2, size_t width);
|
||||
|
||||
extern LONGDOUBLE _acvt(int flag, char *mbuf, int exp, int len);
|
||||
extern void _cvt(LONGDOUBLE x, int n, int *dec, int *sign, char * buf);
|
||||
extern void _seterrno(int type);
|
||||
|
||||
extern LONGDOUBLE _pow_int(LONGDOUBLE x,int y);
|
||||
extern LONGDOUBLE _round( LONGDOUBLE x );
|
||||
extern void _bcd(LONGDOUBLE x,char * p);
|
||||
|
||||
extern void _FatalError(unsigned address, int code);
|
||||
extern unsigned _FatalErrorPos(void);
|
||||
|
||||
extern void (*_exit_stk[32])(void); /* at/onexit function stack */
|
||||
|
||||
#pragma save,check(index=>off)
|
||||
extern void (**_exit_ptr)(void);
|
||||
extern void (**_exit_top)(void);
|
||||
#pragma restore
|
||||
|
||||
extern void (*_exit_io)(void);
|
||||
extern void (*_exit_tmp)(void);
|
||||
|
||||
extern va_list (*_real_in)(int pmod, int smod, unsigned flag, int width, va_list _v_argptr);
|
||||
extern va_list (*_real_out)(va_list _v_argptr, int flag, int wid, int prec);
|
||||
|
||||
extern void (*_exit_proc)(void);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Internal Data Declarations. */
|
||||
|
||||
extern char _cvt_buf[64]; /* real number conversion buffer */
|
||||
extern char _ctype[257]; /* ctype data */
|
||||
extern struct lconv _lconv;
|
||||
#ifdef _USE_TIME
|
||||
extern time_t _proc_time; /* time at beginning of process */
|
||||
#endif
|
||||
extern char _sys_errbuf[128];/* error message buffer */
|
||||
extern char *sys_errlist[]; /* error messages */
|
||||
extern int sys_nerr; /* number of system error strings */
|
||||
extern double _tens[32];
|
||||
extern char _upperHex; /* conversion case */
|
||||
|
||||
extern jmp_buf _EOFhandler; /* EOF error jump environment */
|
||||
extern unsigned _fmask;
|
||||
extern _iosetup; /* initialisation flag */
|
||||
extern int _p_init;
|
||||
extern int _s_args; /* argument count */
|
||||
extern FILE *_stream; /* file pointer */
|
||||
extern int _ungotchar; /* temporary storage for console I/O */
|
||||
extern int _vp_ret; /* character count */
|
||||
extern int _vs_count; /* character count */
|
||||
extern int _open_max; /* maximum number of open files */
|
||||
extern char *_tmpfiles[];
|
||||
extern FILE *_tmpfptrs[];
|
||||
|
||||
extern char _argbuf[128]; /* command line buffer */
|
||||
extern unsigned _assign_init_magic;
|
||||
|
||||
/*****************************************************************************/
|
||||
/* CPP Definitions. */
|
||||
/*****************************************************************************/
|
||||
|
||||
typedef void *(*ctor_t)(void *);
|
||||
typedef void (*dtor_t)(void *);
|
||||
|
||||
#pragma save, call(reg_param=>(), reg_saved=>(ds,si,di,st1,st2), near_call=>on, c_conv=>on)
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
extern void _call_ctors(ctor_t, char *obj_ptr, int vbnum, int n, int siz);
|
||||
extern void _call_dtors(dtor_t, char *obj_ptr, int vbnum, int n, int siz);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#pragma restore
|
||||
|
||||
/* Macro Definitions. */
|
||||
|
||||
#define TRUE 1
|
||||
#define FALSE 0
|
||||
|
||||
#define _CTLZ 0x01A
|
||||
#define _O_LRD 0x400
|
||||
#define _WRITE 2
|
||||
#define _NODEFMODE 4
|
||||
#define _READ 8
|
||||
|
||||
#define _MNEG 1
|
||||
#define _ENEG 2
|
||||
#define _STD 8
|
||||
#define _HMAX 54
|
||||
#define _HEX 1
|
||||
#define _OCT 2
|
||||
#define _NEG 4
|
||||
#define _OFL 8
|
||||
|
||||
#define _DAYSECS 86400L /* seconds in year */
|
||||
#define _SEVENTIES 315532800L /* seconds between 1970 and 1980 */
|
||||
|
||||
#define InternalError(c) _FatalError(_FatalErrorPos(), (c))
|
||||
|
||||
#define PF_VBSIZE 256
|
||||
#define PF_TEMP_BUF 128
|
||||
|
||||
#define DEC_POINT _lconv.decimal_point[0]
|
||||
|
||||
#define PF_LEFT 0x0001 /* justification */
|
||||
#define PF_SIGN 0x0002 /* force leading PF_SIGN */
|
||||
#define PF_SPACE 0x0004 /* force leading PF_SPACE */
|
||||
#define PF_HASH 0x0008 /* PF_HASH flag */
|
||||
#define PF_NOPOINT 0x0010 /* supress radix point */
|
||||
#define PF_UPPER 0x0020 /* PF_UPPER case type */
|
||||
#define PF_IS_SIGNED 0x0040 /* signed data-type */
|
||||
#define PF_ZFLAG 0x0080 /* format with 0 */
|
||||
#define PF_HEX 0x0100 /* PF_HEX integer */
|
||||
#define PF_OCT 0x0200 /* octal integer */
|
||||
#define PF_GTYPE 0x0400 /* g real type */
|
||||
#define PF_EXP 0x0800 /* e real type */
|
||||
#define PF_PSET 0x1000 /* precison set */
|
||||
#define PF_LDMOD 0x2000 /* long real */
|
||||
#define PF_CPP 0x4000 /* C++ formatting rules */
|
||||
|
||||
#define SF_WILD 0x0004 /* any int type */
|
||||
#define SF_SUPRESS 0x0008 /* star flag */
|
||||
#define SF_UPPER 0x0010 /* upper case type */
|
||||
#define SF_NSIGNED 0x0020 /* unsigned data-type */
|
||||
#define SF_HEX 0x0040 /* hex integer */
|
||||
#define SF_OCT 0x0080 /* octal integer */
|
||||
#define SF_LDMOD 0x0100 /* LONGDOUBLE */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/* Generated by Ctran from comman.cl */
|
||||
#define COMMAN_G
|
||||
#ifndef OLIB_G
|
||||
#include <olib.g>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_COMMAN 17
|
||||
/* Method Numbers */
|
||||
#define O_COM_MODE_CHANGE 5
|
||||
#define O_COM_INIT 1
|
||||
#define O_COM_STATWIN 2
|
||||
#define O_COM_MENU 4
|
||||
#define O_COM_EXIT 7
|
||||
#define O_COM_FILE_CHANGE 6
|
||||
#define O_COM_ACCL_CHECK 3
|
||||
/* Constants for comman */
|
||||
#define O_COM_SYS_LAST O_COM_EXIT
|
||||
#define BREAK_LINE_FOLLOWS 0x80
|
||||
#define PURE_COM_ID 0x7f
|
||||
/* Property of comman */
|
||||
typedef struct pr_comman
|
||||
{
|
||||
PRS_ROOT root;
|
||||
} PR_COMMAN;
|
||||
@@ -0,0 +1,23 @@
|
||||
; Generated by Ctran from comman.cl
|
||||
COMMAN_ING equ 1
|
||||
IFNDEF OLIB_ING
|
||||
INCLUDE ..\inc\OLIB.ING
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_COMMAN equ 17
|
||||
; Method Numbers
|
||||
O_COM_MODE_CHANGE equ 5
|
||||
O_COM_INIT equ 1
|
||||
O_COM_STATWIN equ 2
|
||||
O_COM_MENU equ 4
|
||||
O_COM_EXIT equ 7
|
||||
O_COM_FILE_CHANGE equ 6
|
||||
O_COM_ACCL_CHECK equ 3
|
||||
; Constants for comman
|
||||
O_COM_SYS_LAST equ (O_COM_EXIT)
|
||||
BREAK_LINE_FOLLOWS equ (080h)
|
||||
PURE_COM_ID equ (07fh)
|
||||
; Property of comman
|
||||
PR_COMMAN struc
|
||||
CommanRoot PRS_ROOT <>
|
||||
PR_COMMAN ends
|
||||
@@ -0,0 +1,228 @@
|
||||
/* Release 3.10 */
|
||||
/*-------------------------------------------------------------------------*
|
||||
* *
|
||||
* COMPLEX.HPP - header file for complex math. *
|
||||
* *
|
||||
* COPYRIGHT (C) 1990..1992 Clarion Software Corporation *
|
||||
* All Rights Reserved *
|
||||
* *
|
||||
*--------------------------------------------------------------------------*/
|
||||
#include <stdepoc.h>
|
||||
|
||||
#ifndef __COMPLEX_INC_
|
||||
#define __COMPLEX_INC_
|
||||
|
||||
#include <iostream.hpp>
|
||||
#include <math.h>
|
||||
|
||||
class complex {
|
||||
|
||||
friend double real(const complex&);
|
||||
friend double imag(const complex&);
|
||||
friend complex conj(const complex&);
|
||||
friend double norm(const complex&);
|
||||
friend double arg(const complex&);
|
||||
friend complex polar(double _mag, double _angle = 0.0);
|
||||
|
||||
friend double abs(const complex&);
|
||||
friend complex acos(const complex&);
|
||||
friend complex asin(const complex&);
|
||||
friend complex atan(const complex&);
|
||||
friend complex cos(const complex&);
|
||||
friend complex cosh(const complex&);
|
||||
friend complex exp(const complex&);
|
||||
friend complex log(const complex&);
|
||||
friend complex log10(const complex&);
|
||||
friend complex pow(const complex& _base, double _exp);
|
||||
friend complex pow(double _base, const complex& _exp);
|
||||
friend complex pow(const complex& _base, const complex& _exp);
|
||||
friend complex sin(const complex&);
|
||||
friend complex sinh(const complex&);
|
||||
friend complex sqrt(const complex&);
|
||||
friend complex tan(const complex&);
|
||||
friend complex tanh(const complex&);
|
||||
|
||||
friend complex operator+(const complex&, const complex&);
|
||||
friend complex operator+(double, const complex&);
|
||||
friend complex operator+(const complex&, double);
|
||||
friend complex operator-(const complex&, const complex&);
|
||||
friend complex operator-(double, const complex&);
|
||||
friend complex operator-(const complex&, double);
|
||||
friend complex operator*(const complex&, const complex&);
|
||||
friend complex operator*(double, const complex&);
|
||||
friend complex operator*(const complex&, double);
|
||||
friend complex operator/(const complex&, const complex&);
|
||||
friend complex operator/(double, const complex&);
|
||||
friend complex operator/(const complex&, double);
|
||||
friend int operator==(const complex&, const complex&);
|
||||
friend int operator!=(const complex&, const complex&);
|
||||
|
||||
|
||||
|
||||
public:
|
||||
|
||||
complex(double _re_val, double _im_val=0);
|
||||
complex();
|
||||
|
||||
const complex& operator+=(const complex&) ;
|
||||
const complex& operator+=(double) ;
|
||||
const complex& operator-=(const complex&) ;
|
||||
const complex& operator-=(double) ;
|
||||
const complex& operator*=(const complex&) ;
|
||||
const complex& operator*=(double) ;
|
||||
const complex& operator/=(const complex&) ;
|
||||
const complex& operator/=(double) ;
|
||||
complex operator+() const;
|
||||
complex operator-() const;
|
||||
|
||||
private:
|
||||
|
||||
double re;
|
||||
double im;
|
||||
|
||||
};
|
||||
|
||||
inline complex::complex(double _re_val, double _im_val) {
|
||||
|
||||
re = _re_val;
|
||||
im = _im_val;
|
||||
}
|
||||
|
||||
inline complex::complex() {
|
||||
|
||||
re = 0.0;
|
||||
im = 0.0;
|
||||
}
|
||||
|
||||
inline complex complex::operator+() const {
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline complex complex::operator-() const {
|
||||
|
||||
return complex(-re, -im);
|
||||
}
|
||||
|
||||
inline const complex& complex::operator+=(const complex& _z) {
|
||||
|
||||
re += _z.re;
|
||||
im += _z.im;
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline const complex& complex::operator+=(double _r) {
|
||||
|
||||
re += _r;
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline const complex& complex::operator-=(const complex& _z) {
|
||||
|
||||
re -= _z.re;
|
||||
im -= _z.im;
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline const complex& complex::operator-=(double _r) {
|
||||
|
||||
re -= _r;
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline const complex& complex::operator*=(double _r) {
|
||||
|
||||
re *= _r;
|
||||
im *= _r;
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline const complex& complex::operator/=(double _r) {
|
||||
|
||||
re /= _r;
|
||||
im /= _r;
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
inline double real(const complex& _z) {
|
||||
|
||||
return _z.re;
|
||||
}
|
||||
|
||||
inline double imag(const complex& _z) {
|
||||
|
||||
return _z.im;
|
||||
}
|
||||
|
||||
inline complex conj(const complex& _z) {
|
||||
|
||||
return complex(_z.re, -_z.im);
|
||||
}
|
||||
|
||||
inline complex polar(double _mag, double _ang) {
|
||||
|
||||
return complex(_mag*cos(_ang), _mag*sin(_ang));
|
||||
}
|
||||
|
||||
|
||||
inline complex operator+(const complex& _z1, const complex& _z2) {
|
||||
|
||||
return complex(_z1.re + _z2.re, _z1.im + _z2.im);
|
||||
}
|
||||
|
||||
inline complex operator+(double _r, const complex& _z) {
|
||||
|
||||
return complex(_r + _z.re, _z.im);
|
||||
}
|
||||
|
||||
inline complex operator+(const complex& _z, double _r) {
|
||||
|
||||
return complex(_r + _z.re, _z.im);
|
||||
}
|
||||
|
||||
inline complex operator-(const complex& _z1, const complex& _z2) {
|
||||
|
||||
return complex(_z1.re - _z2.re, _z1.im - _z2.im);
|
||||
}
|
||||
|
||||
inline complex operator-(double _r, const complex& _z) {
|
||||
|
||||
return complex(_r - _z.re, -_z.im);
|
||||
}
|
||||
|
||||
inline complex operator-(const complex& _z, double _r) {
|
||||
|
||||
return complex(_r - _z.re, _z.im);
|
||||
}
|
||||
|
||||
inline complex operator*(double _r, const complex& _z) {
|
||||
|
||||
return complex(_r * _z.re, _r * _z.im);
|
||||
}
|
||||
|
||||
inline complex operator*(const complex& _z, double _r) {
|
||||
|
||||
return complex(_r * _z.re, _r * _z.im);
|
||||
}
|
||||
|
||||
inline complex operator/(const complex& _z, double _r) {
|
||||
|
||||
return complex(_z.re/_r, _z.im/_r);
|
||||
}
|
||||
|
||||
inline int operator==(const complex& _z1, const complex& _z2) {
|
||||
|
||||
return (_z1.re == _z2.re) && (_z1.im == _z2.im);
|
||||
}
|
||||
|
||||
inline int operator!=(const complex& _z1, const complex& _z2) {
|
||||
|
||||
return (_z1.re != _z2.re) || (_z1.im != _z2.im);
|
||||
}
|
||||
|
||||
ostream& operator<<(ostream&, const complex&);
|
||||
istream& operator>>(istream&, complex&);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,102 @@
|
||||
/* Release 3.00 */
|
||||
|
||||
/*-------------------------------------------------------------------------*
|
||||
* *
|
||||
* conio.h - header file for console input and output. *
|
||||
* *
|
||||
* COPYRIGHT (C) 1989, 1990 Jensen and Partners. All Rights Reserved *
|
||||
* *
|
||||
*--------------------------------------------------------------------------*/
|
||||
#include <stdepoc.h>
|
||||
|
||||
#ifndef _CONIO_INC_
|
||||
#define _CONIO_INC_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
extern char * cgets(char *_str);
|
||||
extern void cputs(const char *_str);
|
||||
extern int cprintf(const char *_format, ...);
|
||||
extern int cscanf(const char *_format, ...);
|
||||
extern int getch(void);
|
||||
extern int getche(void);
|
||||
extern int kbhit(void);
|
||||
extern int putch(int _ch);
|
||||
extern int ungetch(unsigned _ch);
|
||||
|
||||
#ifndef _PORTIO_DEF
|
||||
#define _PORTIO_DEF
|
||||
#if (defined _IL_MTF) | ( defined __STDC__)
|
||||
|
||||
extern unsigned char inportb(int _portid);
|
||||
extern void outportb(int _portid, unsigned char _value);
|
||||
extern unsigned int inportw(int _portid);
|
||||
extern void outportw(int _portid, unsigned int _value);
|
||||
extern void _disable(void);
|
||||
extern void _enable(void);
|
||||
|
||||
#define inp(portid) inportb(portid)
|
||||
#define outp(portid, v) outportb(portid, v)
|
||||
#define inpw(portid) inportw(portid)
|
||||
#define outpw(portid, v) outportw(portid, v)
|
||||
|
||||
#else
|
||||
|
||||
#define RET 0xC3
|
||||
|
||||
#pragma save,call(reg_param=>(dx,ax),reg_saved=>(bx,cx,si,di,es,ds,st1,st2), inline=>on)
|
||||
static void __outportb__(int _port, unsigned char _byte) =
|
||||
{
|
||||
0xEE, RET /* out dx,al */
|
||||
};
|
||||
|
||||
static unsigned char __inportb__(int _port) =
|
||||
{
|
||||
0xEC, RET /* in dx,al */
|
||||
};
|
||||
|
||||
static void __outportw__(int _port, unsigned _word) =
|
||||
{
|
||||
0xEF, RET /* out dx,ax */
|
||||
};
|
||||
|
||||
static unsigned int __inportw__(int _port) =
|
||||
{
|
||||
0xED, RET /* in dx,ax */
|
||||
};
|
||||
|
||||
static void _enable(void)=
|
||||
{
|
||||
0xFB, RET
|
||||
};
|
||||
|
||||
static void _disable(void)=
|
||||
{
|
||||
0xFA, RET
|
||||
};
|
||||
|
||||
#pragma restore
|
||||
|
||||
#define inportb(portid) __inportb__(portid) /* Byte IN instruction */
|
||||
#define outportb(portid, v) __outportb__(portid,v) /* Byte OUT instruction */
|
||||
#define inportw(portid) __inportw__(portid) /* Word IN instruction */
|
||||
#define outportw(portid, v) __outportw__(portid,v) /* Word OUT instruction */
|
||||
|
||||
/* some compilers use inp, outp for inportb, outportb */
|
||||
|
||||
#define inp(portid) __inportb__(portid)
|
||||
#define outp(portid, v) __outportb__(portid, v)
|
||||
#define inpw(portid) __inportw__(portid)
|
||||
#define outpw(portid, v) __outportw__(portid, v)
|
||||
|
||||
#endif
|
||||
#define enable() _enable()
|
||||
#define disable() _disable()
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
/* Release 3.10 */
|
||||
/*-------------------------------------------------------------------------*
|
||||
* *
|
||||
* CONIOSTR.HPP - header file for console stream input and output. *
|
||||
* *
|
||||
* COPYRIGHT (C) 1990..1992 Clarion Software Corporation *
|
||||
* All Rights Reserved *
|
||||
* *
|
||||
*--------------------------------------------------------------------------*/
|
||||
#include <stdepoc.h>
|
||||
|
||||
#ifndef _CONIOSTR_INC_
|
||||
#define _CONIOSTR_INC_
|
||||
|
||||
#include <iostream.hpp>
|
||||
|
||||
|
||||
class conbuf : public streambuf {
|
||||
|
||||
public:
|
||||
|
||||
virtual int underflow();
|
||||
virtual int pbackfail(int);
|
||||
virtual int overflow(int _c = EOF);
|
||||
virtual int sync();
|
||||
|
||||
private:
|
||||
|
||||
unsigned flush_magic;
|
||||
|
||||
};
|
||||
|
||||
extern istream conin;
|
||||
extern ostream conout;
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,271 @@
|
||||
frame = 4 (* standard stack frame, near call *)
|
||||
bxframe = 2 (* bx stack frame, near call *)
|
||||
|
||||
PopParam = 0 (* Dummy value for changing real return convention *)
|
||||
DOSHUGESHIFT = 12
|
||||
|
||||
(***************************** Data Type Sizes *****************************)
|
||||
|
||||
CodePtrSize = 2 (* Code pointer, near calls *)
|
||||
DataPtrSize = 2 (* Data pointer, 16 bit data pointer models *)
|
||||
|
||||
_ptr = 0 (* _iob structure *)
|
||||
_cnt = 2
|
||||
_size = 4
|
||||
_base = 6
|
||||
_flag = 8
|
||||
_file = 10
|
||||
_pback = 12
|
||||
_iobSize = 14 (* size of _iob structure *)
|
||||
|
||||
(***************************** OS Error Codes ******************************)
|
||||
|
||||
EFAULT = -1
|
||||
ENOENT = -33
|
||||
ENOPATH = -42
|
||||
EMFILE = -18
|
||||
EACCESS = -39
|
||||
EBADF = -15
|
||||
E2BIG = -6
|
||||
ENOMEM = -10
|
||||
ENOSPC = -37
|
||||
EINVAL = -2
|
||||
EDOM = -2
|
||||
ERANGE = -7
|
||||
|
||||
(***************************** IO Constants*********************************)
|
||||
|
||||
BUFSIZ = 512 (* IO Buffer size *)
|
||||
|
||||
_IOFBF = 0 (* setvbuf - full buffering *)
|
||||
_IOLBF = 1 (* setvbuf - line buffering *)
|
||||
_IONBF = 2 (* setvbuf - no buffering *)
|
||||
|
||||
_F_RDWR = 0003H (* Read/write *)
|
||||
_F_READ = 0001H (* Read only file *)
|
||||
_F_WRIT = 0002H (* Write only file *)
|
||||
_F_UBUF = 0004H (* User allocated buffer *)
|
||||
_F_APP = 0008H (* Append data *)
|
||||
_F_ERR = 0010H (* Error *)
|
||||
_F_EOF = 0020H (* EOF *)
|
||||
_F_BIN = 0040H (* Binary file *)
|
||||
_F_IN = 0080H (* Data is incoming *)
|
||||
_F_OUT = 0100H (* Data is outgoing *)
|
||||
_F_DEV = 0200H (* File is terminal *)
|
||||
_F_RST = 0400H (* Newly opened stream *)
|
||||
_F_LBUF = 0800H (* line buffered stream *)
|
||||
_F_CTZ = 1000H
|
||||
|
||||
SEEK_SET = 0 (* lseek - origin beginning of file *)
|
||||
SEEK_CUR = 1 (* lseek - origin current position *)
|
||||
SEEK_END = 2 (* lseek - origin end of file *)
|
||||
|
||||
CTLZ = 1AH (* Text mode EOF character *)
|
||||
EOF = -1 (* end of file return value *)
|
||||
|
||||
O_RDONLY = 0
|
||||
O_WRONLY = 1
|
||||
O_RDWR = 2
|
||||
|
||||
O_CREAT = 0100H (* create and open file *)
|
||||
O_TRUNC = 0200H (* open with truncation *)
|
||||
O_EXCL = 0400H (* exclusive open *)
|
||||
|
||||
_O_EOF = 0200H (* set when text file hits ^Z *)
|
||||
|
||||
O_APPEND = 0800H (* write to end of file *)
|
||||
|
||||
O_CHANGED = 1000H (* File has been written *)
|
||||
O_DEVICE = 2000H (* user read only flag *)
|
||||
O_TEXT = 4000H (* CR-LF translation *)
|
||||
O_BINARY = 8000H (* no translation *)
|
||||
|
||||
SH_NOINHERIT = 80H (* File sharing modes *)
|
||||
SH_COMPAT = 00H
|
||||
SH_DENYRW = 10H
|
||||
SH_DENYWR = 20H
|
||||
SH_DENYRD = 30H
|
||||
SH_DENYNO = 40H
|
||||
|
||||
SH_DENYNONE = SH_DENYNO (* MS documentation uses both *)
|
||||
|
||||
S_IFDIR = 4000H (* directory *)
|
||||
S_IFCHR = 2000H (* character device *)
|
||||
S_IFREG = 8000H (* regular file *)
|
||||
S_IREAD = 0100H (* owner may read *)
|
||||
S_IWRITE = 0080H (* owner may write *)
|
||||
S_IEXEC = 0040H (* owner may execute directory search *)
|
||||
|
||||
FA_NORMAL = 00H (* normal file *)
|
||||
FA_RDONLY = 01H (* Read only attribute *)
|
||||
FA_HIDDEN = 02H (* Hidden file *)
|
||||
FA_SYSTEM = 04H (* System file *)
|
||||
FA_LABEL = 08H (* Volume label *)
|
||||
FA_DIREC = 10H (* Directory *)
|
||||
FA_ARCH = 20H (* Archive *)
|
||||
FA_TEXT = 100H (* Open in text mode *)
|
||||
FA_SHARE = 200H (* Open with sharing *)
|
||||
|
||||
E_CONS = 8000H (* The console channel *)
|
||||
E_DEVICE = 4000H (* Its a character device *)
|
||||
|
||||
(************************ OS2 structures and constants ********************)
|
||||
|
||||
fdateCreation = 0
|
||||
ftimeCreation = 2
|
||||
fdateLastAccess = 4
|
||||
ftimeLastAccess = 6
|
||||
fdateLastWrite = 8
|
||||
ftimeLastWrite = 10
|
||||
cbFile = 12
|
||||
cbFileAlloc = 16
|
||||
attrFile = 20
|
||||
|
||||
FileInfoSize = 22
|
||||
|
||||
IO_WAIT = 0
|
||||
IO_NOWAIT = 1
|
||||
|
||||
hours = 0
|
||||
minutes = 1
|
||||
seconds = 2
|
||||
hundredths = 3
|
||||
day = 4
|
||||
month = 5
|
||||
year = 6
|
||||
timezone = 8
|
||||
weekday = 10
|
||||
|
||||
DateTimeSize = 11
|
||||
|
||||
EXIT_THREAD = 0
|
||||
EXIT_PROCESS = 1
|
||||
EXLST_EXIT = 3
|
||||
EXLST_ADD = 1
|
||||
|
||||
(* Signal Numbers for DosSetSigHandler *)
|
||||
|
||||
SIG_CTRLC = 1 (* Control C *)
|
||||
SIG_BROKENPIPE = 2 (* Broken Pipe *)
|
||||
SIG_KILLPROCESS = 3 (* Program Termination *)
|
||||
SIG_CTRLBREAK = 4 (* Control Break *)
|
||||
SIG_PFLG_A = 5 (* Process Flag A *)
|
||||
SIG_PFLG_B = 6 (* Process Flag B *)
|
||||
SIG_PFLG_C = 7 (* Process Flag C *)
|
||||
SIG_CSIGNALS = 8 (* number of signals plus one *)
|
||||
|
||||
|
||||
(* Flag Numbers for DosFlagProcess *)
|
||||
|
||||
PFLG_A = 0 (* Process Flag A *)
|
||||
PFLG_B = 1 (* Process Flag B *)
|
||||
PFLG_C = 2 (* Process Flag C *)
|
||||
|
||||
(* Signal actions *)
|
||||
|
||||
SIGA_KILL = 0
|
||||
SIGA_IGNORE = 1
|
||||
SIGA_ACCEPT = 2
|
||||
SIGA_ERROR = 3
|
||||
SIGA_ACKNOWLEDGE = 4
|
||||
|
||||
|
||||
SIG_DFL = 0
|
||||
SIG_IGN = 1
|
||||
SIG_SGE = 3
|
||||
SIG_ACK = 4
|
||||
|
||||
|
||||
(************************ Library Internal Constants ***********************)
|
||||
(* *)
|
||||
(* These constants are internal to the run-time library and may NOT *)
|
||||
(* changed. *)
|
||||
(* *)
|
||||
(***************************************************************************)
|
||||
|
||||
TRUE = 1
|
||||
FALSE = 0
|
||||
|
||||
math_saved_regs = 8
|
||||
|
||||
ExpNeg = 80H
|
||||
magic = 01234H (* value to flag exception handler *)
|
||||
MAGIC = 01234H (* value to flag exception handler *)
|
||||
|
||||
f_st5 = 10H (* arg1 is in st5 *)
|
||||
f_two = 20H (* two arguments *)
|
||||
|
||||
_DOMAIN = 1 (* parameter not in valid domain *)
|
||||
_SING = 2 (* function is incalculable at this place *)
|
||||
_OVERFLOW = 3 (* result exceeds representable range *)
|
||||
_UNDERFLOW = 4 (* result too close to zero to be represented *)
|
||||
_TLOSS = 5 (* total loss of precision (eg. Sine (2**65)) *)
|
||||
_PLOSS = 6 (* partial precision loss *)
|
||||
|
||||
ZFLAG = 80H (* Zero pad flag from printf *)
|
||||
|
||||
stream = 0
|
||||
flush = 2
|
||||
count = 4
|
||||
args = 6
|
||||
handler = 8
|
||||
|
||||
InMathLib = 0
|
||||
|
||||
(* Priority = 0 *)
|
||||
(* ProcVar = 2 *)
|
||||
(* InitSize = 4 *)
|
||||
|
||||
Priority = 2
|
||||
ProcVar = 3
|
||||
InitSize = 5
|
||||
|
||||
PR0 = 30
|
||||
PR1 = 29
|
||||
PR2 = 28
|
||||
PR3 = 27
|
||||
PR4 = 26
|
||||
PR5 = 25
|
||||
PRL = 20
|
||||
|
||||
PRMAX = 32
|
||||
|
||||
emu_fraction = 0
|
||||
emu_exponent = 8
|
||||
emu_sign = 10
|
||||
emu_spare = 11
|
||||
emu_temp_size = 12
|
||||
|
||||
by0 = 0
|
||||
by1 = 1
|
||||
|
||||
w0 = 0
|
||||
w1 = 2
|
||||
w2 = 4
|
||||
w3 = 6
|
||||
|
||||
dd0 = 0
|
||||
dd1 = 4
|
||||
|
||||
STACK_GUARD = 1234H
|
||||
|
||||
GETSTATE_START = 0
|
||||
GETSTATE_END = 2
|
||||
GETSTATE_FIRST = 4
|
||||
|
||||
_j_flag = 0
|
||||
_j_ip = 2
|
||||
_j_sp = 4
|
||||
_j_bp = 6
|
||||
_j_si = 8
|
||||
_j_di = 10
|
||||
_j_dx = 12
|
||||
_j_cx = 14
|
||||
_j_bx = 16
|
||||
_j_classHandle = 18
|
||||
_j_classPtr = 20
|
||||
_j_enterFrame = 22
|
||||
_j_osFrame = 24
|
||||
_j_st1 = 26
|
||||
_j_st2 = 36
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/* Release 3.00 */
|
||||
|
||||
/*-------------------------------------------------------------------------*
|
||||
* *
|
||||
* ctype.h - header file for ctype macro definitions. *
|
||||
* *
|
||||
* COPYRIGHT (C) 1989, 1990 Jensen and Partners. All Rights Reserved. *
|
||||
* *
|
||||
*--------------------------------------------------------------------------*/
|
||||
#include <stdepoc.h>
|
||||
|
||||
#ifndef _CTYPE_INC_
|
||||
#define _CTYPE_INC_
|
||||
|
||||
#define _IS_SP 1 /* is space */
|
||||
#define _IS_DIG 2 /* is digit indicator */
|
||||
#define _IS_UPP 4 /* is upper case */
|
||||
#define _IS_LOW 8 /* is lower case */
|
||||
#define _IS_HEX 16 /* [A-F or [a-f] */
|
||||
#define _IS_CTL 32 /* Control */
|
||||
#define _IS_PUN 64 /* punctuation */
|
||||
|
||||
extern char _ctype[257]; /* Character type array */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
extern int isalnum(int _c);
|
||||
extern int isalpha(int _c);
|
||||
extern int isascii(int _c);
|
||||
extern int iscntrl(int _c);
|
||||
extern int isdigit(int _c);
|
||||
extern int isgraph(int _c);
|
||||
extern int islower(int _c);
|
||||
extern int isprint(int _c);
|
||||
extern int ispunct(int _c);
|
||||
extern int isspace(int _c);
|
||||
extern int isupper(int _c);
|
||||
extern int isxdigit(int _c);
|
||||
|
||||
extern int _toupper(int _c);
|
||||
extern int _tolower(int _c);
|
||||
extern int toascii(int _c);
|
||||
extern int tolower(int _ch); /* function prototypes */
|
||||
extern int toupper(int _ch);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef __STDC__
|
||||
|
||||
#ifdef _CT_FTM
|
||||
#define toupper(c) ((islower(c)) ? _toupper(c) : (c) )
|
||||
#define tolower(c) ((isupper(c)) ? _tolower(c) : (c) )
|
||||
#endif
|
||||
|
||||
#ifndef _CT_MTF /* defines conversion macros */
|
||||
|
||||
#define isalnum(c) (_ctype[(c)+1] & (_IS_DIG | _IS_UPP | _IS_LOW))
|
||||
#define isalpha(c) (_ctype[(c)+1] & (_IS_UPP | _IS_LOW))
|
||||
#define isascii(c) ((unsigned)((c)) < 0x80)
|
||||
#define iscntrl(c) (_ctype[(c)+1] & _IS_CTL)
|
||||
#define isdigit(c) (_ctype[(c)+1] & _IS_DIG)
|
||||
#define isgraph(c) ((c) >= 0x21 && (c) <= 0x7e)
|
||||
#define islower(c) (_ctype[(c)+1] & _IS_LOW)
|
||||
#define isprint(c) ((c) >= 0x20 && (c) <= 0x7e)
|
||||
#define ispunct(c) (_ctype[(c)+1] & _IS_PUN)
|
||||
#define isspace(c) (_ctype[(c)+1] & _IS_SP)
|
||||
#define isupper(c) (_ctype[(c)+1] & _IS_UPP)
|
||||
#define isxdigit(c) (_ctype[(c)+1] & (_IS_DIG | _IS_HEX))
|
||||
|
||||
#define iscsymf(c) (isalpha(c) || ((c) == '_'))
|
||||
#define iscsym(c) (isalnum(c) || ((c) == '_'))
|
||||
|
||||
#define _toupper(c) ((c) + 'A' - 'a')
|
||||
#define _tolower(c) ((c) + 'a' - 'A')
|
||||
#define toascii(c) ((c) & 0x7f)
|
||||
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
@@ -0,0 +1,96 @@
|
||||
/* Generated by Ctran from dialdlgs.cl */
|
||||
#define DIALDLGS_G
|
||||
#ifndef DLGBOX_G
|
||||
#include <dlgbox.g>
|
||||
#endif
|
||||
#ifndef WR_IO_H
|
||||
#include <wr_io.h>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_DIALDLG 59
|
||||
#define C_FREEDIAL 60
|
||||
#define C_FDIALDLG 61
|
||||
#define C_CNTRYDLG 62
|
||||
#define C_SDIALDLG 63
|
||||
/* Method Numbers */
|
||||
/* Property of dialdlg */
|
||||
typedef struct {
|
||||
void *dialao;
|
||||
} PRS_DIALDLG;
|
||||
typedef struct pr_dialdlg
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_DLGCHAIN dlgchain;
|
||||
PRS_DLGBOX dlgbox;
|
||||
PRS_DIALDLG dialdlg;
|
||||
} PR_DIALDLG;
|
||||
/* Property of freedial */
|
||||
typedef struct {
|
||||
short int current;
|
||||
char str[WR_MAX_DIAL_STRING+2];
|
||||
} PRS_FREEDIAL;
|
||||
typedef struct pr_freedial
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_LODGER lodger;
|
||||
PRS_FREEDIAL freedial;
|
||||
} PR_FREEDIAL;
|
||||
/* Property of fdialdlg */
|
||||
typedef struct pr_fdialdlg
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_DLGCHAIN dlgchain;
|
||||
PRS_DLGBOX dlgbox;
|
||||
PRS_DIALDLG dialdlg;
|
||||
} PR_FDIALDLG;
|
||||
/* Property of cntrydlg */
|
||||
typedef struct pr_cntrydlg
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_DLGCHAIN dlgchain;
|
||||
PRS_DLGBOX dlgbox;
|
||||
} PR_CNTRYDLG;
|
||||
/* Constants for sdialdlg */
|
||||
#define PAN_TONE_LENGTH_TICKS 4
|
||||
#define PAN_DELAY_LENGTH_TICKS 4
|
||||
#define PAN_PAUSE_LENGTH_TICKS 32
|
||||
#define PC_TONE_LENGTH_TICKS 6
|
||||
#define PC_DELAY_LENGTH_TICKS 4
|
||||
#define PC_PAUSE_LENGTH_TICKS 18
|
||||
#define SMART_DIAL_MAX_PROMPT 11
|
||||
/* Types for sdialdlg */
|
||||
typedef struct
|
||||
{
|
||||
char pmt[SMART_DIAL_MAX_PROMPT+1];
|
||||
char str[WR_MAX_IN_STRING+2];
|
||||
} SMART_DIAL_ITEM;
|
||||
typedef struct
|
||||
{
|
||||
short int count;
|
||||
SMART_DIAL_ITEM it[DLGBOX_MAX_ITEM-3];
|
||||
} SMART_DIAL_DATA;
|
||||
typedef struct
|
||||
{
|
||||
short int count;
|
||||
SMART_DIAL_ITEM it;
|
||||
} SMART_DIAL_DATA_S;
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int toneLengthTicks;
|
||||
unsigned short int delayLengthTicks;
|
||||
unsigned short int pauseLengthTicks;
|
||||
unsigned char dialOutCode[17];
|
||||
} DIAL_ENVAR;
|
||||
/* Property of sdialdlg */
|
||||
typedef struct pr_sdialdlg
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_DLGCHAIN dlgchain;
|
||||
PRS_DLGBOX dlgbox;
|
||||
PRS_DIALDLG dialdlg;
|
||||
} PR_SDIALDLG;
|
||||
@@ -0,0 +1,87 @@
|
||||
; Generated by Ctran from dialdlgs.cl
|
||||
DIALDLGS_ING equ 1
|
||||
IFNDEF DLGBOX_ING
|
||||
INCLUDE ..\inc\DLGBOX.ING
|
||||
ENDIF
|
||||
IFNDEF WR_IO_INC
|
||||
INCLUDE ..\inc\WR_IO.INC
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_DIALDLG equ 59
|
||||
C_FREEDIAL equ 60
|
||||
C_FDIALDLG equ 61
|
||||
C_CNTRYDLG equ 62
|
||||
C_SDIALDLG equ 63
|
||||
; Method Numbers
|
||||
; Property of dialdlg
|
||||
PRS_DIALDLG struc
|
||||
DialdlgDialao dw ?
|
||||
PRS_DIALDLG ends
|
||||
PR_DIALDLG struc
|
||||
DialdlgRoot PRS_ROOT <>
|
||||
DialdlgWin PRS_WIN <>
|
||||
DialdlgDlgchain PRS_DLGCHAIN <>
|
||||
DialdlgDlgbox PRS_DLGBOX <>
|
||||
DialdlgDialdlg PRS_DIALDLG <>
|
||||
PR_DIALDLG ends
|
||||
; Property of freedial
|
||||
PRS_FREEDIAL struc
|
||||
FreedialCurrent dw ?
|
||||
FreedialStr db (1) * WR_MAX_DIAL_STRING+2 dup (?)
|
||||
PRS_FREEDIAL ends
|
||||
PR_FREEDIAL struc
|
||||
FreedialRoot PRS_ROOT <>
|
||||
FreedialWin PRS_WIN <>
|
||||
FreedialLodger PRS_LODGER <>
|
||||
FreedialFreedial PRS_FREEDIAL <>
|
||||
PR_FREEDIAL ends
|
||||
; Property of fdialdlg
|
||||
PR_FDIALDLG struc
|
||||
FdialdlgRoot PRS_ROOT <>
|
||||
FdialdlgWin PRS_WIN <>
|
||||
FdialdlgDlgchain PRS_DLGCHAIN <>
|
||||
FdialdlgDlgbox PRS_DLGBOX <>
|
||||
FdialdlgDialdlg PRS_DIALDLG <>
|
||||
PR_FDIALDLG ends
|
||||
; Property of cntrydlg
|
||||
PR_CNTRYDLG struc
|
||||
CntrydlgRoot PRS_ROOT <>
|
||||
CntrydlgWin PRS_WIN <>
|
||||
CntrydlgDlgchain PRS_DLGCHAIN <>
|
||||
CntrydlgDlgbox PRS_DLGBOX <>
|
||||
PR_CNTRYDLG ends
|
||||
; Constants for sdialdlg
|
||||
PAN_TONE_LENGTH_TICKS equ (4)
|
||||
PAN_DELAY_LENGTH_TICKS equ (4)
|
||||
PAN_PAUSE_LENGTH_TICKS equ (32)
|
||||
PC_TONE_LENGTH_TICKS equ (6)
|
||||
PC_DELAY_LENGTH_TICKS equ (4)
|
||||
PC_PAUSE_LENGTH_TICKS equ (18)
|
||||
SMART_DIAL_MAX_PROMPT equ (11)
|
||||
; Types for sdialdlg
|
||||
SMART_DIAL_ITEM struc
|
||||
SMART_DIAL_ITEMPmt db (1) * SMART_DIAL_MAX_PROMPT+1 dup (?)
|
||||
SMART_DIAL_ITEMStr db (1) * WR_MAX_IN_STRING+2 dup (?)
|
||||
SMART_DIAL_ITEM ends
|
||||
SMART_DIAL_DATA struc
|
||||
SMART_DIAL_DATACount dw ?
|
||||
SMART_DIAL_DATAIt db (size SMART_DIAL_ITEM)* DLGBOX_MAX_ITEM-3 dup (?)
|
||||
SMART_DIAL_DATA ends
|
||||
SMART_DIAL_DATA_S struc
|
||||
SMART_DIAL_DATA_SCount dw ?
|
||||
SMART_DIAL_DATA_SIt SMART_DIAL_ITEM <>
|
||||
SMART_DIAL_DATA_S ends
|
||||
DIAL_ENVAR struc
|
||||
DIAL_ENVARToneLengthTicks dw ?
|
||||
DIAL_ENVARDelayLengthTicks dw ?
|
||||
DIAL_ENVARPauseLengthTicks dw ?
|
||||
DIAL_ENVARDialOutCode db (1) * 17 dup (?)
|
||||
DIAL_ENVAR ends
|
||||
; Property of sdialdlg
|
||||
PR_SDIALDLG struc
|
||||
SdialdlgRoot PRS_ROOT <>
|
||||
SdialdlgWin PRS_WIN <>
|
||||
SdialdlgDlgchain PRS_DLGCHAIN <>
|
||||
SdialdlgDlgbox PRS_DLGBOX <>
|
||||
SdialdlgDialdlg PRS_DIALDLG <>
|
||||
PR_SDIALDLG ends
|
||||
@@ -0,0 +1,73 @@
|
||||
/* Release 3.00 */
|
||||
|
||||
/*-------------------------------------------------------------------------*
|
||||
* *
|
||||
* dir.h - structure and function definitions for MSDOS pathnames *
|
||||
* and directories. *
|
||||
* *
|
||||
* COPYRIGHT (C) 1989, 1990 Jensen and Partners. All Rights Reserved. *
|
||||
* *
|
||||
*--------------------------------------------------------------------------*/
|
||||
#include <stdepoc.h>
|
||||
|
||||
#ifndef _DIR_INC_
|
||||
#define _DIR_INC_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
extern int chdir(const char *_path);
|
||||
extern int getcurdir(int _drive, char *_buf);
|
||||
extern char * getcwd(char *_buf, int _maxlen);
|
||||
extern int _getdrive(void);
|
||||
extern int mkdir(const char *_path);
|
||||
extern int rmdir(const char *_path);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#define WILDCARDS 0x01
|
||||
#define EXTENSION 0x02
|
||||
#define FILENAME 0x04
|
||||
#define DIRECTORY 0x08
|
||||
#define DRIVE 0x10
|
||||
|
||||
#define MAXPATH 80
|
||||
#define MAXDRIVE 4
|
||||
#define MAXDIR 66
|
||||
#define MAXFILE 9
|
||||
#define MAXEXT 5
|
||||
|
||||
#ifndef _FFBLK_DEF
|
||||
#define _FFBLK_DEF
|
||||
|
||||
struct ffblk {
|
||||
char ff_reserved[21];
|
||||
char ff_attrib;
|
||||
int ff_ftime;
|
||||
int ff_fdate;
|
||||
long ff_fsize;
|
||||
char ff_name[13];
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
extern int findfirst(const char *_path, struct ffblk *_ffblk,int _attrib);
|
||||
extern int findnext(struct ffblk *_ffblk);
|
||||
extern void fnmerge(char *_path, const char *_drive,const char *_dir,
|
||||
const char *_name, const char *_ext);
|
||||
extern int fnsplit(const char *_path, char *_drive, char *_dir,
|
||||
char *_name, char *_ext);
|
||||
extern void _makepath(char *_path, const char *_drive, const char *_dir,
|
||||
const char *_name, const char *_ext);
|
||||
extern void _splitpath(const char *_path, char *_drive, char *_dir,
|
||||
char *_name, char *_ext);
|
||||
extern int getdisk(void);
|
||||
extern char * searchpath(const char *_path);
|
||||
extern int setdisk(int _drive);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
@@ -0,0 +1,2 @@
|
||||
#include <dir.h>
|
||||
|
||||
@@ -0,0 +1,165 @@
|
||||
/* Generated by Ctran from dlgbox.cl */
|
||||
#define DLGBOX_G
|
||||
#ifndef BWIN_G
|
||||
#include <bwin.g>
|
||||
#endif
|
||||
#ifndef TEXTWIN_G
|
||||
#include <textwin.g>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_DLGCHAIN 12
|
||||
#define C_DLGBOX 13
|
||||
#define C_ERRORDLG 14
|
||||
#define C_QUERYDLG 15
|
||||
#define C_FLISTDLG 16
|
||||
/* Method Numbers */
|
||||
#define O_DL_SET_SIZE 27
|
||||
#define O_DL_DIMMED_MESSAGE 25
|
||||
#define O_DL_INQ_MINSIZE 28
|
||||
#define O_DL_ITEM_REPLACE 22
|
||||
#define O_DL_ITEM_APPEND 23
|
||||
#define O_DL_HANDLE_TO_INDEX 20
|
||||
#define O_DL_CLR_ITEM_FLAGS 17
|
||||
#define O_DL_TAKE_FOCUS 19
|
||||
#define O_DL_ITEM_ADD 26
|
||||
#define O_DL_FOCUS 32
|
||||
#define O_DL_SET_ITEM_FLAGS 16
|
||||
#define O_DL_ITEM_DIM 15
|
||||
#define O_DL_ITEM_NEW 34
|
||||
#define O_DL_INIT 24
|
||||
#define O_DL_KEY 30
|
||||
#define O_DL_DYN_INIT 29
|
||||
#define O_DL_INDEX_TO_HANDLE 21
|
||||
#define O_DL_CHANGED 31
|
||||
#define O_DL_LAUNCH_SUB 33
|
||||
#define O_DL_ITEM_LOCK 14
|
||||
#define O_DL_SET_PROMPT 18
|
||||
/* Constants for dlgchain */
|
||||
#define PR_WIN_NO_DDP PR_WIN_FORCE_TOP
|
||||
#define HELPDLG_BASIC_HELP PR_WIN_FORCE_RIGHT
|
||||
#define HELPDLG_HELP_INDEX PR_WIN_FORCE_LEFT
|
||||
#define DLGCHAIN_WITH_MENU PR_WIN_FORCE_BOTTOM
|
||||
/* Property of dlgchain */
|
||||
typedef struct {
|
||||
PR_BWIN *next;
|
||||
} PRS_DLGCHAIN;
|
||||
typedef struct pr_dlgchain
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_DLGCHAIN dlgchain;
|
||||
} PR_DLGCHAIN;
|
||||
/* Constants for dlgbox */
|
||||
#define DLGBOX_NOTIFY_ENTER 0x0001
|
||||
#define DLGBOX_NOTIFY_ESCAPE 0x0002
|
||||
#define DLGBOX_RBUF_FILLED 0x0004
|
||||
#define DLGBOX_ACTION_LIST 0x0008
|
||||
#define DLGBOX_FROM_HWIF 0x0010
|
||||
#define DLGBOX_SMALL_FONT DLGBOX_FROM_HWIF
|
||||
#define DLGBOX_NO_WAIT 0x0020
|
||||
#define DLGBOX_NOTIFY_ALL_ACT 0x0040
|
||||
#define DLGBOX_REPORT_ACT_HORIZ 0x0080
|
||||
#define DLGBOX_APPEND_UNITS_TITLE 0x0100
|
||||
#define DLGBOX_SMALL_ACTION_LIST 0x0200
|
||||
#define DLGBOX_NO_SHADOW 0x0400
|
||||
#define DLGBOX_NO_DDP 0x0800
|
||||
#define DLGBOX_ITEM_NOTIFY_CHANGED 0x0001
|
||||
#define DLGBOX_ITEM_DIMMED 0x0002
|
||||
#define DLGBOX_ITEM_UNDERLINED 0x0004
|
||||
#define DLGBOX_ITEM_APPL_CAT 0x0008
|
||||
#define DLGBOX_ITEM_CENTRE 0x0010
|
||||
#define DLGBOX_ITEM_DEAD 0x0020
|
||||
#define DLGBOX_ITEM_NOTIFY_FOCUS 0x0080
|
||||
#define DLGBOX_ITEM_NEEDS_PACK 0x0100
|
||||
#define DLGBOX_ITEM_LOCKED 0x0200
|
||||
#define DLGBOX_ITEM_CAN_DEFER_X 0x0400
|
||||
#define DLGBOX_ITEM_X_PENDING 0x0800
|
||||
#define DLGBOX_ITEM_ACLIST 0x1000
|
||||
#define DLGBOX_LEFT_GAP (BWIN_CUSHION_X+7)
|
||||
#define DLGBOX_BULLET_GAP 3
|
||||
#define DLGBOX_VERT_GAP (BWIN_CUSHION_Y+2)
|
||||
#define DLGBOX_MAX_ITEM 9
|
||||
#define DLGBOX_MAX_ITEM_VINE 11
|
||||
#define UNDERLINE_DEPTH 3
|
||||
#define EXTRA_GUTTER_WIDTH 4
|
||||
#define DLGBOX_ROMAN8_FONT 5
|
||||
/* Types for dlgbox */
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int flags;
|
||||
char title[1];
|
||||
} HD_DLGBOX_RSC;
|
||||
typedef struct
|
||||
{
|
||||
short int flags;
|
||||
unsigned char class;
|
||||
char prompt[1];
|
||||
} AD_DLGBOX;
|
||||
typedef struct
|
||||
{
|
||||
PR_LODGER *hand;
|
||||
PR_TEXTWIN *prompt;
|
||||
short int flags;
|
||||
} DLGBOX_ITEM;
|
||||
typedef union
|
||||
{
|
||||
DLGBOX_ITEM item[7];
|
||||
DLGBOX_ITEM *pitm;
|
||||
} DLGBOX_ITEM_UNION;
|
||||
/* Property of dlgbox */
|
||||
typedef struct {
|
||||
DLGBOX_ITEM_UNION u;
|
||||
void *rbuf;
|
||||
short int dimrid;
|
||||
short int helprid;
|
||||
unsigned short int flags;
|
||||
unsigned char focus;
|
||||
unsigned char count;
|
||||
unsigned char current;
|
||||
unsigned char font;
|
||||
unsigned char absorb;
|
||||
unsigned char changed;
|
||||
} PRS_DLGBOX;
|
||||
typedef struct pr_dlgbox
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_DLGCHAIN dlgchain;
|
||||
PRS_DLGBOX dlgbox;
|
||||
} PR_DLGBOX;
|
||||
/* Types for errordlg */
|
||||
typedef struct
|
||||
{
|
||||
short int error;
|
||||
char message[80];
|
||||
} RBUF_ERROR;
|
||||
/* Property of errordlg */
|
||||
typedef struct pr_errordlg
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_DLGCHAIN dlgchain;
|
||||
PRS_DLGBOX dlgbox;
|
||||
} PR_ERRORDLG;
|
||||
/* Types for querydlg */
|
||||
typedef struct
|
||||
{
|
||||
short int result;
|
||||
char message[100];
|
||||
} RBUF_QUERY;
|
||||
/* Property of querydlg */
|
||||
typedef struct pr_querydlg
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_DLGCHAIN dlgchain;
|
||||
PRS_DLGBOX dlgbox;
|
||||
} PR_QUERYDLG;
|
||||
/* Property of flistdlg */
|
||||
typedef struct pr_flistdlg
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_DLGCHAIN dlgchain;
|
||||
PRS_DLGBOX dlgbox;
|
||||
} PR_FLISTDLG;
|
||||
@@ -0,0 +1,153 @@
|
||||
; Generated by Ctran from dlgbox.cl
|
||||
DLGBOX_ING equ 1
|
||||
IFNDEF BWIN_ING
|
||||
INCLUDE ..\inc\BWIN.ING
|
||||
ENDIF
|
||||
IFNDEF TEXTWIN_ING
|
||||
INCLUDE ..\inc\TEXTWIN.ING
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_DLGBOX equ 12
|
||||
C_ERRORDLG equ 13
|
||||
C_QUERYDLG equ 14
|
||||
C_FLISTDLG equ 15
|
||||
; Method Numbers
|
||||
O_DL_SET_SIZE equ 27
|
||||
O_DL_DIMMED_MESSAGE equ 25
|
||||
O_DL_INQ_MINSIZE equ 28
|
||||
O_DL_ITEM_REPLACE equ 22
|
||||
O_DL_ITEM_APPEND equ 23
|
||||
O_DL_HANDLE_TO_INDEX equ 20
|
||||
O_DL_CLR_ITEM_FLAGS equ 17
|
||||
O_DL_TAKE_FOCUS equ 19
|
||||
O_DL_ITEM_ADD equ 26
|
||||
O_DL_FOCUS equ 32
|
||||
O_DL_SET_ITEM_FLAGS equ 16
|
||||
O_DL_ITEM_DIM equ 15
|
||||
O_DL_ITEM_NEW equ 34
|
||||
O_DL_INIT equ 24
|
||||
O_DL_KEY equ 30
|
||||
O_DL_DYN_INIT equ 29
|
||||
O_DL_INDEX_TO_HANDLE equ 21
|
||||
O_DL_CHANGED equ 31
|
||||
O_DL_LAUNCH_SUB equ 33
|
||||
O_DL_ITEM_LOCK equ 14
|
||||
O_DL_SET_PROMPT equ 18
|
||||
; Constants for dlgchain
|
||||
PR_WIN_NO_DDP equ (PR_WIN_FORCE_TOP)
|
||||
HELPDLG_BASIC_HELP equ (PR_WIN_FORCE_RIGHT)
|
||||
HELPDLG_HELP_INDEX equ (PR_WIN_FORCE_LEFT)
|
||||
DLGCHAIN_WITH_MENU equ (PR_WIN_FORCE_BOTTOM)
|
||||
; Property of dlgchain
|
||||
PRS_DLGCHAIN struc
|
||||
DlgchainNext dw ?
|
||||
PRS_DLGCHAIN ends
|
||||
PR_DLGCHAIN struc
|
||||
DlgchainRoot PRS_ROOT <>
|
||||
DlgchainWin PRS_WIN <>
|
||||
DlgchainDlgchain PRS_DLGCHAIN <>
|
||||
PR_DLGCHAIN ends
|
||||
; Constants for dlgbox
|
||||
DLGBOX_NOTIFY_ENTER equ (00001h)
|
||||
DLGBOX_NOTIFY_ESCAPE equ (00002h)
|
||||
DLGBOX_RBUF_FILLED equ (00004h)
|
||||
DLGBOX_ACTION_LIST equ (00008h)
|
||||
DLGBOX_FROM_HWIF equ (00010h)
|
||||
DLGBOX_SMALL_FONT equ (DLGBOX_FROM_HWIF)
|
||||
DLGBOX_NO_WAIT equ (00020h)
|
||||
DLGBOX_NOTIFY_ALL_ACT equ (00040h)
|
||||
DLGBOX_REPORT_ACT_HORIZ equ (00080h)
|
||||
DLGBOX_APPEND_UNITS_TITLE equ (00100h)
|
||||
DLGBOX_SMALL_ACTION_LIST equ (00200h)
|
||||
DLGBOX_NO_SHADOW equ (00400h)
|
||||
DLGBOX_NO_DDP equ (00800h)
|
||||
DLGBOX_ITEM_NOTIFY_CHANGED equ (00001h)
|
||||
DLGBOX_ITEM_DIMMED equ (00002h)
|
||||
DLGBOX_ITEM_UNDERLINED equ (00004h)
|
||||
DLGBOX_ITEM_APPL_CAT equ (00008h)
|
||||
DLGBOX_ITEM_CENTRE equ (00010h)
|
||||
DLGBOX_ITEM_DEAD equ (00020h)
|
||||
DLGBOX_ITEM_NOTIFY_FOCUS equ (00080h)
|
||||
DLGBOX_ITEM_NEEDS_PACK equ (00100h)
|
||||
DLGBOX_ITEM_LOCKED equ (00200h)
|
||||
DLGBOX_ITEM_CAN_DEFER_X equ (00400h)
|
||||
DLGBOX_ITEM_X_PENDING equ (00800h)
|
||||
DLGBOX_ITEM_ACLIST equ (01000h)
|
||||
DLGBOX_LEFT_GAP equ (BWIN_CUSHION_X+7)
|
||||
DLGBOX_BULLET_GAP equ (3)
|
||||
DLGBOX_VERT_GAP equ (BWIN_CUSHION_Y+2)
|
||||
DLGBOX_MAX_ITEM equ (9)
|
||||
DLGBOX_MAX_ITEM_VINE equ (11)
|
||||
UNDERLINE_DEPTH equ (3)
|
||||
EXTRA_GUTTER_WIDTH equ (4)
|
||||
DLGBOX_ROMAN8_FONT equ (5)
|
||||
; Types for dlgbox
|
||||
HD_DLGBOX_RSC struc
|
||||
HD_DLGBOX_RSCFlags dw ?
|
||||
HD_DLGBOX_RSCTitle db (1) * 1 dup (?)
|
||||
HD_DLGBOX_RSC ends
|
||||
AD_DLGBOX struc
|
||||
AD_DLGBOXFlags dw ?
|
||||
AD_DLGBOXClass db ?
|
||||
AD_DLGBOXPrompt db (1) * 1 dup (?)
|
||||
AD_DLGBOX ends
|
||||
DLGBOX_ITEM struc
|
||||
DLGBOX_ITEMHand dw ?
|
||||
DLGBOX_ITEMPrompt dw ?
|
||||
DLGBOX_ITEMFlags dw ?
|
||||
DLGBOX_ITEM ends
|
||||
DLGBOX_ITEM_UNION union
|
||||
DLGBOX_ITEM_UNIONItem db (size DLGBOX_ITEM)* 7 dup (?)
|
||||
DLGBOX_ITEM_UNIONPitm dw ?
|
||||
DLGBOX_ITEM_UNION ends
|
||||
; Property of dlgbox
|
||||
PRS_DLGBOX struc
|
||||
DlgboxU DLGBOX_ITEM_UNION <>
|
||||
DlgboxRbuf dw ?
|
||||
DlgboxDimrid dw ?
|
||||
DlgboxHelprid dw ?
|
||||
DlgboxFlags dw ?
|
||||
DlgboxFocus db ?
|
||||
DlgboxCount db ?
|
||||
DlgboxCurrent db ?
|
||||
DlgboxFont db ?
|
||||
DlgboxAbsorb db ?
|
||||
DlgboxChanged db ?
|
||||
PRS_DLGBOX ends
|
||||
PR_DLGBOX struc
|
||||
DlgboxRoot PRS_ROOT <>
|
||||
DlgboxWin PRS_WIN <>
|
||||
DlgboxDlgchain PRS_DLGCHAIN <>
|
||||
DlgboxDlgbox PRS_DLGBOX <>
|
||||
PR_DLGBOX ends
|
||||
; Types for errordlg
|
||||
RBUF_ERROR struc
|
||||
RBUF_ERRORError dw ?
|
||||
RBUF_ERRORMessage db (1) * 80 dup (?)
|
||||
RBUF_ERROR ends
|
||||
; Property of errordlg
|
||||
PR_ERRORDLG struc
|
||||
ErrordlgRoot PRS_ROOT <>
|
||||
ErrordlgWin PRS_WIN <>
|
||||
ErrordlgDlgchain PRS_DLGCHAIN <>
|
||||
ErrordlgDlgbox PRS_DLGBOX <>
|
||||
PR_ERRORDLG ends
|
||||
; Types for querydlg
|
||||
RBUF_QUERY struc
|
||||
RBUF_QUERYResult dw ?
|
||||
RBUF_QUERYMessage db (1) * 100 dup (?)
|
||||
RBUF_QUERY ends
|
||||
; Property of querydlg
|
||||
PR_QUERYDLG struc
|
||||
QuerydlgRoot PRS_ROOT <>
|
||||
QuerydlgWin PRS_WIN <>
|
||||
QuerydlgDlgchain PRS_DLGCHAIN <>
|
||||
QuerydlgDlgbox PRS_DLGBOX <>
|
||||
PR_QUERYDLG ends
|
||||
; Property of flistdlg
|
||||
PR_FLISTDLG struc
|
||||
FlistdlgRoot PRS_ROOT <>
|
||||
FlistdlgWin PRS_WIN <>
|
||||
FlistdlgDlgchain PRS_DLGCHAIN <>
|
||||
FlistdlgDlgbox PRS_DLGBOX <>
|
||||
PR_FLISTDLG ends
|
||||
@@ -0,0 +1,33 @@
|
||||
/* Generated by Ctran from donewn.cl */
|
||||
#define DONEWN_G
|
||||
#ifndef GAUGE_G
|
||||
#include <gauge.g>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_DONEWN 25
|
||||
/* Method Numbers */
|
||||
/* Constants for donewn */
|
||||
#define SE_DONEWN_RANGE 0x01
|
||||
#define SE_DONEWN_VALUE 0x02
|
||||
#define SE_DONEWN_INCREMENT 0x04
|
||||
#define SE_DONEWN_INC_VAL 0x08
|
||||
/* Types for donewn */
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int flags;
|
||||
unsigned long int val;
|
||||
unsigned long int range;
|
||||
} SE_DONEWN;
|
||||
/* Property of donewn */
|
||||
typedef struct {
|
||||
unsigned long int val;
|
||||
unsigned long int range;
|
||||
} PRS_DONEWN;
|
||||
typedef struct pr_donewn
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_LODGER lodger;
|
||||
PRS_GAUGE gauge;
|
||||
PRS_DONEWN donewn;
|
||||
} PR_DONEWN;
|
||||
@@ -0,0 +1,31 @@
|
||||
; Generated by Ctran from donewn.cl
|
||||
DONEWN_ING equ 1
|
||||
IFNDEF GAUGE_ING
|
||||
INCLUDE ..\inc\GAUGE.ING
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_DONEWN equ 25
|
||||
; Method Numbers
|
||||
; Constants for donewn
|
||||
SE_DONEWN_RANGE equ (001h)
|
||||
SE_DONEWN_VALUE equ (002h)
|
||||
SE_DONEWN_INCREMENT equ (004h)
|
||||
SE_DONEWN_INC_VAL equ (008h)
|
||||
; Types for donewn
|
||||
SE_DONEWN struc
|
||||
SE_DONEWNFlags dw ?
|
||||
SE_DONEWNVal dd ?
|
||||
SE_DONEWNRange dd ?
|
||||
SE_DONEWN ends
|
||||
; Property of donewn
|
||||
PRS_DONEWN struc
|
||||
DonewnVal dd ?
|
||||
DonewnRange dd ?
|
||||
PRS_DONEWN ends
|
||||
PR_DONEWN struc
|
||||
DonewnRoot PRS_ROOT <>
|
||||
DonewnWin PRS_WIN <>
|
||||
DonewnLodger PRS_LODGER <>
|
||||
DonewnGauge PRS_GAUGE <>
|
||||
DonewnDonewn PRS_DONEWN <>
|
||||
PR_DONEWN ends
|
||||
@@ -0,0 +1,205 @@
|
||||
/* Release 3.00 */
|
||||
|
||||
/*-------------------------------------------------------------------------*
|
||||
* *
|
||||
* dos.h - structure, union, macro and function definitions for MSDOS and *
|
||||
* Intel IAPX86 family. *
|
||||
* *
|
||||
* COPYRIGHT (C) 1989 Jensen and Partners. All Rights Reserved *
|
||||
* *
|
||||
*--------------------------------------------------------------------------*/
|
||||
#include <stdepoc.h>
|
||||
|
||||
#ifndef _DOS_INC_
|
||||
#define _DOS_INC_
|
||||
|
||||
#ifndef __STDC__
|
||||
extern unsigned int _osmajor;
|
||||
extern unsigned int _osminor;
|
||||
extern int _argc;
|
||||
extern char *_argv[32];
|
||||
#endif
|
||||
|
||||
#define FA_NORMAL 0x00 /* normal file */
|
||||
#define FA_RDONLY 0x01 /* Read only attribute */
|
||||
#define FA_HIDDEN 0x02 /* Hidden file */
|
||||
#define FA_SYSTEM 0x04 /* System file */
|
||||
#define FA_LABEL 0x08 /* Volume label */
|
||||
#define FA_DIREC 0x10 /* Directory */
|
||||
#define FA_ARCH 0x20 /* Archive */
|
||||
#define FA_TEXT 0x100 /* Open in text mode */
|
||||
#define FA_SHARE 0x200 /* Open with sharing */
|
||||
|
||||
struct WORDREGS {
|
||||
unsigned int ax, bx, cx, dx, si, di, cflag, flags;
|
||||
};
|
||||
|
||||
struct BYTEREGS {
|
||||
unsigned char al, ah, bl, bh, cl, ch, dl, dh;
|
||||
};
|
||||
|
||||
union REGS {
|
||||
struct WORDREGS x;
|
||||
struct BYTEREGS h;
|
||||
};
|
||||
|
||||
struct SREGS {
|
||||
unsigned int es;
|
||||
unsigned int cs;
|
||||
unsigned int ss;
|
||||
unsigned int ds;
|
||||
};
|
||||
|
||||
struct REGPACK {
|
||||
unsigned r_ax, r_bx, r_cx, r_dx;
|
||||
unsigned r_bp, r_si, r_di, r_ds, r_es, r_flags;
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
extern int int86(int _intno, const union REGS * _inregs, union REGS * _outregs);
|
||||
extern int int86x(int _intno, const union REGS * _inregs, union REGS * _outregs,
|
||||
struct SREGS * _segregs);
|
||||
extern void intr(int _intno, struct REGPACK * _preg);
|
||||
extern void segread(struct SREGS * _segs);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef _FFBLK_DEF
|
||||
#define _FFBLK_DEF
|
||||
|
||||
struct ffblk {
|
||||
char ff_reserved[21];
|
||||
char ff_attrib;
|
||||
int ff_ftime;
|
||||
int ff_fdate;
|
||||
long ff_fsize;
|
||||
char ff_name[13];
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
extern int findfirst(const char * _path, struct ffblk * _buffer, int _attrib);
|
||||
extern int findnext(struct ffblk * _buffer);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef _PORTIO_DEF
|
||||
#define _PORTIO_DEF
|
||||
|
||||
#if (defined _IL_MTF) | ( defined __STDC__)
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
extern unsigned char inportb(int _portid);
|
||||
extern void outportb(int _portid, unsigned char _value);
|
||||
extern unsigned int inportw(int _portid);
|
||||
extern void outportw(int _portid, unsigned int _value);
|
||||
extern void _disable(void);
|
||||
extern void _enable(void);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#define inp(portid) inportb(portid)
|
||||
#define outp(portid, v) outportb(portid, v)
|
||||
#define inpw(portid) inportw(portid)
|
||||
#define outpw(portid, v) outportw(portid, v)
|
||||
#else
|
||||
|
||||
#define RET 0xC3
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#pragma save,call(reg_param=>(dx,ax),reg_saved=>(bx,cx,si,di,es,ds,st1,st2), inline=>on)
|
||||
static void __outportb__(int _port, unsigned char _byte) =
|
||||
{
|
||||
0xEE, RET /* out dx,al */
|
||||
};
|
||||
|
||||
static unsigned char __inportb__(int _port) =
|
||||
{
|
||||
0xEC, RET /* in dx,al */
|
||||
};
|
||||
|
||||
static void __outportw__(int _port,int unsigned _word) =
|
||||
{
|
||||
0xEF, RET /* out dx,ax */
|
||||
};
|
||||
|
||||
static unsigned int __inportw__(int _port) =
|
||||
{
|
||||
0xED, RET /* in dx,ax */
|
||||
};
|
||||
|
||||
static void _enable(void)=
|
||||
{
|
||||
0xFB, RET
|
||||
};
|
||||
|
||||
static void _disable(void)=
|
||||
{
|
||||
0xFA, RET
|
||||
};
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#pragma restore
|
||||
|
||||
#define inportb(portid) __inportb__(portid) /* Byte IN instruction */
|
||||
#define outportb(portid, v) __outportb__(portid,v)/* Byte OUT instruction */
|
||||
#define inportw(portid) __inportw__(portid) /* Word IN instruction */
|
||||
#define outportw(portid, v) __outportw__(portid,v)/* Word OUT instruction */
|
||||
|
||||
/* some compilers use inp, outp for inportb, outportb */
|
||||
|
||||
#define inp(portid) __inportb__(portid)
|
||||
#define outp(portid, v) __outportb__(portid, v)
|
||||
#define inpw(portid) __inportw__(portid)
|
||||
#define outpw(portid, v) __outportw__(portid, v)
|
||||
#endif
|
||||
#define enable() _enable()
|
||||
#define disable() _disable()
|
||||
#endif
|
||||
|
||||
#define NFDS 20 /* Maximum number of fds */
|
||||
|
||||
#ifndef _TMT_DEF
|
||||
#define _TMT_DEF
|
||||
struct date {
|
||||
int da_year;
|
||||
unsigned char da_day;
|
||||
unsigned char da_mon;
|
||||
};
|
||||
|
||||
struct time {
|
||||
unsigned char ti_hour;
|
||||
unsigned char ti_min;
|
||||
unsigned char ti_sec;
|
||||
unsigned char ti_hund;
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
extern void getdate(struct date * _dptr);
|
||||
extern void gettime(struct time * _tptr);
|
||||
extern void setdate(const struct date * _dptr);
|
||||
extern void settime(const struct time * _tptr);
|
||||
extern void sleep(unsigned _secs);
|
||||
extern void *getRealHandle(int handle);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
/* Generated by Ctran from dtedit.cl */
|
||||
#define DTEDIT_G
|
||||
#ifndef LODGER_G
|
||||
#include <lodger.g>
|
||||
#endif
|
||||
#ifndef MFNE_G
|
||||
#include <mfne.g>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_DTEDIT 31
|
||||
/* Method Numbers */
|
||||
/* Constants for dtedit */
|
||||
#define SE_DTEDIT_VALUE 0x01
|
||||
#define SE_DTEDIT_LOW 0x02
|
||||
#define SE_DTEDIT_HIGH 0x04
|
||||
#define PR_DTEDIT_DATE 0x0000
|
||||
#define PR_DTEDIT_TIME 0x0100
|
||||
#define PR_DTEDIT_DURATION 0x0200
|
||||
#define PR_DTEDIT_SECONDS 0x1000
|
||||
#define PR_DTEDIT_NEGATIVE 0x2000
|
||||
#define PR_DTEDIT_AMPM 0x4000
|
||||
#define PR_DTEDIT_NEG_DURATION (PR_DTEDIT_DURATION|PR_DTEDIT_NEGATIVE)
|
||||
#define IN_DTEDIT_INIT (SE_DTEDIT_VALUE|SE_DTEDIT_LOW|SE_DTEDIT_HIGH)
|
||||
#define IN_DTEDIT_DDMMYYYY (PR_DTEDIT_DATE)
|
||||
#define IN_DTEDIT_HHMMSS (PR_DTEDIT_TIME|PR_DTEDIT_SECONDS)
|
||||
#define IN_DTEDIT_HHMM (PR_DTEDIT_TIME)
|
||||
#define IN_DTEDIT_HHMMSS_D (PR_DTEDIT_TIME|PR_DTEDIT_DURATION|PR_DTEDIT_SECONDS)
|
||||
#define IN_DTEDIT_HHMM_D (PR_DTEDIT_TIME|PR_DTEDIT_DURATION)
|
||||
#define IN_DTEDIT_HHMMSS_ND (PR_DTEDIT_TIME|PR_DTEDIT_NEG_DURATION|PR_DTEDIT_SECONDS)
|
||||
#define IN_DTEDIT_HHMM_ND (PR_DTEDIT_TIME|PR_DTEDIT_NEG_DURATION)
|
||||
/* Types for dtedit */
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int flags;
|
||||
long int value;
|
||||
long int low;
|
||||
long int high;
|
||||
} IN_DTEDIT;
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int flags;
|
||||
long int value;
|
||||
long int low;
|
||||
long int high;
|
||||
} SE_DTEDIT;
|
||||
/* Property of dtedit */
|
||||
typedef struct {
|
||||
void *cal;
|
||||
short int dType;
|
||||
unsigned char changed;
|
||||
unsigned char inSelfCheck;
|
||||
IN_DTEDIT in;
|
||||
} PRS_DTEDIT;
|
||||
typedef struct pr_dtedit
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_LODGER lodger;
|
||||
PRS_MFNE mfne;
|
||||
PRS_DTEDIT dtedit;
|
||||
} PR_DTEDIT;
|
||||
@@ -0,0 +1,58 @@
|
||||
; Generated by Ctran from dtedit.cl
|
||||
DTEDIT_ING equ 1
|
||||
IFNDEF LODGER_ING
|
||||
INCLUDE ..\inc\LODGER.ING
|
||||
ENDIF
|
||||
IFNDEF MFNE_ING
|
||||
INCLUDE ..\inc\MFNE.ING
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_DTEDIT equ 31
|
||||
; Method Numbers
|
||||
; Constants for dtedit
|
||||
SE_DTEDIT_VALUE equ (001h)
|
||||
SE_DTEDIT_LOW equ (002h)
|
||||
SE_DTEDIT_HIGH equ (004h)
|
||||
PR_DTEDIT_DATE equ (00000h)
|
||||
PR_DTEDIT_TIME equ (00100h)
|
||||
PR_DTEDIT_DURATION equ (00200h)
|
||||
PR_DTEDIT_SECONDS equ (01000h)
|
||||
PR_DTEDIT_NEGATIVE equ (02000h)
|
||||
PR_DTEDIT_AMPM equ (04000h)
|
||||
PR_DTEDIT_NEG_DURATION equ (PR_DTEDIT_DURATION or PR_DTEDIT_NEGATIVE)
|
||||
IN_DTEDIT_INIT equ (SE_DTEDIT_VALUE or SE_DTEDIT_LOW or SE_DTEDIT_HIGH)
|
||||
IN_DTEDIT_DDMMYYYY equ (PR_DTEDIT_DATE)
|
||||
IN_DTEDIT_HHMMSS equ (PR_DTEDIT_TIME or PR_DTEDIT_SECONDS)
|
||||
IN_DTEDIT_HHMM equ (PR_DTEDIT_TIME)
|
||||
IN_DTEDIT_HHMMSS_D equ (PR_DTEDIT_TIME or PR_DTEDIT_DURATION or PR_DTEDIT_SECONDS)
|
||||
IN_DTEDIT_HHMM_D equ (PR_DTEDIT_TIME or PR_DTEDIT_DURATION)
|
||||
IN_DTEDIT_HHMMSS_ND equ (PR_DTEDIT_TIME or PR_DTEDIT_NEG_DURATION or PR_DTEDIT_SECONDS)
|
||||
IN_DTEDIT_HHMM_ND equ (PR_DTEDIT_TIME or PR_DTEDIT_NEG_DURATION)
|
||||
; Types for dtedit
|
||||
IN_DTEDIT struc
|
||||
IN_DTEDITFlags dw ?
|
||||
IN_DTEDITValue dd ?
|
||||
IN_DTEDITLow dd ?
|
||||
IN_DTEDITHigh dd ?
|
||||
IN_DTEDIT ends
|
||||
SE_DTEDIT struc
|
||||
SE_DTEDITFlags dw ?
|
||||
SE_DTEDITValue dd ?
|
||||
SE_DTEDITLow dd ?
|
||||
SE_DTEDITHigh dd ?
|
||||
SE_DTEDIT ends
|
||||
; Property of dtedit
|
||||
PRS_DTEDIT struc
|
||||
DteditCal dw ?
|
||||
DteditDType dw ?
|
||||
DteditChanged db ?
|
||||
DteditInSelfCheck db ?
|
||||
DteditIn IN_DTEDIT <>
|
||||
PRS_DTEDIT ends
|
||||
PR_DTEDIT struc
|
||||
DteditRoot PRS_ROOT <>
|
||||
DteditWin PRS_WIN <>
|
||||
DteditLodger PRS_LODGER <>
|
||||
DteditMfne PRS_MFNE <>
|
||||
DteditDtedit PRS_DTEDIT <>
|
||||
PR_DTEDIT ends
|
||||
@@ -0,0 +1,102 @@
|
||||
/* Generated by Ctran from edit.cat */
|
||||
#define EDIT_G
|
||||
#ifndef VARRAY_G
|
||||
#include <varray.g>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_EPROOT 51
|
||||
#define C_EPFLAT 52
|
||||
#define C_EPSEG 53
|
||||
#define C_VTAB 54
|
||||
/* Method Numbers */
|
||||
#define O_EP_CAPACITY 14
|
||||
#define O_EP_MOD_CHARS 12
|
||||
#define O_EP_COPY_TO_BACK 10
|
||||
#define O_EP_SET_TEXT 1
|
||||
#define O_EP_SCAN_BLOCK 6
|
||||
#define O_EP_EXTRACT 22
|
||||
#define O_EP_INIT 16
|
||||
#define O_EP_COPY_INDENT 8
|
||||
#define O_EP_SCAN_WORD 2
|
||||
#define O_EP_SENSE_LEN 17
|
||||
#define O_EP_CLEAR 23
|
||||
#define O_EP_WORD_COUNT 3
|
||||
#define O_VT_STRIP 28
|
||||
#define O_EP_DELETE 21
|
||||
#define O_VT_SET 27
|
||||
#define O_EP_ADD_PARA 7
|
||||
#define O_EP_INSERT 20
|
||||
#define O_EP_SENSE_CHARS 18
|
||||
#define O_EP_SCAN_PARA 4
|
||||
#define O_EP_COPY_TO_FRONT 9
|
||||
#define O_EP_PASTE 11
|
||||
#define O_EF_SENSE_BUF 25
|
||||
#define O_EP_PARA_COUNT 5
|
||||
#define O_VT_GAPTONEXT 24
|
||||
#define O_VT_SET_COLWID 25
|
||||
#define O_EP_COMPRESS 15
|
||||
#define O_VT_SETINTV 26
|
||||
#define O_EP_BACK_CHARS 19
|
||||
#define O_EF_GRANULARITY 24
|
||||
#define O_EP_SENSE_TEXT 13
|
||||
/* Constants for eproot */
|
||||
#define EP_SCAN_BACKWARDS 0x01
|
||||
#define EP_SCAN_STAY 0x02
|
||||
#define EP_SCAN_TO_BEGIN 0x04
|
||||
#define EP_SCAN_TO_END 0x08
|
||||
#define EP_SCAN_JOIN_DELIM 0x10
|
||||
#define EP_SCAN_NOT_TO_END 0x20
|
||||
#define EP_RETURN_LENGTH -1
|
||||
#define EP_MOD_TOLOWER 0
|
||||
#define EP_MOD_TOUPPER 1
|
||||
#define EP_MOD_WRAP 2
|
||||
/* Property of eproot */
|
||||
typedef struct {
|
||||
unsigned short int maxlen;
|
||||
} PRS_EPROOT;
|
||||
typedef struct pr_eproot
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_EPROOT eproot;
|
||||
} PR_EPROOT;
|
||||
/* Property of epflat */
|
||||
typedef struct {
|
||||
unsigned short int alen;
|
||||
unsigned short int gran;
|
||||
unsigned short int len;
|
||||
char *buf;
|
||||
} PRS_EPFLAT;
|
||||
typedef struct pr_epflat
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_EPROOT eproot;
|
||||
PRS_EPFLAT epflat;
|
||||
} PR_EPFLAT;
|
||||
/* Property of epseg */
|
||||
typedef struct {
|
||||
PR_SGBUF *b;
|
||||
} PRS_EPSEG;
|
||||
typedef struct pr_epseg
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_EPROOT eproot;
|
||||
PRS_EPSEG epseg;
|
||||
} PR_EPSEG;
|
||||
/* Types for vtab */
|
||||
typedef struct
|
||||
{
|
||||
short int *ploff1;
|
||||
short int *ploff2;
|
||||
} TABS_STRIP_OFFS;
|
||||
/* Property of vtab */
|
||||
typedef struct {
|
||||
unsigned short int c;
|
||||
} PRS_VTAB;
|
||||
typedef struct pr_vtab
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_VAROOT varoot;
|
||||
PRS_VAFIX vafix;
|
||||
PRS_VAFLAT vaflat;
|
||||
PRS_VTAB vtab;
|
||||
} PR_VTAB;
|
||||
@@ -0,0 +1,97 @@
|
||||
; Generated by Ctran from edit.cat
|
||||
EDIT_ING equ 1
|
||||
IFNDEF VARRAY_ING
|
||||
INCLUDE ..\inc\VARRAY.ING
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_EPROOT equ 51
|
||||
C_EPFLAT equ 52
|
||||
C_EPSEG equ 53
|
||||
C_VTAB equ 54
|
||||
; Method Numbers
|
||||
O_EP_CAPACITY equ 14
|
||||
O_EP_MOD_CHARS equ 12
|
||||
O_EP_COPY_TO_BACK equ 10
|
||||
O_EP_SET_TEXT equ 1
|
||||
O_EP_SCAN_BLOCK equ 6
|
||||
O_EP_EXTRACT equ 22
|
||||
O_EP_INIT equ 16
|
||||
O_EP_COPY_INDENT equ 8
|
||||
O_EP_SCAN_WORD equ 2
|
||||
O_EP_SENSE_LEN equ 17
|
||||
O_EP_CLEAR equ 23
|
||||
O_EP_WORD_COUNT equ 3
|
||||
O_VT_STRIP equ 28
|
||||
O_EP_DELETE equ 21
|
||||
O_VT_SET equ 27
|
||||
O_EP_ADD_PARA equ 7
|
||||
O_EP_INSERT equ 20
|
||||
O_EP_SENSE_CHARS equ 18
|
||||
O_EP_SCAN_PARA equ 4
|
||||
O_EP_COPY_TO_FRONT equ 9
|
||||
O_EP_PASTE equ 11
|
||||
O_EF_SENSE_BUF equ 25
|
||||
O_EP_PARA_COUNT equ 5
|
||||
O_VT_GAPTONEXT equ 24
|
||||
O_VT_SET_COLWID equ 25
|
||||
O_EP_COMPRESS equ 15
|
||||
O_VT_SETINTV equ 26
|
||||
O_EP_BACK_CHARS equ 19
|
||||
O_EF_GRANULARITY equ 24
|
||||
O_EP_SENSE_TEXT equ 13
|
||||
; Constants for eproot
|
||||
EP_SCAN_BACKWARDS equ (001h)
|
||||
EP_SCAN_STAY equ (002h)
|
||||
EP_SCAN_TO_BEGIN equ (004h)
|
||||
EP_SCAN_TO_END equ (008h)
|
||||
EP_SCAN_JOIN_DELIM equ (010h)
|
||||
EP_SCAN_NOT_TO_END equ (020h)
|
||||
EP_RETURN_LENGTH equ (-1)
|
||||
EP_MOD_TOLOWER equ (0)
|
||||
EP_MOD_TOUPPER equ (1)
|
||||
EP_MOD_WRAP equ (2)
|
||||
; Property of eproot
|
||||
PRS_EPROOT struc
|
||||
EprootMaxlen dw ?
|
||||
PRS_EPROOT ends
|
||||
PR_EPROOT struc
|
||||
EprootRoot PRS_ROOT <>
|
||||
EprootEproot PRS_EPROOT <>
|
||||
PR_EPROOT ends
|
||||
; Property of epflat
|
||||
PRS_EPFLAT struc
|
||||
EpflatAlen dw ?
|
||||
EpflatGran dw ?
|
||||
EpflatLen dw ?
|
||||
EpflatBuf dw ?
|
||||
PRS_EPFLAT ends
|
||||
PR_EPFLAT struc
|
||||
EpflatRoot PRS_ROOT <>
|
||||
EpflatEproot PRS_EPROOT <>
|
||||
EpflatEpflat PRS_EPFLAT <>
|
||||
PR_EPFLAT ends
|
||||
; Property of epseg
|
||||
PRS_EPSEG struc
|
||||
EpsegB dw ?
|
||||
PRS_EPSEG ends
|
||||
PR_EPSEG struc
|
||||
EpsegRoot PRS_ROOT <>
|
||||
EpsegEproot PRS_EPROOT <>
|
||||
EpsegEpseg PRS_EPSEG <>
|
||||
PR_EPSEG ends
|
||||
; Types for vtab
|
||||
TABS_STRIP_OFFS struc
|
||||
TABS_STRIP_OFFSPloff1 dw ?
|
||||
TABS_STRIP_OFFSPloff2 dw ?
|
||||
TABS_STRIP_OFFS ends
|
||||
; Property of vtab
|
||||
PRS_VTAB struc
|
||||
VtabC dw ?
|
||||
PRS_VTAB ends
|
||||
PR_VTAB struc
|
||||
VtabRoot PRS_ROOT <>
|
||||
VtabVaroot PRS_VAROOT <>
|
||||
VtabVafix PRS_VAFIX <>
|
||||
VtabVaflat PRS_VAFLAT <>
|
||||
VtabVtab PRS_VTAB <>
|
||||
PR_VTAB ends
|
||||
@@ -0,0 +1,157 @@
|
||||
/* Generated by Ctran from edwin.cl */
|
||||
#define EDWIN_G
|
||||
#ifndef LODGER_G
|
||||
#include <lodger.g>
|
||||
#endif
|
||||
#ifndef SCRLAY_G
|
||||
#include <scrlay.g>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_EDWIN 34
|
||||
#define C_PUNCTUED 35
|
||||
#define C_EWLINKSV 36
|
||||
/* Method Numbers */
|
||||
#define O_EW_SET 21
|
||||
#define O_EWLS_INIT 1
|
||||
#define O_EW_REPLACE_CLIP 30
|
||||
#define O_EW_INSERT 23
|
||||
#define O_EW_BRING_IN 32
|
||||
#define O_EW_REPLACE 28
|
||||
#define O_EW_SENSE 22
|
||||
#define O_EW_SNUGGLE_INSERT 24
|
||||
#define O_EW_RETURN_KEY 34
|
||||
#define O_EW_EP_INSERT 33
|
||||
#define O_EW_TAB_KEY 35
|
||||
#define O_EW_PASTE_CLIP 31
|
||||
#define O_EW_FIND 27
|
||||
#define O_EW_SET_SIZE 20
|
||||
#define O_EW_LEAVE 26
|
||||
#define O_EWLS_EXTRACT 2
|
||||
#define O_EW_READONLY 37
|
||||
#define O_EW_SET_FONT 25
|
||||
#define O_EW_SENSE_SIZE 19
|
||||
#define O_EW_INIT_STYLE 36
|
||||
#define O_EW_EVALUATE 29
|
||||
/* Constants for edwin */
|
||||
#define PR_EDWIN_DIALLABLE 0x0001
|
||||
#define PR_EDWIN_ACCEPT_TABS 0x0002
|
||||
#define PR_EDWIN_ACCEPT_SOFT_HYPHENS 0x0004
|
||||
#define PR_EDWIN_AUTO_CUR_END 0x0008
|
||||
#define PR_EDWIN_AUTO_SELECT 0x0010
|
||||
#define PR_EDWIN_DOC_SUPPLIED 0x0020
|
||||
#define PR_EDWIN_CLIPBOARD 0x0040
|
||||
#define PR_EDWIN_NOTIFY_OVERFLOW 0x0080
|
||||
#define PR_EDWIN_READONLY 0x8000
|
||||
#define IN_EDWIN_DIALLABLE PR_EDWIN_DIALLABLE
|
||||
#define IN_EDWIN_ACCEPT_TABS PR_EDWIN_ACCEPT_TABS
|
||||
#define IN_EDWIN_ACCEPT_SOFT_HYPHENS PR_EDWIN_ACCEPT_SOFT_HYPHENS
|
||||
#define IN_EDWIN_AUTO_CUR_END (PR_EDWIN_AUTO_CUR_END|PR_EDWIN_AUTO_SELECT)
|
||||
#define IN_EDWIN_NO_AUTOSELECT PR_EDWIN_AUTO_SELECT
|
||||
#define IN_EDWIN_DOC_SUPPLIED PR_EDWIN_DOC_SUPPLIED
|
||||
#define IN_EDWIN_CLIPBOARD PR_EDWIN_CLIPBOARD
|
||||
#define IN_EDWIN_VULEN 0x0080
|
||||
#define IN_EDWIN_VULEN_NOSCALE 0x0100
|
||||
#define IN_EDWIN_VULEN_CHARACTERS IN_EDWIN_VULEN
|
||||
#define IN_EDWIN_VULEN_PIXELS (IN_EDWIN_VULEN|IN_EDWIN_VULEN_NOSCALE)
|
||||
#define IN_EDWIN_LEFT_CURSOR 0x0200
|
||||
#define IN_EDWIN_TEXT_SEGMENTED 0x0400
|
||||
#define IN_EDWIN_POSITION_SUPPLIED 0x0800
|
||||
#define IN_EDWIN_FONT_SUPPLIED 0x1000
|
||||
#define IN_EDWIN_LEADING_SUPPLIED 0x2000
|
||||
#define IN_EDWIN_VISLINES_SUPPLIED 0x4000
|
||||
#define IN_EDWIN_PAGINATABLE 0x8000
|
||||
#define SET_EDWIN_TXT 0x01
|
||||
#define SET_EDWIN_EMPTY 0x02
|
||||
#define SET_EDWIN_CUR_END 0x04
|
||||
#define SET_EDWIN_SEL_ALL 0x08
|
||||
#define SET_EDWIN_CURSOR 0x10
|
||||
#define SET_EDWIN_ANCHOR 0x20
|
||||
#define EWF_BACKWARDS 0x0001
|
||||
#define EWF_CASESENS 0x0002
|
||||
#define EW_CHANGE_SINCE_SAVED 0x01
|
||||
#define EW_CHANGE_SINCE_PAGINATE 0x02
|
||||
#define EW_CHANGE 0xffff
|
||||
#define EW_BRING_SINGLE_SHOT 0xf000
|
||||
/* Types for edwin */
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int vulen;
|
||||
unsigned short int flags;
|
||||
unsigned short int maxlen;
|
||||
char contents[1];
|
||||
} IN_EDWIN;
|
||||
typedef struct
|
||||
{
|
||||
short int total;
|
||||
short int top;
|
||||
} EDWIN_LEADING;
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int vislines;
|
||||
P_POINT pos;
|
||||
short int font;
|
||||
unsigned short int style;
|
||||
EDWIN_LEADING leading;
|
||||
void *doc;
|
||||
void *clip;
|
||||
} IN_EDWIN_X;
|
||||
typedef struct
|
||||
{
|
||||
char *buf;
|
||||
unsigned short int len;
|
||||
} SE_EDWIN;
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int flags;
|
||||
SE_EDWIN txt;
|
||||
unsigned short int cursor;
|
||||
unsigned short int anchor;
|
||||
} SET_EDWIN;
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int cursor;
|
||||
unsigned short int anchor;
|
||||
} SENSE_EDWIN;
|
||||
/* Property of edwin */
|
||||
typedef struct {
|
||||
void *scrimg;
|
||||
void *scrlay;
|
||||
void *doc;
|
||||
unsigned short int cpos;
|
||||
unsigned short int clen;
|
||||
void *clip;
|
||||
unsigned short int select;
|
||||
unsigned short int change;
|
||||
unsigned short int flags;
|
||||
SCRLAY_MARGINS margins;
|
||||
SCRLAY_FONT font;
|
||||
} PRS_EDWIN;
|
||||
typedef struct pr_edwin
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_LODGER lodger;
|
||||
PRS_EDWIN edwin;
|
||||
} PR_EDWIN;
|
||||
/* Property of punctued */
|
||||
typedef struct pr_punctued
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_LODGER lodger;
|
||||
PRS_EDWIN edwin;
|
||||
} PR_PUNCTUED;
|
||||
/* Property of ewlinksv */
|
||||
typedef struct {
|
||||
void *doc;
|
||||
short int state;
|
||||
unsigned short int pos;
|
||||
unsigned short int parend;
|
||||
unsigned short int posend;
|
||||
char buf[256];
|
||||
} PRS_EWLINKSV;
|
||||
typedef struct pr_ewlinksv
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_EWLINKSV ewlinksv;
|
||||
} PR_EWLINKSV;
|
||||
@@ -0,0 +1,148 @@
|
||||
; Generated by Ctran from edwin.cl
|
||||
EDWIN_ING equ 1
|
||||
IFNDEF LODGER_ING
|
||||
INCLUDE ..\inc\LODGER.ING
|
||||
ENDIF
|
||||
IFNDEF SCRLAY_ING
|
||||
INCLUDE ..\inc\SCRLAY.ING
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_EDWIN equ 34
|
||||
C_PUNCTUED equ 35
|
||||
C_EWLINKSV equ 36
|
||||
; Method Numbers
|
||||
O_EW_SET equ 21
|
||||
O_EWLS_INIT equ 1
|
||||
O_EW_REPLACE_CLIP equ 30
|
||||
O_EW_INSERT equ 23
|
||||
O_EW_BRING_IN equ 32
|
||||
O_EW_REPLACE equ 28
|
||||
O_EW_SENSE equ 22
|
||||
O_EW_SNUGGLE_INSERT equ 24
|
||||
O_EW_RETURN_KEY equ 34
|
||||
O_EW_EP_INSERT equ 33
|
||||
O_EW_TAB_KEY equ 35
|
||||
O_EW_PASTE_CLIP equ 31
|
||||
O_EW_FIND equ 27
|
||||
O_EW_SET_SIZE equ 20
|
||||
O_EW_LEAVE equ 26
|
||||
O_EWLS_EXTRACT equ 2
|
||||
O_EW_READONLY equ 37
|
||||
O_EW_SET_FONT equ 25
|
||||
O_EW_SENSE_SIZE equ 19
|
||||
O_EW_INIT_STYLE equ 36
|
||||
O_EW_EVALUATE equ 29
|
||||
; Constants for edwin
|
||||
PR_EDWIN_DIALLABLE equ (00001h)
|
||||
PR_EDWIN_ACCEPT_TABS equ (00002h)
|
||||
PR_EDWIN_ACCEPT_SOFT_HYPHENS equ (00004h)
|
||||
PR_EDWIN_AUTO_CUR_END equ (00008h)
|
||||
PR_EDWIN_AUTO_SELECT equ (00010h)
|
||||
PR_EDWIN_DOC_SUPPLIED equ (00020h)
|
||||
PR_EDWIN_CLIPBOARD equ (00040h)
|
||||
PR_EDWIN_NOTIFY_OVERFLOW equ (00080h)
|
||||
PR_EDWIN_READONLY equ (08000h)
|
||||
IN_EDWIN_DIALLABLE equ (PR_EDWIN_DIALLABLE)
|
||||
IN_EDWIN_ACCEPT_TABS equ (PR_EDWIN_ACCEPT_TABS)
|
||||
IN_EDWIN_ACCEPT_SOFT_HYPHENS equ (PR_EDWIN_ACCEPT_SOFT_HYPHENS)
|
||||
IN_EDWIN_AUTO_CUR_END equ (PR_EDWIN_AUTO_CUR_END or PR_EDWIN_AUTO_SELECT)
|
||||
IN_EDWIN_NO_AUTOSELECT equ (PR_EDWIN_AUTO_SELECT)
|
||||
IN_EDWIN_DOC_SUPPLIED equ (PR_EDWIN_DOC_SUPPLIED)
|
||||
IN_EDWIN_CLIPBOARD equ (PR_EDWIN_CLIPBOARD)
|
||||
IN_EDWIN_VULEN equ (00080h)
|
||||
IN_EDWIN_VULEN_NOSCALE equ (00100h)
|
||||
IN_EDWIN_VULEN_CHARACTERS equ (IN_EDWIN_VULEN)
|
||||
IN_EDWIN_VULEN_PIXELS equ (IN_EDWIN_VULEN or IN_EDWIN_VULEN_NOSCALE)
|
||||
IN_EDWIN_LEFT_CURSOR equ (00200h)
|
||||
IN_EDWIN_TEXT_SEGMENTED equ (00400h)
|
||||
IN_EDWIN_POSITION_SUPPLIED equ (00800h)
|
||||
IN_EDWIN_FONT_SUPPLIED equ (01000h)
|
||||
IN_EDWIN_LEADING_SUPPLIED equ (02000h)
|
||||
IN_EDWIN_VISLINES_SUPPLIED equ (04000h)
|
||||
IN_EDWIN_PAGINATABLE equ (08000h)
|
||||
SET_EDWIN_TXT equ (001h)
|
||||
SET_EDWIN_EMPTY equ (002h)
|
||||
SET_EDWIN_CUR_END equ (004h)
|
||||
SET_EDWIN_SEL_ALL equ (008h)
|
||||
SET_EDWIN_CURSOR equ (010h)
|
||||
SET_EDWIN_ANCHOR equ (020h)
|
||||
EWF_BACKWARDS equ (00001h)
|
||||
EWF_CASESENS equ (00002h)
|
||||
EW_CHANGE_SINCE_SAVED equ (001h)
|
||||
EW_CHANGE_SINCE_PAGINATE equ (002h)
|
||||
EW_CHANGE equ (0ffffh)
|
||||
EW_BRING_SINGLE_SHOT equ (0f000h)
|
||||
; Types for edwin
|
||||
IN_EDWIN struc
|
||||
IN_EDWINVulen dw ?
|
||||
IN_EDWINFlags dw ?
|
||||
IN_EDWINMaxlen dw ?
|
||||
IN_EDWINContents db (1) * 1 dup (?)
|
||||
IN_EDWIN ends
|
||||
EDWIN_LEADING struc
|
||||
EDWIN_LEADINGTotal dw ?
|
||||
EDWIN_LEADINGTop dw ?
|
||||
EDWIN_LEADING ends
|
||||
IN_EDWIN_X struc
|
||||
IN_EDWIN_XVislines dw ?
|
||||
IN_EDWIN_XPos P_POINT <>
|
||||
IN_EDWIN_XFont dw ?
|
||||
IN_EDWIN_XStyle dw ?
|
||||
IN_EDWIN_XLeading EDWIN_LEADING <>
|
||||
IN_EDWIN_XDoc dw ?
|
||||
IN_EDWIN_XClip dw ?
|
||||
IN_EDWIN_X ends
|
||||
SE_EDWIN struc
|
||||
SE_EDWINBuf dw ?
|
||||
SE_EDWINLen dw ?
|
||||
SE_EDWIN ends
|
||||
SET_EDWIN struc
|
||||
SET_EDWINFlags dw ?
|
||||
SET_EDWINTxt SE_EDWIN <>
|
||||
SET_EDWINCursor dw ?
|
||||
SET_EDWINAnchor dw ?
|
||||
SET_EDWIN ends
|
||||
SENSE_EDWIN struc
|
||||
SENSE_EDWINCursor dw ?
|
||||
SENSE_EDWINAnchor dw ?
|
||||
SENSE_EDWIN ends
|
||||
; Property of edwin
|
||||
PRS_EDWIN struc
|
||||
EdwinScrimg dw ?
|
||||
EdwinScrlay dw ?
|
||||
EdwinDoc dw ?
|
||||
EdwinCpos dw ?
|
||||
EdwinClen dw ?
|
||||
EdwinClip dw ?
|
||||
EdwinSelect dw ?
|
||||
EdwinChange dw ?
|
||||
EdwinFlags dw ?
|
||||
EdwinMargins SCRLAY_MARGINS <>
|
||||
EdwinFont SCRLAY_FONT <>
|
||||
PRS_EDWIN ends
|
||||
PR_EDWIN struc
|
||||
EdwinRoot PRS_ROOT <>
|
||||
EdwinWin PRS_WIN <>
|
||||
EdwinLodger PRS_LODGER <>
|
||||
EdwinEdwin PRS_EDWIN <>
|
||||
PR_EDWIN ends
|
||||
; Property of punctued
|
||||
PR_PUNCTUED struc
|
||||
PunctuedRoot PRS_ROOT <>
|
||||
PunctuedWin PRS_WIN <>
|
||||
PunctuedLodger PRS_LODGER <>
|
||||
PunctuedEdwin PRS_EDWIN <>
|
||||
PR_PUNCTUED ends
|
||||
; Property of ewlinksv
|
||||
PRS_EWLINKSV struc
|
||||
EwlinksvDoc dw ?
|
||||
EwlinksvState dw ?
|
||||
EwlinksvPos dw ?
|
||||
EwlinksvParend dw ?
|
||||
EwlinksvPosend dw ?
|
||||
EwlinksvBuf db (1) * 256 dup (?)
|
||||
PRS_EWLINKSV ends
|
||||
PR_EWLINKSV struc
|
||||
EwlinksvRoot PRS_ROOT <>
|
||||
EwlinksvEwlinksv PRS_EWLINKSV <>
|
||||
PR_EWLINKSV ends
|
||||
@@ -0,0 +1,37 @@
|
||||
/* Generated by Ctran from epdoc.cat */
|
||||
#define EPDOC_G
|
||||
#ifndef EDIT_G
|
||||
#include <edit.g>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_EPFDOC 4
|
||||
#define C_EPDOC 5
|
||||
/* Method Numbers */
|
||||
#define O_EPFDOC_PARA_START 26
|
||||
#define O_EPFDOC_SENSE_CHARS 27
|
||||
#define O_EPDOC_POS_FILTER 30
|
||||
#define O_EPDOC_SENSE_CHARS 25
|
||||
#define O_EPDOC_SET_PAGES 26
|
||||
#define O_EPDOC_PARA_START 24
|
||||
#define O_EPDOC_GOTO_PAGE 28
|
||||
#define O_EPDOC_SET_FILTER 29
|
||||
#define O_EPDOC_ENQ_PAGE 27
|
||||
/* Property of epfdoc */
|
||||
typedef struct pr_epfdoc
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_EPROOT eproot;
|
||||
PRS_EPFLAT epflat;
|
||||
} PR_EPFDOC;
|
||||
/* Property of epdoc */
|
||||
typedef struct {
|
||||
PR_SGBUF *b;
|
||||
PR_VAFLAT *pages;
|
||||
PR_VAFLAT *filter;
|
||||
} PRS_EPDOC;
|
||||
typedef struct pr_epdoc
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_EPROOT eproot;
|
||||
PRS_EPDOC epdoc;
|
||||
} PR_EPDOC;
|
||||
@@ -0,0 +1,35 @@
|
||||
; Generated by Ctran from epdoc.cl
|
||||
EPDOC_ING equ 1
|
||||
IFNDEF EDIT_ING
|
||||
INCLUDE ..\inc\EDIT.ING
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_EPFDOC equ 4
|
||||
C_EPDOC equ 5
|
||||
; Method Numbers
|
||||
O_EPFDOC_PARA_START equ 26
|
||||
O_EPFDOC_SENSE_CHARS equ 27
|
||||
O_EPDOC_POS_FILTER equ 30
|
||||
O_EPDOC_SENSE_CHARS equ 25
|
||||
O_EPDOC_SET_PAGES equ 26
|
||||
O_EPDOC_PARA_START equ 24
|
||||
O_EPDOC_GOTO_PAGE equ 28
|
||||
O_EPDOC_SET_FILTER equ 29
|
||||
O_EPDOC_ENQ_PAGE equ 27
|
||||
; Property of epfdoc
|
||||
PR_EPFDOC struc
|
||||
EpfdocRoot PRS_ROOT <>
|
||||
EpfdocEproot PRS_EPROOT <>
|
||||
EpfdocEpflat PRS_EPFLAT <>
|
||||
PR_EPFDOC ends
|
||||
; Property of epdoc
|
||||
PRS_EPDOC struc
|
||||
EpdocB dw ?
|
||||
EpdocPages dw ?
|
||||
EpdocFilter dw ?
|
||||
PRS_EPDOC ends
|
||||
PR_EPDOC struc
|
||||
EpdocRoot PRS_ROOT <>
|
||||
EpdocEproot PRS_EPROOT <>
|
||||
EpdocEpdoc PRS_EPDOC <>
|
||||
PR_EPDOC ends
|
||||
@@ -0,0 +1,552 @@
|
||||
/* HEADER - EPOC.H
|
||||
Copyright (C) Psion PLC 1991
|
||||
VER DATE BY DESCRIPTION
|
||||
===== ======== === ===========
|
||||
1.00F 26/04/90 NSM First relase
|
||||
*/
|
||||
#ifndef EPOC_H
|
||||
#define EPOC_H
|
||||
|
||||
#include <stdepoc.h>
|
||||
|
||||
#define E_PRIORITY_TIME_SUPERVISOR 0xf8
|
||||
#define E_PRIORITY_TIME_FSERV 0xf0
|
||||
#define E_PRIORITY_TIME_CRITICAL 0xb0
|
||||
#define E_PRIORITY_WSERV_MOUSE 0xa8
|
||||
#define E_PRIORITY_WSERV 0xa0
|
||||
#define E_PRIORITY_NOTIFY 0x90
|
||||
#define E_PRIORITY_FORE 0x80
|
||||
#define E_PRIORITY_BACK 0x70
|
||||
#define E_LCD_UNKNOWN (-1)
|
||||
#define E_LCD_640_400 0
|
||||
#define E_LCD_640_200_SMALL 1
|
||||
#define E_LCD_640_200_BIG 2
|
||||
#define E_LCD_720_348 3
|
||||
#define E_LCD_160_80 4
|
||||
#define E_LCD_240_80 5
|
||||
#define E_PC_HERC E_LCD_720_348
|
||||
#define E_PC_CGA E_LCD_640_200_BIG
|
||||
#define E_PC_MDA 6
|
||||
#define E_PC_EGA_MONO 7
|
||||
#define E_PC_EGA_COLOUR 8
|
||||
#define E_PC_VGA_MONO 9
|
||||
#define E_PC_VGA_COLOUR 10
|
||||
#define E_LCD_480_160 11
|
||||
#define E_LCD_240_100 12
|
||||
#define E_LCD_240_120 13
|
||||
#define E_LCD_240_160 14
|
||||
#define E_LCD_640_200 15
|
||||
#define E_PSU_OLD 0
|
||||
#define E_PSU_MAXIM 1
|
||||
#define E_PSU_S3 2
|
||||
#define E_PSU_S3_A9 3
|
||||
#define E_IS_A_COLD_START 0
|
||||
#define E_IS_A_POWERFAIL_START 1
|
||||
#define E_IS_A_RESET_START 2
|
||||
#define E_IS_A_KERNEL_FAULT 3
|
||||
#define E_IS_A_NEW_OS_START 4
|
||||
#define E_MAX_PROCESSES 24
|
||||
#define E_MAX_PRIORITY 0xc0
|
||||
#define E_MIN_PRIORITY 0x40
|
||||
#define E_MAX_NAME 12
|
||||
#define E_PIDMASK 0xfff
|
||||
#define E_MAX_ERROR_TEXT_SIZE 64
|
||||
#define E_MAX_NOTIFY_TEXT_SIZE 64
|
||||
#define E_MAX_OPTION_TEXT_SIZE 16
|
||||
#define E_MAX_ENV_SIZE 16
|
||||
#define E_MAX_SUFFIXES 31
|
||||
#define E_MAX_MONTH_NAME 32
|
||||
#define E_MAX_DAY_NAME 32
|
||||
#define E_MAX_COMMAND_BUFFER 127
|
||||
#define E_MAX_GROWBY 0x400
|
||||
#define E_MAX_PASSWORD 8
|
||||
#define E_GROWBY_DEFAULT 0x80
|
||||
#define E_SEGMENT_LOW 0
|
||||
#define E_SEGMENT_HIGH 1
|
||||
#define E_SEGMENT_DEVICE 2
|
||||
#define E_LDD 0xdd01
|
||||
#define E_PDD 0xdd21
|
||||
#define E_NORMAL_EXIT 0
|
||||
#define E_PANIC_EXIT 1
|
||||
#define E_TASK_PANIC_EXIT 2
|
||||
#define E_FILE_SYSTEM_NAMESIZE 5
|
||||
#define E_SOUND_KEYBOARD 0x0001
|
||||
#define E_SOUND_BUZZER 0x0002
|
||||
#define E_SOUND_DEVICE 0x0004
|
||||
#define E_SOUND_LOUD 0x0008
|
||||
#define E_SOUND_LOUD_BUZZER 0x0010
|
||||
#define E_SOUND_DISABLE 0x8000
|
||||
#define E_SOUND_MAX_VOLUME 0
|
||||
#define E_SOUND_MIN_VOLUME 5
|
||||
#define E_SOUND_MAX_BPM 240
|
||||
#define E_SOUND_MIN_BPM 2
|
||||
#define E_MAX_ALARMS 2
|
||||
#define E_MAX_DTMF_DIAL 24
|
||||
#define E_MAX_DTMF_DIAL_B 40
|
||||
#define E_BATTERY_UNKNOWN 0
|
||||
#define E_BATTERY_ALKALINE 1
|
||||
#define E_BATTERY_NICAD_600 2
|
||||
#define E_BATTERY_NICAD_1000 3
|
||||
#define E_BATTERY_NICAD_500 4
|
||||
#define E_BATTERY_NICAD_850 5
|
||||
#define E_TICKS_PER_SECOND 32
|
||||
#define E_OPL_TEXT_MESSAGE 24
|
||||
#define E_BACKLIGHT_DISABLE 0x8000
|
||||
#define E_BACKLIGHT_OFF 0
|
||||
#define E_BACKLIGHT_ON 1
|
||||
#define E_BACKLIGHT_TOGGLE 2
|
||||
#define E_BACKLIGHT_QUERY 3
|
||||
#define E_FMEDIA_BATTERY_VALID 0x0400
|
||||
#define E_FMEDIA_BATTERY_GOOD 0x0200
|
||||
#define E_FRC_COUNTING 0
|
||||
#define E_FRC_REPEATING 1
|
||||
#define E_FSSOUNDCHANNEL1 1
|
||||
#define E_FSSOUNDCHANNEL2 2
|
||||
#define E_FRELATIVE 1
|
||||
#define E_FABSOLUTE 2
|
||||
#define E_FALARM 9
|
||||
#define E_FDIAL 10
|
||||
#define E_FSOUND_PLAY 0x10
|
||||
#define E_FSOUND_RECORD 0x11
|
||||
|
||||
#define E_KEY_DELETE_LEFT 0x0008
|
||||
#define E_KEY_TAB 0x0009
|
||||
#define E_KEY_RETURN 0x000d
|
||||
#define E_KEY_ESCAPE 0x001b
|
||||
#define E_KEY_DELETE_RIGHT 0x007f
|
||||
#define E_KEY_UP 0x0100
|
||||
#define E_KEY_DOWN 0x0101
|
||||
#define E_KEY_RIGHT 0x0102
|
||||
#define E_KEY_LEFT 0x0103
|
||||
#define E_KEY_PAGE_UP 0x0104
|
||||
#define E_KEY_PAGE_DOWN 0x0105
|
||||
#define E_KEY_HOME 0x0106
|
||||
#define E_KEY_END 0x0107
|
||||
#define E_KEY_INSERT 0x0108
|
||||
#define E_KEY_VOICE 0x0109
|
||||
#define E_KEY_PSION_DOWN 0x010a
|
||||
#define E_KEY_PSION_UP 0x010b
|
||||
#define E_KEY_CAPS 0x10c
|
||||
#define E_KEY_PSION 0x200
|
||||
#define E_KEY_BACKLIGHT 0x120
|
||||
#define E_KEY_INFO 0x121
|
||||
#define E_KEY_MENU 0x122
|
||||
#define E_KEY_HELP 0x123
|
||||
#define E_KEY_DIAMOND 0x124
|
||||
|
||||
#define E_KEY_APP1 0x131
|
||||
#define E_KEY_APP2 0x132
|
||||
#define E_KEY_APP3 0x133
|
||||
#define E_KEY_APP4 0x134
|
||||
#define E_KEY_APP5 0x135
|
||||
#define E_KEY_APP6 0x136
|
||||
#define E_KEY_APP7 0x137
|
||||
#define E_KEY_APP8 0x138
|
||||
|
||||
#define E_KEY_LCD 0x2000
|
||||
#define E_KEY_LCD_MINUS 0x2001
|
||||
#define E_KEY_ON 0x2002
|
||||
#define E_KEY_OFF 0x2003
|
||||
|
||||
#define E_STATE_KEY_VALID 0x0001
|
||||
#define E_STATE_SHIFT 0x0002
|
||||
#define E_STATE_CONTROL 0x0004
|
||||
#define E_STATE_PSION 0x0008
|
||||
#define E_STATE_CAPS_LOCKED 0x0010
|
||||
#define E_STATE_NUM_LOCKED 0x0020
|
||||
#define E_STATE_MOUSE_VALID 0x0040
|
||||
#define E_STATE_MOUSE_DOWN 0x0080
|
||||
#define E_STATE_MOUSE_MOVED 0x0100
|
||||
#define E_STATE_MOUSE_CHANGED 0x0200
|
||||
#define E_STATE_MOUSE_GONE 0x0400
|
||||
#define E_STATE_KEY_REPEATED 0x0800
|
||||
#define E_STATE_FN 0x0080
|
||||
|
||||
/* Additional I/O functions */
|
||||
#define P_FTIMER_RELATIVE 1
|
||||
#define P_FTIMER_ABSOLUTE 2
|
||||
#define P_FSOUND_CHANNEL1 1
|
||||
#define P_FSOUND_CHANNEL2 2
|
||||
#define P_FSOUND_PLAY P_FTEST
|
||||
#define P_FSOUND_RECORD P_FCTRL
|
||||
|
||||
typedef struct
|
||||
{
|
||||
unsigned char beatsPerMinute;
|
||||
unsigned char volume;
|
||||
} E_SOUND;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int code;
|
||||
unsigned short int state;
|
||||
unsigned short int tick;
|
||||
unsigned short int mouseX;
|
||||
unsigned short int mouseY;
|
||||
} E_KEYS;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
unsigned char toneLengthTicks;
|
||||
unsigned char delayLengthTicks;
|
||||
unsigned short int pauseLengthTicks;
|
||||
} E_DIAL;
|
||||
|
||||
typedef struct message
|
||||
{
|
||||
struct message *next;
|
||||
unsigned char *status;
|
||||
unsigned int type;
|
||||
int pid;
|
||||
} E_MESSAGE;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int codeParagraphs;
|
||||
unsigned short int initialIp;
|
||||
unsigned short int stackParagraphs;
|
||||
unsigned short int dataParagraphs;
|
||||
unsigned short int heapParagraphs;
|
||||
unsigned char *commandLine;
|
||||
unsigned short int checkSum;
|
||||
unsigned short int minHeap;
|
||||
unsigned char priority;
|
||||
unsigned char ramOrRom;
|
||||
unsigned char name[E_MAX_NAME];
|
||||
} E_CPB;
|
||||
|
||||
#define E_PROC_FREE 0xff
|
||||
#define E_PROC_CURRENT 0x01
|
||||
#define E_PROC_READY 0x02
|
||||
#define E_PROC_DELTA 0x03
|
||||
#define E_PROC_SUSPENDED 0x04
|
||||
#define E_PROC_SEMAPHORE 0x05
|
||||
typedef struct e_proc
|
||||
{
|
||||
struct e_proc *next;
|
||||
struct e_proc *prev;
|
||||
short int queKey;
|
||||
short int queData;
|
||||
unsigned char deltaType;
|
||||
unsigned char addressTrap;
|
||||
unsigned char status;
|
||||
unsigned char sstatus;
|
||||
unsigned char priority;
|
||||
unsigned char priorityH;
|
||||
unsigned char ramOrRom;
|
||||
unsigned char isTask;
|
||||
unsigned char name[E_MAX_NAME+1];
|
||||
unsigned char active;
|
||||
unsigned short int semaphore;
|
||||
unsigned char *semHead;
|
||||
unsigned char *memBasePtr;
|
||||
unsigned short int memGrowBy;
|
||||
unsigned char *mCtrlPtr;
|
||||
unsigned short int minHeap;
|
||||
int fServer;
|
||||
int dataSeg;
|
||||
int codeSeg;
|
||||
unsigned char *saveSP;
|
||||
unsigned char *saveBP;
|
||||
unsigned char notify;
|
||||
unsigned char sndSem;
|
||||
unsigned short int magic;
|
||||
unsigned short int checkSum;
|
||||
unsigned short int terminate;
|
||||
unsigned short int bankState;
|
||||
} E_PROC;
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int mainBatteryReading;
|
||||
unsigned short int lithiumBatteryReading;
|
||||
short int mainsPresent;
|
||||
} E_SUPPLY;
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int mainBatteryWarning;
|
||||
unsigned short int lithiumBatteryWarning;
|
||||
unsigned short int mainBatteryMax;
|
||||
unsigned short int lithiumBatteryMax;
|
||||
} E_SUPPLY_WARNINGS;
|
||||
#define E_MBAT_ZERO 0
|
||||
#define E_MBAT_VERY_LOW 1
|
||||
#define E_MBAT_LOW 2
|
||||
#define E_MBAT_GOOD 3
|
||||
#define E_SUPPLY_SOUND_WARNING 0x0001
|
||||
#define E_SUPPLY_FLASH_WARNING 0x0002
|
||||
#define E_SUPPLY_SYSTEM_TIME_CHANGED 0x0004
|
||||
typedef struct
|
||||
{
|
||||
unsigned char mainBatteryLevel;
|
||||
unsigned char mainBatteryStatus;
|
||||
unsigned char backupBatteryLevel;
|
||||
unsigned char dcLevel;
|
||||
unsigned short int warningFlags;
|
||||
unsigned long int insertionDate;
|
||||
unsigned long int ticksInUseBattery;
|
||||
unsigned long int ticksInUseDc;
|
||||
unsigned long int maTicks;
|
||||
} E_SUPPLY_INFO;
|
||||
#define ImgVersion 0x200f
|
||||
#define DevVersion 0x200f
|
||||
#define SignatureSize 16
|
||||
#define ImageSignature "ImageFileType**"
|
||||
#define LDDSignature "LDDFileType****"
|
||||
#define PDDSignature "PDDFileType****"
|
||||
#define LIBSignature "LIBFileType****"
|
||||
#define HeaderSize 0x40
|
||||
#define MagicLandSize 0x40
|
||||
#define MaxAddFiles 4
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int offset;
|
||||
unsigned short int length;
|
||||
} ADDFILE;
|
||||
typedef struct
|
||||
{
|
||||
unsigned char name[E_MAX_NAME+2]; /* Dyl name zero terminated */
|
||||
unsigned long int offset; /* Offset in File */
|
||||
} DYLENTRY;
|
||||
typedef struct
|
||||
{
|
||||
unsigned char Signature[SignatureSize];
|
||||
unsigned short int ImageVersion;
|
||||
unsigned short int HeaderSizeBytes;
|
||||
unsigned short int CodeParas;
|
||||
unsigned short int InitialIP;
|
||||
unsigned short int StackParas;
|
||||
unsigned short int DataParas;
|
||||
unsigned short int HeapParas;
|
||||
unsigned short int InitializedData;
|
||||
unsigned short int CodeCheckSum;
|
||||
unsigned short int DataCheckSum;
|
||||
unsigned short int CodeVersion;
|
||||
unsigned short int Priority;
|
||||
ADDFILE Add[MaxAddFiles];
|
||||
unsigned short int DylCount;
|
||||
unsigned long int DylTableOffset;
|
||||
unsigned short int Spare;
|
||||
} ImgHeader;
|
||||
typedef struct
|
||||
{
|
||||
unsigned char Signature[SignatureSize];
|
||||
unsigned short int DeviceVersion;
|
||||
unsigned short int HeaderSizeBytes;
|
||||
unsigned short int CodeParas;
|
||||
unsigned short int CodeCheckSum;
|
||||
unsigned short int CodeVersion;
|
||||
} DevHeader;
|
||||
#define ALawSignature "ALawSoundFile**"
|
||||
typedef struct
|
||||
{
|
||||
char Signature[SignatureSize];
|
||||
unsigned short int Version;
|
||||
unsigned long int Samples;
|
||||
unsigned short int SilenceInTicks;
|
||||
unsigned short int Repeats;
|
||||
unsigned short int Spare[3];
|
||||
} SndFile;
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
typedef void (*_CALL)(void);
|
||||
#pragma save,call(reg_param =>(bx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_attachfile(char *);
|
||||
extern int p_detachfile(char *);
|
||||
#pragma call(reg_param =>(cx,ax),reg_saved =>(bx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_dayinm(int,int);
|
||||
#pragma call(reg_param =>(bx,dx),reg_saved =>(bx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_devdel(const char *,int);
|
||||
#pragma call(reg_param =>(bx,di,dx,si),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_devfnd(int,const char *,int,char *);
|
||||
#pragma call(reg_param =>(bx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_devqu(const char *);
|
||||
#pragma restore
|
||||
extern int cdecl p_exec(const char *);
|
||||
extern int cdecl p_execasync(const char *,short int *,int *);
|
||||
extern int cdecl p_execc(const char *,void *,int);
|
||||
extern int cdecl p_execcasync(const char *,void *,int,short int *,int *);
|
||||
#pragma save,call(reg_param =>(),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_totalK(void);
|
||||
extern int p_getauto(void);
|
||||
extern int p_getautomains(void);
|
||||
extern int p_getsnd(void);
|
||||
extern int p_getbat(void);
|
||||
extern int p_detectsoaktestfixture(void);
|
||||
extern int p_relogpacks(void);
|
||||
extern int p_getlanguage(void);
|
||||
extern int p_getlcd(void);
|
||||
extern int p_getlcdcontrast(void);
|
||||
extern int p_getpsu(void);
|
||||
extern int p_getpid(void);
|
||||
extern unsigned int p_getbacklight(void);
|
||||
extern unsigned int p_getram(void);
|
||||
extern int p_getres(void);
|
||||
extern int p_getshiftstate(void);
|
||||
extern int p_getnotify(void);
|
||||
extern int p_getalarmid(void);
|
||||
extern void p_allowoff(void);
|
||||
extern unsigned int p_returntickcount(void);
|
||||
extern unsigned int p_returnexpansionportinfo(void);
|
||||
#pragma call(reg_param =>(bx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern void p_setbacklight(unsigned int);
|
||||
extern void p_setconfig(unsigned int);
|
||||
extern unsigned int p_setirpowerlevel(unsigned int);
|
||||
extern unsigned int p_setcapslockmode(int);
|
||||
#pragma call(reg_param =>(di,si,cx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern void p_getosd(void *,void *,unsigned int);
|
||||
#pragma call(reg_param =>(bx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_getpri(int);
|
||||
extern int p_getowner(int);
|
||||
extern void p_getscancodes(unsigned short int *);
|
||||
#pragma call(reg_param =>(bx,cx,dx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_getpthbyid(int,char *);
|
||||
extern int p_getpthbyidasync(int,char *,short int *);
|
||||
extern int p_locdevice(int,unsigned short int *);
|
||||
extern int p_locdeviceasync(int,unsigned short int *,short int *);
|
||||
#pragma call(reg_param =>(bx,cx,di,si,dx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_locreadpdd(int,long int *,void *,unsigned int);
|
||||
extern int p_locreadpddasync(int,long int *,void *,unsigned int,short int *);
|
||||
#pragma call(reg_param =>(ax),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern void p_setautomains(int);
|
||||
extern void p_setnotify(int);
|
||||
extern int p_backlight(int);
|
||||
extern int p_setonevent(int);
|
||||
extern int p_setbat(int);
|
||||
extern void p_hwexit(void);
|
||||
extern void p_lcdcontrastdelta(int);
|
||||
extern void p_marka(void);
|
||||
extern void p_mcancel(void);
|
||||
extern void p_unmarka(void);
|
||||
extern void p_notifyunhook(void);
|
||||
extern void p_alarmunhook(void);
|
||||
extern void p_osdummy(void);
|
||||
extern unsigned int p_version(void);
|
||||
extern unsigned int p_romversion(void);
|
||||
#pragma call(reg_param =>(ax,bx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_gettext(int,char *);
|
||||
#pragma call(reg_param =>(bx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_hgran(int);
|
||||
#pragma call(reg_param =>(bx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern void p_iogetkm(E_KEYS *);
|
||||
extern void p_iogetkmasync(E_KEYS *);
|
||||
extern int p_iosignalbypid(int);
|
||||
#pragma call(reg_param =>(bx,dx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_loadldd(const char *);
|
||||
extern int p_loadlddasync(const char *,short int *);
|
||||
extern int p_loadpdd(const char *);
|
||||
extern int p_loadpddasync(const char *,short int *);
|
||||
#pragma call(reg_param =>(bx,cx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_logon(int,int);
|
||||
extern int p_logoff(int,int);
|
||||
extern int p_logoffx(int,int);
|
||||
#pragma call(reg_param =>(bx,di),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_logona(int,short int *);
|
||||
extern int p_logoffa(int);
|
||||
#pragma call(reg_param =>(bx,cx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern void p_mfree(void *,int);
|
||||
#pragma call(reg_param =>(bx,ax),reg_saved =>(cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_minit(int,int);
|
||||
#pragma call(reg_param =>(di,bx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern void p_mreceive(short int *,void *);
|
||||
#pragma call(reg_param =>(bx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern void p_mreceivew(void *);
|
||||
#pragma call(reg_param =>(bx,cx,si,di),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_msend(int,unsigned int,void *);
|
||||
extern int p_msendreceivew(int,unsigned int,void *);
|
||||
extern int p_msendreceivea(int,unsigned int,void *,short int *);
|
||||
#pragma call(reg_param =>(bx,cx,dx,di,si),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_notify(const char *,const char *,const char *,const char *,const char *);
|
||||
#pragma call(reg_param =>(ax,bx,dx,di,si),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_notifyerr(int,const char *,const char *,const char *,const char *);
|
||||
#pragma call(reg_param =>(bx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_notifyhook(int);
|
||||
extern int p_alarmhook(int);
|
||||
#pragma call(reg_param =>(bx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern void p_onterminate(int);
|
||||
#pragma call(reg_param =>(cx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern void p_off(unsigned int);
|
||||
#pragma call(reg_param =>(bx,di,si,cx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_pcpyto(int,void *,void *,unsigned int);
|
||||
#pragma call(reg_param =>(bx,si,di,cx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_pcpyfr(int,void *,void *,unsigned int);
|
||||
extern int p_piscpyfr(int,void *,char *,unsigned int);
|
||||
#pragma call(reg_param =>(bx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_pcreate(E_CPB *);
|
||||
extern int p_locchg(int mask);
|
||||
#pragma call(reg_param =>(bx,di,si),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_pfind(int,const char *,char *);
|
||||
#pragma call(reg_param =>(bx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_pidfind(const char *);
|
||||
#pragma call(reg_param =>(bx,ax),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_pkill(int,int);
|
||||
#pragma call(reg_param =>(bx,cx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_pterminate(int,int);
|
||||
#pragma call(reg_param =>(bx,di),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_prename(int,const char *);
|
||||
#pragma call(reg_param =>(bx,di),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_pname(int,char *);
|
||||
#pragma call(reg_param =>(bx,ax),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_ppanic(int,int);
|
||||
#pragma call(reg_param =>(bx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_presume(int);
|
||||
extern int p_psuspend(int);
|
||||
#pragma call(reg_param =>(bx,cx,si,di),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_ptask(char *,int,_CALL,void *);
|
||||
#pragma call(reg_param =>(dx,cx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern void p_sdate(unsigned long int);
|
||||
#pragma call(reg_param =>(bx,dx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern void p_setauto(int);
|
||||
extern void p_setsnd(int);
|
||||
extern int p_setdefaultpath(const char *);
|
||||
#pragma call(reg_param =>(bx,ax),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_setpri(int,int);
|
||||
#pragma call(reg_param =>(bx,cx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern void p_signaln(int,int);
|
||||
extern void p_signalnr(int);
|
||||
#pragma call(reg_param =>(dx,cx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_sleept(long int);
|
||||
#pragma call(reg_param =>(bx,cx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern void p_supply(E_SUPPLY *);
|
||||
extern void p_supplyinfo(E_SUPPLY_INFO *);
|
||||
extern void p_wsupply(E_SUPPLY_WARNINGS *);
|
||||
#pragma call(reg_param =>(bx,dx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern void p_wait(int);
|
||||
extern int p_watchall(unsigned int);
|
||||
#pragma call(reg_param =>(si,di),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_setpass(char *,char *);
|
||||
#pragma call(reg_param =>(si),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_testpass(char *);
|
||||
#pragma call(reg_param =>(si,ax),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_controlpass(char *,int);
|
||||
#pragma call(reg_param =>(),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern int p_querypass(void);
|
||||
extern void p_tickle(void);
|
||||
extern void p_nexthalfsecond(void);
|
||||
#pragma call(reg_param =>(),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE),inline =>on)
|
||||
static int p_iostatkm(void) = {0xcd,0xda};
|
||||
static int p_nexthalfsecondstatus(void) = {0xcd,0xdd};
|
||||
#pragma call(reg_param =>(ax),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE),inline =>on)
|
||||
static unsigned int p_setrombank(unsigned int) = {0xcd,0xdf};
|
||||
static unsigned int p_getrombank(void) = {0xcd,0xe0};
|
||||
#pragma restore
|
||||
#pragma save,call(reg_param =>(bx,cx,dx,di),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern void p_playsounda(const char *,unsigned int,unsigned int,short int *);
|
||||
extern int p_playsoundw(const char *,unsigned int,unsigned int);
|
||||
extern void p_playsoundcancel(void);
|
||||
#pragma call(reg_param =>(bx,cx,dx,di,si),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern void p_playsoundao(const char *,unsigned int,unsigned int,short int *,unsigned int);
|
||||
extern int p_playsoundwo(const char *,unsigned int,unsigned int,unsigned int);
|
||||
#pragma call(reg_param =>(bx,cx,di),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern void p_recordsounda(const char *,unsigned int,short int *);
|
||||
extern int p_recordsoundw(const char *,unsigned int);
|
||||
extern void p_recordsoundcancel(void);
|
||||
#pragma call(reg_param =>(bx,ax),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
extern void p_nmdaya(char *,int);
|
||||
extern void p_nmmona(char *,int);
|
||||
#pragma restore
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // EPOC_H
|
||||
@@ -0,0 +1,326 @@
|
||||
/* Release 3.00 */
|
||||
|
||||
/*-------------------------------------------------------------------------*
|
||||
* *
|
||||
* string.h - Definitions for string and memory functions. *
|
||||
* *
|
||||
* COPYRIGHT (C) 1991 Psion PLC. All Rights Reserved. *
|
||||
* *
|
||||
*--------------------------------------------------------------------------*/
|
||||
#include <stdepoc.h>
|
||||
|
||||
#ifndef EPOCDEFS_H
|
||||
#define EPOCDEFS_H
|
||||
|
||||
#ifndef _TIME_DEF
|
||||
#define _TIME_DEF
|
||||
typedef long time_t;
|
||||
#endif
|
||||
|
||||
typedef int INT,HANDLE;
|
||||
typedef unsigned int UINT;
|
||||
typedef signed char BYTE;
|
||||
typedef unsigned char UBYTE;
|
||||
typedef short int WORD;
|
||||
typedef unsigned short int UWORD;
|
||||
typedef long int LONG;
|
||||
typedef unsigned long int ULONG;
|
||||
typedef double DOUBLE;
|
||||
typedef float FLOAT;
|
||||
typedef char TEXT;
|
||||
|
||||
typedef struct _mblock
|
||||
{
|
||||
unsigned int mlen;
|
||||
struct _mblock *mnext;
|
||||
} _MBLOCK;
|
||||
|
||||
#define P_FOPEN 0x0000
|
||||
#define P_FCREATE 0x0001
|
||||
#define P_FREPLACE 0x0002
|
||||
#define P_FAPPEND 0x0003
|
||||
#define P_FUNIQUE 0x0004
|
||||
#define P_FSER_MASK 0x000f
|
||||
#define P_FSTREAM 0x0000
|
||||
#define P_FSTREAM_TEXT 0x0010
|
||||
#define P_FTEXT 0x0020
|
||||
#define P_FDIR 0x0030
|
||||
#define P_FFORMAT 0x0040
|
||||
#define P_FDEVICE 0x0050
|
||||
#define P_FNODE 0x0060
|
||||
#define P_FMT_MASK 0x00f0
|
||||
#define P_FUPDATE 0x0100
|
||||
#define P_FRANDOM 0x0200
|
||||
#define P_FSHARE 0x0400
|
||||
#define P_FACC_MASK 0x0f00
|
||||
#define P_FLOWDENSITY 0x1000
|
||||
|
||||
#define P_FPANIC 0
|
||||
#define P_FREAD 1
|
||||
#define P_FWRITE 2
|
||||
#define P_FCLOSE 3
|
||||
#define P_FCANCEL 4
|
||||
#define P_FATTACH 5
|
||||
#define P_FDETACH 6
|
||||
#define P_FSET 7
|
||||
#define P_FSENSE 8
|
||||
#define P_FFLUSH 9
|
||||
#define P_FRELATIVE P_FREAD
|
||||
#define P_FABSOLUTE P_FWRITE
|
||||
#define P_FSEEK 10
|
||||
#define P_FSETEOF 11
|
||||
#define P_FWRITE_REPLY 12
|
||||
#define P_FTEST 10
|
||||
#define P_FCTRL 11
|
||||
#define P_FINQ 12
|
||||
#define P_FRSUPER 13
|
||||
#define P_FSTOP 14
|
||||
#define P_FSTART 15
|
||||
#define P_FENABLE 16
|
||||
#define P_FSETINT 17
|
||||
#define P_FABS 1
|
||||
#define P_FEND 2
|
||||
#define P_FCUR 3
|
||||
#define P_FRSENSE 4
|
||||
#define P_FRSET 5
|
||||
#define P_FREWIND 6
|
||||
|
||||
#define NoErr 0
|
||||
#define FailErr (-1)
|
||||
#define ArgumentErr (-2)
|
||||
#define OsErr (-3)
|
||||
#define NotSupportedErr (-4)
|
||||
#define UnderflowErr (-5)
|
||||
#define OverflowErr (-6)
|
||||
#define RangeErr (-7)
|
||||
#define DivideByZeroErr (-8)
|
||||
#define InUseErr (-9)
|
||||
#define NoMemoryErr (-10)
|
||||
#define NoSegmentsErr (-11)
|
||||
#define NoSemaphoreErr (-12)
|
||||
#define NoProcessErr (-13)
|
||||
#define AlreadyOpenErr (-14)
|
||||
#define NotOpenErr (-15)
|
||||
#define ImageErr (-16)
|
||||
#define NoReceiverErr (-17)
|
||||
#define NoDevicesErr (-18)
|
||||
#define NoFileSystemErr (-19)
|
||||
#define FailedToStartErr (-20)
|
||||
#define ExistsErr (-32)
|
||||
#define NotExistsErr (-33)
|
||||
#define WriteErr (-34)
|
||||
#define ReadErr (-35)
|
||||
#define EofErr (-36)
|
||||
#define FullErr (-37)
|
||||
#define NameErr (-38)
|
||||
#define AccessErr (-39)
|
||||
#define LockedErr (-40)
|
||||
#define DeviceErr (-41)
|
||||
#define DirErr (-42)
|
||||
#define RecordErr (-43)
|
||||
#define ReadOnlyErr (-44)
|
||||
#define IoInvalidErr (-45)
|
||||
#define PendingErr (-46)
|
||||
#define VolumeErr (-47)
|
||||
#define CancelErr (-48)
|
||||
#define IoAllocErr (-10)
|
||||
#define DisconnectErr (-50)
|
||||
#define ConnectErr (-51)
|
||||
#define ReTransmitErr (-52)
|
||||
#define LineErr (-53)
|
||||
#define InActivityErr (-54)
|
||||
#define ParityErr (-55)
|
||||
#define FrameErr (-56)
|
||||
#define OverrunErr (-57)
|
||||
#define ModemConnectErr (-58)
|
||||
#define ModemBusyErr (-59)
|
||||
#define ModemNoAnswerErr (-60)
|
||||
#define ModemBlacklistErr (-61)
|
||||
#define NotReadyErr (-62)
|
||||
#define UnknownErr (-63)
|
||||
#define DirFullErr (-64)
|
||||
#define WriteProtectErr (-65)
|
||||
#define CorruptMediaErr (-66)
|
||||
#define AbortErr (-67)
|
||||
#define EraseErr (-68)
|
||||
#define InvalidFileErr (-69)
|
||||
|
||||
#define P_CD_ROOT 0
|
||||
#define P_CD_PARENT 1
|
||||
#define P_CD_SUBDIR 2
|
||||
|
||||
#define P_FAWRITE 0x01
|
||||
#define P_FAHIDDEN 0x02
|
||||
#define P_FASYSTEM 0x04
|
||||
#define P_FAVOLUME 0x08
|
||||
#define P_FADIR 0x10
|
||||
#define P_FAMOD 0x20
|
||||
#define P_FAREAD 0x100
|
||||
#define P_FAEXEC 0x200
|
||||
#define P_FASTREAM 0x400
|
||||
#define P_FATEXT 0x800
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UWORD version;
|
||||
UWORD status;
|
||||
ULONG size;
|
||||
ULONG modst;
|
||||
UBYTE spare[4];
|
||||
} P_INFO;
|
||||
|
||||
#define P_VOLUMENAME 32
|
||||
#define P_FMEDIA_UNKNOWN 0
|
||||
#define P_FMEDIA_FLOPPY 1
|
||||
#define P_FMEDIA_HARDDISK 2
|
||||
#define P_FMEDIA_FLASH 3
|
||||
#define P_FMEDIA_RAM 4
|
||||
#define P_FMEDIA_ROM 5
|
||||
#define P_FMEDIA_WRITEPROTECTED 6
|
||||
#define P_FMEDIA_COMPRESSIBLE 0x8000
|
||||
#define P_FMEDIA_DYNAMIC 0x4000
|
||||
#define P_FMEDIA_INTERNAL 0x2000
|
||||
#define P_FMEDIA_DUAL_DENSITY 0x1000
|
||||
#define P_FMEDIA_FORMATTABLE 0x800
|
||||
|
||||
typedef struct {
|
||||
UWORD version;
|
||||
UWORD mediatype;
|
||||
UWORD removable;
|
||||
ULONG size;
|
||||
ULONG free;
|
||||
UBYTE name[P_VOLUMENAME];
|
||||
WORD batterystate;
|
||||
UBYTE spare[16];
|
||||
} P_DINFO;
|
||||
|
||||
#define P_FSYSTYPE_FLAT 0
|
||||
#define P_FSYSTYPE_HIER 1
|
||||
typedef struct {
|
||||
UWORD version;
|
||||
UWORD type;
|
||||
UWORD formattable;
|
||||
UBYTE spare[26];
|
||||
} P_NINFO;
|
||||
|
||||
#define P_PWILD_ANY 0x01
|
||||
#define P_PWILD_NAME 0x02
|
||||
#define P_PWILD_EXT 0x04
|
||||
#define P_FSYSNAMESIZE 5
|
||||
|
||||
typedef struct {
|
||||
UBYTE system;
|
||||
UBYTE device;
|
||||
UBYTE path;
|
||||
UBYTE name;
|
||||
UBYTE ext;
|
||||
UBYTE flags;
|
||||
} P_FPARSE;
|
||||
|
||||
#define P_FBLKSHIFT 9
|
||||
#define P_FBLKSIZE 0x200
|
||||
#define P_FMAXRSIZE 0x100
|
||||
#define P_FMAXSSIZE 0x4000
|
||||
#define P_FSIZRPOS sizeof(LONG)
|
||||
#define P_MAXDEV 128
|
||||
#define P_MAXPATH 128
|
||||
#define P_MAXNAME 128
|
||||
#define P_MAXEXTN 128
|
||||
#define P_FNAMESIZE 128
|
||||
|
||||
typedef struct
|
||||
{
|
||||
ULONG day;
|
||||
ULONG sec;
|
||||
} P_DAYSEC;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UBYTE year;
|
||||
UBYTE month;
|
||||
UBYTE day;
|
||||
UBYTE hour;
|
||||
UBYTE minute;
|
||||
UBYTE second;
|
||||
UWORD yrday;
|
||||
} P_DATE;
|
||||
|
||||
#define P_SCR_ATTRB 0
|
||||
#define P_SCR_SCROLL 1
|
||||
#define P_SCR_CLR 2
|
||||
#define P_SCR_POSA 3
|
||||
#define P_SCR_POSR 4
|
||||
#define P_SCR_WSET 5
|
||||
#define P_SCR_SLOCK 6
|
||||
#define P_SCR_WLOCK 7
|
||||
#define P_SCR_NEL 8
|
||||
#define P_SCR_CURSOR 9
|
||||
#define P_SCR_ESCAPE 10
|
||||
|
||||
typedef struct
|
||||
{
|
||||
short int x; /* Horizontal coordinate */
|
||||
short int y; /* Vertical coordinate */
|
||||
} P_POINT;
|
||||
typedef struct
|
||||
{
|
||||
P_POINT tl; /* Top left point */
|
||||
P_POINT br; /* Bottom right point */
|
||||
} P_RECT;
|
||||
typedef struct
|
||||
{
|
||||
P_RECT r; /* Rectangle */
|
||||
P_POINT p; /* Point */
|
||||
} P_RECTP;
|
||||
typedef struct
|
||||
{
|
||||
P_POINT tl; /* Top left point */
|
||||
unsigned short int width; /* Width */
|
||||
unsigned short int height; /* Height */
|
||||
} P_EXTENT;
|
||||
|
||||
#define _E_SEARCH 0x10
|
||||
#define _E_EXEC 0x20
|
||||
|
||||
extern char _pname[P_FNAMESIZE];
|
||||
extern P_FPARSE _pinfo;
|
||||
extern void *winHandle;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
extern int _allocInfo(_MBLOCK **,_MBLOCK **);
|
||||
extern _MBLOCK *_heapTop(void);
|
||||
extern int _iopen(char **_handle,char *_name,int _mode);
|
||||
extern int _iow2(char *handle,int _func);
|
||||
extern int _iow3(char *handle,int _func,void *);
|
||||
extern int _iow4(char *handle,int _func,void *,void *);
|
||||
extern int _parse(const char *_in,char *_rel,char *_out,P_FPARSE *_info);
|
||||
extern void _convTimeToDos(ULONG t,int *date,int *time);
|
||||
extern void _FsChanToName(void *handle,char *name);
|
||||
extern int _FsChanToMode(void *handle);
|
||||
extern int _isloc(const char *path);
|
||||
extern void _systemTimeToDaySeconds(time_t secs,P_DAYSEC *pDs);
|
||||
extern time_t _daySecondsToSystemTime(P_DAYSEC *pDs);
|
||||
extern void _daySecondsToDate(P_DAYSEC *pDs,P_DATE *pDate);
|
||||
extern int _dateToDaySeconds(P_DATE *pDate,P_DAYSEC *pDs);
|
||||
extern int _fileInfo(const char *path,P_INFO *pI);
|
||||
extern int _fileSetModTime(const char *path,time_t time);
|
||||
extern void _getPath(char *path);
|
||||
extern void _setPath(char *path);
|
||||
extern time_t _date(void);
|
||||
extern void _sleepTenths(unsigned long tenths);
|
||||
extern int _execc(const char *path,char **argv,int mode);
|
||||
extern int __execc(char *path,char *command);
|
||||
extern int _logon(int handle,WORD *stat);
|
||||
extern void _waitStat(WORD *stat);
|
||||
extern int _resume(int pid);
|
||||
extern char *_getErrorText(int error,char *buffer);
|
||||
#pragma save,call(inline=>on)
|
||||
static void _dummy(void) = {0xCD,0xD4};
|
||||
#pragma restore
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,867 @@
|
||||
OldPsu = 0
|
||||
MaximPsu = 1
|
||||
PanPsu = 2
|
||||
BatteryUnknown = 0
|
||||
BatteryAlkaline = 1
|
||||
BatteryNicad600 = 2
|
||||
BatteryNicad1000 = 3
|
||||
BatteryNicad500 = 4
|
||||
LcdUnknown = -1
|
||||
Lcd640X400 = 0
|
||||
Lcd640X200Small = 1
|
||||
Lcd640X200Big = 2
|
||||
Lcd720X348 = 3
|
||||
Lcd160X80 = 4
|
||||
Lcd240X80 = 5
|
||||
PcHerc = Lcd720X348
|
||||
PcCga = Lcd640X200Big
|
||||
PcMda = 6
|
||||
PcEgaMono = 7
|
||||
PcEgaColour = 8
|
||||
PcVgaMono = 9
|
||||
PcVgaColour = 10
|
||||
Lcd480X160 = 11
|
||||
Lcd240X100 = 12
|
||||
Lcd240X120 = 13
|
||||
Lcd240X160 = 14
|
||||
Lcd640X200 = 15
|
||||
IsAColdStart = 0
|
||||
IsAPowerFailStart = 1
|
||||
IsAResetStart = 2
|
||||
IsAKernelFault = 3
|
||||
IsANewOsStart = 4
|
||||
|
||||
HwInt0Revector = 0
|
||||
HwInt1Revector = 1
|
||||
HwInt2Revector = 2
|
||||
HwInt3Revector = 3
|
||||
HwInt4Revector = 4
|
||||
HwIrq0Revector = 5
|
||||
HwIrq1Revector = 6
|
||||
HwIrq2Revector = 7
|
||||
HwIrq3Revector = 8
|
||||
HwIrq4Revector = 9
|
||||
HwIrq5Revector = 10
|
||||
HwIrq6Revector = 11
|
||||
HwIrq7Revector = 12
|
||||
FileSystemNameSize = 5
|
||||
MaxDeviceSize = 8
|
||||
MaxNameSize = 8
|
||||
MaxExtSize = 4
|
||||
MaxNameESize = (MaxNameSize+MaxExtSize)
|
||||
MaxPathSize = 080H
|
||||
DeviceSeparator = ':'
|
||||
ExtSeparator = '.'
|
||||
MatchAny = '*'
|
||||
MatchSingle = '?'
|
||||
MaxErrorTextSize = 64
|
||||
MaxNotifyTextSize = 64
|
||||
MaxOptionTextSize = 16
|
||||
MaxSuffixes = 31
|
||||
MaxCommandBuffer = 127
|
||||
PidMask = 0FFFH
|
||||
MaxEnvNameSize = 16
|
||||
MaxAlarms = 2
|
||||
|
||||
SoundKeyboardEnable = 00001H
|
||||
SoundBuzzerEnable = 00002H
|
||||
SoundDeviceEnable = 00004H
|
||||
SoundLoud = 00008H
|
||||
SoundDisable = 08000H
|
||||
SoundMaxVolume = 0
|
||||
SoundMinVolume = 5
|
||||
SoundMaxBpm = 240
|
||||
SoundMinBpm = 2
|
||||
|
||||
CPBInRom = 0
|
||||
CPBInRam = 1
|
||||
CPBMaxPriority = 0C0H
|
||||
CPBMinPriority = 040H
|
||||
MaxHeapGrowBy = 0400H
|
||||
HeapGrowByDefault = 080H
|
||||
MaxProcesses = 018H
|
||||
|
||||
CreateSegmentLow = 0
|
||||
CreateSegmentHigh = 1
|
||||
CreateSegmentDevice = 2
|
||||
CreateSegmentLocked = 3
|
||||
|
||||
IoFuncPanic = 000H
|
||||
IoFuncRead = 001H
|
||||
TimerRelative = 001H
|
||||
IoFuncWrite = 002H
|
||||
TimerAbsolute = 002H
|
||||
IoFuncClose = 003H
|
||||
IoFuncCancel = 004H
|
||||
IoFuncAttach = 005H
|
||||
IoFuncDetach = 006H
|
||||
IoFuncSet = 007H
|
||||
IoFuncSense = 008H
|
||||
IoFuncFlush = 009H
|
||||
IoFuncAlarm = 009H
|
||||
IoFuncSeek = 00AH
|
||||
IoFuncSetEof = 00BH
|
||||
IoFuncConnect = 00AH
|
||||
IoFuncDisconnect = 00BH
|
||||
IoFuncWriteReply = 00CH
|
||||
IoFuncTest = 00AH
|
||||
IoFuncControl = 00BH
|
||||
IoFuncInquire = 00CH
|
||||
IoFuncSuperFrame = 00DH
|
||||
IoFuncStop = 00EH
|
||||
IoFuncStart = 00FH
|
||||
IoFuncEnable = 010H
|
||||
IoFuncSetDevice = 011H
|
||||
IoFuncModemInit = 010H
|
||||
IoFuncModemDial = 011H
|
||||
IoFuncModemWaitCall = 012H
|
||||
IoFuncModemSense = 013H
|
||||
IoFuncModemSet = 014H
|
||||
IoFuncModemCancel = 015H
|
||||
IoFuncModemWrite = 016H
|
||||
|
||||
ModeOpen = 00000H
|
||||
ModeCreate = 00001H
|
||||
ModeReplace = 00002H
|
||||
ModeAppend = 00003H
|
||||
ModeUnique = 00004H
|
||||
ModeStream = 00000H
|
||||
ModeStreamText = 00010H
|
||||
ModeText = 00020H
|
||||
ModeDir = 00030H
|
||||
ModeFormat = 00040H
|
||||
ModeDevice = 00050H
|
||||
ModeNode = 00060H
|
||||
ModeUpdate = 00100H
|
||||
ModeRandom = 00200H
|
||||
ModeShare = 00400H
|
||||
ModeLowDensity = 01000H
|
||||
ModeServiceMask = 0000FH
|
||||
ModeFormatMask = 000F0H
|
||||
ModeAccessMask = 00F00H
|
||||
|
||||
SeekAddress = 00H
|
||||
SeekFromStart = 01H
|
||||
SeekFromEnd = 02H
|
||||
SeekFromCurrent = 03H
|
||||
SeekRecordSense = 04H
|
||||
SeekRecordSet = 05H
|
||||
SeekRewind = 06H
|
||||
|
||||
FileAttWrite = 00001H
|
||||
FileAttHidden = 00002H
|
||||
FileAttSystem = 00004H
|
||||
FileAttVolume = 00008H
|
||||
FileAttDirectory = 00010H
|
||||
FileAttModified = 00020H
|
||||
FileAttRead = 00100H
|
||||
FileAttExecute = 00200H
|
||||
FileAttStream = 00400H
|
||||
FileAttText = 00800H
|
||||
|
||||
FileChangeDirRoot = 0
|
||||
FileChangeDirParent = 1
|
||||
FileChangeDirSubdir = 2
|
||||
|
||||
MaxVolumeName = 32
|
||||
FileMediaUnknown = 0
|
||||
FileMediaFloppy = 1
|
||||
FileMediaHardDisk = 2
|
||||
FileMediaFlash = 3
|
||||
FileMediaRam = 4
|
||||
FileMediaRom = 5
|
||||
FileMediaWriteProtected = 6
|
||||
FileMediaCompressible = 08000H
|
||||
FileMediaDynamic = 04000H
|
||||
FileMediaInternal = 02000H
|
||||
FileMediaDualDensity = 01000H
|
||||
FileMediaFormattable = 00800H
|
||||
|
||||
FileNodeFlat = 0
|
||||
FileNodeHierarchical = 1
|
||||
|
||||
FileBlockShift = 9
|
||||
FileBlockSize = 00200H
|
||||
FileMaxRecordSize = 00100H
|
||||
FileMaxStreamSize = 04000H
|
||||
|
||||
JustifyLeft = 0
|
||||
JustifyRight = 1
|
||||
JustifyCentre = 2
|
||||
|
||||
ParseWildAny = 00001H
|
||||
ParseWildName = 00002H
|
||||
ParseWildExt = 00004H
|
||||
|
||||
DtobTypeFixed = 00H
|
||||
DtobTypeExponent = 01H
|
||||
DtobTypeGeneral = 02H
|
||||
DtobMaxExponent = 99
|
||||
FloatSignificantDigits = 15
|
||||
|
||||
IoChanSignature = 01101H
|
||||
IoHandlerSignature = 01121H
|
||||
DbfChanSignature = 01141H
|
||||
LIBChanSignature = 01161H
|
||||
LDDSignature = 0DD01H
|
||||
PDDSignature = 0DD21H
|
||||
LIBSignature = 0DD41H
|
||||
VectorInfoSize = 8
|
||||
|
||||
KillExit = 0
|
||||
PanicExit = 1
|
||||
TaskPanicExit = 2
|
||||
|
||||
PointX = 0
|
||||
PointY = 2
|
||||
PointEnt = 4
|
||||
RectTl = 0
|
||||
RectBr = 4
|
||||
RectEnt = 8
|
||||
|
||||
NoErr = 0
|
||||
FailErr = -1
|
||||
ArgumentErr = -2
|
||||
OsErr = -3
|
||||
NotSupportedErr = -4
|
||||
UnderflowErr = -5
|
||||
OverflowErr = -6
|
||||
RangeErr = -7
|
||||
DivideByZeroErr = -8
|
||||
InUseErr = -9
|
||||
NoMemoryErr = -10
|
||||
IoAllocErr = -10
|
||||
NoSegmentsErr = -11
|
||||
NoSemaphoreErr = -12
|
||||
NoProcessErr = -13
|
||||
AlreadyOpenErr = -14
|
||||
NotOpenErr = -15
|
||||
ImageErr = -16
|
||||
NoReceiverErr = -17
|
||||
NoDevicesErr = -18
|
||||
NoFileSystemErr = -19
|
||||
FailedToStartErr = -20
|
||||
FontNotLoadedErr = -21
|
||||
|
||||
ExistsErr = -32
|
||||
NotExistsErr = -33
|
||||
WriteErr = -34
|
||||
ReadErr = -35
|
||||
EofErr = -36
|
||||
FullErr = -37
|
||||
NameErr = -38
|
||||
AccessErr = -39
|
||||
LockedErr = -40
|
||||
DeviceErr = -41
|
||||
DirErr = -42
|
||||
RecordErr = -43
|
||||
ReadOnlyErr = -44
|
||||
IoInvalidErr = -45
|
||||
PendingErr = -46
|
||||
VolumeErr = -47
|
||||
CancelErr = -48
|
||||
ReservedErr = -49
|
||||
DisconnectErr = -50
|
||||
ConnectErr = -51
|
||||
ReTransmitErr = -52
|
||||
LineErr = -53
|
||||
InActivityErr = -54
|
||||
ParityErr = -55
|
||||
FrameErr = -56
|
||||
OverrunErr = -57
|
||||
ModemConnectErr = -58
|
||||
ModemBusyErr = -59
|
||||
ModemNoAnswerErr = -60
|
||||
ModemBlacklistErr = -61
|
||||
NotReadyErr = -62
|
||||
UnknownErr = -63
|
||||
DirFullErr = -64
|
||||
WriteProtectErr = -65
|
||||
CorruptMediaErr = -66
|
||||
AbortErr = -67
|
||||
EraseErr = -68
|
||||
InvalidFileErr = -69
|
||||
|
||||
CDataCountryCode = 000H
|
||||
CDataGmtOffset = 002H
|
||||
CDataDateType = 004H
|
||||
CDataTimeType = 005H
|
||||
CDataCurrencySymbolPosition = 006H
|
||||
CDataCurrencySpaceRequired = 007H
|
||||
CDataCurrencyDecimalPlaces = 008H
|
||||
CDataCurrencyNegativeInBrackets = 009H
|
||||
CDataCurrencyTriadsAllowed = 00AH
|
||||
CDataThousandsSeparator = 00BH
|
||||
CDataDecimalSeparator = 00CH
|
||||
CDataDateSeparator = 00DH
|
||||
CDataTimeSeparator = 00EH
|
||||
CDataCurrencySymbol = 00FH
|
||||
CDataStartOfWeek = 018H
|
||||
CDataSpare = 019H
|
||||
CDataEnt = 028H
|
||||
DateYear = 000H
|
||||
DateMonth = 001H
|
||||
DateDay = 002H
|
||||
DateHour = 003H
|
||||
DateMinute = 004H
|
||||
DateSecond = 005H
|
||||
DateYearDay = 006H
|
||||
DateEnt = 008H
|
||||
DeviceVersionNo = 000H
|
||||
DeviceMediaType = 002H
|
||||
DeviceIsRemovable = 004H
|
||||
DeviceStatusSize = 006H
|
||||
DeviceStatusFree = 00AH
|
||||
DeviceStatusName = 00EH
|
||||
DeviceBatteryState = 02EH
|
||||
DeviceSpare = 030H
|
||||
DeviceEnt = 040H
|
||||
DtobType = 000H
|
||||
DtobWidth = 001H
|
||||
DtobNdec = 002H
|
||||
DtobPoint = 003H
|
||||
DtobTriad = 004H
|
||||
DtobTrilen = 005H
|
||||
DtobEnt = 006H
|
||||
DyScDays = 000H
|
||||
DyScSeconds = 004H
|
||||
DyScEnt = 008H
|
||||
FileVersionNo = 000H
|
||||
FileAtt = 002H
|
||||
FileSize = 004H
|
||||
FileModDate = 008H
|
||||
FileSpare = 00CH
|
||||
FileEnt = 010H
|
||||
FullParseSystem = 000H
|
||||
FullParseDevice = 001H
|
||||
FullParsePath = 002H
|
||||
FullParseName = 003H
|
||||
FullParseExt = 004H
|
||||
FullParseFlags = 005H
|
||||
FullParseEnt = 006H
|
||||
GenParseSourceNamePtr = 000H
|
||||
GenParseRelatedNamePtr = 002H
|
||||
GenParseDefaultsPtr = 004H
|
||||
GenParseTargetNamePtr = 006H
|
||||
GenParseInfoPtr = 008H
|
||||
GenParseDeviceSeparator = 00AH
|
||||
GenParsePathSeparator = 00BH
|
||||
GenParseExtSeparator = 00CH
|
||||
GenParseMaxDeviceSize = 00DH
|
||||
GenParseMaxPathSize = 00EH
|
||||
GenParseMaxNameSize = 00FH
|
||||
GenParseMaxExtSize = 010H
|
||||
GenParseDummy = 011H
|
||||
GenParseEnt = 012H
|
||||
MemLength = 000H
|
||||
MemNext = 002H
|
||||
MemEnt = 004H
|
||||
MessNext = 000H
|
||||
MessStatusPtr = 002H
|
||||
MessType = 004H
|
||||
MessPid = 006H
|
||||
MessEnt = 008H
|
||||
NodeVersionNo = 000H
|
||||
NodeType = 002H
|
||||
NodeSupportsFormat = 004H
|
||||
NodeStatusSpare = 006H
|
||||
NodeEnt = 020H
|
||||
ProcQue = 000H
|
||||
ProcDeltaType = 008H
|
||||
ProcAddressTrap = 009H
|
||||
ProcStatus = 00AH
|
||||
ProcSStatus = 00BH
|
||||
ProcPriority = 00CH
|
||||
ProcPriorityH = 00DH
|
||||
ProcRamOrRom = 00EH
|
||||
ProcTask = 00FH
|
||||
ProcName = 010H
|
||||
ProcActive = 01DH
|
||||
ProcSemaphore = 01EH
|
||||
ProcSemHead = 020H
|
||||
ProcMemBasePtr = 022H
|
||||
ProcMemGrowBy = 024H
|
||||
ProcMCtrlPtr = 026H
|
||||
ProcMinHeap = 028H
|
||||
ProcFServer = 02AH
|
||||
ProcDataSeg = 02CH
|
||||
ProcCodeSeg = 02EH
|
||||
ProcSavedSP = 030H
|
||||
ProcSavedBP = 032H
|
||||
ProcNotify = 034H
|
||||
ProcSpare = 035H
|
||||
ProcMagicNumber = 036H
|
||||
ProcChecksum = 038H
|
||||
ProcMTerminate = 03AH
|
||||
ProcEnt = 03CH
|
||||
QueNext = 000H
|
||||
QuePrev = 002H
|
||||
QueKey = 004H
|
||||
QueData = 006H
|
||||
QueEnt = 008H
|
||||
SegBase = 000H
|
||||
SegAccessCount = 002H
|
||||
SegName = 004H
|
||||
SegEnt = 012H
|
||||
ConKeyValue = 000H
|
||||
ConModifiers = 002H
|
||||
ConCount = 003H
|
||||
ConEnt = 004H
|
||||
FsyFileQ = 000H
|
||||
FsyFileSystem = 004H
|
||||
FsyFileName = 006H
|
||||
FsyFileMode = 008H
|
||||
ChanSignature = 000H
|
||||
ChanNext = 002H
|
||||
ChanLibHandle = 004H
|
||||
ChanEnt = 006H
|
||||
FilChan = 000H
|
||||
FilHandle = ChanEnt
|
||||
|
||||
BufferCompare = 0A3H
|
||||
BufferCompareFolded = 0A4H
|
||||
BufferCopy = 0A1H
|
||||
BufferJustify = 0ABH
|
||||
BufferLocate = 0A7H
|
||||
BufferLocateFolded = 0A8H
|
||||
BufferMatch = 0A5H
|
||||
BufferMatchFolded = 0A6H
|
||||
BufferSubBuffer = 0A9H
|
||||
BufferSubBufferFolded = 0AAH
|
||||
BufferSwap = 0A2H
|
||||
CharIsAlphaNumeric = 097H
|
||||
CharIsAlphabetic = 096H
|
||||
CharIsControl = 09DH
|
||||
CharIsDigit = 093H
|
||||
CharIsGraphic = 09CH
|
||||
CharIsHexDigit = 094H
|
||||
CharIsLowerCase = 099H
|
||||
CharIsPrintable = 095H
|
||||
CharIsPunctuation = 09BH
|
||||
CharIsSpace = 09AH
|
||||
CharIsUpperCase = 098H
|
||||
CharToFoldedChar = 0A0H
|
||||
CharToLowerChar = 09FH
|
||||
CharToUpperChar = 09EH
|
||||
ConvManager = 08AH
|
||||
DbfManager = 0D8H
|
||||
DevManager = 085H
|
||||
WservOpcodes = 08DH
|
||||
Dummy = 0D4H
|
||||
FilManager = 087H
|
||||
FloatAdd = 0C1H
|
||||
FloatCompare = 0C5H
|
||||
FloatDivide = 0C4H
|
||||
FloatManager = 08CH
|
||||
FloatMultiply = 0C3H
|
||||
FloatNegate = 0C6H
|
||||
FloatSubtract = 0C2H
|
||||
FloatToInt = 0C7H
|
||||
FloatToLong = 0C9H
|
||||
FloatToUnsignedInt = 0C8H
|
||||
FloatToUnsignedLong = 0CAH
|
||||
GenDataSegment = 08FH
|
||||
GenIntByNumber = 0D5H
|
||||
GenManager = 08BH
|
||||
HardwareManager = 08EH
|
||||
HeapManager = 081H
|
||||
IntToFloat = 0CBH
|
||||
IoManager = 086H
|
||||
IoNextHalfSecondStatus = 0DDH
|
||||
IoSerManager = 0DEH
|
||||
LibEnter = 0D2H
|
||||
LibEnterSend = 0D9H
|
||||
LibLeave = 0D3H
|
||||
LibManager = 084H
|
||||
LibSend = 0CFH
|
||||
LibSendExact = 0D1H
|
||||
LibSendExit = 0D7H
|
||||
LibSendSuper = 0D0H
|
||||
LongIntCompare = 0BBH
|
||||
LongIntDivide = 0BDH
|
||||
LongIntMultiply = 0BCH
|
||||
LongToFloat = 0CDH
|
||||
LongUnsignedIntCompare = 0BEH
|
||||
LongUnsignedIntDivide = 0C0H
|
||||
LongUnsignedIntMultiply = 0BFH
|
||||
MessManager = 083H
|
||||
ProcCopyFromById = 091H
|
||||
ProcCopyToById = 092H
|
||||
ProcIndStringCopyFromById = 0DCH
|
||||
ProcManager = 088H
|
||||
ProcPanic = 090H
|
||||
SegManager = 080H
|
||||
SemManager = 082H
|
||||
StringCapitilise = 0DBH
|
||||
StringCompare = 0AFH
|
||||
StringCompareFolded = 0B0H
|
||||
StringConvertToFolded = 0AEH
|
||||
StringCopy = 0ACH
|
||||
StringCopyFolded = 0ADH
|
||||
StringLength = 0B9H
|
||||
StringLocate = 0B3H
|
||||
StringLocateFolded = 0B4H
|
||||
StringLocateInReverse = 0B5H
|
||||
StringLocateInReverseFolded = 0B6H
|
||||
StringMatch = 0B1H
|
||||
StringMatchFolded = 0B2H
|
||||
StringSubString = 0B7H
|
||||
StringSubStringFolded = 0B8H
|
||||
StringValidateName = 0BAH
|
||||
TimManager = 089H
|
||||
UnsignedIntToFloat = 0CCH
|
||||
UnsignedLongToFloat = 0CEH
|
||||
WservFunctions = 0D6H
|
||||
WservOpcodes = 08DH
|
||||
NmConvArgumentsToBuffer = 004H
|
||||
NmConvFloatToBuffer = 009H
|
||||
NmConvIntToBuffer = 002H
|
||||
NmConvLongIntToBuffer = 003H
|
||||
NmConvStringToFloat = 00AH
|
||||
NmConvStringToInt = 007H
|
||||
NmConvStringToLongInt = 008H
|
||||
NmConvStringToUnsignedInt = 005H
|
||||
NmConvStringToUnsignedLongInt = 006H
|
||||
NmConvUnsignedIntToBuffer = 000H
|
||||
NmConvUnsignedLongIntToBuffer = 001H
|
||||
NmDbfAbsRead = 00CH
|
||||
NmDbfAbsReadSense = 00BH
|
||||
NmDbfAppend = 011H
|
||||
NmDbfBackRead = 00EH
|
||||
NmDbfClose = 001H
|
||||
NmDbfCompress = 005H
|
||||
NmDbfCopyDown = 004H
|
||||
NmDbfCopyFile = 006H
|
||||
NmDbfCount = 016H
|
||||
NmDbfDescRecordRead = 017H
|
||||
NmDbfDescRecordWrite = 018H
|
||||
NmDbfEraseRead = 012H
|
||||
NmDbfExtHeaderRead = 008H
|
||||
NmDbfExtHeaderWrite = 009H
|
||||
NmDbfFileSize = 007H
|
||||
NmDbfFindRead = 014H
|
||||
NmDbfFirstRead = 00FH
|
||||
NmDbfFlush = 002H
|
||||
NmDbfLastRead = 010H
|
||||
NmDbfNextRead = 00DH
|
||||
NmDbfOpen = 000H
|
||||
NmDbfSense = 015H
|
||||
NmDbfTrash = 003H
|
||||
NmDbfUpdate = 013H
|
||||
NmDbfVersion = 00AH
|
||||
NmDevDelete = 008H
|
||||
NmDevFind = 00AH
|
||||
NmDevGetPDDAddress = 002H
|
||||
NmDevHold = 004H
|
||||
NmDevInstall = 003H
|
||||
NmDevLoadLDD = 006H
|
||||
NmDevLoadPDD = 007H
|
||||
NmDevOpenPDD = 001H
|
||||
NmDevQueryUnits = 009H
|
||||
NmDevRemove = 00BH
|
||||
NmDevResume = 005H
|
||||
NmDevVector = 00CH
|
||||
NmFilChangeDirectory = 011H
|
||||
NmFilConnect = 000H
|
||||
NmFilDelete = 006H
|
||||
NmFilExecute = 001H
|
||||
NmFilLocChanged = 014H
|
||||
NmFilLocDevice = 015H
|
||||
NmFilLocReadPdd = 016H
|
||||
NmFilMakeDirectory = 00CH
|
||||
NmFilOpenUnique = 00DH
|
||||
NmFilParse = 002H
|
||||
NmFilPathGet = 003H
|
||||
NmFilPathGetById = 010H
|
||||
NmFilPathSet = 004H
|
||||
NmFilPathTest = 005H
|
||||
NmFilRename = 007H
|
||||
NmFilSetFileDate = 013H
|
||||
NmFilSetInitialPath = 012H
|
||||
NmFilStatusDevice = 00AH
|
||||
NmFilStatusGet = 008H
|
||||
NmFilStatusSet = 009H
|
||||
NmFilStatusSystem = 00BH
|
||||
NmFilSystemAttach = 00EH
|
||||
NmFilSystemDetach = 00FH
|
||||
NmFloatACos = 004H
|
||||
NmFloatASin = 003H
|
||||
NmFloatATan = 005H
|
||||
NmFloatCos = 001H
|
||||
NmFloatExp = 006H
|
||||
NmFloatInt = 00DH
|
||||
NmFloatLn = 007H
|
||||
NmFloatLog = 008H
|
||||
NmFloatMod = 00CH
|
||||
NmFloatPow = 00AH
|
||||
NmFloatRand = 00BH
|
||||
NmFloatSin = 000H
|
||||
NmFloatSqrt = 009H
|
||||
NmFloatTan = 002H
|
||||
|
||||
NmGenVersion = 000H
|
||||
NmGenLcdType = 001H
|
||||
NmGenStartReason = 002H
|
||||
NmGenParse = 003H
|
||||
NmGenGetCountryData = 005H
|
||||
NmGenGetErrorText = 006H
|
||||
NmGenGetOsData = 007H
|
||||
NmGenDeferredMode = 008H
|
||||
NmGenNotify = 009H
|
||||
NmGenNotifyError = 00AH
|
||||
NmGenNotifyHook = 00BH
|
||||
NmGenNotifyUnHook = 00CH
|
||||
NmGenGetRamSizeInParas = 00DH
|
||||
NmGenGetCommandLine = 00EH
|
||||
NmGenGetSoundFlags = 00FH
|
||||
NmGenSetSoundFlags = 010H
|
||||
NmGenSound = 011H
|
||||
NmGenMarkActive = 012H
|
||||
NmGenMarkNonActive = 013H
|
||||
NmGenGetText = 014H
|
||||
NmGenGetNotifyState = 015H
|
||||
NmGenSetNotifyState = 016H
|
||||
NmGenGetAutoSwitchOffValue = 017H
|
||||
NmGenSetAutoSwitchOffValue = 018H
|
||||
NmGenSetRevector = 019H
|
||||
NmGenResetRevector = 01AH
|
||||
NmGenGetLanguageCode = 01BH
|
||||
NmGenGetSuffixes = 01CH
|
||||
NmGenGetAmPmText = 01DH
|
||||
NmGenSetCountryData = 01EH
|
||||
NmGenGetBatteryType = 01FH
|
||||
NmGenSetBatteryType = 020H
|
||||
NmGenEnvBufferGet = 021H
|
||||
NmGenEnvBufferSet = 022H
|
||||
NmGenEnvBufferDelete = 023H
|
||||
NmGenEnvBufferFind = 024H
|
||||
NmGenEnvStringGet = 025H
|
||||
NmGenEnvStringSet = 026H
|
||||
NmGenEnvStringDelete = 027H
|
||||
NmGenEnvStringFind = 028H
|
||||
NmGenCrc = 029H
|
||||
NmGenRomVersion = 02AH
|
||||
NmGenMaskInit = 034H
|
||||
NmGenMaskEncrypt = 035H
|
||||
NmGenMaskDecrypt = 036H
|
||||
NmGenSetOnEvents = 037H
|
||||
NmGenSetCapsLockMode = 03CH
|
||||
|
||||
NmHeapAllocateCell = 000H
|
||||
NmHeapReAllocateCell = 001H
|
||||
NmHeapAdjustCellSize = 002H
|
||||
NmHeapFreeCell = 003H
|
||||
NmHeapCellSize = 004H
|
||||
NmHeapSetGranularity = 005H
|
||||
NmHeapFreeMemory = 006H
|
||||
|
||||
NmHwComboOn = 000H
|
||||
NmHwComboOff = 001H
|
||||
NmHwPacksOn = 002H
|
||||
NmHwPacksOff = 003H
|
||||
NmHwSetA2Control1Bits = 004H
|
||||
NmHwClearA2Control1Bits = 005H
|
||||
NmHwReadA2Control1 = 006H
|
||||
NmHwWriteA2Control1 = 007H
|
||||
NmHwSetA2Control2Bits = 008H
|
||||
NmHwClearA2Control2Bits = 009H
|
||||
NmHwReadA2Control2 = 00AH
|
||||
NmHwWriteA2Control2 = 00BH
|
||||
NmHwSetA2Control3Bits = 00CH
|
||||
NmHwClearA2Control3Bits = 00DH
|
||||
NmHwReadA2Control3 = 00EH
|
||||
NmHwWriteA2Control3 = 00FH
|
||||
NmHwSelectChannel = 010H
|
||||
NmHwGetSupplyStatus = 011H
|
||||
NmHwLcdContrastDelta = 012H
|
||||
NmHwReadLcdContrast = 013H
|
||||
NmHwSwitchOff = 014H
|
||||
NmHwNullFrame = 015H
|
||||
NmHwExit = 016H
|
||||
NmHwGetCombo = 017H
|
||||
NmHwFreeCombo = 018H
|
||||
NmHwGetChannel = 019H
|
||||
NmHwFreeChannel = 01AH
|
||||
NmHwGetPsuType = 01BH
|
||||
NmHwSupplyWarnings = 01CH
|
||||
NmHwForceSupplyReading = 01DH
|
||||
NmHwGetBackLight = 01EH
|
||||
NmHwSetBackLight = 01FH
|
||||
NmHwBackLight = 020H
|
||||
NmHwComboOnInput = 021H
|
||||
NmHwSupplyInfo = 022H
|
||||
NmHwScreenSeg = 023H
|
||||
NmHwGetScreenMode = 024H
|
||||
NmHwSetScreenMode = 025H
|
||||
NmHwSetPCurrent = 026H
|
||||
NmHwSetFCurrent = 027H
|
||||
NmHwGetScanCodes = 028H
|
||||
NmHwHwGetSsdData = 029H
|
||||
NmHwResetBatteryStatus = 02AH
|
||||
NmHwEnableAutoBatReset = 02BH
|
||||
NmHwGetBatData = 02CH
|
||||
NmHwDetectSoakTestFixture = 02DH
|
||||
NmHwReLogPacks = 02EH
|
||||
NmHwSetIRPowerLevel = 02FH
|
||||
NmHwReturnTickCount = 030H
|
||||
NmHwReturnExpansionPortState = 031H
|
||||
NmHwExpansionOn = 032H
|
||||
NmHwExpansionOff = 033H
|
||||
|
||||
NmIoOpen = 000H
|
||||
NmIoAsynchronous = 000H
|
||||
NmIoAsynchronousNoError = 001H
|
||||
NmIoWithWait = 002H
|
||||
NmIoRoot = 003H
|
||||
NmIoSuper = 004H
|
||||
NmIoWaitForSignal = 005H
|
||||
NmIoWaitForStatus = 006H
|
||||
NmIoYield = 007H
|
||||
NmIoSignal = 008H
|
||||
NmIoSignalByPid = 009H
|
||||
NmIoSignalByPidNoReSched = 00AH
|
||||
NmIoAddHandler = 00BH
|
||||
NmIoRemoveHandler = 00CH
|
||||
NmIoEnableHandler = 00DH
|
||||
NmIoRequestReset = 00EH
|
||||
NmIoRequestResetCancel = 00FH
|
||||
NmIoClose = 010H
|
||||
NmIoRead = 011H
|
||||
NmIoWrite = 012H
|
||||
NmIoSeek = 013H
|
||||
NmIoKeyAndMouseWithWait = 014H
|
||||
NmIoAddApplicationHandler = 015H
|
||||
NmIoRemoveApplicationHandler = 016H
|
||||
NmIoEnableApplicationHandler = 017H
|
||||
NmIoShiftStates = 018H
|
||||
NmIoWaitForSignalNoHandler = 019H
|
||||
NmIoSignalKillAsynchronous = 01AH
|
||||
NmIoSignalKillCancel = 01BH
|
||||
NmIoNextHalfSecond = 01DH
|
||||
NmIoPlaySoundA = 01EH
|
||||
NmIoPlaySoundW = 01FH
|
||||
NmIoPlaySoundCancel = 020H
|
||||
NmIoRecordSoundA = 021H
|
||||
NmIoRecordSoundW = 022H
|
||||
NmIoRecordSoundCancel = 023H
|
||||
NmIoPlaySoundAO = 024H
|
||||
NmIoPlaySoundWO = 025H
|
||||
|
||||
NmIoSerAddHandler = 001H
|
||||
NmIoSerAttachOnOpenChan = 00DH
|
||||
NmIoSerCancelAllSignalUser = 01CH
|
||||
NmIoSerCancelIoRequest = 01BH
|
||||
NmIoSerCheckReadSi = 011H
|
||||
NmIoSerCheckWriteSi = 010H
|
||||
NmIoSerCloseTimerHandler = 008H
|
||||
NmIoSerDetachFree = 009H
|
||||
NmIoSerFree = 007H
|
||||
NmIoSerHandlerSaveError = 004H
|
||||
NmIoSerOnOpenChan = 00FH
|
||||
NmIoSerOpen = 000H
|
||||
NmIoSerOpenHandler = 005H
|
||||
NmIoSerOpenTimerHandler = 006H
|
||||
NmIoSerQueueRead = 017H
|
||||
NmIoSerQueueSuper = 019H
|
||||
NmIoSerQueueTimer = 01AH
|
||||
NmIoSerQueueWrite = 018H
|
||||
NmIoSerRemoveHandler = 002H
|
||||
NmIoSerSenseOnOpenChan = 00EH
|
||||
NmIoSerSetHandler = 003H
|
||||
NmIoSerSignalComplete = 01EH
|
||||
NmIoSerSignalCompleteOk = 01DH
|
||||
NmIoSerSignalUser = 016H
|
||||
NmIoSerSignalUserRead = 015H
|
||||
NmIoSerSignalUserReadOk = 014H
|
||||
NmIoSerSignalUserWrite = 013H
|
||||
NmIoSerSignalUserWriteOk = 012H
|
||||
NmIoSerSyncWrite = 01FH
|
||||
NmIoSerTimerCancel = 00BH
|
||||
NmIoSerTimerClose = 00CH
|
||||
NmIoSerTimerOpen = 00AH
|
||||
NmLibCopy = 008H
|
||||
NmLibCreate = 005H
|
||||
NmLibCreateByHandle = 006H
|
||||
NmLibDestroy = 007H
|
||||
NmLibFind = 003H
|
||||
NmLibHandle = 004H
|
||||
NmLibLink = 002H
|
||||
NmLibLoad = 000H
|
||||
NmLibLoadFile = 00AH
|
||||
NmLibOpen = 009H
|
||||
NmLibReClass = 00BH
|
||||
NmLibReClassByHandle = 00CH
|
||||
NmLibUnLoad = 001H
|
||||
NmLongUnsignedIntRandom = 004H
|
||||
NmMessFree = 007H
|
||||
NmMessInit = 000H
|
||||
NmMessReceiveAsynchronous = 001H
|
||||
NmMessReceiveCancel = 003H
|
||||
NmMessReceiveWithWait = 002H
|
||||
NmMessSend = 004H
|
||||
NmMessSendReceiveAsynchronous = 005H
|
||||
NmMessSendReceiveWithWait = 006H
|
||||
NmMessSignal = 008H
|
||||
NmMessSignalCancel = 009H
|
||||
NmProcCreate = 004H
|
||||
NmProcCreateTask = 005H
|
||||
NmProcFind = 00BH
|
||||
NmProcGetOwner = 010H
|
||||
NmProcGetPriority = 002H
|
||||
NmProcId = 000H
|
||||
NmProcIdByName = 001H
|
||||
NmProcKill = 008H
|
||||
NmProcNameById = 00AH
|
||||
NmProcOnTerminate = 00EH
|
||||
NmProcPanicById = 009H
|
||||
NmProcRename = 00CH
|
||||
NmProcResume = 006H
|
||||
NmProcSetPriority = 003H
|
||||
NmProcSuspend = 007H
|
||||
NmProcTerminate = 00DH
|
||||
NmProcWatchAllExits = 00FH
|
||||
NmSegAdjustSize = 006H
|
||||
NmSegClose = 004H
|
||||
NmSegCloseLockedOrDevice = 00DH
|
||||
NmSegCopyFrom = 009H
|
||||
NmSegCopyTo = 008H
|
||||
NmSegCreate = 001H
|
||||
NmSegDelete = 002H
|
||||
NmSegFind = 007H
|
||||
NmSegFreeMemory = 000H
|
||||
NmSegLock = 00AH
|
||||
NmSegOpen = 003H
|
||||
NmSegRamDiskUsed = 00CH
|
||||
NmSegSize = 005H
|
||||
NmSegUnLock = 00BH
|
||||
NmSemCreate = 000H
|
||||
NmSemDelete = 001H
|
||||
NmSemSignalMany = 004H
|
||||
NmSemSignalOnce = 003H
|
||||
NmSemSignalOnceNoReSched = 005H
|
||||
NmSemWait = 002H
|
||||
NmTimDateToDaySeconds = 007H
|
||||
NmTimDayOfWeek = 009H
|
||||
NmTimDaySecondsToDate = 006H
|
||||
NmTimDaySecondsToSystemTime = 005H
|
||||
NmTimDaysInMonth = 008H
|
||||
NmTimGetSystemTime = 002H
|
||||
NmTimNameOfDay = 00AH
|
||||
NmTimNameOfMonth = 00BH
|
||||
NmTimSetSystemTime = 003H
|
||||
NmTimSleepForTenths = 000H
|
||||
NmTimSleepForTicks = 001H
|
||||
NmTimSystemTimeToDaySeconds = 004H
|
||||
NmTimWaitAbsolute = 00CH
|
||||
NmTimWeekNumber = 00DH
|
||||
|
||||
FatalOpenConsole = -1
|
||||
FatalMathException = -2
|
||||
FatalStackCheck = -3
|
||||
FatalSignal = -4
|
||||
FatalInitIo = -5
|
||||
FatalConIo = -6
|
||||
|
||||
wserv_spec_info_version = 13
|
||||
|
||||
Datawserv_channel = 24
|
||||
@@ -0,0 +1,108 @@
|
||||
/* Release 3.00 */
|
||||
|
||||
/*-------------------------------------------------------------------------*
|
||||
* *
|
||||
* errno.h - defines variable errno and associated error codes. *
|
||||
* *
|
||||
* COPYRIGHT (C) 1989 Jensen and Partners. All Rights Reserved *
|
||||
* *
|
||||
*--------------------------------------------------------------------------*/
|
||||
#include <stdepoc.h>
|
||||
|
||||
#ifndef _ERRNO_INC_
|
||||
#define _ERRNO_INC_
|
||||
|
||||
/* Dos Error Codes */
|
||||
|
||||
#ifdef OLDERRORS
|
||||
#define EZERO 0 /* No Error */
|
||||
#define EINVFN 1 /* Invalid function code */
|
||||
#define ENOENT 2 /* File not found */
|
||||
#define ENOPATH 3 /* Path not found */
|
||||
#define EMFILE 4 /* Too many open files */
|
||||
#define EACCES 5 /* Access denied */
|
||||
#define EBADF 6 /* Invalid handle */
|
||||
#define E2BIG 7 /* Memory blocks destroyed */
|
||||
#define ENOMEM 8 /* Insufficient Memory */
|
||||
#define EINVMEM 9 /* Invalid memory block address */
|
||||
#define EINVENV 10 /* Invalid environment */
|
||||
#define EINVFMT 11 /* Invalid format */
|
||||
#define EINVACC 12 /* Invalid access code */
|
||||
#define EINVDAT 13 /* Invalid data */
|
||||
#define ENODEV 15 /* Invalid drive */
|
||||
#define ECURDIR 16 /* Attempt to remove CurDir */
|
||||
#define ENOTSAM 17 /* Not same device */
|
||||
#define ENMFILE 18 /* No more files */
|
||||
|
||||
/* RTL error codes */
|
||||
|
||||
#define EINVAL 19 /* Invalid argument */
|
||||
#define ENOTDIR 20 /* Not directory */
|
||||
#define EISDIR 21 /* Is directory */
|
||||
#define ENOEXEC 22 /* Corrupted exec file */
|
||||
#define EMLINK 32 /* Cross-device link */
|
||||
|
||||
#define EDOM 33 /* Math argument */
|
||||
#define ERANGE 34 /* Result too large */
|
||||
#define EDEADLOCK 36 /* file locking deadlock */
|
||||
#define EEXIST 80 /* File exists MSDOS 3.0 + */
|
||||
#define ENOSPC -1 /* UNIX - not in MSDOS */
|
||||
#else
|
||||
#define EZERO 0 /* No Error */
|
||||
#define ENOENT (-33) /* File not found */
|
||||
#define ENOPATH (-42) /* Path not found */
|
||||
#define EMFILE (-18) /* Too many open files */
|
||||
#define EACCES (-39) /* Access denied */
|
||||
#define EBADF (-15) /* Invalid handle */
|
||||
#define E2BIG (-6) /* Memory blocks destroyed */
|
||||
#define ENOMEM (-10) /* Insufficient Memory */
|
||||
#define ENODEV (-41) /* Invalid drive */
|
||||
#define ECURDIR (-9) /* Attempt to remove CurDir */
|
||||
#define ENMFILE (-36) /* No more files */
|
||||
#define ENOSPC (-37) /* Disk full */
|
||||
|
||||
/* RTL error codes */
|
||||
|
||||
#define EINVAL (-2) /* Invalid argument */
|
||||
#define ENOEXEC (-16) /* Corrupted exec file */
|
||||
#define EMLINK (-66) /* Cross-device link */
|
||||
|
||||
#define EDOM (-2) /* Math argument */
|
||||
#define ERANGE (-7) /* Result too large */
|
||||
#define EDEADLOCK (-40) /* file locking deadlock */
|
||||
#define EEXIST (-32) /* File exists MSDOS 3.0 + */
|
||||
|
||||
#define ENOTSAM (-1) /* Not same device */
|
||||
#define ENOTDIR (-1) /* Not directory */
|
||||
#define EISDIR (-1) /* Is directory */
|
||||
#define EINVFN (-1) /* Invalid function code */
|
||||
#define EINVMEM (-1) /* Invalid memory block address */
|
||||
#define EINVENV (-1) /* Invalid environment */
|
||||
#define EINVFMT (-1) /* Invalid format */
|
||||
#define EINVACC (-1) /* Invalid access code */
|
||||
#define EINVDAT (-1) /* Invalid data */
|
||||
#endif
|
||||
|
||||
#define EFAULT (-1) /* Unknown error */
|
||||
#define EPERM (-1) /* UNIX - not in MSDOS */
|
||||
#define ESRCH (-1) /* UNIX - not in MSDOS */
|
||||
#define EINTR (-1) /* UNIX - not in MSDOS */
|
||||
#define EIO (-1) /* UNIX - not in MSDOS */
|
||||
#define ENXIO (-1) /* UNIX - not in MSDOS */
|
||||
#define ECHILD (-1) /* UNIX - not in MSDOS */
|
||||
#define EAGAIN (-1) /* UNIX - not in MSDOS */
|
||||
#define ENOTBLK (-1) /* UNIX - not in MSDOS */
|
||||
#define EBUSY (-1) /* UNIX - not in MSDOS */
|
||||
#define ENFILE (-1) /* UNIX - not in MSDOS */
|
||||
#define ENOTTY (-1) /* UNIX - not in MSDOS */
|
||||
#define ETXTBSY (-1) /* UNIX - not in MSDOS */
|
||||
#define EFBIG (-1) /* UNIX - not in MSDOS */
|
||||
#define ESPIPE (-1) /* UNIX - not in MSDOS */
|
||||
#define EROFS (-1) /* UNIX - not in MSDOS */
|
||||
#define EPIPE (-1) /* UNIX - not in MSDOS */
|
||||
#define EUCLEAN (-1) /* UNIX - not in MSDOS */
|
||||
|
||||
extern int _doserrno; /* global DOS error variable */
|
||||
extern int errno; /* global error variable */
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,30 @@
|
||||
/* Generated by Ctran from evaldlg.cl */
|
||||
#define EVALDLG_G
|
||||
#ifndef DLGBOX_G
|
||||
#include <dlgbox.g>
|
||||
#endif
|
||||
#ifndef P_SYS_H
|
||||
#include <p_sys.h>
|
||||
#endif
|
||||
#ifndef H_EVAL_H
|
||||
#include <h_eval.h>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_EVALDLG 58
|
||||
/* Method Numbers */
|
||||
/* Constants for evaldlg */
|
||||
#define EVALDLG_CALCULATOR_EVALUATOR 0
|
||||
#define EVALDLG_GENERAL_EVALUATOR 1
|
||||
/* Property of evaldlg */
|
||||
typedef struct {
|
||||
short int isEval;
|
||||
EXTENDED_MEM_VALUES eMem;
|
||||
} PRS_EVALDLG;
|
||||
typedef struct pr_evaldlg
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_DLGCHAIN dlgchain;
|
||||
PRS_DLGBOX dlgbox;
|
||||
PRS_EVALDLG evaldlg;
|
||||
} PR_EVALDLG;
|
||||
@@ -0,0 +1,29 @@
|
||||
; Generated by Ctran from evaldlg.cl
|
||||
EVALDLG_ING equ 1
|
||||
IFNDEF DLGBOX_ING
|
||||
INCLUDE ..\inc\DLGBOX.ING
|
||||
ENDIF
|
||||
IFNDEF P_SYS_INC
|
||||
INCLUDE ..\inc\P_SYS.INC
|
||||
ENDIF
|
||||
IFNDEF H_EVAL_INC
|
||||
INCLUDE ..\inc\H_EVAL.INC
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_EVALDLG equ 58
|
||||
; Method Numbers
|
||||
; Constants for evaldlg
|
||||
EVALDLG_CALCULATOR_EVALUATOR equ (0)
|
||||
EVALDLG_GENERAL_EVALUATOR equ (1)
|
||||
; Property of evaldlg
|
||||
PRS_EVALDLG struc
|
||||
EvaldlgIsEval dw ?
|
||||
EvaldlgEMem EXTENDED_MEM_VALUES <>
|
||||
PRS_EVALDLG ends
|
||||
PR_EVALDLG struc
|
||||
EvaldlgRoot PRS_ROOT <>
|
||||
EvaldlgWin PRS_WIN <>
|
||||
EvaldlgDlgchain PRS_DLGCHAIN <>
|
||||
EvaldlgDlgbox PRS_DLGBOX <>
|
||||
EvaldlgEvaldlg PRS_EVALDLG <>
|
||||
PR_EVALDLG ends
|
||||
@@ -0,0 +1,348 @@
|
||||
/* Generated by Ctran from factive.cat */
|
||||
#define FACTIVE_G
|
||||
#ifndef APPMAN_G
|
||||
#include <appman.g>
|
||||
#endif
|
||||
#ifndef P_FILE_H
|
||||
#include <p_file.h>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_FACTIVE 25
|
||||
#define C_FSCAN 26
|
||||
#define C_FNODE 27
|
||||
#define C_PNODE 28
|
||||
#define C_PSELVAR 29
|
||||
#define C_PSEL 30
|
||||
#define C_FCASY 31
|
||||
#define C_FCSYNC 32
|
||||
#define C_FMMK 33
|
||||
#define C_FMSRC 34
|
||||
#define C_FMTARG 35
|
||||
#define C_FMFMT 36
|
||||
#define C_FMSCAN 37
|
||||
#define C_FMAN 38
|
||||
#define C_LOCS 39
|
||||
/* Method Numbers */
|
||||
#define O_FMAN_DELETE 4
|
||||
#define O_FMAN_ERROR 17
|
||||
#define O_FS_MATCHNAME 7
|
||||
#define O_LS_MATCHNAME 1
|
||||
#define O_FS_DIRNAME 10
|
||||
#define O_PS_SET_PATH 16
|
||||
#define O_FMAN_NAME 10
|
||||
#define O_FMAN_FORMAT 9
|
||||
#define O_PS_SETTAG 20
|
||||
#define O_FMAN_ATTRIB 12
|
||||
#define O_FS_END_DIRLIST 12
|
||||
#define O_FC_REQUEST_COMP 9
|
||||
#define O_FMAN_FILEEXIST 16
|
||||
#define O_FN_LIST 7
|
||||
#define O_FMAN_RENAME 5
|
||||
#define O_FMAN_UPDATE 15
|
||||
#define O_FMAN_NEWNAME 14
|
||||
#define O_PS_SELECT_DIRENTRY 18
|
||||
#define O_FMAN_COMPLETE 13
|
||||
#define O_LS_SCAN 2
|
||||
#define O_PS_DRIVES 19
|
||||
#define O_FS_FSCAN 8
|
||||
#define O_FMAN_INFO 11
|
||||
#define O_PS_NEW_LIST 23
|
||||
#define O_FC_OPEN 8
|
||||
#define O_PS_SENSE_FILENAME 17
|
||||
#define O_PS_GETTAG 21
|
||||
#define O_FMAN_COPY 3
|
||||
#define O_PS_DESCEND_PATH 15
|
||||
#define O_FMAN_MAKE 6
|
||||
#define O_FMAN_CANCEL 2
|
||||
#define O_PS_ASCEND_PATH 14
|
||||
#define O_PS_ORDER 22
|
||||
#define O_FN_END_LIST 8
|
||||
#define O_FMAN_REMOVE 7
|
||||
#define O_FN_NODENAME 9
|
||||
#define O_FC_WRITE 7
|
||||
#define O_FS_FILENAME 11
|
||||
#define O_PS_GET_FILE 13
|
||||
#define O_LS_FILENAME 3
|
||||
#define O_FMAN_INIT 1
|
||||
#define O_FA_CLOSE 6
|
||||
#define O_FMAN_COPYDEV 8
|
||||
#define O_FS_FSCAN_END 9
|
||||
/* Property of factive */
|
||||
typedef struct {
|
||||
unsigned char *owner;
|
||||
} PRS_FACTIVE;
|
||||
typedef struct pr_factive
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
PRS_FACTIVE factive;
|
||||
} PR_FACTIVE;
|
||||
/* Constants for fscan */
|
||||
#define FS_WRITABLE P_FAWRITE
|
||||
#define FS_HIDDEN P_FAHIDDEN
|
||||
#define FS_SYSTEM P_FASYSTEM
|
||||
#define FS_DIRECTORIES P_FADIR
|
||||
#define FS_MODIFIED P_FAMOD
|
||||
#define FS_ALL_FILES P_FAREAD
|
||||
#define FS_FILE_TYPE (FS_HIDDEN|FS_SYSTEM)
|
||||
#define FS_INCLUDE_SUBDIRECTORIES 0x1000
|
||||
#define FS_INCLUDE 0x2000
|
||||
#define FS_END_DIRLIST 0x4000
|
||||
#define FS_PARSE_NAME 0x8000
|
||||
#define FS_MAX_DIRLEVELS 32
|
||||
/* Property of fscan */
|
||||
typedef struct {
|
||||
unsigned short int flags;
|
||||
unsigned short int index;
|
||||
unsigned char *pname;
|
||||
unsigned char *match;
|
||||
unsigned char delim[2];
|
||||
P_INFO finfo;
|
||||
P_FPARSE crk;
|
||||
unsigned char *pcbarr[FS_MAX_DIRLEVELS];
|
||||
unsigned char name[P_FNAMESIZE];
|
||||
} PRS_FSCAN;
|
||||
typedef struct pr_fscan
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
PRS_FACTIVE factive;
|
||||
PRS_FSCAN fscan;
|
||||
} PR_FSCAN;
|
||||
/* Constants for fnode */
|
||||
#define FNODE_NODE_ARRAY 0x01
|
||||
#define FNODE_DEVICE_ARRAY 0x02
|
||||
#define FNODE_LOCAL_ONLY 0x04
|
||||
/* Property of fnode */
|
||||
typedef struct {
|
||||
unsigned short int flags;
|
||||
unsigned char *pname;
|
||||
unsigned char *oldname;
|
||||
unsigned char *pcb;
|
||||
} PRS_FNODE;
|
||||
typedef struct pr_fnode
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
PRS_FACTIVE factive;
|
||||
PRS_FNODE fnode;
|
||||
} PR_FNODE;
|
||||
/* Property of pnode */
|
||||
typedef struct pr_pnode
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
PRS_FACTIVE factive;
|
||||
PRS_FNODE fnode;
|
||||
} PR_PNODE;
|
||||
/* Constants for pselvar */
|
||||
#define PSEL_FLAG_TAG 0x1
|
||||
#define PSEL_ORDER_NAME 0
|
||||
#define PSEL_ORDER_TIME 1
|
||||
#define PSEL_ORDER_DATE 2
|
||||
#define PSEL_ORDER_SIZE 3
|
||||
#define PSEL_ORDER_EXT 4
|
||||
/* Types for pselvar */
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int flags;
|
||||
unsigned short int namlen;
|
||||
P_INFO info;
|
||||
unsigned char name[P_FNAMESIZE];
|
||||
} PSEL_REC;
|
||||
/* Property of pselvar */
|
||||
typedef struct pr_pselvar
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_VAROOT varoot;
|
||||
PRS_VAFIX vafix;
|
||||
PRS_VAFLAT vaflat;
|
||||
} PR_PSELVAR;
|
||||
/* Constants for psel */
|
||||
#define PSEL_RESET_DIR_ARRAY 0x01
|
||||
#define PSEL_RESET_FILE_ARRAY 0x02
|
||||
#define PSEL_RESET_FSPEC 0x04
|
||||
#define PSEL_DEVICE_ARRAY 0x10
|
||||
#define PSEL_DIR_ARRAY 0x20
|
||||
#define PSEL_FILE_ARRAY 0x40
|
||||
#define PSEL_DESCEND 0x80
|
||||
#define PSEL_ASCEND 0x100
|
||||
#define PSEL_SETPATH 0x200
|
||||
#define PSEL_INIT 0x400
|
||||
#define PSEL_SELDIR 0x800
|
||||
#define PSEL_ANOTHER_CMD 0x1000
|
||||
#define PSEL_GENERATE_DEF 0x2000
|
||||
#define PSEL_QUEUED_CMD 0x4000
|
||||
#define PSEL_CURRENTLY_BUSY (0x100|0x80|0x400|0x200|0x800)
|
||||
#define PSEL_SET_TAG -1
|
||||
#define PSEL_CLEAR_TAG 0
|
||||
#define PSEL_TOGGLE_TAG 1
|
||||
/* Property of psel */
|
||||
typedef struct {
|
||||
PR_PSELVAR *pfile;
|
||||
PR_VASTR *pdir;
|
||||
PR_PNODE *pnode;
|
||||
unsigned short int dirent;
|
||||
unsigned short int flags;
|
||||
unsigned short int asccnt;
|
||||
unsigned short int dirnum;
|
||||
unsigned char *setpath;
|
||||
short int builderr;
|
||||
P_FPARSE fck;
|
||||
char fspec[P_FNAMESIZE];
|
||||
} PRS_PSEL;
|
||||
typedef struct pr_psel
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
PRS_FACTIVE factive;
|
||||
PRS_FSCAN fscan;
|
||||
PRS_PSEL psel;
|
||||
} PR_PSEL;
|
||||
/* Constants for fcasy */
|
||||
#define FCOPY_DISP_SFTYPE 0x01
|
||||
#define FCOPY_DISP_SFSIZE 0x02
|
||||
#define FCOPY_DISP_SFDATE 0x04
|
||||
#define FCOPY_DISP_SFNAME 0x08
|
||||
#define FCOPY_DISP_RFTYPE 0x10
|
||||
#define FCOPY_DISP_RFSIZE 0x20
|
||||
#define FCOPY_DISP_RFDATE 0x40
|
||||
#define FCOPY_DISP_RFNAME 0x80
|
||||
#define FCOPY_DISP_BLKSIZ 0x100
|
||||
#define FCOPY_DISP_BLKNO 0x200
|
||||
#define FCOPY_DISP_PROTOCOL 0x400
|
||||
#define FCASY_READ_QUEUED 0x01
|
||||
#define FCASY_WRITE_QUEUED 0x02
|
||||
/* Types for fcasy */
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int flags;
|
||||
unsigned short int protocol;
|
||||
unsigned short int blksiz;
|
||||
unsigned short int blkno;
|
||||
unsigned short int sftype;
|
||||
unsigned short int rftype;
|
||||
unsigned long int sfsize;
|
||||
unsigned long int rfsize;
|
||||
unsigned long int sfdate;
|
||||
unsigned long int rfdate;
|
||||
unsigned char *sfname;
|
||||
unsigned char *rfname;
|
||||
} FCOPY_DISP;
|
||||
/* Property of fcasy */
|
||||
typedef struct {
|
||||
unsigned char *recvname;
|
||||
unsigned short int flags;
|
||||
} PRS_FCASY;
|
||||
typedef struct pr_fcasy
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
PRS_FACTIVE factive;
|
||||
PRS_FCASY fcasy;
|
||||
} PR_FCASY;
|
||||
/* Property of fcsync */
|
||||
typedef struct pr_fcsync
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
PRS_FACTIVE factive;
|
||||
PRS_FCASY fcasy;
|
||||
} PR_FCSYNC;
|
||||
/* Property of fmmk */
|
||||
typedef struct pr_fmmk
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
PRS_FACTIVE factive;
|
||||
} PR_FMMK;
|
||||
/* Property of fmsrc */
|
||||
typedef struct pr_fmsrc
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
PRS_FACTIVE factive;
|
||||
PRS_FCASY fcasy;
|
||||
} PR_FMSRC;
|
||||
/* Property of fmtarg */
|
||||
typedef struct pr_fmtarg
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
PRS_FACTIVE factive;
|
||||
PRS_FCASY fcasy;
|
||||
} PR_FMTARG;
|
||||
/* Constants for fmfmt */
|
||||
#define FMFMT_NAME 0x01
|
||||
/* Property of fmfmt */
|
||||
typedef struct {
|
||||
unsigned short int rdword;
|
||||
unsigned short int rdlen;
|
||||
unsigned short int flags;
|
||||
} PRS_FMFMT;
|
||||
typedef struct pr_fmfmt
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
PRS_FACTIVE factive;
|
||||
PRS_FMFMT fmfmt;
|
||||
} PR_FMFMT;
|
||||
/* Property of fmscan */
|
||||
typedef struct pr_fmscan
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
PRS_FACTIVE factive;
|
||||
PRS_FSCAN fscan;
|
||||
} PR_FMSCAN;
|
||||
/* Constants for fman */
|
||||
#define FMAN_READ_SIZE 0x800
|
||||
#define FMAN_COPYING 0
|
||||
#define FMAN_DELETE 1
|
||||
#define FMAN_RENAME 2
|
||||
#define FMAN_MAKE 3
|
||||
#define FMAN_REMOVE 4
|
||||
#define FMAN_FORMAT 5
|
||||
#define FMAN_NAME 6
|
||||
#define FMAN_ATTRIB 7
|
||||
/* Property of fman */
|
||||
typedef struct {
|
||||
PR_FMSRC *srcfile;
|
||||
PR_FMTARG *targfile;
|
||||
PR_FMSCAN *fmscan;
|
||||
PR_FMMK *fmmk;
|
||||
PR_FMFMT *fmfmt;
|
||||
unsigned short int action;
|
||||
unsigned short int mode;
|
||||
unsigned short int srclen;
|
||||
FCOPY_DISP dispinfo;
|
||||
unsigned char targname[P_FNAMESIZE];
|
||||
unsigned char wildsrcname[P_FNAMESIZE];
|
||||
unsigned char wildtargname[P_FNAMESIZE];
|
||||
unsigned char buf[FMAN_READ_SIZE];
|
||||
} PRS_FMAN;
|
||||
typedef struct pr_fman
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_FMAN fman;
|
||||
} PR_FMAN;
|
||||
/* Constants for locs */
|
||||
#define LOCS_FLG_ROM 0x1000
|
||||
#define LOCS_FLG_LOC 0x2000
|
||||
#define LOCS_FLG_ROOT (0x4000|LOCS_FLG_LOC)
|
||||
#define LOCS_FLG_ROOT_ONLY 0x4000
|
||||
/* Property of locs */
|
||||
typedef struct {
|
||||
unsigned short int flags;
|
||||
unsigned char *pcb;
|
||||
unsigned char *pname;
|
||||
unsigned char *match;
|
||||
P_INFO info;
|
||||
unsigned char name[P_FNAMESIZE];
|
||||
unsigned char wildname[P_FNAMESIZE];
|
||||
} PRS_LOCS;
|
||||
typedef struct pr_locs
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_LOCS locs;
|
||||
} PR_LOCS;
|
||||
@@ -0,0 +1,331 @@
|
||||
; Generated by Ctran from factive.cat
|
||||
FACTIVE_ING equ 1
|
||||
IFNDEF APPMAN_ING
|
||||
INCLUDE ..\inc\APPMAN.ING
|
||||
ENDIF
|
||||
IFNDEF P_FILE_INC
|
||||
INCLUDE ..\inc\P_FILE.INC
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_FACTIVE equ 25
|
||||
C_FSCAN equ 26
|
||||
C_FNODE equ 27
|
||||
C_PNODE equ 28
|
||||
C_PSELVAR equ 29
|
||||
C_PSEL equ 30
|
||||
C_FCASY equ 31
|
||||
C_FCSYNC equ 32
|
||||
C_FMMK equ 33
|
||||
C_FMSRC equ 34
|
||||
C_FMTARG equ 35
|
||||
C_FMFMT equ 36
|
||||
C_FMSCAN equ 37
|
||||
C_FMAN equ 38
|
||||
C_LOCS equ 39
|
||||
; Method Numbers
|
||||
O_FMAN_DELETE equ 4
|
||||
O_FMAN_ERROR equ 17
|
||||
O_FS_MATCHNAME equ 7
|
||||
O_LS_MATCHNAME equ 1
|
||||
O_FS_DIRNAME equ 10
|
||||
O_PS_SET_PATH equ 16
|
||||
O_FMAN_NAME equ 10
|
||||
O_FMAN_FORMAT equ 9
|
||||
O_PS_SETTAG equ 20
|
||||
O_FMAN_ATTRIB equ 12
|
||||
O_FS_END_DIRLIST equ 12
|
||||
O_FC_REQUEST_COMP equ 9
|
||||
O_FMAN_FILEEXIST equ 16
|
||||
O_FN_LIST equ 7
|
||||
O_FMAN_RENAME equ 5
|
||||
O_FMAN_UPDATE equ 15
|
||||
O_FMAN_NEWNAME equ 14
|
||||
O_PS_SELECT_DIRENTRY equ 18
|
||||
O_FMAN_COMPLETE equ 13
|
||||
O_LS_SCAN equ 2
|
||||
O_PS_DRIVES equ 19
|
||||
O_FS_FSCAN equ 8
|
||||
O_FMAN_INFO equ 11
|
||||
O_PS_NEW_LIST equ 23
|
||||
O_FC_OPEN equ 8
|
||||
O_PS_SENSE_FILENAME equ 17
|
||||
O_PS_GETTAG equ 21
|
||||
O_FMAN_COPY equ 3
|
||||
O_PS_DESCEND_PATH equ 15
|
||||
O_FMAN_MAKE equ 6
|
||||
O_FMAN_CANCEL equ 2
|
||||
O_PS_ASCEND_PATH equ 14
|
||||
O_PS_ORDER equ 22
|
||||
O_FN_END_LIST equ 8
|
||||
O_FMAN_REMOVE equ 7
|
||||
O_FN_NODENAME equ 9
|
||||
O_FC_WRITE equ 7
|
||||
O_FS_FILENAME equ 11
|
||||
O_PS_GET_FILE equ 13
|
||||
O_LS_FILENAME equ 3
|
||||
O_FMAN_INIT equ 1
|
||||
O_FA_CLOSE equ 6
|
||||
O_FMAN_COPYDEV equ 8
|
||||
O_FS_FSCAN_END equ 9
|
||||
; Property of factive
|
||||
PRS_FACTIVE struc
|
||||
FactiveOwner dw ?
|
||||
PRS_FACTIVE ends
|
||||
PR_FACTIVE struc
|
||||
FactiveRoot PRS_ROOT <>
|
||||
FactiveActive PRS_ACTIVE <>
|
||||
FactiveFactive PRS_FACTIVE <>
|
||||
PR_FACTIVE ends
|
||||
; Constants for fscan
|
||||
FS_WRITABLE equ (P_FAWRITE)
|
||||
FS_HIDDEN equ (P_FAHIDDEN)
|
||||
FS_SYSTEM equ (P_FASYSTEM)
|
||||
FS_DIRECTORIES equ (P_FADIR)
|
||||
FS_MODIFIED equ (P_FAMOD)
|
||||
FS_ALL_FILES equ (P_FAREAD)
|
||||
FS_FILE_TYPE equ (FS_HIDDEN or FS_SYSTEM)
|
||||
FS_INCLUDE_SUBDIRECTORIES equ (01000h)
|
||||
FS_INCLUDE equ (02000h)
|
||||
FS_END_DIRLIST equ (04000h)
|
||||
FS_PARSE_NAME equ (08000h)
|
||||
FS_MAX_DIRLEVELS equ (32)
|
||||
; Property of fscan
|
||||
PRS_FSCAN struc
|
||||
FscanFlags dw ?
|
||||
FscanIndex dw ?
|
||||
FscanPname dw ?
|
||||
FscanMatch dw ?
|
||||
FscanDelim db (1) * 2 dup (?)
|
||||
FscanFinfo P_INFO <>
|
||||
FscanCrk P_FPARSE <>
|
||||
FscanPcbarr dw FS_MAX_DIRLEVELS dup (?)
|
||||
FscanName db (1) * P_FNAMESIZE dup (?)
|
||||
PRS_FSCAN ends
|
||||
PR_FSCAN struc
|
||||
FscanRoot PRS_ROOT <>
|
||||
FscanActive PRS_ACTIVE <>
|
||||
FscanFactive PRS_FACTIVE <>
|
||||
FscanFscan PRS_FSCAN <>
|
||||
PR_FSCAN ends
|
||||
; Constants for fnode
|
||||
FNODE_NODE_ARRAY equ (001h)
|
||||
FNODE_DEVICE_ARRAY equ (002h)
|
||||
FNODE_LOCAL_ONLY equ (004h)
|
||||
; Property of fnode
|
||||
PRS_FNODE struc
|
||||
FnodeFlags dw ?
|
||||
FnodePname dw ?
|
||||
FnodeOldname dw ?
|
||||
FnodePcb dw ?
|
||||
PRS_FNODE ends
|
||||
PR_FNODE struc
|
||||
FnodeRoot PRS_ROOT <>
|
||||
FnodeActive PRS_ACTIVE <>
|
||||
FnodeFactive PRS_FACTIVE <>
|
||||
FnodeFnode PRS_FNODE <>
|
||||
PR_FNODE ends
|
||||
; Property of pnode
|
||||
PR_PNODE struc
|
||||
PnodeRoot PRS_ROOT <>
|
||||
PnodeActive PRS_ACTIVE <>
|
||||
PnodeFactive PRS_FACTIVE <>
|
||||
PnodeFnode PRS_FNODE <>
|
||||
PR_PNODE ends
|
||||
; Constants for pselvar
|
||||
PSEL_FLAG_TAG equ (01h)
|
||||
PSEL_ORDER_NAME equ (0)
|
||||
PSEL_ORDER_TIME equ (1)
|
||||
PSEL_ORDER_DATE equ (2)
|
||||
PSEL_ORDER_SIZE equ (3)
|
||||
PSEL_ORDER_EXT equ (4)
|
||||
; Types for pselvar
|
||||
PSEL_REC struc
|
||||
PSEL_RECFlags dw ?
|
||||
PSEL_RECNamlen dw ?
|
||||
PSEL_RECInfo P_INFO <>
|
||||
PSEL_RECName db (1) * P_FNAMESIZE dup (?)
|
||||
PSEL_REC ends
|
||||
; Property of pselvar
|
||||
PR_PSELVAR struc
|
||||
PselvarRoot PRS_ROOT <>
|
||||
PselvarVaroot PRS_VAROOT <>
|
||||
PselvarVafix PRS_VAFIX <>
|
||||
PselvarVaflat PRS_VAFLAT <>
|
||||
PR_PSELVAR ends
|
||||
; Constants for psel
|
||||
PSEL_RESET_DIR_ARRAY equ (001h)
|
||||
PSEL_RESET_FILE_ARRAY equ (002h)
|
||||
PSEL_RESET_FSPEC equ (004h)
|
||||
PSEL_DEVICE_ARRAY equ (010h)
|
||||
PSEL_DIR_ARRAY equ (020h)
|
||||
PSEL_FILE_ARRAY equ (040h)
|
||||
PSEL_DESCEND equ (080h)
|
||||
PSEL_ASCEND equ (0100h)
|
||||
PSEL_SETPATH equ (0200h)
|
||||
PSEL_INIT equ (0400h)
|
||||
PSEL_SELDIR equ (0800h)
|
||||
PSEL_ANOTHER_CMD equ (01000h)
|
||||
PSEL_GENERATE_DEF equ (02000h)
|
||||
PSEL_QUEUED_CMD equ (04000h)
|
||||
PSEL_CURRENTLY_BUSY equ (0100h or 080h or 0400h or 0200h or 0800h)
|
||||
PSEL_SET_TAG equ (-1)
|
||||
PSEL_CLEAR_TAG equ (0)
|
||||
PSEL_TOGGLE_TAG equ (1)
|
||||
; Property of psel
|
||||
PRS_PSEL struc
|
||||
PselPfile dw ?
|
||||
PselPdir dw ?
|
||||
PselPnode dw ?
|
||||
PselDirent dw ?
|
||||
PselFlags dw ?
|
||||
PselAsccnt dw ?
|
||||
PselDirnum dw ?
|
||||
PselSetpath dw ?
|
||||
PselBuilderr dw ?
|
||||
PselFck P_FPARSE <>
|
||||
PselFspec db (1) * P_FNAMESIZE dup (?)
|
||||
PRS_PSEL ends
|
||||
PR_PSEL struc
|
||||
PselRoot PRS_ROOT <>
|
||||
PselActive PRS_ACTIVE <>
|
||||
PselFactive PRS_FACTIVE <>
|
||||
PselFscan PRS_FSCAN <>
|
||||
PselPsel PRS_PSEL <>
|
||||
PR_PSEL ends
|
||||
; Constants for fcasy
|
||||
FCOPY_DISP_SFTYPE equ (001h)
|
||||
FCOPY_DISP_SFSIZE equ (002h)
|
||||
FCOPY_DISP_SFDATE equ (004h)
|
||||
FCOPY_DISP_SFNAME equ (008h)
|
||||
FCOPY_DISP_RFTYPE equ (010h)
|
||||
FCOPY_DISP_RFSIZE equ (020h)
|
||||
FCOPY_DISP_RFDATE equ (040h)
|
||||
FCOPY_DISP_RFNAME equ (080h)
|
||||
FCOPY_DISP_BLKSIZ equ (0100h)
|
||||
FCOPY_DISP_BLKNO equ (0200h)
|
||||
FCOPY_DISP_PROTOCOL equ (0400h)
|
||||
FCASY_READ_QUEUED equ (001h)
|
||||
FCASY_WRITE_QUEUED equ (002h)
|
||||
; Types for fcasy
|
||||
FCOPY_DISP struc
|
||||
FCOPY_DISPFlags dw ?
|
||||
FCOPY_DISPProtocol dw ?
|
||||
FCOPY_DISPBlksiz dw ?
|
||||
FCOPY_DISPBlkno dw ?
|
||||
FCOPY_DISPSftype dw ?
|
||||
FCOPY_DISPRftype dw ?
|
||||
FCOPY_DISPSfsize dd ?
|
||||
FCOPY_DISPRfsize dd ?
|
||||
FCOPY_DISPSfdate dd ?
|
||||
FCOPY_DISPRfdate dd ?
|
||||
FCOPY_DISPSfname dw ?
|
||||
FCOPY_DISPRfname dw ?
|
||||
FCOPY_DISP ends
|
||||
; Property of fcasy
|
||||
PRS_FCASY struc
|
||||
FcasyRecvname dw ?
|
||||
FcasyFlags dw ?
|
||||
PRS_FCASY ends
|
||||
PR_FCASY struc
|
||||
FcasyRoot PRS_ROOT <>
|
||||
FcasyActive PRS_ACTIVE <>
|
||||
FcasyFactive PRS_FACTIVE <>
|
||||
FcasyFcasy PRS_FCASY <>
|
||||
PR_FCASY ends
|
||||
; Property of fcsync
|
||||
PR_FCSYNC struc
|
||||
FcsyncRoot PRS_ROOT <>
|
||||
FcsyncActive PRS_ACTIVE <>
|
||||
FcsyncFactive PRS_FACTIVE <>
|
||||
FcsyncFcasy PRS_FCASY <>
|
||||
PR_FCSYNC ends
|
||||
; Property of fmmk
|
||||
PR_FMMK struc
|
||||
FmmkRoot PRS_ROOT <>
|
||||
FmmkActive PRS_ACTIVE <>
|
||||
FmmkFactive PRS_FACTIVE <>
|
||||
PR_FMMK ends
|
||||
; Property of fmsrc
|
||||
PR_FMSRC struc
|
||||
FmsrcRoot PRS_ROOT <>
|
||||
FmsrcActive PRS_ACTIVE <>
|
||||
FmsrcFactive PRS_FACTIVE <>
|
||||
FmsrcFcasy PRS_FCASY <>
|
||||
PR_FMSRC ends
|
||||
; Property of fmtarg
|
||||
PR_FMTARG struc
|
||||
FmtargRoot PRS_ROOT <>
|
||||
FmtargActive PRS_ACTIVE <>
|
||||
FmtargFactive PRS_FACTIVE <>
|
||||
FmtargFcasy PRS_FCASY <>
|
||||
PR_FMTARG ends
|
||||
; Constants for fmfmt
|
||||
FMFMT_NAME equ (001h)
|
||||
; Property of fmfmt
|
||||
PRS_FMFMT struc
|
||||
FmfmtRdword dw ?
|
||||
FmfmtRdlen dw ?
|
||||
FmfmtFlags dw ?
|
||||
PRS_FMFMT ends
|
||||
PR_FMFMT struc
|
||||
FmfmtRoot PRS_ROOT <>
|
||||
FmfmtActive PRS_ACTIVE <>
|
||||
FmfmtFactive PRS_FACTIVE <>
|
||||
FmfmtFmfmt PRS_FMFMT <>
|
||||
PR_FMFMT ends
|
||||
; Property of fmscan
|
||||
PR_FMSCAN struc
|
||||
FmscanRoot PRS_ROOT <>
|
||||
FmscanActive PRS_ACTIVE <>
|
||||
FmscanFactive PRS_FACTIVE <>
|
||||
FmscanFscan PRS_FSCAN <>
|
||||
PR_FMSCAN ends
|
||||
; Constants for fman
|
||||
FMAN_READ_SIZE equ (0800h)
|
||||
FMAN_COPYING equ (0)
|
||||
FMAN_DELETE equ (1)
|
||||
FMAN_RENAME equ (2)
|
||||
FMAN_MAKE equ (3)
|
||||
FMAN_REMOVE equ (4)
|
||||
FMAN_FORMAT equ (5)
|
||||
FMAN_NAME equ (6)
|
||||
FMAN_ATTRIB equ (7)
|
||||
; Property of fman
|
||||
PRS_FMAN struc
|
||||
FmanSrcfile dw ?
|
||||
FmanTargfile dw ?
|
||||
FmanFmscan dw ?
|
||||
FmanFmmk dw ?
|
||||
FmanFmfmt dw ?
|
||||
FmanAction dw ?
|
||||
FmanMode dw ?
|
||||
FmanSrclen dw ?
|
||||
FmanDispinfo FCOPY_DISP <>
|
||||
FmanTargname db (1) * P_FNAMESIZE dup (?)
|
||||
FmanWildsrcname db (1) * P_FNAMESIZE dup (?)
|
||||
FmanWildtargname db (1) * P_FNAMESIZE dup (?)
|
||||
FmanBuf db (1) * FMAN_READ_SIZE dup (?)
|
||||
PRS_FMAN ends
|
||||
PR_FMAN struc
|
||||
FmanRoot PRS_ROOT <>
|
||||
FmanFman PRS_FMAN <>
|
||||
PR_FMAN ends
|
||||
; Constants for locs
|
||||
LOCS_FLG_ROM equ (01000h)
|
||||
LOCS_FLG_LOC equ (02000h)
|
||||
LOCS_FLG_ROOT equ (04000h or LOCS_FLG_LOC)
|
||||
LOCS_FLG_ROOT_ONLY equ (04000h)
|
||||
; Property of locs
|
||||
PRS_LOCS struc
|
||||
LocsFlags dw ?
|
||||
LocsPcb dw ?
|
||||
LocsPname dw ?
|
||||
LocsMatch dw ?
|
||||
LocsInfo P_INFO <>
|
||||
LocsName db (1) * P_FNAMESIZE dup (?)
|
||||
LocsWildname db (1) * P_FNAMESIZE dup (?)
|
||||
PRS_LOCS ends
|
||||
PR_LOCS struc
|
||||
LocsRoot PRS_ROOT <>
|
||||
LocsLocs PRS_LOCS <>
|
||||
PR_LOCS ends
|
||||
@@ -0,0 +1,32 @@
|
||||
#define P_FCHG_UNKNOWN 0
|
||||
#define P_FCHG_NOTCHARGING 1
|
||||
#define P_FCHG_FASTCHARGING 2
|
||||
#define P_FCHG_TOPPINGOFF 3
|
||||
#define P_FCHG_TRICKLE 4
|
||||
|
||||
#define P_FCHG_DEFAULTCC 0x0000
|
||||
#define P_FCHG_CC100mA 0x1000
|
||||
#define P_FCHG_CC200mA 0x2000
|
||||
#define P_FCHG_CC350mA 0x3000
|
||||
#define P_FCHG_CC500mA 0x4000
|
||||
#define P_FCHG_CC650mA 0x5000
|
||||
#define P_FCHG_CC800mA 0x8000
|
||||
#define P_FCHG_CC1000mA 0xa000
|
||||
#define P_FCHG_CC1200mA 0xc000
|
||||
#define P_FCHG_CC1400mA 0xe000
|
||||
|
||||
#define P_FCHG_CTIME1C 2
|
||||
#define P_FCHG_CTIME2C 6
|
||||
#define P_FCHG_CTIMEC2 4
|
||||
#define P_FCHG_CTIMEC4 0
|
||||
|
||||
#define P_FCHG_SETCHARGEMODE 0
|
||||
#define P_FCHG_READCHARGEMODE 1
|
||||
#define P_FCHG_READSTATUS 2
|
||||
#define P_FCHG_CLOSE 3
|
||||
#define P_FCHG_CANCEL 4
|
||||
#define P_FCHG_FASTCHARGE1 5
|
||||
#define P_FCHG_FASTCHARGE2 6
|
||||
#define P_FCHG_DISCHARGE 7
|
||||
#define P_FCHG_ASYNCHREAD 8
|
||||
#define P_FCHG_RESETBOTH 9
|
||||
@@ -0,0 +1,50 @@
|
||||
/* Release 3.00 */
|
||||
|
||||
/*-------------------------------------------------------------------------*
|
||||
* *
|
||||
* fcntl.h - definitions for opening files. *
|
||||
* *
|
||||
* COPYRIGHT (C) 1989 Jensen and Partners. All Rights Reserved *
|
||||
* *
|
||||
*--------------------------------------------------------------------------*/
|
||||
#include <stdepoc.h>
|
||||
|
||||
#ifndef _FCNTL_INC_
|
||||
#define _FCNTL_INC_
|
||||
|
||||
extern unsigned _fmode;
|
||||
|
||||
/* Flag values for open */
|
||||
|
||||
#define O_RDONLY 0
|
||||
#define O_WRONLY 1
|
||||
#define O_RDWR 2
|
||||
|
||||
#define O_CREAT 0x0100 /* create and open file */
|
||||
#define O_TRUNC 0x0200 /* open with truncation */
|
||||
#define O_EXCL 0x0400 /* exclusive open */
|
||||
|
||||
#define _O_EOF 0x0200 /* set when text file hits ^Z */
|
||||
|
||||
/* A file in append mode may be written to only at its end. */
|
||||
|
||||
#define O_APPEND 0x0800 /* to end of file */
|
||||
|
||||
/* File mode special bits. User may only read these bits */
|
||||
|
||||
#define O_CHANGED 0x1000 /* File has been written */
|
||||
#define O_DEVICE 0x2000 /* user read only flag */
|
||||
#define O_TEXT 0x4000 /* CR-LF translation */
|
||||
#define O_BINARY 0x8000 /* no translation */
|
||||
|
||||
/* DOS 3.x file sharing options */
|
||||
|
||||
#define SH_NOINHERIT 0x80
|
||||
#define SH_COMPAT 0x00
|
||||
#define SH_DENYRW 0x10
|
||||
#define SH_DENYWR 0x20
|
||||
#define SH_DENYRD 0x30
|
||||
#define SH_DENYNO 0x40
|
||||
|
||||
#define SH_DENYNONE SH_DENYNO /* MS documentation uses both */
|
||||
#endif
|
||||
@@ -0,0 +1,100 @@
|
||||
/* Generated by Ctran from filelist.cl */
|
||||
#define FILELIST_G
|
||||
#ifndef FACTIVE_G
|
||||
#include <factive.g>
|
||||
#endif
|
||||
#ifndef H_FILE_H
|
||||
#include <h_file.h>
|
||||
#endif
|
||||
#ifndef LISTBOX_G
|
||||
#include <listbox.g>
|
||||
#endif
|
||||
#ifndef TIME_G
|
||||
#include <time.g>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_NONODE 39
|
||||
#define C_HPSEL 40
|
||||
#define C_FILELIST 41
|
||||
/* Method Numbers */
|
||||
#define O_FL_LOCCHG 23
|
||||
#define O_FL_LIST_COMPLETE 22
|
||||
/* Property of nonode */
|
||||
typedef struct pr_nonode
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
PRS_FACTIVE factive;
|
||||
PRS_FNODE fnode;
|
||||
} PR_NONODE;
|
||||
/* Property of hpsel */
|
||||
typedef struct {
|
||||
PR_ROOT *owner;
|
||||
} PRS_HPSEL;
|
||||
typedef struct pr_hpsel
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
PRS_FACTIVE factive;
|
||||
PRS_FSCAN fscan;
|
||||
PRS_PSEL psel;
|
||||
PRS_HPSEL hpsel;
|
||||
} PR_HPSEL;
|
||||
/* Constants for filelist */
|
||||
#define PR_FILELIST_ISFILE 0x100
|
||||
#define PR_FILELIST_TAGS_CHANGED 0x0200
|
||||
#define PR_FILELIST_NOSCAN 0x0400
|
||||
#define PR_FILELIST_SCANNING 0x0800
|
||||
#define PR_FILELIST_LOCAL 0x1000
|
||||
#define PR_FILELIST_WILDCARDED 0x2000
|
||||
#define PR_FILELIST_SET_UNMARKED 0x4000
|
||||
#define IN_FILELIST_ALLOW_DIRS H_FILE_ALLOW_DIRS
|
||||
#define IN_FILELIST_JUST_DIRS H_FILE_JUST_DIRS
|
||||
#define IN_FILELIST_CAN_TAG H_FILE_CAN_TAG
|
||||
#define IN_FILELIST_CAN_WILDCARD H_FILE_CAN_WILDCARD
|
||||
#define IN_FILELIST_NO_FORCE_WILD 0x8000
|
||||
#define FILENAME_WIDTH 12
|
||||
#define FILESIZE_WIDTH 7
|
||||
#define FILETIME_WIDTH 7
|
||||
#define FILEDATE_WIDTH 9
|
||||
/* Types for filelist */
|
||||
typedef struct
|
||||
{
|
||||
short int dtype;
|
||||
void *vadev;
|
||||
short int ascoff;
|
||||
unsigned short int tagoff;
|
||||
unsigned short int sizeoff;
|
||||
unsigned short int timeoff;
|
||||
unsigned short int dateoff;
|
||||
unsigned short int dateendoff;
|
||||
char asc[P_FNAMESIZE];
|
||||
} PR_FILELIST_X;
|
||||
/* Property of filelist */
|
||||
typedef struct {
|
||||
PR_HPSEL *hpsel;
|
||||
PR_VASTR *contexts;
|
||||
PR_TIME *date;
|
||||
PR_VASTR *tags;
|
||||
PR_VASTR **ptags;
|
||||
PR_ROOT *next;
|
||||
unsigned short int locmask;
|
||||
unsigned short int flags;
|
||||
short int parent;
|
||||
short int thisdir;
|
||||
P_FPARSE crk;
|
||||
short int derr;
|
||||
PR_FILELIST_X *x;
|
||||
unsigned long int dfree;
|
||||
char wild[P_FNAMESIZE];
|
||||
char subd[P_FNAMESIZE];
|
||||
char scr[P_FNAMESIZE];
|
||||
char targ[P_FNAMESIZE];
|
||||
} PRS_FILELIST;
|
||||
typedef struct pr_filelist
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_LISTBOX listbox;
|
||||
PRS_FILELIST filelist;
|
||||
} PR_FILELIST;
|
||||
@@ -0,0 +1,96 @@
|
||||
; Generated by Ctran from filelist.cl
|
||||
FILELIST_ING equ 1
|
||||
IFNDEF FACTIVE_ING
|
||||
INCLUDE ..\inc\FACTIVE.ING
|
||||
ENDIF
|
||||
IFNDEF H_FILE_INC
|
||||
INCLUDE ..\inc\H_FILE.INC
|
||||
ENDIF
|
||||
IFNDEF LISTBOX_ING
|
||||
INCLUDE ..\inc\LISTBOX.ING
|
||||
ENDIF
|
||||
IFNDEF TIME_ING
|
||||
INCLUDE ..\inc\TIME.ING
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_NONODE equ 39
|
||||
C_HPSEL equ 40
|
||||
C_FILELIST equ 41
|
||||
; Method Numbers
|
||||
O_FL_LOCCHG equ 23
|
||||
O_FL_LIST_COMPLETE equ 22
|
||||
; Property of nonode
|
||||
PR_NONODE struc
|
||||
NonodeRoot PRS_ROOT <>
|
||||
NonodeActive PRS_ACTIVE <>
|
||||
NonodeFactive PRS_FACTIVE <>
|
||||
NonodeFnode PRS_FNODE <>
|
||||
PR_NONODE ends
|
||||
; Property of hpsel
|
||||
PRS_HPSEL struc
|
||||
HpselOwner dw ?
|
||||
PRS_HPSEL ends
|
||||
PR_HPSEL struc
|
||||
HpselRoot PRS_ROOT <>
|
||||
HpselActive PRS_ACTIVE <>
|
||||
HpselFactive PRS_FACTIVE <>
|
||||
HpselFscan PRS_FSCAN <>
|
||||
HpselPsel PRS_PSEL <>
|
||||
HpselHpsel PRS_HPSEL <>
|
||||
PR_HPSEL ends
|
||||
; Constants for filelist
|
||||
PR_FILELIST_ISFILE equ (0100h)
|
||||
PR_FILELIST_TAGS_CHANGED equ (00200h)
|
||||
PR_FILELIST_NOSCAN equ (00400h)
|
||||
PR_FILELIST_SCANNING equ (00800h)
|
||||
PR_FILELIST_LOCAL equ (01000h)
|
||||
PR_FILELIST_WILDCARDED equ (02000h)
|
||||
PR_FILELIST_SET_UNMARKED equ (04000h)
|
||||
IN_FILELIST_ALLOW_DIRS equ (H_FILE_ALLOW_DIRS)
|
||||
IN_FILELIST_JUST_DIRS equ (H_FILE_JUST_DIRS)
|
||||
IN_FILELIST_CAN_TAG equ (H_FILE_CAN_TAG)
|
||||
IN_FILELIST_CAN_WILDCARD equ (H_FILE_CAN_WILDCARD)
|
||||
IN_FILELIST_NO_FORCE_WILD equ (08000h)
|
||||
FILENAME_WIDTH equ (12)
|
||||
FILESIZE_WIDTH equ (7)
|
||||
FILETIME_WIDTH equ (7)
|
||||
FILEDATE_WIDTH equ (9)
|
||||
; Types for filelist
|
||||
PR_FILELIST_X struc
|
||||
PR_FILELIST_XDtype dw ?
|
||||
PR_FILELIST_XVadev dw ?
|
||||
PR_FILELIST_XAscoff dw ?
|
||||
PR_FILELIST_XTagoff dw ?
|
||||
PR_FILELIST_XSizeoff dw ?
|
||||
PR_FILELIST_XTimeoff dw ?
|
||||
PR_FILELIST_XDateoff dw ?
|
||||
PR_FILELIST_XDateendoff dw ?
|
||||
PR_FILELIST_XAsc db (1) * P_FNAMESIZE dup (?)
|
||||
PR_FILELIST_X ends
|
||||
; Property of filelist
|
||||
PRS_FILELIST struc
|
||||
FilelistHpsel dw ?
|
||||
FilelistContexts dw ?
|
||||
FilelistDate dw ?
|
||||
FilelistTags dw ?
|
||||
FilelistPtags dw ?
|
||||
FilelistNext dw ?
|
||||
FilelistLocmask dw ?
|
||||
FilelistFlags dw ?
|
||||
FilelistParent dw ?
|
||||
FilelistThisdir dw ?
|
||||
FilelistCrk P_FPARSE <>
|
||||
FilelistDerr dw ?
|
||||
FilelistX dw ?
|
||||
FilelistDfree dd ?
|
||||
FilelistWild db (1) * P_FNAMESIZE dup (?)
|
||||
FilelistSubd db (1) * P_FNAMESIZE dup (?)
|
||||
FilelistScr db (1) * P_FNAMESIZE dup (?)
|
||||
FilelistTarg db (1) * P_FNAMESIZE dup (?)
|
||||
PRS_FILELIST ends
|
||||
PR_FILELIST struc
|
||||
FilelistRoot PRS_ROOT <>
|
||||
FilelistWin PRS_WIN <>
|
||||
FilelistListbox PRS_LISTBOX <>
|
||||
FilelistFilelist PRS_FILELIST <>
|
||||
PR_FILELIST ends
|
||||
@@ -0,0 +1,127 @@
|
||||
/* Generated by Ctran from files.cl */
|
||||
#define FILES_G
|
||||
#ifndef CHLIST_G
|
||||
#include <chlist.g>
|
||||
#endif
|
||||
#ifndef EDWIN_G
|
||||
#include <edwin.g>
|
||||
#endif
|
||||
#ifndef VARES_G
|
||||
#include <vares.g>
|
||||
#endif
|
||||
#ifndef TIME_G
|
||||
#include <time.g>
|
||||
#endif
|
||||
#ifndef P_FILE_H
|
||||
#include <p_file.h>
|
||||
#endif
|
||||
#ifndef H_FILE_H
|
||||
#include <h_file.h>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_VADEV 42
|
||||
#define C_PACKSEL 43
|
||||
#define C_FNEDIT 44
|
||||
#define C_FNSELWN 45
|
||||
/* Method Numbers */
|
||||
#define O_FNS_INSERT_TAGS 19
|
||||
#define O_FNS_EXTRACT_TAGS 20
|
||||
#define O_FNS_VALIDATE_FLIST 22
|
||||
#define O_FNS_SUBSET 21
|
||||
/* Property of vadev */
|
||||
typedef struct {
|
||||
char buf[20];
|
||||
} PRS_VADEV;
|
||||
typedef struct pr_vadev
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_VAROOT varoot;
|
||||
PRS_VASTR vastr;
|
||||
PRS_VADEV vadev;
|
||||
} PR_VADEV;
|
||||
/* Constants for packsel */
|
||||
#define PR_CHLIST_PACKSEL_DODINFO 0x8000
|
||||
/* Property of packsel */
|
||||
typedef struct {
|
||||
PR_LODGER *filsel;
|
||||
short int err;
|
||||
} PRS_PACKSEL;
|
||||
typedef struct pr_packsel
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_LODGER lodger;
|
||||
PRS_CHLIST chlist;
|
||||
PRS_PACKSEL packsel;
|
||||
} PR_PACKSEL;
|
||||
/* Constants for fnedit */
|
||||
#define IN_FNEDIT_STANDARD H_FILE_STANDARD_INIT
|
||||
#define IN_FNEDIT_ALLOW_DIRS H_FILE_ALLOW_DIRS
|
||||
#define IN_FNEDIT_JUST_DIRS H_FILE_JUST_DIRS
|
||||
#define IN_FNEDIT_FORCE_NXIST H_FILE_FORCE_NXIST
|
||||
#define IN_FNEDIT_NO_AUTOQUERY H_FILE_NO_AUTOQUERY
|
||||
#define IN_FNEDIT_ACCEPT_NULL H_FILE_ACCEPT_NULL
|
||||
#define IN_FNEDIT_SET_DEFEXT H_FILE_SET_DEFEXT
|
||||
#define IN_FNEDIT_CAN_WILDCARD H_FILE_CAN_WILDCARD
|
||||
/* Types for fnedit */
|
||||
typedef struct
|
||||
{
|
||||
unsigned char flags;
|
||||
char fname[1];
|
||||
} IN_FNEDIT;
|
||||
/* Property of fnedit */
|
||||
typedef struct {
|
||||
PR_LISTBOX *pop;
|
||||
PR_PACKSEL *pack;
|
||||
unsigned short int flags;
|
||||
char *defext;
|
||||
char extbuf[6];
|
||||
char buf[P_FNAMESIZE];
|
||||
} PRS_FNEDIT;
|
||||
typedef struct pr_fnedit
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_LODGER lodger;
|
||||
PRS_EDWIN edwin;
|
||||
PRS_FNEDIT fnedit;
|
||||
} PR_FNEDIT;
|
||||
/* Constants for fnselwn */
|
||||
#define IN_FNSELWN_STANDARD H_FILE_STANDARD_INIT
|
||||
#define IN_FNSELWN_SHOW_DIRS H_FILE_ALLOW_DIRS
|
||||
#define IN_FNSELWN_HIDE_FILES H_FILE_JUST_DIRS
|
||||
#define IN_FNSELWN_RESTRICT_LIST H_FILE_RESTRICT_LIST
|
||||
#define IN_FNSELWN_CAN_TAG H_FILE_CAN_TAG
|
||||
#define IN_FNSELWN_ACCEPT_NULL H_FILE_ACCEPT_NULL
|
||||
#define IN_FNSELWN_SET_DEFEXT H_FILE_SET_DEFEXT
|
||||
#define IN_FNSELWN_CAN_WILDCARD H_FILE_CAN_WILDCARD
|
||||
#define PR_FNSELWN_TAGSHERE 0x100
|
||||
#define PR_FNSELWN_AT_ROOT 0x200
|
||||
#define PR_FNSELWN_WILDCARDED 0x400
|
||||
#define PR_FNSELWN_PRESERVE_TAGS 0x800
|
||||
#define PR_FNSELWN_ON_DIR 0x1000
|
||||
#define PR_FNSELWN_CHANGED_DIR 0x8000
|
||||
/* Types for fnselwn */
|
||||
typedef struct
|
||||
{
|
||||
unsigned char flags;
|
||||
char fname[1];
|
||||
} IN_FNSELWN;
|
||||
/* Property of fnselwn */
|
||||
typedef struct {
|
||||
PR_VASTR *tags;
|
||||
PR_PACKSEL *pack;
|
||||
unsigned short int flags;
|
||||
char *defext;
|
||||
char extbuf[6];
|
||||
P_FPARSE crk;
|
||||
char buf[P_FNAMESIZE];
|
||||
} PRS_FNSELWN;
|
||||
typedef struct pr_fnselwn
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_LODGER lodger;
|
||||
PRS_CHLIST chlist;
|
||||
PRS_FNSELWN fnselwn;
|
||||
} PR_FNSELWN;
|
||||
@@ -0,0 +1,121 @@
|
||||
; Generated by Ctran from files.cl
|
||||
FILES_ING equ 1
|
||||
IFNDEF CHLIST_ING
|
||||
INCLUDE ..\inc\CHLIST.ING
|
||||
ENDIF
|
||||
IFNDEF EDWIN_ING
|
||||
INCLUDE ..\inc\EDWIN.ING
|
||||
ENDIF
|
||||
IFNDEF VARES_ING
|
||||
INCLUDE ..\inc\VARES.ING
|
||||
ENDIF
|
||||
IFNDEF TIME_ING
|
||||
INCLUDE ..\inc\TIME.ING
|
||||
ENDIF
|
||||
IFNDEF P_FILE_INC
|
||||
INCLUDE ..\inc\P_FILE.INC
|
||||
ENDIF
|
||||
IFNDEF H_FILE_INC
|
||||
INCLUDE ..\inc\H_FILE.INC
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_VADEV equ 42
|
||||
C_PACKSEL equ 43
|
||||
C_FNEDIT equ 44
|
||||
C_FNSELWN equ 45
|
||||
; Method Numbers
|
||||
O_FNS_INSERT_TAGS equ 19
|
||||
O_FNS_EXTRACT_TAGS equ 20
|
||||
O_FNS_VALIDATE_FLIST equ 22
|
||||
O_FNS_SUBSET equ 21
|
||||
; Property of vadev
|
||||
PRS_VADEV struc
|
||||
VadevBuf db (1) * 20 dup (?)
|
||||
PRS_VADEV ends
|
||||
PR_VADEV struc
|
||||
VadevRoot PRS_ROOT <>
|
||||
VadevVaroot PRS_VAROOT <>
|
||||
VadevVastr PRS_VASTR <>
|
||||
VadevVadev PRS_VADEV <>
|
||||
PR_VADEV ends
|
||||
; Constants for packsel
|
||||
PR_CHLIST_PACKSEL_DODINFO equ (08000h)
|
||||
; Property of packsel
|
||||
PRS_PACKSEL struc
|
||||
PackselFilsel dw ?
|
||||
PackselErr dw ?
|
||||
PRS_PACKSEL ends
|
||||
PR_PACKSEL struc
|
||||
PackselRoot PRS_ROOT <>
|
||||
PackselWin PRS_WIN <>
|
||||
PackselLodger PRS_LODGER <>
|
||||
PackselChlist PRS_CHLIST <>
|
||||
PackselPacksel PRS_PACKSEL <>
|
||||
PR_PACKSEL ends
|
||||
; Constants for fnedit
|
||||
IN_FNEDIT_STANDARD equ (H_FILE_STANDARD_INIT)
|
||||
IN_FNEDIT_ALLOW_DIRS equ (H_FILE_ALLOW_DIRS)
|
||||
IN_FNEDIT_JUST_DIRS equ (H_FILE_JUST_DIRS)
|
||||
IN_FNEDIT_FORCE_NXIST equ (H_FILE_FORCE_NXIST)
|
||||
IN_FNEDIT_NO_AUTOQUERY equ (H_FILE_NO_AUTOQUERY)
|
||||
IN_FNEDIT_ACCEPT_NULL equ (H_FILE_ACCEPT_NULL)
|
||||
IN_FNEDIT_SET_DEFEXT equ (H_FILE_SET_DEFEXT)
|
||||
IN_FNEDIT_CAN_WILDCARD equ (H_FILE_CAN_WILDCARD)
|
||||
; Types for fnedit
|
||||
IN_FNEDIT struc
|
||||
IN_FNEDITFlags db ?
|
||||
IN_FNEDITFname db (1) * 1 dup (?)
|
||||
IN_FNEDIT ends
|
||||
; Property of fnedit
|
||||
PRS_FNEDIT struc
|
||||
FneditPop dw ?
|
||||
FneditPack dw ?
|
||||
FneditFlags dw ?
|
||||
FneditDefext dw ?
|
||||
FneditExtbuf db (1) * 6 dup (?)
|
||||
FneditBuf db (1) * P_FNAMESIZE dup (?)
|
||||
PRS_FNEDIT ends
|
||||
PR_FNEDIT struc
|
||||
FneditRoot PRS_ROOT <>
|
||||
FneditWin PRS_WIN <>
|
||||
FneditLodger PRS_LODGER <>
|
||||
FneditEdwin PRS_EDWIN <>
|
||||
FneditFnedit PRS_FNEDIT <>
|
||||
PR_FNEDIT ends
|
||||
; Constants for fnselwn
|
||||
IN_FNSELWN_STANDARD equ (H_FILE_STANDARD_INIT)
|
||||
IN_FNSELWN_SHOW_DIRS equ (H_FILE_ALLOW_DIRS)
|
||||
IN_FNSELWN_HIDE_FILES equ (H_FILE_JUST_DIRS)
|
||||
IN_FNSELWN_RESTRICT_LIST equ (H_FILE_RESTRICT_LIST)
|
||||
IN_FNSELWN_CAN_TAG equ (H_FILE_CAN_TAG)
|
||||
IN_FNSELWN_ACCEPT_NULL equ (H_FILE_ACCEPT_NULL)
|
||||
IN_FNSELWN_SET_DEFEXT equ (H_FILE_SET_DEFEXT)
|
||||
IN_FNSELWN_CAN_WILDCARD equ (H_FILE_CAN_WILDCARD)
|
||||
PR_FNSELWN_TAGSHERE equ (0100h)
|
||||
PR_FNSELWN_AT_ROOT equ (0200h)
|
||||
PR_FNSELWN_WILDCARDED equ (0400h)
|
||||
PR_FNSELWN_PRESERVE_TAGS equ (0800h)
|
||||
PR_FNSELWN_ON_DIR equ (01000h)
|
||||
PR_FNSELWN_CHANGED_DIR equ (08000h)
|
||||
; Types for fnselwn
|
||||
IN_FNSELWN struc
|
||||
IN_FNSELWNFlags db ?
|
||||
IN_FNSELWNFname db (1) * 1 dup (?)
|
||||
IN_FNSELWN ends
|
||||
; Property of fnselwn
|
||||
PRS_FNSELWN struc
|
||||
FnselwnTags dw ?
|
||||
FnselwnPack dw ?
|
||||
FnselwnFlags dw ?
|
||||
FnselwnDefext dw ?
|
||||
FnselwnExtbuf db (1) * 6 dup (?)
|
||||
FnselwnCrk P_FPARSE <>
|
||||
FnselwnBuf db (1) * P_FNAMESIZE dup (?)
|
||||
PRS_FNSELWN ends
|
||||
PR_FNSELWN struc
|
||||
FnselwnRoot PRS_ROOT <>
|
||||
FnselwnWin PRS_WIN <>
|
||||
FnselwnLodger PRS_LODGER <>
|
||||
FnselwnChlist PRS_CHLIST <>
|
||||
FnselwnFnselwn PRS_FNSELWN <>
|
||||
PR_FNSELWN ends
|
||||
@@ -0,0 +1,114 @@
|
||||
/* Release 3.00 */
|
||||
|
||||
/*-------------------------------------------------------------------------*
|
||||
* *
|
||||
* float.h - Implementation specific macros for floating point. *
|
||||
* *
|
||||
* COPYRIGHT (C) 1989, 1990 Jensen and Partners. All Rights Reserved. *
|
||||
* *
|
||||
*--------------------------------------------------------------------------*/
|
||||
#include <stdepoc.h>
|
||||
|
||||
#ifndef _FLOAT_INC_
|
||||
#define _FLOAT_INC_
|
||||
|
||||
#define DBL_DIG 15 /* number of decimal digits of precision */
|
||||
#define DBL_MANT_DIG 53 /* number of bits in mantissa */
|
||||
#define DBL_MAX_10_EXP 308 /* maximum decimal exponent */
|
||||
#define DBL_MAX_EXP 1024 /* maximum binary exponent */
|
||||
#define DBL_MIN_10_EXP -307 /* minimum decimal exponent */
|
||||
#define DBL_MIN_EXP -1021 /* minimum binary exponent */
|
||||
#define DBL_RADIX 2 /* exponent radix */
|
||||
#define DBL_ROUNDS 1 /* addition rounding */
|
||||
#define DBL_EPSILON 2.2204460492503131e-016 /* 1.0+DBL_EPSILON != 1.0 */
|
||||
#define DBL_MAX 1.7976931348623151e+308 /* maximum value */
|
||||
#define DBL_MIN 2.2250738585072014e-308 /* minimum positive value */
|
||||
|
||||
#define FLT_DIG 6 /* number of decimal digits of precision */
|
||||
#define FLT_GUARD 0
|
||||
#define FLT_MANT_DIG 24 /* number of bits in mantissa */
|
||||
#define FLT_MAX_10_EXP 38 /* maximum decimal exponent */
|
||||
#define FLT_MAX_EXP 128 /* maximum binary exponent */
|
||||
#define FLT_MIN_10_EXP -37 /* minimum decimal exponent */
|
||||
#define FLT_MIN_EXP -125 /* minimum binary exponent */
|
||||
#define FLT_NORMALIZE 0
|
||||
#define FLT_RADIX 2 /* exponent radix */
|
||||
#define FLT_ROUNDS 1 /* addition rounding chops */
|
||||
#define FLT_EPSILON 1.192092896e-07 /* smallest such that 1.0+FLT_EPSILON != 1.0 */
|
||||
#define FLT_MAX 3.402823466e+38 /* maximum value */
|
||||
#define FLT_MIN 1.175494351e-38 /* minimum positive value */
|
||||
|
||||
#define LDBL_DIG 19 /* number of decimal digits of precision */
|
||||
#define LDBL_EPSILON 5.4210108624275221706e-20 /* smallest such that 1.0+LDBL_EPSILON != 1.0 */
|
||||
#define LDBL_MANT_DIG 64 /* number of bits in mantissa */
|
||||
#define LDBL_MAX 1.189731495357231765e+4932L /* maximum value */
|
||||
#define LDBL_MAX_10_EXP 4932 /* maximum decimal exponent */
|
||||
#define LDBL_MAX_EXP 16384 /* maximum binary exponent */
|
||||
#define LDBL_MIN 3.3621031431120935063e-4932L /* minimum positive value */
|
||||
#define LDBL_MIN_10_EXP (-4931) /* minimum deimal exponent */
|
||||
#define LDBL_MIN_EXP (-16381) /* minimum binary exponent */
|
||||
#define LDBL_RADIX 2 /* exponent radix */
|
||||
#define LDBL_ROUNDS DBL_ROUNDS /* addition rounding */
|
||||
|
||||
/* X087 math control information */
|
||||
|
||||
/* Control Word Mask and bit definitions */
|
||||
|
||||
#define MCW_EM 0x003f /* interrupt Exception Masks */
|
||||
#define EM_INVALID 0x0001 /* invalid */
|
||||
#define EM_DENORMAL 0x0002 /* denormal */
|
||||
#define EM_ZERODIVIDE 0x0004 /* zero divide */
|
||||
#define EM_OVERFLOW 0x0008 /* overflow */
|
||||
#define EM_UNDERFLOW 0x0010 /* underflow */
|
||||
#define EM_INEXACT 0x0020 /* inexact */
|
||||
|
||||
#define MCW_IC 0x1000 /* Infinity Control */
|
||||
#define IC_AFFINE 0x1000 /* affine */
|
||||
#define IC_PROJECTIVE 0x0000 /* projective */
|
||||
|
||||
#define MCW_RC 0x0c00 /* Rounding Control */
|
||||
#define RC_CHOP 0x0c00 /* chop */
|
||||
#define RC_UP 0x0800 /* up */
|
||||
#define RC_DOWN 0x0400 /* down */
|
||||
#define RC_NEAR 0x0000 /* near */
|
||||
|
||||
#define MCW_PC 0x0300 /* Precision Control */
|
||||
#define PC_24 0x0000 /* 24 bits */
|
||||
#define PC_53 0x0200 /* 53 bits */
|
||||
#define PC_64 0x0300 /* 64 bits */
|
||||
|
||||
/* Initial Control Word value */
|
||||
|
||||
#define CW_DEFAULT ( IC_AFFINE + RC_NEAR + PC_64 + EM_DENORMAL + EM_UNDERFLOW + EM_INEXACT )
|
||||
|
||||
/* user Status Word bit definitions */
|
||||
|
||||
#define SW_INVALID 0x0001 /* invalid */
|
||||
#define SW_DENORMAL 0x0002 /* denormal */
|
||||
#define SW_ZERODIVIDE 0x0004 /* zero divide */
|
||||
#define SW_OVERFLOW 0x0008 /* overflow */
|
||||
#define SW_UNDERFLOW 0x0010 /* underflow */
|
||||
#define SW_INEXACT 0x0020 /* precision inexact */
|
||||
|
||||
/* Floating point error signals */
|
||||
|
||||
#define FPE_INVALID 0x81
|
||||
#define FPE_DENORMAL 0x82
|
||||
#define FPE_ZERODIVIDE 0x83
|
||||
#define FPE_OVERFLOW 0x84
|
||||
#define FPE_UNDERFLOW 0x85
|
||||
#define FPE_INEXACT 0x86
|
||||
|
||||
/* X087 control function prototypes */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
extern unsigned int _clear87(void);
|
||||
extern unsigned int _control87(unsigned int _new, unsigned int _mask);
|
||||
extern void _fpreset(void);
|
||||
extern unsigned int _status87(void);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
@@ -0,0 +1,45 @@
|
||||
/* Generated by Ctran from fltedit.cl */
|
||||
#define FLTEDIT_G
|
||||
#ifndef EDWIN_G
|
||||
#include <edwin.g>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_FLTEDIT 46
|
||||
/* Method Numbers */
|
||||
/* Constants for fltedit */
|
||||
#define FLTEDIT_MAX_CHAR 20
|
||||
#define SE_FLTEDIT_CURRENT 0x01
|
||||
#define SE_FLTEDIT_HIGH 0x02
|
||||
#define SE_FLTEDIT_LOW 0x04
|
||||
/* Types for fltedit */
|
||||
typedef struct
|
||||
{
|
||||
double current;
|
||||
double low;
|
||||
double high;
|
||||
unsigned char vulen;
|
||||
unsigned char format;
|
||||
} IN_FLTEDIT;
|
||||
typedef struct
|
||||
{
|
||||
double current;
|
||||
double low;
|
||||
double high;
|
||||
short int set_flags;
|
||||
} SE_FLTEDIT;
|
||||
/* Property of fltedit */
|
||||
typedef struct {
|
||||
double current;
|
||||
double low;
|
||||
double high;
|
||||
unsigned char point;
|
||||
unsigned char format;
|
||||
} PRS_FLTEDIT;
|
||||
typedef struct pr_fltedit
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_LODGER lodger;
|
||||
PRS_EDWIN edwin;
|
||||
PRS_FLTEDIT fltedit;
|
||||
} PR_FLTEDIT;
|
||||
@@ -0,0 +1,42 @@
|
||||
; Generated by Ctran from fltedit.cl
|
||||
FLTEDIT_ING equ 1
|
||||
IFNDEF EDWIN_ING
|
||||
INCLUDE ..\inc\EDWIN.ING
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_FLTEDIT equ 46
|
||||
; Method Numbers
|
||||
; Constants for fltedit
|
||||
FLTEDIT_MAX_CHAR equ (20)
|
||||
SE_FLTEDIT_CURRENT equ (001h)
|
||||
SE_FLTEDIT_HIGH equ (002h)
|
||||
SE_FLTEDIT_LOW equ (004h)
|
||||
; Types for fltedit
|
||||
IN_FLTEDIT struc
|
||||
IN_FLTEDITCurrent db 8 dup (?)
|
||||
IN_FLTEDITLow db 8 dup (?)
|
||||
IN_FLTEDITHigh db 8 dup (?)
|
||||
IN_FLTEDITVulen db ?
|
||||
IN_FLTEDITFormat db ?
|
||||
IN_FLTEDIT ends
|
||||
SE_FLTEDIT struc
|
||||
SE_FLTEDITCurrent db 8 dup (?)
|
||||
SE_FLTEDITLow db 8 dup (?)
|
||||
SE_FLTEDITHigh db 8 dup (?)
|
||||
SE_FLTEDITSet_flags dw ?
|
||||
SE_FLTEDIT ends
|
||||
; Property of fltedit
|
||||
PRS_FLTEDIT struc
|
||||
FlteditCurrent db 8 dup (?)
|
||||
FlteditLow db 8 dup (?)
|
||||
FlteditHigh db 8 dup (?)
|
||||
FlteditPoint db ?
|
||||
FlteditFormat db ?
|
||||
PRS_FLTEDIT ends
|
||||
PR_FLTEDIT struc
|
||||
FlteditRoot PRS_ROOT <>
|
||||
FlteditWin PRS_WIN <>
|
||||
FlteditLodger PRS_LODGER <>
|
||||
FlteditEdwin PRS_EDWIN <>
|
||||
FlteditFltedit PRS_FLTEDIT <>
|
||||
PR_FLTEDIT ends
|
||||
@@ -0,0 +1,34 @@
|
||||
/* Generated by Ctran from fontdlg.cl */
|
||||
#define FONTDLG_G
|
||||
#ifndef DLGBOX_G
|
||||
#include <dlgbox.g>
|
||||
#endif
|
||||
#ifndef SCRLAY_G
|
||||
#include <scrlay.g>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_FONTSEL 64
|
||||
/* Method Numbers */
|
||||
/* Types for fontsel */
|
||||
typedef struct
|
||||
{
|
||||
void *wdr;
|
||||
SCRLAY_FONT *pf;
|
||||
unsigned short int ret;
|
||||
} FONTSEL_DATA;
|
||||
/* Property of fontsel */
|
||||
typedef struct {
|
||||
PR_ROOT *names;
|
||||
PR_ROOT *sizes;
|
||||
void *wdr;
|
||||
SCRLAY_FONT *pf;
|
||||
SCRLAY_FONT f;
|
||||
} PRS_FONTSEL;
|
||||
typedef struct pr_fontsel
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_DLGCHAIN dlgchain;
|
||||
PRS_DLGBOX dlgbox;
|
||||
PRS_FONTSEL fontsel;
|
||||
} PR_FONTSEL;
|
||||
@@ -0,0 +1,32 @@
|
||||
; Generated by Ctran from fontdlg.cl
|
||||
FONTDLG_ING equ 1
|
||||
IFNDEF DLGBOX_ING
|
||||
INCLUDE ..\inc\DLGBOX.ING
|
||||
ENDIF
|
||||
IFNDEF SCRLAY_ING
|
||||
INCLUDE ..\inc\SCRLAY.ING
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_FONTSEL equ 64
|
||||
; Method Numbers
|
||||
; Types for fontsel
|
||||
FONTSEL_DATA struc
|
||||
FONTSEL_DATAWdr dw ?
|
||||
FONTSEL_DATAPf dw ?
|
||||
FONTSEL_DATARet dw ?
|
||||
FONTSEL_DATA ends
|
||||
; Property of fontsel
|
||||
PRS_FONTSEL struc
|
||||
FontselNames dw ?
|
||||
FontselSizes dw ?
|
||||
FontselWdr dw ?
|
||||
FontselPf dw ?
|
||||
FontselF SCRLAY_FONT <>
|
||||
PRS_FONTSEL ends
|
||||
PR_FONTSEL struc
|
||||
FontselRoot PRS_ROOT <>
|
||||
FontselWin PRS_WIN <>
|
||||
FontselDlgchain PRS_DLGCHAIN <>
|
||||
FontselDlgbox PRS_DLGBOX <>
|
||||
FontselFontsel PRS_FONTSEL <>
|
||||
PR_FONTSEL ends
|
||||
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
File: FONTS.H
|
||||
Copyright (C) Psion PLC 1993
|
||||
Started by : DavidW
|
||||
Started in: April 1993 (derived from earlier contents of Hwim.cat)
|
||||
|
||||
The fonts listed in sxwim.rom (and in egclient.par), in order:
|
||||
|
||||
S3.FON 6000,1,2,3 (SYS$NORM,SYS$BOLD,SYS$DIGT,*)
|
||||
SA13S.FON 6004,5,6,7 (SA13SN,SA13SNM,SA13SB,*)
|
||||
SA13R.FON 6008,9,a (SA13RN,SA13RB,*)
|
||||
SA16RN.FON 600b
|
||||
SA16SN.FON 600c
|
||||
SA11S.FON 600d,e,f (SA11SN,SA11SB,*)
|
||||
SA11R.FON 6010,11,12 (SA11RN,SA11RB,*)
|
||||
SA08S.FON 6013,14,15 (SA08SN,SA08SB,*)
|
||||
SA08RND4.FON 6016
|
||||
SA08RBD4.FON 6017
|
||||
SA37SND.FON 6018
|
||||
SA08SN5.FON 6019
|
||||
SA07RBA.FON 601a
|
||||
SA05RND.FON 601b
|
||||
AGN8SYM.FON 601c
|
||||
AGN13SYM.FON 601d
|
||||
SA08RNM8.FON 601e
|
||||
SA06RNM6.FON 601f
|
||||
SPR05RN4.FON 6020
|
||||
SA15SND.FON 6021
|
||||
SA11SYM.FON 6022
|
||||
WORLD.FON 6023
|
||||
|
||||
The numerical contents of sys$wsrv.fsu (defines the 4000 numbered fonts):
|
||||
|
||||
0,1,2, Series3 fonts
|
||||
1e, 8x8 mono
|
||||
3,12,a,b, 4 Roman fonts: 8/11/13/16
|
||||
15,f,7,c, 4 Swiss fonts: 8/11/13/16
|
||||
1f 6x6 mono
|
||||
|
||||
"Server fonts" in egclient.par (and in xhhenv.ini) (all are 6000 numbers):
|
||||
7 S3b system font
|
||||
4 S3b notifer/alert message font ("internal font")
|
||||
13 (d) status window diamond bar text font
|
||||
13 (d) status window diamond bar symbol font
|
||||
24 (18) "medium 2" digital clock font
|
||||
13 (d) "medium 2" date font
|
||||
4 button text in notifiers and alerts
|
||||
33 (21) small digital clock font
|
||||
*/
|
||||
|
||||
/*
|
||||
Series 3 fonts
|
||||
*/
|
||||
#define FONT_ID_S3 WS_FONT_BASE
|
||||
#define FONT_ID_S3BOLD (WS_FONT_BASE+0x1)
|
||||
#define FONT_ID_S3DIGITS (WS_FONT_BASE+0x2)
|
||||
|
||||
/*
|
||||
Series 3B supported fonts
|
||||
*/
|
||||
#define FONT_ID_MONO_8x8 (WS_FONT_BASE+0x3)
|
||||
#define FONT_ID_ROMAN_8 (WS_FONT_BASE+0x4)
|
||||
#define FONT_ID_ROMAN_11 (WS_FONT_BASE+0x5)
|
||||
#define FONT_ID_ROMAN_13 (WS_FONT_BASE+0x6)
|
||||
#define FONT_ID_ROMAN_16 (WS_FONT_BASE+0x7)
|
||||
#define FONT_ID_SWISS_8 (WS_FONT_BASE+0x8)
|
||||
#define FONT_ID_SWISS_11 (WS_FONT_BASE+0x9)
|
||||
#define FONT_ID_SWISS_13 (WS_FONT_BASE+0xa)
|
||||
#define FONT_ID_SWISS_16 (WS_FONT_BASE+0xb)
|
||||
#define FONT_ID_MONO_6x6 (WS_FONT_BASE+0xc)
|
||||
|
||||
/*
|
||||
Series 3B specialised fonts, not necessarily supported on future machines
|
||||
*/
|
||||
#define FONT_ID_DIGITS_8x4 (WS_FONT_BASE2+0x16)
|
||||
#define FONT_ID_DIGITS_8x4B (WS_FONT_BASE2+0x17)
|
||||
#define FONT_ID_CLOCK_37 (WS_FONT_BASE2+0x18)
|
||||
#define FONT_ID_SWISS_8_THIN (WS_FONT_BASE2+0x19)
|
||||
#define FONT_ID_ALPHA_UC_7B (WS_FONT_BASE2+0x1a)
|
||||
#define FONT_ID_DIGITS_5x4 (WS_FONT_BASE2+0x1b)
|
||||
#define FONT_ID_AGN_SYM_8 (WS_FONT_BASE2+0x1c)
|
||||
#define FONT_ID_AGN_SYM_13 (WS_FONT_BASE2+0x1d)
|
||||
#define FONT_ID_SPR_5x4 (WS_FONT_BASE2+0x20)
|
||||
#define FONT_ID_CLOCK_15 (WS_FONT_BASE2+0x21)
|
||||
|
||||
/*
|
||||
Vine and s3d fonts
|
||||
*/
|
||||
#define FONT_ID_SA_11_SYM (WS_FONT_BASE2+0x22)
|
||||
#define FONT_ID_WORLD (WS_FONT_BASE2+0x23)
|
||||
|
||||
/*
|
||||
Font ids that are component parts of configured groups
|
||||
*/
|
||||
#define FONT_ID_13_S (WS_FONT_BASE2+0x4)
|
||||
#define FONT_ID_13M_S (WS_FONT_BASE2+0x5)
|
||||
#define FONT_ID_13B_S (WS_FONT_BASE2+0x6)
|
||||
#define FONT_ID_13_R (WS_FONT_BASE2+0x8)
|
||||
#define FONT_ID_13B_R (WS_FONT_BASE2+0x9)
|
||||
#define FONT_ID_11_S (WS_FONT_BASE2+0xd)
|
||||
#define FONT_ID_11B_S (WS_FONT_BASE2+0xe)
|
||||
#define FONT_ID_11_R (WS_FONT_BASE2+0x10)
|
||||
#define FONT_ID_11B_R (WS_FONT_BASE2+0x11)
|
||||
#define FONT_ID_8_S (WS_FONT_BASE2+0x13)
|
||||
#define FONT_ID_8B_S (WS_FONT_BASE2+0x14)
|
||||
@@ -0,0 +1,188 @@
|
||||
Generated by Ctran from form.cat
|
||||
LIBRARY form
|
||||
CLASS scrlay root
|
||||
{
|
||||
DECLARE sl_init
|
||||
DECLARE sl_set
|
||||
DECLARE sl_sense
|
||||
DECLARE sl_line_ends
|
||||
DECLARE sl_pos_to_xl
|
||||
DECLARE sl_xl_to_pos
|
||||
DECLARE sl_begin_read
|
||||
DECLARE sl_read
|
||||
DECLARE sl_format_line
|
||||
DECLARE sl_scroll
|
||||
DECLARE sl_view
|
||||
DECLARE sl_discard_layout
|
||||
DECLARE sl_set_lines
|
||||
DECLARE sl_para_changed
|
||||
DECLARE sl_rescale
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS prnlay scrlay
|
||||
{
|
||||
DECLARE sl_print_read
|
||||
DECLARE sl_print_pos
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS wrap active
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS scrimg root
|
||||
{
|
||||
DECLARE si_init
|
||||
DECLARE si_set
|
||||
DECLARE si_sense
|
||||
DECLARE si_emphasize
|
||||
DECLARE si_get_select
|
||||
DECLARE si_pan
|
||||
DECLARE si_scroll
|
||||
DECLARE si_view
|
||||
DECLARE si_move_cursor
|
||||
DECLARE si_redraw
|
||||
DECLARE si_doc_changed
|
||||
DECLARE si_doc_reset
|
||||
DECLARE si_para_changed
|
||||
DECLARE si_style_changed
|
||||
DECLARE si_delprep
|
||||
DECLARE si_fwd_change
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS epfdoc epflat
|
||||
{
|
||||
DECLARE epfdoc_para_start
|
||||
DECLARE epfdoc_sense_chars
|
||||
HAS_METHOD
|
||||
}
|
||||
CLASS epdoc eproot
|
||||
{
|
||||
DECLARE epdoc_para_start
|
||||
DECLARE epdoc_sense_chars
|
||||
DECLARE epdoc_set_pages
|
||||
DECLARE epdoc_enq_page
|
||||
DECLARE epdoc_goto_page
|
||||
DECLARE epdoc_set_filter
|
||||
DECLARE epdoc_pos_filter
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS wdr root
|
||||
{
|
||||
DECLARE wdr_init
|
||||
DECLARE wdr_count_models
|
||||
DECLARE wdr_sense_model_name
|
||||
DECLARE wdr_set_model
|
||||
DECLARE wdr_sense_model
|
||||
DECLARE wdr_typeface
|
||||
DECLARE wdr_search_typeface
|
||||
DECLARE wdr_font_height
|
||||
DECLARE wdr_search_height
|
||||
DECLARE wdr_get_width_table
|
||||
DECLARE wdr_sense_width
|
||||
DECLARE wdr_twips_to_xy
|
||||
DECLARE wdr_open_print
|
||||
DECLARE wdr_load_record
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS pdr root
|
||||
{
|
||||
DECLARE pdr_init
|
||||
DECLARE pdr_print
|
||||
DECLARE pdr_add_command
|
||||
DECLARE pdr_destroy
|
||||
DECLARE pdr_start
|
||||
DECLARE pdr_end
|
||||
DECLARE pdr_page
|
||||
DECLARE pdr_text
|
||||
DECLARE pdr_line
|
||||
DECLARE pdr_right
|
||||
DECLARE pdr_font
|
||||
DECLARE pdr_style
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS pages active
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS printer root
|
||||
{
|
||||
DECLARE pr_init
|
||||
DECLARE pr_store_srchar
|
||||
DECLARE pr_store_file
|
||||
DECLARE pr_set_port_type
|
||||
DECLARE pr_set_model
|
||||
DECLARE pr_port_data
|
||||
DECLARE pr_sense_port
|
||||
DECLARE pr_sense_model
|
||||
DECLARE pr_get_params
|
||||
DECLARE pr_set_hd
|
||||
DECLARE pr_get_hd
|
||||
DECLARE pr_open_wdr
|
||||
DECLARE pr_close_wdr
|
||||
DECLARE pr_open_port
|
||||
DECLARE pr_print
|
||||
DECLARE pr_paginate
|
||||
DECLARE pr_preview_start
|
||||
DECLARE pr_preview
|
||||
DECLARE pr_preview_end
|
||||
DECLARE pr_preview_data
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS prvpdr pdr
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS calimg root
|
||||
{
|
||||
DECLARE ci_init
|
||||
DECLARE ci_set_title
|
||||
DECLARE ci_emphasise
|
||||
DECLARE ci_move_cursor
|
||||
DECLARE ci_goto_date
|
||||
DECLARE ci_adjust_date
|
||||
DECLARE ci_redraw
|
||||
DECLARE ci_sense
|
||||
DECLARE ci_view
|
||||
DECLARE ci_pos_mxy
|
||||
DECLARE ci_today_changed
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS ptroot root
|
||||
{
|
||||
DECLARE pt_init
|
||||
DECLARE pt_reset
|
||||
DECLARE pt_append
|
||||
DECLARE pt_put_lintab
|
||||
DECLARE pt_pbuf
|
||||
DECLARE pt_add_phrase
|
||||
DECLARE pt_wrap
|
||||
DECLARE pt_display_line
|
||||
DECLARE pt_set_fonts
|
||||
DECLARE pt_mod_by_num
|
||||
DECLARE pt_mod_by_attrib
|
||||
DECLARE pt_find
|
||||
DECLARE pt_inquire
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS ptseg ptroot
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS ptflat ptroot
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
/* Generated by Ctran from form.cat */
|
||||
#define FORM_G
|
||||
#ifndef P_STD_H
|
||||
#include <p_std.h>
|
||||
#endif
|
||||
#ifndef P_OBJECT_H
|
||||
#include <p_object.h>
|
||||
#endif
|
||||
/* Category Numbers */
|
||||
/* EPOC */
|
||||
#define CAT_FORM_FORM 0
|
||||
#define CAT_FORM_OLIB 1
|
||||
@@ -0,0 +1,11 @@
|
||||
; Generated by Ctran from form.cat
|
||||
FORM_ING equ 1
|
||||
IFNDEF P_STD_INC
|
||||
INCLUDE ..\inc\P_STD.INC
|
||||
ENDIF
|
||||
IFNDEF P_OBJECT_INC
|
||||
INCLUDE ..\inc\P_OBJECT.INC
|
||||
ENDIF
|
||||
; Category Numbers
|
||||
CAT_FORM_FORM equ 0
|
||||
CAT_FORM_OLIB equ 1
|
||||
@@ -0,0 +1,69 @@
|
||||
Generated by Ctran from form.cat
|
||||
|
||||
LIBRARY form
|
||||
|
||||
********** form **********
|
||||
|
||||
********** scrlay **********
|
||||
scrlay
|
||||
Derived from root
|
||||
Subclassed by prnlay
|
||||
Referenced by scrimg
|
||||
prnlay
|
||||
Derived from scrlay,root
|
||||
Referenced by pages
|
||||
|
||||
********** scrimg **********
|
||||
wrap
|
||||
Derived from active,root
|
||||
Referenced by scrimg
|
||||
scrimg
|
||||
Derived from root
|
||||
References wrap,scrlay
|
||||
|
||||
********** epdoc **********
|
||||
epfdoc
|
||||
Derived from epflat,eproot,root
|
||||
Referenced by pages
|
||||
epdoc
|
||||
Derived from eproot,root
|
||||
References sgbuf,vaflat,vaflat
|
||||
|
||||
********** prdrv **********
|
||||
wdr
|
||||
Derived from root
|
||||
References rscfile
|
||||
Referenced by printer
|
||||
pdr
|
||||
Derived from root
|
||||
Subclassed by prvpdr
|
||||
Referenced by pages
|
||||
|
||||
********** pages **********
|
||||
pages
|
||||
Derived from active,root
|
||||
References vaflat,vaseg,epfdoc,prnlay,pdr
|
||||
|
||||
********** printer **********
|
||||
printer
|
||||
Derived from root
|
||||
References wdr
|
||||
|
||||
********** prvpdr **********
|
||||
prvpdr
|
||||
Derived from pdr,root
|
||||
References root
|
||||
|
||||
********** calimg **********
|
||||
calimg
|
||||
Derived from root
|
||||
|
||||
********** polytext **********
|
||||
ptroot
|
||||
Derived from root
|
||||
Subclassed by ptflat,ptseg
|
||||
ptseg
|
||||
Derived from ptroot,root
|
||||
References vaxvar
|
||||
ptflat
|
||||
Derived from ptroot,root
|
||||
@@ -0,0 +1,135 @@
|
||||
/* Release 3.10 */
|
||||
/*-------------------------------------------------------------------------*
|
||||
* *
|
||||
* FSTREAM.HPP - header file for file stream input and output. *
|
||||
* *
|
||||
* COPYRIGHT (C) 1990..1992 Clarion Software Corporation *
|
||||
* All Rights Reserved *
|
||||
* *
|
||||
*--------------------------------------------------------------------------*/
|
||||
#include <stdepoc.h>
|
||||
|
||||
#ifndef __FSTREAM_INC_
|
||||
#define __FSTREAM_INC_
|
||||
|
||||
#include <iostream.hpp>
|
||||
|
||||
class filebuf : public streambuf {
|
||||
|
||||
public:
|
||||
static const int openprot;
|
||||
|
||||
filebuf();
|
||||
filebuf(int);
|
||||
filebuf(int _f, char*, int);
|
||||
~filebuf();
|
||||
|
||||
int is_open();
|
||||
int fd();
|
||||
|
||||
filebuf* open(const char*, int, int = filebuf::openprot);
|
||||
|
||||
filebuf* close();
|
||||
filebuf* attach(int);
|
||||
virtual int overflow(int = EOF);
|
||||
virtual int underflow();
|
||||
virtual int sync();
|
||||
virtual streampos seekoff(streamoff, ios::seek_dir, int);
|
||||
virtual streambuf* setbuf(char*, int);
|
||||
|
||||
protected:
|
||||
|
||||
int last_op();
|
||||
int xfd;
|
||||
int mode;
|
||||
short opened;
|
||||
streampos last_seek;
|
||||
char* in_start;
|
||||
char lahead[2];
|
||||
};
|
||||
|
||||
inline int filebuf::is_open() { return opened; }
|
||||
inline int filebuf::fd() { return xfd; }
|
||||
|
||||
class fstreambase : virtual public ios {
|
||||
|
||||
public:
|
||||
|
||||
fstreambase();
|
||||
fstreambase(const char*, int, int = filebuf::openprot);
|
||||
fstreambase(int);
|
||||
fstreambase(int _f, char*, int);
|
||||
~fstreambase();
|
||||
|
||||
void open(const char*, int, int = filebuf::openprot);
|
||||
void attach(int);
|
||||
void close();
|
||||
void setbuf(char*, int);
|
||||
filebuf* rdbuf();
|
||||
|
||||
private:
|
||||
|
||||
filebuf buf;
|
||||
|
||||
};
|
||||
|
||||
inline filebuf* fstreambase::rdbuf() { return &buf; }
|
||||
|
||||
|
||||
class ifstream : public fstreambase, public istream {
|
||||
|
||||
public:
|
||||
ifstream();
|
||||
ifstream(const char*, int = ios::in, int = filebuf::openprot);
|
||||
ifstream(int);
|
||||
ifstream(int _f, char*, int);
|
||||
~ifstream();
|
||||
|
||||
filebuf* rdbuf();
|
||||
void open(const char*, int = ios::in, int = filebuf::openprot);
|
||||
|
||||
};
|
||||
|
||||
inline filebuf* ifstream::rdbuf() { return fstreambase::rdbuf(); }
|
||||
inline void ifstream::open(const char* name, int m, int prot) {
|
||||
fstreambase::open(name, m | ios::in, prot); }
|
||||
|
||||
|
||||
class ofstream : public fstreambase, public ostream {
|
||||
|
||||
public:
|
||||
ofstream();
|
||||
ofstream(const char*, int = ios::out, int = filebuf::openprot);
|
||||
ofstream(int);
|
||||
ofstream(int _f, char*, int);
|
||||
~ofstream();
|
||||
|
||||
filebuf* rdbuf();
|
||||
void open(const char*, int = ios::out, int = filebuf::openprot);
|
||||
|
||||
};
|
||||
|
||||
inline filebuf* ofstream::rdbuf() { return fstreambase::rdbuf(); }
|
||||
inline void ofstream::open(const char* name, int m, int prot) {
|
||||
fstreambase::open(name, m | ios::out, prot); }
|
||||
|
||||
|
||||
class fstream : public fstreambase, public iostream {
|
||||
|
||||
public:
|
||||
fstream();
|
||||
fstream(const char*, int, int = filebuf::openprot);
|
||||
fstream(int);
|
||||
fstream(int _f, char*, int);
|
||||
~fstream();
|
||||
|
||||
filebuf* rdbuf();
|
||||
void open(const char *, int, int = filebuf::openprot);
|
||||
|
||||
};
|
||||
|
||||
inline filebuf* fstream::rdbuf() { return fstreambase::rdbuf(); }
|
||||
inline void fstream::open(const char* name, int m, int prot) {
|
||||
fstreambase::open(name, m, prot); }
|
||||
|
||||
#endif␍
|
||||
@@ -0,0 +1,122 @@
|
||||
/* Generated by Ctran from gate.cl */
|
||||
#define GATE_G
|
||||
#ifndef OLIB_G
|
||||
#include <olib.g>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_GATE 0
|
||||
/* Method Numbers */
|
||||
#define O_GT_XW_ENABLE 20
|
||||
#define O_GT_DIAL_RUN 8
|
||||
#define O_GT_MENU_CLOSE 5
|
||||
#define O_GT_BUTTON_ADD 17
|
||||
#define O_GT_DIAL_ADD 7
|
||||
#define O_GT_CHOICE_CLOSE 15
|
||||
#define O_GT_MENU_RUN 4
|
||||
#define O_GT_MENU_ADD 3
|
||||
#define O_GT_WDR_PRINT_SETUP 25
|
||||
#define O_GT_DIAL_SOPEN 28
|
||||
#define O_GT_CHOICE_ADD 14
|
||||
#define O_GT_LAST_KEY 23
|
||||
#define O_GT_CARD_OPEN 10
|
||||
#define O_GT_INIT 1
|
||||
#define O_GT_SET_RSCFILE 27
|
||||
#define O_GT_DIAL_POSITION 19
|
||||
#define O_GT_CARD_CLOSE 12
|
||||
#define O_GT_BUTTON_OPEN 16
|
||||
#define O_GT_DIAL_OPEN 6
|
||||
#define O_GT_RETURN_SIGNALS 21
|
||||
#define O_GT_DO_HELP 26
|
||||
#define O_GT_CARD_ADD 11
|
||||
#define O_GT_MENU_OPEN 2
|
||||
#define O_GT_WDR_PRINT 24
|
||||
#define O_GT_CHECK_ATS_ON 22
|
||||
#define O_GT_BUTTON_CLOSE 18
|
||||
#define O_GT_DIAL_CLOSE 9
|
||||
#define O_GT_CHOICE_OPEN 13
|
||||
/* Constants for gate */
|
||||
#define PR_XWSERV_SHUTDOWN 0x01
|
||||
#define PR_XWSERV_QUERY_ALERT 0x02
|
||||
#define PR_XWSERV_S3FS 0x04
|
||||
#define PR_XWSERV_FROM_OVAL 0x08
|
||||
#define PVV_TEXT_MAX_LEN 50
|
||||
#define OPRINTER_DO_PREVIEW 1
|
||||
#define OPRINTER_PRINT_AFTER 2
|
||||
/* Types for gate */
|
||||
typedef struct
|
||||
{
|
||||
short int class;
|
||||
void *data;
|
||||
} DITEM_LIST;
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int xwim;
|
||||
unsigned short int nmenus;
|
||||
void **menus;
|
||||
unsigned short int ulines[16];
|
||||
unsigned short int count;
|
||||
DITEM_LIST dialret[9];
|
||||
unsigned short int nrec;
|
||||
void *orec;
|
||||
unsigned short int preview;
|
||||
} PURE_GATE;
|
||||
typedef struct
|
||||
{
|
||||
unsigned char Mode;
|
||||
unsigned char Flags;
|
||||
} PVV_DISPLAY;
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int fht;
|
||||
unsigned short int fds;
|
||||
unsigned short int fas;
|
||||
unsigned short int fnw;
|
||||
unsigned short int fmw;
|
||||
unsigned short int cht;
|
||||
unsigned short int mbht;
|
||||
unsigned short int bfid;
|
||||
unsigned short int bulyo;
|
||||
unsigned short int bulht;
|
||||
unsigned short int ninlb;
|
||||
unsigned short int ssww;
|
||||
unsigned short int bsww;
|
||||
unsigned short int hllg;
|
||||
unsigned short int samo;
|
||||
unsigned short int damo;
|
||||
} X_CONSTANTS;
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int fht;
|
||||
unsigned short int fds;
|
||||
unsigned short int fas;
|
||||
unsigned short int fnw;
|
||||
unsigned short int fmw;
|
||||
unsigned short int cht;
|
||||
unsigned short int bulyo;
|
||||
unsigned short int bulht;
|
||||
unsigned short int ninlb;
|
||||
} DLG_X_CONSTANTS;
|
||||
/* Property of gate */
|
||||
typedef struct {
|
||||
void *waotstat;
|
||||
void *concb;
|
||||
int xadd;
|
||||
unsigned short int flags;
|
||||
unsigned short int dialres;
|
||||
X_CONSTANTS x;
|
||||
void *getkeys;
|
||||
unsigned short int lastkey;
|
||||
unsigned short int lastmods;
|
||||
unsigned short int atpid;
|
||||
unsigned short int atson;
|
||||
void *today_hook;
|
||||
char shift_txt[10];
|
||||
PVV_DISPLAY prevdisp;
|
||||
DLG_X_CONSTANTS dx;
|
||||
PURE_GATE g;
|
||||
} PRS_GATE;
|
||||
typedef struct pr_gate
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_GATE gate;
|
||||
} PR_GATE;
|
||||
@@ -0,0 +1,116 @@
|
||||
; Generated by Ctran from gate.cl
|
||||
GATE_ING equ 1
|
||||
IFNDEF OLIB_ING
|
||||
INCLUDE ..\inc\OLIB.ING
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_GATE equ 0
|
||||
; Method Numbers
|
||||
O_GT_XW_ENABLE equ 20
|
||||
O_GT_DIAL_RUN equ 8
|
||||
O_GT_MENU_CLOSE equ 5
|
||||
O_GT_BUTTON_ADD equ 17
|
||||
O_GT_DIAL_ADD equ 7
|
||||
O_GT_CHOICE_CLOSE equ 15
|
||||
O_GT_MENU_RUN equ 4
|
||||
O_GT_MENU_ADD equ 3
|
||||
O_GT_WDR_PRINT_SETUP equ 25
|
||||
O_GT_DIAL_SOPEN equ 28
|
||||
O_GT_CHOICE_ADD equ 14
|
||||
O_GT_LAST_KEY equ 23
|
||||
O_GT_CARD_OPEN equ 10
|
||||
O_GT_INIT equ 1
|
||||
O_GT_SET_RSCFILE equ 27
|
||||
O_GT_DIAL_POSITION equ 19
|
||||
O_GT_CARD_CLOSE equ 12
|
||||
O_GT_BUTTON_OPEN equ 16
|
||||
O_GT_DIAL_OPEN equ 6
|
||||
O_GT_RETURN_SIGNALS equ 21
|
||||
O_GT_DO_HELP equ 26
|
||||
O_GT_CARD_ADD equ 11
|
||||
O_GT_MENU_OPEN equ 2
|
||||
O_GT_WDR_PRINT equ 24
|
||||
O_GT_CHECK_ATS_ON equ 22
|
||||
O_GT_BUTTON_CLOSE equ 18
|
||||
O_GT_DIAL_CLOSE equ 9
|
||||
O_GT_CHOICE_OPEN equ 13
|
||||
; Constants for gate
|
||||
PR_XWSERV_SHUTDOWN equ (001h)
|
||||
PR_XWSERV_QUERY_ALERT equ (002h)
|
||||
PR_XWSERV_S3FS equ (004h)
|
||||
PR_XWSERV_FROM_OVAL equ (008h)
|
||||
PVV_TEXT_MAX_LEN equ (50)
|
||||
OPRINTER_DO_PREVIEW equ (1)
|
||||
OPRINTER_PRINT_AFTER equ (2)
|
||||
; Types for gate
|
||||
DITEM_LIST struc
|
||||
DITEM_LISTClass dw ?
|
||||
DITEM_LISTData dw ?
|
||||
DITEM_LIST ends
|
||||
PURE_GATE struc
|
||||
PURE_GATEXwim dw ?
|
||||
PURE_GATENmenus dw ?
|
||||
PURE_GATEMenus dw ?
|
||||
PURE_GATEUlines db (2) * 16 dup (?)
|
||||
PURE_GATECount dw ?
|
||||
PURE_GATEDialret db (size DITEM_LIST)* 9 dup (?)
|
||||
PURE_GATENrec dw ?
|
||||
PURE_GATEOrec dw ?
|
||||
PURE_GATEPreview dw ?
|
||||
PURE_GATE ends
|
||||
PVV_DISPLAY struc
|
||||
PVV_DISPLAYMode db ?
|
||||
PVV_DISPLAYFlags db ?
|
||||
PVV_DISPLAY ends
|
||||
X_CONSTANTS struc
|
||||
X_CONSTANTSFht dw ?
|
||||
X_CONSTANTSFds dw ?
|
||||
X_CONSTANTSFas dw ?
|
||||
X_CONSTANTSFnw dw ?
|
||||
X_CONSTANTSFmw dw ?
|
||||
X_CONSTANTSCht dw ?
|
||||
X_CONSTANTSMbht dw ?
|
||||
X_CONSTANTSBfid dw ?
|
||||
X_CONSTANTSBulyo dw ?
|
||||
X_CONSTANTSBulht dw ?
|
||||
X_CONSTANTSNinlb dw ?
|
||||
X_CONSTANTSSsww dw ?
|
||||
X_CONSTANTSBsww dw ?
|
||||
X_CONSTANTSHllg dw ?
|
||||
X_CONSTANTSSamo dw ?
|
||||
X_CONSTANTSDamo dw ?
|
||||
X_CONSTANTS ends
|
||||
DLG_X_CONSTANTS struc
|
||||
DLG_X_CONSTANTSFht dw ?
|
||||
DLG_X_CONSTANTSFds dw ?
|
||||
DLG_X_CONSTANTSFas dw ?
|
||||
DLG_X_CONSTANTSFnw dw ?
|
||||
DLG_X_CONSTANTSFmw dw ?
|
||||
DLG_X_CONSTANTSCht dw ?
|
||||
DLG_X_CONSTANTSBulyo dw ?
|
||||
DLG_X_CONSTANTSBulht dw ?
|
||||
DLG_X_CONSTANTSNinlb dw ?
|
||||
DLG_X_CONSTANTS ends
|
||||
; Property of gate
|
||||
PRS_GATE struc
|
||||
GateWaotstat dw ?
|
||||
GateConcb dw ?
|
||||
GateXadd dw ?
|
||||
GateFlags dw ?
|
||||
GateDialres dw ?
|
||||
GateX X_CONSTANTS <>
|
||||
GateGetkeys dw ?
|
||||
GateLastkey dw ?
|
||||
GateLastmods dw ?
|
||||
GateAtpid dw ?
|
||||
GateAtson dw ?
|
||||
GateToday_hook dw ?
|
||||
GateShift_txt db (1) * 10 dup (?)
|
||||
GatePrevdisp PVV_DISPLAY <>
|
||||
GateDx DLG_X_CONSTANTS <>
|
||||
GateG PURE_GATE <>
|
||||
PRS_GATE ends
|
||||
PR_GATE struc
|
||||
GateRoot PRS_ROOT <>
|
||||
GateGate PRS_GATE <>
|
||||
PR_GATE ends
|
||||
@@ -0,0 +1,30 @@
|
||||
/* Generated by Ctran from gauge.cl */
|
||||
#define GAUGE_G
|
||||
#ifndef LODGER_G
|
||||
#include <lodger.g>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_GAUGE 24
|
||||
/* Method Numbers */
|
||||
/* Constants for gauge */
|
||||
#define GAUGE_WHITE 1
|
||||
#define GAUGE_GREY 2
|
||||
#define GAUGE_BLACK 3
|
||||
/* Types for gauge */
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int size[4];
|
||||
unsigned char colour[4];
|
||||
} SE_GAUGE;
|
||||
/* Property of gauge */
|
||||
typedef struct {
|
||||
unsigned short int size[4];
|
||||
unsigned char colour[4];
|
||||
} PRS_GAUGE;
|
||||
typedef struct pr_gauge
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_LODGER lodger;
|
||||
PRS_GAUGE gauge;
|
||||
} PR_GAUGE;
|
||||
@@ -0,0 +1,28 @@
|
||||
; Generated by Ctran from gauge.cl
|
||||
GAUGE_ING equ 1
|
||||
IFNDEF LODGER_ING
|
||||
INCLUDE ..\inc\LODGER.ING
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_GAUGE equ 24
|
||||
; Method Numbers
|
||||
; Constants for gauge
|
||||
GAUGE_WHITE equ (1)
|
||||
GAUGE_GREY equ (2)
|
||||
GAUGE_BLACK equ (3)
|
||||
; Types for gauge
|
||||
SE_GAUGE struc
|
||||
SE_GAUGESize db (2) * 4 dup (?)
|
||||
SE_GAUGEColour db (1) * 4 dup (?)
|
||||
SE_GAUGE ends
|
||||
; Property of gauge
|
||||
PRS_GAUGE struc
|
||||
GaugeSize db (2) * 4 dup (?)
|
||||
GaugeColour db (1) * 4 dup (?)
|
||||
PRS_GAUGE ends
|
||||
PR_GAUGE struc
|
||||
GaugeRoot PRS_ROOT <>
|
||||
GaugeWin PRS_WIN <>
|
||||
GaugeLodger PRS_LODGER <>
|
||||
GaugeGauge PRS_GAUGE <>
|
||||
PR_GAUGE ends
|
||||
@@ -0,0 +1,47 @@
|
||||
/* Release 3.10 */
|
||||
/*-------------------------------------------------------------------------*
|
||||
* *
|
||||
* GENERIC.HPP - header file for creating generic classes. *
|
||||
* *
|
||||
* COPYRIGHT (C) 1990..1992 Clarion Software Corporation *
|
||||
* All Rights Reserved *
|
||||
* *
|
||||
*--------------------------------------------------------------------------*/
|
||||
#include <stdepoc.h>
|
||||
|
||||
#ifndef _GENERIC_INC_
|
||||
#define _GENERIC_INC_
|
||||
|
||||
#define _PASTE2(x, y) _PASTE2_x(x, y)
|
||||
#define _PASTE2_x(x, y) x##y
|
||||
#define _PASTE3(x, y, z) _PASTE3_x(x, y, z)
|
||||
#define _PASTE3_x(x, y, z) x##y##z
|
||||
#define _PASTE4(w, x, y, z) _PASTE4_x(w, x, y, z)
|
||||
#define _PASTE4_x(w, x, y, z) w##x##y##z
|
||||
|
||||
#define _ALT_PASTE2(x, y) _ALT_PASTE2_x(x, y)
|
||||
#define _ALT_PASTE2_x(x, y) x##y
|
||||
#define _ALT_PASTE3(x, y, z) _ALT_PASTE3_x(x, y, z)
|
||||
#define _ALT_PASTE3_x(x, y, z) x##y##z
|
||||
#define _ALT_PASTE4(w, x, y, z) _ALT_PASTE4_x(w, x, y, z)
|
||||
#define _ALT_PASTE4_x(w, x, y, z) w##x##y##z
|
||||
|
||||
// macros for the declaration and implementation of classes
|
||||
#define declare(x, y) _PASTE2(x, declare)(y)
|
||||
#define implement(x, y) _PASTE2(x, implement)(y)
|
||||
#define declare2(x, y, z) _PASTE2(x, declare2)(y, z)
|
||||
#define implement2(x, y, z) _PASTE2(x, implement2)(y, z)
|
||||
|
||||
// macros for the declaration of error-handling functions
|
||||
|
||||
extern genericerror(int, char*);
|
||||
typedef int (*GPT)(int, char*);
|
||||
#define set_handler(generic, type, x) _PASTE4(set_, type, generic, _handler)(x)
|
||||
#define errorhandler(generic, type) _PASTE3(type, generic, handler)
|
||||
#define callerror(generic, type, x, y) (*errorhandler(generic, type))(x, y)
|
||||
|
||||
#define name2(x, y) _ALT_PASTE2_x(x, y)
|
||||
#define name3(x, y, z) _ALT_PASTE3_x(x, y, z)
|
||||
#define name4(w, x, y, z) _ALT_PASTE4_x(w, x, y, z)
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,80 @@
|
||||
/* Generated by Ctran from gridwin.cl */
|
||||
#define GRIDWIN_G
|
||||
#ifndef BWIN_G
|
||||
#include <bwin.g>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_GRIDWIN 20
|
||||
/* Method Numbers */
|
||||
#define O_GW_GET_CURRENT 19
|
||||
#define O_GW_SET_ROW_HEIGHT 18
|
||||
#define O_GW_HIGHLIGHT 21
|
||||
#define O_GW_SET_COL_WIDTH 17
|
||||
#define O_GW_DRAW_CELLS 15
|
||||
#define O_GW_MOVE_TO 16
|
||||
#define O_GW_ZOOM 20
|
||||
#define O_GW_GET_DATA 22
|
||||
#define O_GW_GET_CELL_RECT 14
|
||||
/* Constants for gridwin */
|
||||
#define PR_GRIDWIN_MIN_COL_WIDTH 4
|
||||
#define PR_GRIDWIN_CELL_HGAP 2
|
||||
#define PR_GRIDWIN_CELL_LGAP 2
|
||||
#define PR_GRIDWIN_BORDER_WIDTH 1
|
||||
#define PR_GRIDWIN_SCROLL_SMALL 6
|
||||
#define PR_GRIDWIN_SCROLL_LARGE 9
|
||||
#define PR_GRIDWIN_SCROLL_ARROW 15
|
||||
#define PR_GRIDWIN_PLOT_X 0
|
||||
#define PR_GRIDWIN_PLOT_Y 2
|
||||
#define PR_GRIDWIN_ALLOC_THRESH 16
|
||||
#define PR_GRIDWIN_COMPLETE_ONLY 0x01
|
||||
#define PR_GRIDWIN_GRIDLINES 0x02
|
||||
#define PR_GRIDWIN_FREE_SIZES 0x04
|
||||
#define PR_GRIDWIN_GRID_SIZE 0x01
|
||||
#define PR_GRIDWIN_LOCK 0x02
|
||||
#define PR_GRIDWIN_SIZES 0x04
|
||||
#define PR_GRIDWIN_FLAGS 0x08
|
||||
#define PR_GRIDWIN_XPLANE 0x10
|
||||
#define PR_GRIDWIN_YPLANE 0x20
|
||||
#define PR_GRIDWIN_ZOOMBASE 0x40
|
||||
#define PR_GRIDWIN_SCROLL 0x80
|
||||
/* Types for gridwin */
|
||||
typedef struct
|
||||
{
|
||||
int locked;
|
||||
int anchor;
|
||||
int current;
|
||||
int visible;
|
||||
unsigned char clipped;
|
||||
unsigned char full;
|
||||
int total;
|
||||
int *psize;
|
||||
int defsize;
|
||||
int numspec;
|
||||
int scroll;
|
||||
int gutter;
|
||||
int max;
|
||||
int plot;
|
||||
unsigned short int flags;
|
||||
void *ptr;
|
||||
} GRID_PLANE;
|
||||
typedef struct
|
||||
{
|
||||
GRID_PLANE xplane;
|
||||
GRID_PLANE yplane;
|
||||
int zoombase;
|
||||
int zoom;
|
||||
unsigned short int flags;
|
||||
} IN_GRIDWIN;
|
||||
/* Property of gridwin */
|
||||
typedef struct {
|
||||
IN_GRIDWIN params;
|
||||
P_EXTENT wextent;
|
||||
unsigned short int fascent;
|
||||
unsigned char fstyle;
|
||||
} PRS_GRIDWIN;
|
||||
typedef struct pr_gridwin
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_GRIDWIN gridwin;
|
||||
} PR_GRIDWIN;
|
||||
@@ -0,0 +1,77 @@
|
||||
; Generated by Ctran from gridwin.cl
|
||||
GRIDWIN_ING equ 1
|
||||
IFNDEF BWIN_ING
|
||||
INCLUDE ..\inc\BWIN.ING
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_GRIDWIN equ 20
|
||||
; Method Numbers
|
||||
O_GW_GET_CURRENT equ 19
|
||||
O_GW_SET_ROW_HEIGHT equ 18
|
||||
O_GW_HIGHLIGHT equ 21
|
||||
O_GW_SET_COL_WIDTH equ 17
|
||||
O_GW_DRAW_CELLS equ 15
|
||||
O_GW_MOVE_TO equ 16
|
||||
O_GW_ZOOM equ 20
|
||||
O_GW_GET_DATA equ 22
|
||||
O_GW_GET_CELL_RECT equ 14
|
||||
; Constants for gridwin
|
||||
PR_GRIDWIN_MIN_COL_WIDTH equ (4)
|
||||
PR_GRIDWIN_CELL_HGAP equ (2)
|
||||
PR_GRIDWIN_CELL_LGAP equ (2)
|
||||
PR_GRIDWIN_BORDER_WIDTH equ (1)
|
||||
PR_GRIDWIN_SCROLL_SMALL equ (6)
|
||||
PR_GRIDWIN_SCROLL_LARGE equ (9)
|
||||
PR_GRIDWIN_SCROLL_ARROW equ (15)
|
||||
PR_GRIDWIN_PLOT_X equ (0)
|
||||
PR_GRIDWIN_PLOT_Y equ (2)
|
||||
PR_GRIDWIN_ALLOC_THRESH equ (16)
|
||||
PR_GRIDWIN_COMPLETE_ONLY equ (001h)
|
||||
PR_GRIDWIN_GRIDLINES equ (002h)
|
||||
PR_GRIDWIN_FREE_SIZES equ (004h)
|
||||
PR_GRIDWIN_GRID_SIZE equ (001h)
|
||||
PR_GRIDWIN_LOCK equ (002h)
|
||||
PR_GRIDWIN_SIZES equ (004h)
|
||||
PR_GRIDWIN_FLAGS equ (008h)
|
||||
PR_GRIDWIN_XPLANE equ (010h)
|
||||
PR_GRIDWIN_YPLANE equ (020h)
|
||||
PR_GRIDWIN_ZOOMBASE equ (040h)
|
||||
PR_GRIDWIN_SCROLL equ (080h)
|
||||
; Types for gridwin
|
||||
GRID_PLANE struc
|
||||
GRID_PLANELocked dw ?
|
||||
GRID_PLANEAnchor dw ?
|
||||
GRID_PLANECurrent dw ?
|
||||
GRID_PLANEVisible dw ?
|
||||
GRID_PLANEClipped db ?
|
||||
GRID_PLANEFull db ?
|
||||
GRID_PLANETotal dw ?
|
||||
GRID_PLANEPsize dw ?
|
||||
GRID_PLANEDefsize dw ?
|
||||
GRID_PLANENumspec dw ?
|
||||
GRID_PLANEScroll dw ?
|
||||
GRID_PLANEGutter dw ?
|
||||
GRID_PLANEMax dw ?
|
||||
GRID_PLANEPlot dw ?
|
||||
GRID_PLANEFlags dw ?
|
||||
GRID_PLANEPtr dw ?
|
||||
GRID_PLANE ends
|
||||
IN_GRIDWIN struc
|
||||
IN_GRIDWINXplane GRID_PLANE <>
|
||||
IN_GRIDWINYplane GRID_PLANE <>
|
||||
IN_GRIDWINZoombase dw ?
|
||||
IN_GRIDWINZoom dw ?
|
||||
IN_GRIDWINFlags dw ?
|
||||
IN_GRIDWIN ends
|
||||
; Property of gridwin
|
||||
PRS_GRIDWIN struc
|
||||
GridwinParams IN_GRIDWIN <>
|
||||
GridwinWextent P_EXTENT <>
|
||||
GridwinFascent dw ?
|
||||
GridwinFstyle db ?
|
||||
PRS_GRIDWIN ends
|
||||
PR_GRIDWIN struc
|
||||
GridwinRoot PRS_ROOT <>
|
||||
GridwinWin PRS_WIN <>
|
||||
GridwinGridwin PRS_GRIDWIN <>
|
||||
PR_GRIDWIN ends
|
||||
@@ -0,0 +1,39 @@
|
||||
/* HEADER - H_EVAL.H
|
||||
Epoc/Os structures and constants.
|
||||
Copyright (c) Psion PLC 1991.
|
||||
|
||||
VER DATE BY DESCRIPTION
|
||||
----- -------- ---- -----------
|
||||
1.00F 12/03/91 PST Final release
|
||||
*/
|
||||
|
||||
#define EVAL_DEFAULT_PLACES 2
|
||||
#define EVAL_DEFAULT_FMT_TYPE P_DTOB_FIXED
|
||||
#define CALC_MAX_PLACES 12
|
||||
#define CALC_DEFAULT_PLACES CALC_MAX_PLACES
|
||||
#define CALC_DEFAULT_FMT_TYPE P_DTOB_GENERAL
|
||||
#define MAX_MEMORIES 10
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UBYTE evalFormat; /* Dtob format code for all except calc */
|
||||
UBYTE evalDPlaces; /* Decimal places for all except calc */
|
||||
UBYTE calcFormat; /* Dtob format code */
|
||||
UBYTE calcDPlaces; /* Decimal places, if relevant */
|
||||
DOUBLE values[MAX_MEMORIES];
|
||||
} MEM_VALUES;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UBYTE nameLbc;
|
||||
UBYTE name[3];
|
||||
UBYTE valueLbc;
|
||||
MEM_VALUES value;
|
||||
} MEM_ENV;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UBYTE evalDegrees;
|
||||
UBYTE calcDegrees;
|
||||
MEM_VALUES memVal;
|
||||
} EXTENDED_MEM_VALUES;
|
||||
@@ -0,0 +1,43 @@
|
||||
.xlist
|
||||
; Include file - H_EVAL.INC
|
||||
; Epoc/Os OPL runtime include file
|
||||
; Copyright (c) Psion PLC 1988.
|
||||
; VER DATE BY DESCRIPTION
|
||||
; ----- -------- ---- -----------
|
||||
; 1.00A 04/06/91 HP First release
|
||||
;
|
||||
H_EVAL_INC equ 1
|
||||
.xlist
|
||||
;
|
||||
EVAL_DEFAULT_PLACES equ 2
|
||||
EVAL_DEFAULT_FMT_TYPE equ DtobTypeFixed
|
||||
CALC_MAX_PLACES equ 12
|
||||
CALC_DEFAULT_PLACES equ CALC_MAX_PLACES
|
||||
CALC_DEFAULT_FMT_TYPE equ DtobTypeGeneral
|
||||
MAX_MEMORIES equ 10
|
||||
;
|
||||
MEM_VALUES struc
|
||||
memValuesEvalFormat db ?
|
||||
memValuesEvalDPlaces db ?
|
||||
memValuesCalcFormat db ?
|
||||
memValuesCalcDPlaces db ?
|
||||
memValuesMemories dq MAX_MEMORIES dup (?)
|
||||
MEM_VALUES ends
|
||||
;
|
||||
; Memory environment variable structure (name M$V)
|
||||
;
|
||||
MEM_ENV struc
|
||||
memEnvNameLbc db ?
|
||||
memEnvName db 3 dup (?)
|
||||
memEnvValueLbc db ?
|
||||
memEnvValue MEM_VALUES <>
|
||||
MEM_ENV ends
|
||||
;
|
||||
sizeMemName = memEnvValueLbc-memEnvName ; M$V
|
||||
;
|
||||
EXTENDED_MEM_VALUES struc
|
||||
exMemValuesEvalDegrees db ?
|
||||
exMemValuesCalcDegrees db ?
|
||||
exMemValuesMemValues MEM_VALUES <>
|
||||
EXTENDED_MEM_VALUES ends
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
HEADER - H_FILE.H
|
||||
*/
|
||||
|
||||
#define H_FILE_H
|
||||
|
||||
#define H_FILE_ALLOW_DIRS 0x02
|
||||
#define H_FILE_JUST_DIRS 0x04
|
||||
#define H_FILE_FORCE_NXIST 0x08
|
||||
#define H_FILE_NO_AUTOQUERY 0x10
|
||||
#define H_FILE_ACCEPT_NULL 0x20
|
||||
#define H_FILE_SET_DEFEXT 0x40
|
||||
#define H_FILE_CAN_WILDCARD 0x80
|
||||
|
||||
#define H_FILE_STANDARD_INIT 0x01
|
||||
#define H_FILE_RESTRICT_LIST H_FILE_FORCE_NXIST
|
||||
#define H_FILE_CAN_TAG H_FILE_NO_AUTOQUERY
|
||||
|
||||
#define H_FILE_HWIF_MASK 0xfe
|
||||
#define H_FILE_PICK_SELECTOR 0
|
||||
#define H_FILE_NEW_EDITOR 0x01
|
||||
|
||||
#define H_FILE_IS_DIR 0x01
|
||||
#define H_FILE_AT_ROOT 0x02
|
||||
#define H_FILE_IS_ROOT 0x03
|
||||
@@ -0,0 +1,29 @@
|
||||
.xlist
|
||||
; Include file - H_FILE.INC
|
||||
; Flags for Hwif file selector and editor
|
||||
; Copyright (c) Psion PLC 1988.
|
||||
; VER DATE BY DESCRIPTION
|
||||
; ----- -------- ---- -----------
|
||||
; 28/08/91 HP First release
|
||||
;
|
||||
H_FILE_INC equ 1
|
||||
;
|
||||
H_FILE_ALLOW_DIRS equ 02h
|
||||
H_FILE_JUST_DIRS equ 04h
|
||||
H_FILE_FORCE_NXIST equ 08h
|
||||
H_FILE_NO_AUTOQUERY equ 10h
|
||||
H_FILE_ACCEPT_NULL equ 20h
|
||||
H_FILE_SET_DEFEXT equ 40h
|
||||
H_FILE_CAN_WILDCARD equ 80h
|
||||
|
||||
H_FILE_STANDARD_INIT equ 01h
|
||||
H_FILE_RESTRICT_LIST equ H_FILE_FORCE_NXIST
|
||||
H_FILE_CAN_TAG equ H_FILE_NO_AUTOQUERY
|
||||
|
||||
H_FILE_HWIF_MASK equ 0feh
|
||||
H_FILE_PICK_SELECTOR equ 0h
|
||||
H_FILE_NEW_EDITOR equ 01h
|
||||
|
||||
H_FILE_IS_DIR equ 01h
|
||||
H_FILE_AT_ROOT equ 02h
|
||||
H_FILE_IS_ROOT equ 03h
|
||||
@@ -0,0 +1,53 @@
|
||||
/* Generated by Ctran from hactive.cl */
|
||||
#define HACTIVE_G
|
||||
#ifndef APPMAN_G
|
||||
#include <appman.g>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_SHUTTER 49
|
||||
#define C_WAOTSTAT 50
|
||||
#define C_HAIDLE 51
|
||||
#define C_DIALAO 52
|
||||
/* Method Numbers */
|
||||
#define O_HAI_KEY 6
|
||||
/* Constants for shutter */
|
||||
#define SHUTTER_BUFFER_LEN 128
|
||||
#define SHUTTER_COUNT_MAX 32
|
||||
/* Property of shutter */
|
||||
typedef struct {
|
||||
short int count;
|
||||
unsigned char buf[128];
|
||||
} PRS_SHUTTER;
|
||||
typedef struct pr_shutter
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
PRS_SHUTTER shutter;
|
||||
} PR_SHUTTER;
|
||||
/* Property of waotstat */
|
||||
typedef struct {
|
||||
unsigned short int count;
|
||||
} PRS_WAOTSTAT;
|
||||
typedef struct pr_waotstat
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
PRS_WAOTSTAT waotstat;
|
||||
} PR_WAOTSTAT;
|
||||
/* Property of haidle */
|
||||
typedef struct {
|
||||
void *rbuf;
|
||||
} PRS_HAIDLE;
|
||||
typedef struct pr_haidle
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
PRS_HAIDLE haidle;
|
||||
} PR_HAIDLE;
|
||||
/* Property of dialao */
|
||||
typedef struct pr_dialao
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
PRS_HAIDLE haidle;
|
||||
} PR_DIALAO;
|
||||
@@ -0,0 +1,49 @@
|
||||
; Generated by Ctran from hactive.cl
|
||||
HACTIVE_ING equ 1
|
||||
IFNDEF APPMAN_ING
|
||||
INCLUDE ..\inc\APPMAN.ING
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_SHUTTER equ 49
|
||||
C_WAOTSTAT equ 50
|
||||
C_HAIDLE equ 51
|
||||
C_DIALAO equ 52
|
||||
; Method Numbers
|
||||
O_HAI_KEY equ 6
|
||||
; Constants for shutter
|
||||
SHUTTER_BUFFER_LEN equ (128)
|
||||
SHUTTER_COUNT_MAX equ (32)
|
||||
; Property of shutter
|
||||
PRS_SHUTTER struc
|
||||
ShutterCount dw ?
|
||||
ShutterBuf db (1) * 128 dup (?)
|
||||
PRS_SHUTTER ends
|
||||
PR_SHUTTER struc
|
||||
ShutterRoot PRS_ROOT <>
|
||||
ShutterActive PRS_ACTIVE <>
|
||||
ShutterShutter PRS_SHUTTER <>
|
||||
PR_SHUTTER ends
|
||||
; Property of waotstat
|
||||
PRS_WAOTSTAT struc
|
||||
WaotstatCount dw ?
|
||||
PRS_WAOTSTAT ends
|
||||
PR_WAOTSTAT struc
|
||||
WaotstatRoot PRS_ROOT <>
|
||||
WaotstatActive PRS_ACTIVE <>
|
||||
WaotstatWaotstat PRS_WAOTSTAT <>
|
||||
PR_WAOTSTAT ends
|
||||
; Property of haidle
|
||||
PRS_HAIDLE struc
|
||||
HaidleRbuf dw ?
|
||||
PRS_HAIDLE ends
|
||||
PR_HAIDLE struc
|
||||
HaidleRoot PRS_ROOT <>
|
||||
HaidleActive PRS_ACTIVE <>
|
||||
HaidleHaidle PRS_HAIDLE <>
|
||||
PR_HAIDLE ends
|
||||
; Property of dialao
|
||||
PR_DIALAO struc
|
||||
DialaoRoot PRS_ROOT <>
|
||||
DialaoActive PRS_ACTIVE <>
|
||||
DialaoHaidle PRS_HAIDLE <>
|
||||
PR_DIALAO ends
|
||||
@@ -0,0 +1,39 @@
|
||||
/* INCLUDE - HASRV.H
|
||||
Consumer Handheld alarm server constants.
|
||||
Copyright (c) Psion PLC 1991 - 1996.
|
||||
|
||||
*/
|
||||
#define HASRV_H
|
||||
#ifndef P_FILE_H
|
||||
#include <p_file.h>
|
||||
#endif
|
||||
|
||||
#define TypeTimedAlarm 1 /* Timed diary type alarm */
|
||||
#define TypeUnTimedAlarm 2 /* Untimed diary type alarm */
|
||||
#define OldMaxAlarmText 65 /* S3 Maximum size of alarm text including zts */
|
||||
#define MaxAlarmText 161 /* Maximum size of alarm text including zts */
|
||||
|
||||
/* ALM: i/o functions as well as P_FCLOSE and P_FCANCEL */
|
||||
#define A_FUNTIMED P_FREAD
|
||||
#define A_FTIMED P_FWRITE
|
||||
#define A_FUNTIMED_X P_FSEEK
|
||||
#define A_FTIMED_X P_FSETEOF
|
||||
|
||||
#define TIME_TO_ALERT 0 /* First time is when to raise the alert */
|
||||
#define TIME_EVENT_DUE 1 /* Second time is when the actual event is due */
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UBYTE len;
|
||||
TEXT name[8];
|
||||
UBYTE zero_term;
|
||||
} SE_SND;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
ULONG absTime; /* Alarm time in seconds */
|
||||
ULONG dueTime; /* Actual time alarm is due for */
|
||||
SE_SND sound; /* The sound to play */
|
||||
} AXDATA;
|
||||
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
/* Generated by Ctran from help.cl */
|
||||
#define HELP_G
|
||||
#ifndef DLGBOX_G
|
||||
#include <dlgbox.g>
|
||||
#endif
|
||||
#ifndef LISTBOX_G
|
||||
#include <listbox.g>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_HELPLIST 47
|
||||
#define C_HELPDLG 48
|
||||
/* Method Numbers */
|
||||
/* Types for helplist */
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int topic_id;
|
||||
char topic[1];
|
||||
} HELP_RSC;
|
||||
/* Property of helplist */
|
||||
typedef struct {
|
||||
PR_VASTR *list;
|
||||
PR_VAFLAT *ids;
|
||||
unsigned short int firsttop;
|
||||
char title[50];
|
||||
} PRS_HELPLIST;
|
||||
typedef struct pr_helplist
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_LISTBOX listbox;
|
||||
PRS_HELPLIST helplist;
|
||||
} PR_HELPLIST;
|
||||
/* Property of helpdlg */
|
||||
typedef struct {
|
||||
PR_HELPLIST *listbox;
|
||||
} PRS_HELPDLG;
|
||||
typedef struct pr_helpdlg
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_WIN win;
|
||||
PRS_DLGCHAIN dlgchain;
|
||||
PRS_HELPDLG helpdlg;
|
||||
} PR_HELPDLG;
|
||||
@@ -0,0 +1,40 @@
|
||||
; Generated by Ctran from help.cl
|
||||
HELP_ING equ 1
|
||||
IFNDEF DLGBOX_ING
|
||||
INCLUDE ..\inc\DLGBOX.ING
|
||||
ENDIF
|
||||
IFNDEF LISTBOX_ING
|
||||
INCLUDE ..\inc\LISTBOX.ING
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_HELPLIST equ 47
|
||||
C_HELPDLG equ 48
|
||||
; Method Numbers
|
||||
; Types for helplist
|
||||
HELP_RSC struc
|
||||
HELP_RSCTopic_id dw ?
|
||||
HELP_RSCTopic db (1) * 1 dup (?)
|
||||
HELP_RSC ends
|
||||
; Property of helplist
|
||||
PRS_HELPLIST struc
|
||||
HelplistList dw ?
|
||||
HelplistIds dw ?
|
||||
HelplistFirsttop dw ?
|
||||
HelplistTitle db (1) * 50 dup (?)
|
||||
PRS_HELPLIST ends
|
||||
PR_HELPLIST struc
|
||||
HelplistRoot PRS_ROOT <>
|
||||
HelplistWin PRS_WIN <>
|
||||
HelplistListbox PRS_LISTBOX <>
|
||||
HelplistHelplist PRS_HELPLIST <>
|
||||
PR_HELPLIST ends
|
||||
; Property of helpdlg
|
||||
PRS_HELPDLG struc
|
||||
HelpdlgListbox dw ?
|
||||
PRS_HELPDLG ends
|
||||
PR_HELPDLG struc
|
||||
HelpdlgRoot PRS_ROOT <>
|
||||
HelpdlgWin PRS_WIN <>
|
||||
HelpdlgDlgchain PRS_DLGCHAIN <>
|
||||
HelpdlgHelpdlg PRS_HELPDLG <>
|
||||
PR_HELPDLG ends
|
||||
@@ -0,0 +1,29 @@
|
||||
/* Generated by Ctran from htime.cl */
|
||||
#define HTIME_G
|
||||
#ifndef TIME_G
|
||||
#include <time.g>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_HTIME 11
|
||||
/* Method Numbers */
|
||||
#define O_TO_SET_ABBREVIATIONS 10
|
||||
/* Constants for htime */
|
||||
#define PR_TIME_ABBREVIATE 0x1000
|
||||
#define PR_TIME_FORCE_UPDATE_FORMAT 0x2000
|
||||
#define HTIME_FIRST_DAY 29219L
|
||||
#define HTIME_LAST_DAY 54786L
|
||||
#define HTIME_FIRST_SEC 0L
|
||||
#define HTIME_LAST_SEC 86399L
|
||||
#define HTIME_FIRST_MIN 0L
|
||||
#define HTIME_LAST_MIN 86340L
|
||||
/* Property of htime */
|
||||
typedef struct {
|
||||
unsigned char tDay;
|
||||
unsigned char tMonth;
|
||||
} PRS_HTIME;
|
||||
typedef struct pr_htime
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_TIME time;
|
||||
PRS_HTIME htime;
|
||||
} PR_HTIME;
|
||||
@@ -0,0 +1,28 @@
|
||||
; Generated by Ctran from htime.cl
|
||||
HTIME_ING equ 1
|
||||
IFNDEF TIME_ING
|
||||
INCLUDE ..\inc\TIME.ING
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_HTIME equ 11
|
||||
; Method Numbers
|
||||
O_TO_SET_ABBREVIATIONS equ 10
|
||||
; Constants for htime
|
||||
PR_TIME_ABBREVIATE equ (01000h)
|
||||
PR_TIME_FORCE_UPDATE_FORMAT equ (02000h)
|
||||
HTIME_FIRST_DAY equ (29219L)
|
||||
HTIME_LAST_DAY equ (54786L)
|
||||
HTIME_FIRST_SEC equ (0L)
|
||||
HTIME_LAST_SEC equ (86399L)
|
||||
HTIME_FIRST_MIN equ (0L)
|
||||
HTIME_LAST_MIN equ (86340L)
|
||||
; Property of htime
|
||||
PRS_HTIME struc
|
||||
HtimeTDay db ?
|
||||
HtimeTMonth db ?
|
||||
PRS_HTIME ends
|
||||
PR_HTIME struc
|
||||
HtimeRoot PRS_ROOT <>
|
||||
HtimeTime PRS_TIME <>
|
||||
HtimeHtime PRS_HTIME <>
|
||||
PR_HTIME ends
|
||||
@@ -0,0 +1,341 @@
|
||||
/* HEADER - HWIF.H
|
||||
Copyright (C) Psion PLC 1992
|
||||
VER DATE BY DESCRIPTION
|
||||
===== ======== === ===========
|
||||
1.20F 08/11/92 DWW New version for Developers Conference
|
||||
2.00F 01/12/93 DWW Version 2 C SDK
|
||||
*/
|
||||
#define HWIF_H
|
||||
#ifndef P_GRAF_H
|
||||
#include <p_graf.h>
|
||||
#endif
|
||||
#ifndef WLIB_H
|
||||
#include <wlib.h>
|
||||
#endif
|
||||
#ifdef STDEPOC_H
|
||||
# ifndef P_CONS_H
|
||||
# include <p_cons.h>
|
||||
# endif
|
||||
#else
|
||||
# ifndef EPOCCONS_H
|
||||
# include <epoccons.h>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char *title;
|
||||
unsigned short int nlines;
|
||||
} H_MENU_DATA;
|
||||
#define H_DIALOG_TEXT 0
|
||||
#define H_DIALOG_CHOICE 1
|
||||
#define H_DIALOG_NUMBER 2
|
||||
#define H_DIALOG_FLOAT 3
|
||||
#define H_DIALOG_TIME 4
|
||||
#define H_DIALOG_DATE 5
|
||||
#define H_DIALOG_EDIT 6
|
||||
#define H_DIALOG_SEDIT 7
|
||||
#define H_DIALOG_XINPUT 8
|
||||
#define H_DIALOG_FSEL 9
|
||||
#define H_DIALOG_BUTTONS 10
|
||||
typedef struct
|
||||
{
|
||||
char *str;
|
||||
unsigned short int type;
|
||||
} H_DI_TEXT;
|
||||
#define H_DTEXT_ALIGN_LEFT 0
|
||||
#define H_DTEXT_ALIGN_RIGHT 1
|
||||
#define H_DTEXT_ALIGN_CENTRE 2
|
||||
#define H_DTEXT_BOLD 0x100
|
||||
#define H_DTEXT_UNDERLINE 0x200
|
||||
#define H_DTEXT_SELECTABLE 0x400
|
||||
typedef struct
|
||||
{
|
||||
union
|
||||
{
|
||||
unsigned short int *sel;
|
||||
unsigned short int count;
|
||||
} u;
|
||||
void *menu;
|
||||
} H_DI_CHOICE;
|
||||
typedef struct
|
||||
{
|
||||
long int *value;
|
||||
long int low;
|
||||
long int high;
|
||||
} H_DI_NUMBER;
|
||||
typedef struct
|
||||
{
|
||||
double *value;
|
||||
double low;
|
||||
double high;
|
||||
} H_DI_FLOAT;
|
||||
typedef struct
|
||||
{
|
||||
unsigned long int *value;
|
||||
unsigned long int low;
|
||||
unsigned long int high;
|
||||
unsigned short int type;
|
||||
} H_DI_TIME;
|
||||
#define H_DTIME_SHOW_SECONDS 1
|
||||
#define H_DTIME_DURATION 2
|
||||
typedef struct
|
||||
{
|
||||
unsigned long int *value;
|
||||
unsigned long int low;
|
||||
unsigned long int high;
|
||||
} H_DI_DATE;
|
||||
#define H_LAST_DAY 93501l
|
||||
#define H_FIRST_SYS_DAY 25567l
|
||||
#define H_LAST_SYS_DAY 75276l
|
||||
typedef struct
|
||||
{
|
||||
char *str;
|
||||
unsigned short int len;
|
||||
} H_DI_EDIT;
|
||||
typedef struct
|
||||
{
|
||||
char *str;
|
||||
unsigned short int len;
|
||||
unsigned short int width;
|
||||
} H_DI_SEDIT;
|
||||
typedef struct
|
||||
{
|
||||
char *str;
|
||||
} H_DI_XINPUT;
|
||||
typedef struct
|
||||
{
|
||||
char *fname;
|
||||
unsigned short int flags;
|
||||
} H_DI_FSEL;
|
||||
typedef struct
|
||||
{
|
||||
char *str;
|
||||
short int accel;
|
||||
} H_CARD;
|
||||
typedef struct
|
||||
{
|
||||
char *str;
|
||||
} H_CHOICE;
|
||||
typedef struct
|
||||
{
|
||||
char *str;
|
||||
unsigned short int keycode;
|
||||
} H_BUTTON;
|
||||
#define W_EVENT_KEY (CONS_SPECIAL_EVENT*256)
|
||||
#define H_FILE_ALLOW_DIRS 0x02
|
||||
#define H_FILE_JUST_DIRS 0x04
|
||||
#define H_FILE_FORCE_NXIST 0x08
|
||||
#define H_FILE_NO_AUTOQUERY 0x10
|
||||
#define H_FILE_ACCEPT_NULL 0x20
|
||||
#define H_FILE_SET_DEFEXT 0x40
|
||||
#define H_FILE_CAN_WILDCARD 0x80
|
||||
#define H_FILE_RESTRICT_LIST H_FILE_FORCE_NXIST
|
||||
#define H_FILE_PICK_SELECTOR 0
|
||||
#define H_FILE_NEW_EDITOR 0x01
|
||||
#define H_PRINT_PAGE 0x01
|
||||
#define H_PRINT_LINE 0x02
|
||||
#define H_PRINT_RIGHT 0x04
|
||||
#define H_PRINT_TEXT 0x10
|
||||
#define H_PRINT_KEEP 0x8000
|
||||
#define H_PRINT_STY_UNDERLINE 0x01
|
||||
#define H_PRINT_STY_BOLD 0x02
|
||||
#define H_PRINT_STY_ITALIC 0x04
|
||||
#define H_PRINT_STY_SUPER 0x08
|
||||
#define H_PRINT_STY_SUB 0x10
|
||||
typedef struct
|
||||
{
|
||||
short int flags;
|
||||
short int typf;
|
||||
short int fheight;
|
||||
short int style;
|
||||
short int down;
|
||||
short int indent;
|
||||
short int height;
|
||||
short int right;
|
||||
char *buf;
|
||||
unsigned short int blen;
|
||||
} H_PRINT;
|
||||
#define H_TIME_SET_SDATE 0
|
||||
#define H_TIME_SET_DATE 1
|
||||
#define H_TIME_SET_DAYSEC 2
|
||||
#define H_TIME_SET_NOW 3
|
||||
#define H_TIME_SENSE_BOTH 3
|
||||
#define H_TIME_SENSE_DATE 4
|
||||
#define H_TIME_SENSE_TIME 5
|
||||
#define H_TIME_FORMAT_NO_DAY 0x0004
|
||||
#define H_TIME_FORMAT_NO_MONTH 0x0008
|
||||
#define H_TIME_FORMAT_NO_YEAR 0x0010
|
||||
#define H_TIME_FORMAT_MONTH_NAME 0x0020
|
||||
#define H_TIME_FORMAT_SUFFIX 0x0040
|
||||
#define H_TIME_FORMAT_DAY_NAME 0x0080
|
||||
#define H_TIME_FORMAT_NO_CENTURY 0x0100
|
||||
#define H_TIME_FORMAT_NO_SECONDS 0x0200
|
||||
#define H_ALARM_TIMED 2
|
||||
#define H_ALARM_UNTIMED 1
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int maxchars;
|
||||
unsigned short int vulen;
|
||||
unsigned short int vislines;
|
||||
P_POINT pos;
|
||||
unsigned short int win;
|
||||
unsigned short int font;
|
||||
unsigned short int style;
|
||||
unsigned short int lead_tot;
|
||||
unsigned short int lead_top;
|
||||
} H_EDIT_BOX;
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int pos;
|
||||
short int line;
|
||||
short int x;
|
||||
} H_SCRLAY_PLX;
|
||||
#define H_EDIT_BOX_CLIPBOARD 0x0040
|
||||
#define H_EDIT_BOX_LEFT_CURSOR 0x0200
|
||||
#define H_EDIT_BOX_FONT 0x1000
|
||||
#define H_EDIT_BOX_LEADING 0x2000
|
||||
#define H_EDIT_BOX_VISLINES 0x4000
|
||||
#define HEB_FIND_BACKWARDS 0x01
|
||||
#define HEB_FIND_CASESENS 0x02
|
||||
#define H_DTEDIT_DDMMYYYY 0x0000
|
||||
#define H_DTEDIT_HHMMSS 0x1100
|
||||
#define H_DTEDIT_HHMM 0x0100
|
||||
#define H_DTEDIT_HHMMSS_D 0x1300
|
||||
#define H_DTEDIT_HHMM_D 0x0300
|
||||
#define H_DTEDIT_SET_VALUE 0x0001
|
||||
#define H_DTEDIT_SET_LOW 0x0002
|
||||
#define H_DTEDIT_SET_HIGH 0x0004
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int flags;
|
||||
long int value;
|
||||
long int low;
|
||||
long int high;
|
||||
P_POINT pos;
|
||||
unsigned short int win;
|
||||
unsigned short int width;
|
||||
unsigned short int emph;
|
||||
} H_DTEDIT;
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int flags;
|
||||
long int value;
|
||||
long int low;
|
||||
long int high;
|
||||
} H_SE_DTEDIT;
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
extern int hIFInit(void *);
|
||||
extern int hMenuOpen(void);
|
||||
extern int hMenuAdd(char *,void *);
|
||||
extern int hMenuRun(void);
|
||||
extern void hMenuClose(void);
|
||||
extern int hDlgOpen(char *);
|
||||
extern int hDlgAdd(unsigned short int,char *,void *);
|
||||
extern int hDlgRun(void);
|
||||
extern void hDlgClose(void);
|
||||
extern int hDlgPosition(int x,int y);
|
||||
extern void *hCardOpen(void);
|
||||
extern int hCardAdd(void *,int,int,char *);
|
||||
extern void hCardClose(void *);
|
||||
extern void *hChoiceOpen(void);
|
||||
extern int hChoiceAdd(void *,int,char *);
|
||||
extern void hChoiceClose(void *);
|
||||
extern void *hButtonOpen(void);
|
||||
extern int hButtonAdd(void *,int,int,char *);
|
||||
extern void hButtonClose(void *);
|
||||
extern void hEnsurePath(char *fname);
|
||||
extern void hSetUpStatusNames(char *pb);
|
||||
extern int hCrackCommandLine(void);
|
||||
extern int hIsDbfCompressible(void *dH);
|
||||
extern int hDTMFString(char *zts);
|
||||
extern unsigned int hLastSystemKey(unsigned int *pmodifiers);
|
||||
extern void uCommonInit(void);
|
||||
extern void uEnableGrey(void);
|
||||
extern void uGetKey(WMSG_KEY *pkey);
|
||||
extern void uGetKeyA(short int *pstat,WMSG_KEY *pkey);
|
||||
extern void uCancelGetKeyA(void);
|
||||
extern int uKeyPressOutstanding(void);
|
||||
extern void uEscape(unsigned short int flag);
|
||||
extern unsigned int uFindMainWid(void);
|
||||
extern void uForceToFront(void);
|
||||
extern void uErrorString(char *message);
|
||||
extern int uErrorValue(int ret);
|
||||
extern void *uCheckHandle(void *handle);
|
||||
extern void uZTStoBCS(char *bcs,char *zts);
|
||||
extern int uOpenDialog(char *title);
|
||||
extern int uAddDialogItem(int type,char *prompt,void *data);
|
||||
extern int uRunDialog(void);
|
||||
extern int cdecl uAddButtonList(char *but,int code,...);
|
||||
extern int uBeginDCL(H_DI_CHOICE *pch);
|
||||
extern int uGrowDCL(H_DI_CHOICE *pch,char *choice);
|
||||
extern int uAddDCL(char *prompt,unsigned short int *nsel,H_DI_CHOICE *pch);
|
||||
extern int cdecl uAddChoiceList(char *prompt,unsigned short int *nsel,char *choice,...);
|
||||
extern int cdecl uDialogMenu(char *title,char *pb,...);
|
||||
extern void cdecl uDisplayText(char *pb,...);
|
||||
extern int uPresentMenus(void);
|
||||
extern void uAddGreyUline(unsigned char,unsigned short int *plines);
|
||||
extern void uSetDialogUline(int pos,int on);
|
||||
extern int uLocateCommand(int accel);
|
||||
extern void hPrintSetupDialog(void);
|
||||
extern void hPrint(int printline(H_PRINT *));
|
||||
extern void hPrinterSetupDialog(void);
|
||||
extern void hPrintSetSI(unsigned int subsqind);
|
||||
extern int hPrintSensePageWidth(void);
|
||||
extern int hPrintSenseBufWidth(char *buf,int blen);
|
||||
extern void hHelpSubSystem(int startid,int indexid);
|
||||
extern void *hTTOpen(void);
|
||||
extern int hTTSetTime(void *handle,int type,void *data);
|
||||
extern int hTTSenseString(void *handle,int type,char *buf);
|
||||
extern void hTTSetFormat(void *handle,int values);
|
||||
extern void hTTSetAbbreviations(void *handle,int dayabb,int monabb);
|
||||
extern void hTTClose(void *handle);
|
||||
extern int hEBHandleKey(void *ebH,int keycode,int modifier);
|
||||
extern int hEBCompleteFormat(void *ebH);
|
||||
extern char *hEBSenseText(void *ebH);
|
||||
extern int hEBSetText(void *ebH,char *pb,int blen);
|
||||
extern void hEBEmphasise(void *ebH,int flag);
|
||||
extern int hEBSetSelect(void *ebH,int aoff,int coff);
|
||||
extern int hEBSenseSelect(void *ebH,unsigned short int *top);
|
||||
extern int hEBSetClipText(void *ebH,char *pb,int blen);
|
||||
extern char *hEBSenseClipText(void *ebH);
|
||||
extern int hEBEvaluate(void *ebH);
|
||||
extern int hEBSetMargin(void *ebH,unsigned int right);
|
||||
extern unsigned int hEBSenseMargin(void *ebH);
|
||||
extern int hEBChangeWidth(void *ebH,int width);
|
||||
extern void hEBSetCWidth(void *ebH,int cwidth);
|
||||
extern int hEBInsert(void *ebH,char *pb,int blen);
|
||||
extern int hEBReplace(void *ebH,char *replace,int backwards);
|
||||
extern int hEBCopy(void *ebH);
|
||||
extern int hEBPaste(void *ebH);
|
||||
extern int hEBFind(void *ebH,char *str,int flags);
|
||||
extern int hEBSenseChanged(void *ebH);
|
||||
extern void hEBClearChanged(void *ebH);
|
||||
extern int hEBShowSymbols(void *ebH,int flag);
|
||||
extern void *hEBOpen(int flags,H_EDIT_BOX *heb);
|
||||
extern void hEBClose(void *ebH);
|
||||
extern void *hEBSenseDoc(void *ebH);
|
||||
extern int hEDCapacity(void *doc,unsigned int maxlen);
|
||||
extern int hEDInsert(void *doc,unsigned int pos,void *buf,unsigned int len);
|
||||
extern int hEBDocChanged(void *ebH);
|
||||
extern int hEBPosToXL(void *ebH,H_SCRLAY_PLX *plx);
|
||||
extern void hDeclareAppRcb(void *rcb);
|
||||
extern void *hInitAppRcb(void);
|
||||
extern int hSetSystemResLang(int lang);
|
||||
extern void hRequestReplacePack(void *rcb,char *fname);
|
||||
extern void *hDTOpen(H_DTEDIT *dte);
|
||||
extern void hDTClose(void *dte);
|
||||
extern void hDTSet(void *dte,H_SE_DTEDIT *sdte);
|
||||
extern void hDTSense(void *dte,H_SE_DTEDIT *sdte);
|
||||
extern int hDTSelfCheck(void *dte);
|
||||
extern int hDTHandleKey(void *dte,int keycode,int modifier);
|
||||
extern void hDTEmphasise(void *dte,int flag);
|
||||
extern void hSetVarrayInChlist(int index,int nsel,void *varray);
|
||||
extern void hOODialog(int catHandle,int classno,int resid,void *rbuf);
|
||||
extern int hLoadOwnDyl(int index);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,577 @@
|
||||
Generated by Ctran from hwim.cat
|
||||
LIBRARY hwim
|
||||
CLASS gate root
|
||||
{
|
||||
DECLARE gt_init
|
||||
DECLARE gt_menu_open
|
||||
DECLARE gt_menu_add
|
||||
DECLARE gt_menu_run
|
||||
DECLARE gt_menu_close
|
||||
DECLARE gt_dial_open
|
||||
DECLARE gt_dial_add
|
||||
DECLARE gt_dial_run
|
||||
DECLARE gt_dial_close
|
||||
DECLARE gt_card_open
|
||||
DECLARE gt_card_add
|
||||
DECLARE gt_card_close
|
||||
DECLARE gt_choice_open
|
||||
DECLARE gt_choice_add
|
||||
DECLARE gt_choice_close
|
||||
DECLARE gt_button_open
|
||||
DECLARE gt_button_add
|
||||
DECLARE gt_button_close
|
||||
DECLARE gt_dial_position
|
||||
DECLARE gt_xw_enable
|
||||
DECLARE gt_return_signals
|
||||
DECLARE gt_check_ats_on
|
||||
DECLARE gt_last_key
|
||||
DECLARE gt_wdr_print
|
||||
DECLARE gt_wdr_print_setup
|
||||
DECLARE gt_do_help
|
||||
DECLARE gt_set_rscfile
|
||||
DECLARE gt_dial_sopen
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS win root
|
||||
{
|
||||
DECLARE wn_redraw
|
||||
DECLARE wn_dodraw
|
||||
DECLARE wn_connect
|
||||
DECLARE wn_position
|
||||
DECLARE wn_calc_position
|
||||
DECLARE wn_key
|
||||
DECLARE wn_visible
|
||||
DECLARE wn_emphasise
|
||||
DECLARE wn_sense_help
|
||||
DECLARE wn_set
|
||||
DECLARE wn_sense
|
||||
DECLARE wn_draw
|
||||
DECLARE wn_init
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS bwin win
|
||||
{
|
||||
HAS_METHOD
|
||||
}
|
||||
CLASS lodger win
|
||||
{
|
||||
DECLARE lg_set_id_pos
|
||||
DECLARE lg_draw
|
||||
DECLARE lg_self_check
|
||||
DECLARE lg_sense_width
|
||||
DECLARE lg_update
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS textwin lodger
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS matcher root
|
||||
{
|
||||
DECLARE im_init
|
||||
DECLARE im_set_buf
|
||||
DECLARE im_sense_buf
|
||||
DECLARE im_set_val
|
||||
DECLARE im_sense_val
|
||||
DECLARE im_try_match
|
||||
DECLARE im_transition
|
||||
DECLARE im_key
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS vmatcher matcher
|
||||
{
|
||||
DECLARE im_set_range
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS listbox bwin
|
||||
{
|
||||
DECLARE lb_draw_item
|
||||
DECLARE lb_draw_emphasis
|
||||
DECLARE lb_size_window
|
||||
DECLARE lb_item_width
|
||||
DECLARE lb_take_focus
|
||||
DECLARE lb_inquire_focus
|
||||
DECLARE lb_inquire_item
|
||||
DECLARE lb_inquire_last
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS pulldown listbox
|
||||
{
|
||||
HAS_METHOD
|
||||
}
|
||||
CLASS menutab bwin
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS menubar bwin
|
||||
{
|
||||
DECLARE mb_add_menu
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS htime time
|
||||
{
|
||||
DECLARE to_set_abbreviations
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS dlgchain bwin
|
||||
{
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS dlgbox dlgchain
|
||||
{
|
||||
DECLARE dl_item_lock
|
||||
DECLARE dl_item_dim
|
||||
DECLARE dl_set_item_flags
|
||||
DECLARE dl_clr_item_flags
|
||||
DECLARE dl_set_prompt
|
||||
DECLARE dl_take_focus
|
||||
DECLARE dl_handle_to_index
|
||||
DECLARE dl_index_to_handle
|
||||
DECLARE dl_item_replace
|
||||
DECLARE dl_item_append
|
||||
DECLARE dl_init
|
||||
DECLARE dl_dimmed_message
|
||||
DECLARE dl_item_add
|
||||
DECLARE dl_set_size
|
||||
DECLARE dl_inq_minsize
|
||||
DECLARE dl_dyn_init
|
||||
DECLARE dl_key
|
||||
DECLARE dl_changed
|
||||
DECLARE dl_focus
|
||||
DECLARE dl_launch_sub
|
||||
DECLARE dl_item_new
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS errordlg dlgbox
|
||||
{
|
||||
HAS_METHOD
|
||||
}
|
||||
CLASS querydlg dlgbox
|
||||
{
|
||||
HAS_METHOD
|
||||
}
|
||||
CLASS flistdlg dlgbox
|
||||
{
|
||||
HAS_METHOD
|
||||
}
|
||||
CLASS comman root
|
||||
{
|
||||
DECLARE com_init
|
||||
DECLARE com_statwin
|
||||
DECLARE com_accl_check
|
||||
DECLARE com_menu
|
||||
DECLARE com_mode_change
|
||||
DECLARE com_file_change
|
||||
DECLARE com_exit
|
||||
HAS_METHOD
|
||||
}
|
||||
CLASS wserv active
|
||||
{
|
||||
DECLARE ws_do_dial
|
||||
DECLARE ws_add_dial
|
||||
DECLARE ws_remove_dial
|
||||
DECLARE ws_sense_accel
|
||||
DECLARE ws_change_cliwin
|
||||
DECLARE ws_cancel
|
||||
DECLARE ws_wrap_para
|
||||
DECLARE ws_error_dialog
|
||||
DECLARE ws_query_dialog
|
||||
DECLARE ws_do_help
|
||||
DECLARE ws_do_submenu
|
||||
DECLARE ws_set_menubar
|
||||
DECLARE ws_reset_menubar
|
||||
DECLARE ws_load_chlist_res
|
||||
DECLARE ws_append_country
|
||||
DECLARE ws_free_dial
|
||||
DECLARE ws_smart_dial
|
||||
DECLARE ws_dial_env
|
||||
DECLARE ws_lock
|
||||
DECLARE ws_format_dialog
|
||||
DECLARE ws_evaluate
|
||||
DECLARE ws_eval_env
|
||||
DECLARE ws_sense_pdev_text
|
||||
DECLARE ws_edit_pdev_setup
|
||||
DECLARE ws_edit_print_context
|
||||
DECLARE ws_ens_print_context
|
||||
DECLARE ws_add_filelist
|
||||
DECLARE ws_remove_filelist
|
||||
DECLARE ws_anim_tick
|
||||
DECLARE ws_switch_files
|
||||
DECLARE ws_alert
|
||||
DECLARE ws_unknown_wm
|
||||
DECLARE ws_foreground
|
||||
DECLARE ws_background
|
||||
DECLARE ws_dyn_init
|
||||
DECLARE ws_process_key
|
||||
DECLARE ws_date_changed
|
||||
DECLARE ws_launch_dyl
|
||||
DECLARE ws_define_fnbar
|
||||
DECLARE ws_hook_today_changed
|
||||
DECLARE ws_get_alloc_info
|
||||
DECLARE ws_get_print_context
|
||||
DECLARE ws_self_check
|
||||
DECLARE ws_hide_app
|
||||
DECLARE ws_attach_app
|
||||
DECLARE ws_file_info_print
|
||||
DECLARE ws_run_memo
|
||||
DECLARE ws_do_remote_dial
|
||||
DECLARE ws_user_abandoned
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS hwimman appman
|
||||
{
|
||||
DECLARE am_new_filename
|
||||
DECLARE am_yield
|
||||
DECLARE am_ensure_ipcs
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS vares varoot
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS chlist lodger
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS smaclist lodger
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS aclist smaclist
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS gauge lodger
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS donewn gauge
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS xedit lodger
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS mfne lodger
|
||||
{
|
||||
DECLARE mf_range_beep
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS lncedit mfne
|
||||
{
|
||||
HAS_METHOD
|
||||
}
|
||||
CLASS ncedit lncedit
|
||||
{
|
||||
HAS_METHOD
|
||||
}
|
||||
CLASS wncedit lncedit
|
||||
{
|
||||
HAS_METHOD
|
||||
}
|
||||
CLASS dtedit mfne
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS rgedit mfne
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS lledit mfne
|
||||
{
|
||||
HAS_METHOD
|
||||
}
|
||||
CLASS edwin lodger
|
||||
{
|
||||
DECLARE ew_sense_size
|
||||
DECLARE ew_set_size
|
||||
DECLARE ew_set
|
||||
DECLARE ew_sense
|
||||
DECLARE ew_insert
|
||||
DECLARE ew_snuggle_insert
|
||||
DECLARE ew_set_font
|
||||
DECLARE ew_leave
|
||||
DECLARE ew_find
|
||||
DECLARE ew_replace
|
||||
DECLARE ew_evaluate
|
||||
DECLARE ew_replace_clip
|
||||
DECLARE ew_paste_clip
|
||||
DECLARE ew_bring_in
|
||||
DECLARE ew_ep_insert
|
||||
DECLARE ew_return_key
|
||||
DECLARE ew_tab_key
|
||||
DECLARE ew_init_style
|
||||
DECLARE ew_readonly
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS punctued edwin
|
||||
{
|
||||
HAS_METHOD
|
||||
}
|
||||
CLASS ewlinksv root
|
||||
{
|
||||
DECLARE ewls_init
|
||||
DECLARE ewls_extract
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS wmatcher matcher
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS wldselwn lodger
|
||||
{
|
||||
DECLARE wld_restrict
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS nonode pnode
|
||||
{
|
||||
HAS_METHOD
|
||||
}
|
||||
CLASS hpsel psel
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS filelist listbox
|
||||
{
|
||||
DECLARE fl_list_complete
|
||||
DECLARE fl_locchg
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS vadev vastr
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS packsel chlist
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS fnedit edwin
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS fnselwn chlist
|
||||
{
|
||||
DECLARE fns_insert_tags
|
||||
DECLARE fns_extract_tags
|
||||
DECLARE fns_subset
|
||||
DECLARE fns_validate_flist
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS fltedit edwin
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS helplist listbox
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS helpdlg dlgchain
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS shutter active
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS waotstat active
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS haidle aidle
|
||||
{
|
||||
DECLARE hai_key
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS dialao haidle
|
||||
{
|
||||
HAS_METHOD
|
||||
}
|
||||
CLASS progtran server
|
||||
{
|
||||
DECLARE pt_start
|
||||
DECLARE pt_getline
|
||||
DECLARE pt_complete
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS progexec active
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS progfind locs
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS setportdlg dlgbox
|
||||
{
|
||||
HAS_METHOD
|
||||
}
|
||||
CLASS sethshkdlg dlgbox
|
||||
{
|
||||
HAS_METHOD
|
||||
}
|
||||
CLASS evaldlg dlgbox
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS dialdlg dlgbox
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS freedial lodger
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS fdialdlg dialdlg
|
||||
{
|
||||
HAS_METHOD
|
||||
}
|
||||
CLASS cntrydlg dlgbox
|
||||
{
|
||||
HAS_METHOD
|
||||
}
|
||||
CLASS sdialdlg dialdlg
|
||||
{
|
||||
HAS_METHOD
|
||||
}
|
||||
CLASS fontsel dlgbox
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS pdevdlg dlgbox
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS prnctrl dlgbox
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS pagectrl dlgbox
|
||||
{
|
||||
HAS_METHOD
|
||||
}
|
||||
CLASS margins dlgbox
|
||||
{
|
||||
HAS_METHOD
|
||||
}
|
||||
CLASS headfoot dlgbox
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS prnmodel dlgbox
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS pagesize dlgbox
|
||||
{
|
||||
HAS_METHOD
|
||||
}
|
||||
CLASS printing dlgbox
|
||||
{
|
||||
DECLARE printing_set_title
|
||||
DECLARE printing_do_print
|
||||
DECLARE printing_done
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS pmodlocs locs
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS lprinter root
|
||||
{
|
||||
DECLARE lpr_init
|
||||
DECLARE lpr_read
|
||||
DECLARE lpr_sense_buf_width
|
||||
DECLARE lpr_sense_text
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS sndlist chlist
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS sndlocs locs
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS fsoundao haidle
|
||||
{
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS vanumber varoot
|
||||
{
|
||||
DECLARE van_set_max
|
||||
HAS_METHOD
|
||||
HAS_PROPERTY
|
||||
}
|
||||
CLASS nchlist chlist
|
||||
{
|
||||
HAS_METHOD
|
||||
}
|
||||
CLASS prnprev dlgbox
|
||||
{
|
||||
HAS_METHOD
|
||||
}
|
||||
CLASS xpulldwn pulldown
|
||||
{
|
||||
HAS_METHOD
|
||||
}
|
||||
CLASS vilastmoddlg dlgbox
|
||||
{
|
||||
HAS_METHOD
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
/* Generated by Ctran from hwim.cat */
|
||||
#define HWIM_G
|
||||
#ifndef OLIB_G
|
||||
#include <olib.g>
|
||||
#endif
|
||||
/* Category Numbers */
|
||||
/* EPOC */
|
||||
#define CAT_HWIM_HWIM 0
|
||||
#define CAT_HWIM_OLIB 1
|
||||
#define CAT_HWIM_OPL 2
|
||||
#define CAT_HWIM_FORM 3
|
||||
@@ -0,0 +1,89 @@
|
||||
/* HEADER - HWIM.H
|
||||
Hwim utilities constants, structures and function prototypes
|
||||
Copyright (c) Psion PLC 1991 - 1996.
|
||||
*/
|
||||
|
||||
#define HWIM_H
|
||||
|
||||
#define PTR_CALL call(reg_param =>(bx,ax,cx,dx,si,di),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
|
||||
#ifndef HWIMMAN_G
|
||||
#include <hwimman.g> /* for the definition of DL_DATA */
|
||||
#endif
|
||||
|
||||
GLREF_C INT CDECL hConfirm(INT rid,...);
|
||||
GLREF_C INT CDECL h2LineConfirm(INT secondrid,INT rid,...);
|
||||
GLREF_C INT CDECL hErrorDialog(INT err,INT rid,...);
|
||||
GLREF_C VOID CDECL hInfoPrint(INT rid,...);
|
||||
GLREF_C VOID CDECL hBusyPrint(INT delay,INT rid,...);
|
||||
GLREF_C TEXT * CDECL hAtos(TEXT *buf,INT frid,...);
|
||||
#pragma save,call(reg_param =>(bx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
GLREF_C VOID hDestroy(VOID *hand);
|
||||
#pragma call(reg_param =>(bx,ax,cx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
GLREF_C INT hLaunchDial(P_CATID cat,INT class,DL_DATA *data);
|
||||
#pragma call(reg_param =>(dx,si),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
GLREF_C INT hLoadResBuf(INT id,VOID *pb);
|
||||
GLREF_C INT hLoadResource(INT id,VOID *ppdata);
|
||||
#pragma call(reg_param =>(cx,dx,bx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
GLREF_C INT hAtob(TEXT *pb,INT rid,INT *pargs);
|
||||
#pragma call(reg_param =>(bx,ax),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
GLREF_C VOID hErrs(TEXT *buf,INT err);
|
||||
#pragma call(reg_param =>(ax),reg_saved =>(bx,dx,si,di,EPOC_SAVE))
|
||||
GLREF_C VOID hInfoPrintErr(INT err);
|
||||
#pragma call(reg_param =>(dx,si,di),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
GLREF_C TEXT *hLoadChlistResBuf(INT rid,INT choice,TEXT *buf);
|
||||
#pragma call(reg_param =>(cx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
GLREF_C VOID hWservComSend(INT comid);
|
||||
#pragma call(reg_param =>(bx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
GLREF_C VOID hInitVis(VOID *win);
|
||||
GLREF_C VOID hAppendEllipsis(TEXT *buf);
|
||||
GLREF_C VOID hSetGStyle(UINT style);
|
||||
GLREF_C VOID hEnsurePath(TEXT *filename);
|
||||
#pragma call(reg_param =>(),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
GLREF_C VOID hBeep(VOID);
|
||||
#pragma call(reg_param =>(ax),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
GLREF_C VOID hSetGTmode(UINT tmode);
|
||||
#pragma call(reg_param =>(cx),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
GLREF_C VOID hSetGFont(UINT fid);
|
||||
GLREF_C INT hGetSWid(TEXT *pzts);
|
||||
#pragma call(reg_param =>(cx,ax),reg_saved =>(bx,cx,dx,si,di,EPOC_SAVE))
|
||||
GLREF_C INT hGetBWid(TEXT *pb,INT blen);
|
||||
GLREF_C INT hGetBBWid(TEXT *pb,INT blen);
|
||||
#pragma call(reg_param =>(bx,ax),reg_saved =>(cx,dx,si,di,EPOC_SAVE))
|
||||
GLREF_C VOID hTwipsToBuf(TEXT *pbuf,UINT val);
|
||||
GLREF_C UINT hDoubleToTwips(DOUBLE *val);
|
||||
GLREF_C VOID hTwipsToDouble(DOUBLE *dd,UINT value);
|
||||
#pragma call(reg_param =>(dx,ax),reg_saved =>(si,di,EPOC_SAVE))
|
||||
GLREF_C VOID hDlgSet(UBYTE index,VOID *set);
|
||||
GLREF_C VOID hDlgSense(UBYTE index,VOID *sense);
|
||||
#pragma call(reg_param =>(dx,ax),reg_saved =>(si,di,EPOC_SAVE))
|
||||
GLREF_C VOID hDlgSetPrompt(UBYTE index,TEXT *pmt);
|
||||
GLREF_C VOID hDlgSetText(UBYTE index,TEXT *buf);
|
||||
GLREF_C VOID hDlgSetEdwin(UBYTE index,TEXT *buf);
|
||||
GLREF_C VOID hDlgSetChlist(UBYTE index,INT nsel);
|
||||
GLREF_C VOID hDlgSetChlistOn(UBYTE index);
|
||||
GLREF_C VOID hDlgSetNcedit(UBYTE index,UINT value);
|
||||
GLREF_C VOID hDlgSetLledit(UBYTE index,INT value);
|
||||
GLREF_C VOID hDlgSetPtedit(UBYTE index,UBYTE ch);
|
||||
GLREF_C VOID hDlgSetFledit(UBYTE index,DOUBLE *value);
|
||||
GLREF_C VOID hDlgSetTwips(UBYTE index,UINT value);
|
||||
GLREF_C VOID hDlgSenseRgedit(UBYTE index,UWORD *values);
|
||||
GLREF_C VOID hDlgSenseFledit(UBYTE index,DOUBLE *value);
|
||||
GLREF_C VOID hDlgItemDim(UBYTE index,INT flag);
|
||||
GLREF_C VOID hDlgItemLock(UBYTE index,INT flag);
|
||||
#pragma call(reg_param =>(dx,ax,bx),reg_saved =>(si,di,EPOC_SAVE))
|
||||
GLREF_C VOID hDlgSetDtedit(UBYTE index,ULONG value);
|
||||
GLREF_C VOID hDlgSetRgedit(UBYTE index,UINT value1,UINT value2);
|
||||
#pragma call(reg_param =>(dx),reg_saved =>(si,di,EPOC_SAVE))
|
||||
GLREF_C VOID hDlgSetTitleByRid(INT rid);
|
||||
GLREF_C TEXT *hDlgSenseEdwin(UBYTE index);
|
||||
GLREF_C INT hDlgSenseChlist(UBYTE index);
|
||||
GLREF_C UINT hDlgSenseNcedit(UBYTE index);
|
||||
GLREF_C INT hDlgSenseLledit(UBYTE index);
|
||||
GLREF_C INT hDlgSensePtedit(UBYTE index);
|
||||
GLREF_C UINT hDlgSenseTwips(UBYTE index);
|
||||
GLREF_C ULONG hDlgSenseDtedit(UBYTE index);
|
||||
GLREF_C VOID hDlgTakeFocus(UBYTE index);
|
||||
#pragma METHOD_CALL
|
||||
GLREF_C VOID hDlgInit(VOID *dlg,HD_DLGBOX_RSC *head,VOID *rbuf);
|
||||
#pragma restore
|
||||
@@ -0,0 +1,13 @@
|
||||
; Generated by Ctran from hwim.cat
|
||||
HWIM_ING equ 1
|
||||
IFNDEF OLIB_ING
|
||||
INCLUDE ..\inc\OLIB.ING
|
||||
ENDIF
|
||||
IFNDEF NOSEND_INC
|
||||
INCLUDE ..\inc\NOSEND.INC
|
||||
ENDIF
|
||||
; Category Numbers
|
||||
CAT_HWIM_HWIM equ 0
|
||||
CAT_HWIM_OLIB equ 1
|
||||
CAT_HWIM_OPL equ 2
|
||||
CAT_HWIM_FORM equ 3
|
||||
@@ -0,0 +1,115 @@
|
||||
#define O_PVC_PREVIEW_PRINT 8
|
||||
#define O_PVC_PREVIEW_MARGINS 9
|
||||
#define O_PVC_PREVIEW_OPTIONS 10
|
||||
#define O_PVC_PREVIEW_JUMP 11
|
||||
#define O_PVC_PREVIEW_EXIT 12
|
||||
#define BREAK_LINE_FOLLOWS 0x80
|
||||
#define C_ACLIST 23
|
||||
#define C_CHLIST 21
|
||||
#define C_DONEWN 25
|
||||
#define C_DTEDIT 31
|
||||
#define C_EDWIN 34
|
||||
#define C_FLTEDIT 46
|
||||
#define C_FNEDIT 44
|
||||
#define C_FNSELWN 45
|
||||
#define C_FREEDIAL 60
|
||||
#define C_GAUGE 24
|
||||
#define C_LLEDIT 33
|
||||
#define C_LNCEDIT 28
|
||||
#define C_NCEDIT 29
|
||||
#define C_PUNCTUED 35
|
||||
#define C_RGEDIT 32
|
||||
#define C_TEXTWIN 4
|
||||
#define C_WLDSELWN 38
|
||||
#define C_WNCEDIT 30
|
||||
#define C_XEDIT 26
|
||||
#define C_SMACLIST 22
|
||||
#define C_SNDLIST 75
|
||||
#define C_NCHLIST 79
|
||||
#define DLGBOX_NOTIFY_ENTER 0x0001
|
||||
#define DLGBOX_NOTIFY_ESCAPE 0x0002
|
||||
#define DLGBOX_RBUF_FILLED 0x0004
|
||||
#define DLGBOX_ACTION_LIST 0x0008
|
||||
#define DLGBOX_SMALL_FONT 0x0010
|
||||
#define DLGBOX_NO_WAIT 0x0020
|
||||
#define DLGBOX_NOTIFY_ALL_ACT 0x0040
|
||||
#define DLGBOX_REPORT_ACT_HORIZ 0x0080
|
||||
#define DLGBOX_APPEND_UNITS_TITLE 0x0100
|
||||
#define DLGBOX_SMALL_ACTION_LIST 0x0200
|
||||
#define DLGBOX_NO_SHADOW 0x0400
|
||||
#define DLGBOX_NO_DDP 0x0800
|
||||
#define PR_WIN_FORCE_TOP 0x8000
|
||||
#define PR_WIN_FORCE_BOTTOM 0x4000
|
||||
#define PR_WIN_FORCE_LEFT 0x2000
|
||||
#define PR_WIN_FORCE_RIGHT 0x1000
|
||||
#define DLGBOX_ITEM_NOTIFY_FOCUS 0x0080
|
||||
#define DLGBOX_ITEM_NOTIFY_CHANGED 0x0001
|
||||
#define DLGBOX_ITEM_UNDERLINED 0x0004
|
||||
#define DLGBOX_ITEM_DIMMED 0x0002
|
||||
#define DLGBOX_ITEM_CENTRE 0x0010
|
||||
#define DLGBOX_ITEM_DEAD 0x0020
|
||||
#define DLGBOX_ITEM_APPL_CAT 0x0008
|
||||
#define DLGBOX_ITEM_NEEDS_PACK 0x0100
|
||||
#define DLGBOX_ITEM_LOCKED 0x0200
|
||||
#define IN_TEXTWIN_AL_LEFT 0x00
|
||||
#define IN_TEXTWIN_AL_CENTRE 0x02
|
||||
#define IN_TEXTWIN_AL_RIGHT 0x01
|
||||
#define IN_TEXTWIN_BOLD 0x04
|
||||
#define IN_TEXTWIN_POPOUT 0x40
|
||||
#define IN_CHLIST_INCREMENTAL 0x01
|
||||
#define HTIME_FIRST_DAY 29219L
|
||||
#define HTIME_LAST_DAY 54786L
|
||||
#define HTIME_FIRST_SEC 0L
|
||||
#define HTIME_LAST_SEC 86399L
|
||||
#define HTIME_FIRST_MIN 0L
|
||||
#define HTIME_LAST_MIN 86340L
|
||||
#define IN_DTEDIT_INIT (0x01 |0x02 |0x04 )
|
||||
#define IN_DTEDIT_DDMMYYYY (0x0000 )
|
||||
#define IN_DTEDIT_HHMMSS (0x0100 |0x1000 )
|
||||
#define IN_DTEDIT_HHMM (0x0100 )
|
||||
#define IN_DTEDIT_HHMMSS_D (0x0100 |0x0200 |0x1000 )
|
||||
#define IN_DTEDIT_HHMM_D (0x0100 |0x0200 )
|
||||
#define IN_DTEDIT_HHMMSS_ND (0x0100 |(0x0200 |0x2000 ) |0x1000 )
|
||||
#define IN_DTEDIT_HHMM_ND (0x0100 |(0x0200 |0x2000 ) )
|
||||
#define IN_LLEDIT_LATITUDE 0
|
||||
#define IN_LLEDIT_LONGITUDE 1
|
||||
#define IN_WLDSELWN_CITY 0
|
||||
#define IN_WLDSELWN_COUNTRY 0x01
|
||||
#define IN_WLDSELWN_SECOND_PARTNER 0x10
|
||||
#define IN_WLDSELWN_FIRST_PARTNER 0x02
|
||||
#define IN_WLDSELWN_SETHOME 0x20
|
||||
#define IN_WLDSELWN_SETDFLT 0x40
|
||||
#define IN_EDWIN_VULEN_CHARACTERS 0x0080
|
||||
#define IN_EDWIN_VULEN_PIXELS (0x0080 |0x0100 )
|
||||
#define IN_EDWIN_NO_AUTOSELECT 0x0010
|
||||
#define IN_EDWIN_AUTO_CUR_END (0x0008 |0x0010 )
|
||||
#define IN_EDWIN_ACCEPT_TABS 0x0002
|
||||
#define IN_EDWIN_DIALLABLE 0x0001
|
||||
#define IN_FNSELWN_STANDARD 0x01
|
||||
#define IN_FNSELWN_SHOW_DIRS 0x02
|
||||
#define IN_FNSELWN_HIDE_FILES 0x04
|
||||
#define IN_FNSELWN_RESTRICT_LIST 0x08
|
||||
#define IN_FNSELWN_CAN_TAG 0x10
|
||||
#define IN_FNSELWN_ACCEPT_NULL 0x20
|
||||
#define IN_FNSELWN_SET_DEFEXT 0x40
|
||||
#define IN_FNSELWN_CAN_WILDCARD 0x80
|
||||
#define IN_FNEDIT_STANDARD 0x01
|
||||
#define IN_FNEDIT_ALLOW_DIRS 0x02
|
||||
#define IN_FNEDIT_JUST_DIRS 0x04
|
||||
#define IN_FNEDIT_FORCE_NXIST 0x08
|
||||
#define IN_FNEDIT_NO_AUTOQUERY 0x10
|
||||
#define IN_FNEDIT_ACCEPT_NULL 0x20
|
||||
#define IN_FNEDIT_SET_DEFEXT 0x40
|
||||
#define IN_FNEDIT_CAN_WILDCARD 0x80
|
||||
#define WR_MAX_DIAL_STRING 24
|
||||
#define P_FNAMESIZE 128
|
||||
#define W_KEY_RETURN 13
|
||||
#define W_KEY_ESCAPE 27
|
||||
#define W_KEY_TAB 9
|
||||
#define W_KEY_DELETE_LEFT 8
|
||||
#define W_KEY_UP 0x0100
|
||||
#define W_KEY_DOWN 0x0101
|
||||
#define W_KEY_RIGHT 0x0102
|
||||
#define W_KEY_LEFT 0x0103
|
||||
#define W_KEY_SPACE 32
|
||||
#define W_KEY_MENU 0x0122
|
||||
@@ -0,0 +1,207 @@
|
||||
/*
|
||||
HWIM.RH - Resource file common header
|
||||
Started by Carol, December 1990
|
||||
*/
|
||||
|
||||
STRUCT STRING
|
||||
{
|
||||
TEXT str; /* zero terminated text string */
|
||||
}
|
||||
|
||||
STRUCT STRING_ARRAY
|
||||
{
|
||||
STRUCT strlst[];
|
||||
}
|
||||
|
||||
STRUCT STRING_ARRAY_SMALL
|
||||
{
|
||||
LEN BYTE STRUCT strlst[];
|
||||
}
|
||||
|
||||
/*
|
||||
Accelerators, Menu bars and menus
|
||||
*/
|
||||
|
||||
STRUCT WSERV_INFO
|
||||
{
|
||||
BYTE menu=0; /* which menu to start with */
|
||||
BYTE mnitem=0; /* which item to start with in that menu */
|
||||
LINK menbar_id; /* resource id of menu bar */
|
||||
BYTE first_com; /* method number of first command */
|
||||
LEN BYTE BYTE accel[]; /* acc key only */
|
||||
}
|
||||
|
||||
STRUCT MENU_ITEM
|
||||
BYTE {
|
||||
BYTE com_id; /* method in command manager */
|
||||
TEXT mn_item; /* menu item text */
|
||||
}
|
||||
|
||||
STRUCT MENU
|
||||
{
|
||||
LEN BYTE STRUCT items[]; /* menu items only */
|
||||
}
|
||||
|
||||
STRUCT MENU_BAR_ITEM
|
||||
{
|
||||
LINK menu_id; /* resource id of associated menu */
|
||||
TEXT mb_item; /* menu header */
|
||||
}
|
||||
|
||||
STRUCT MENU_BAR
|
||||
{
|
||||
LEN BYTE STRUCT items[]; /* menu bar item only */
|
||||
}
|
||||
|
||||
/*
|
||||
Dialog boxes
|
||||
*/
|
||||
|
||||
STRUCT CHLIST
|
||||
{
|
||||
LINK rid=0;
|
||||
BYTE nsel=0;
|
||||
BYTE flags=0;
|
||||
}
|
||||
|
||||
STRUCT TXTMESS
|
||||
{
|
||||
WORD flags=0;
|
||||
TEXT str="";
|
||||
}
|
||||
|
||||
STRUCT EDWIN /* edit box */
|
||||
{
|
||||
WORD vulen; /* ignored unless either _VULEN_ flag set */
|
||||
WORD flags=0;
|
||||
WORD maxlen;
|
||||
TEXT str="";
|
||||
}
|
||||
|
||||
STRUCT PUSH_BUT
|
||||
BYTE {
|
||||
WORD keycode;
|
||||
TEXT str; /* text associated with button */
|
||||
}
|
||||
|
||||
STRUCT ACLIST_ARRAY
|
||||
{
|
||||
LEN BYTE STRUCT button[]; /* array of push_buttons */
|
||||
}
|
||||
|
||||
STRUCT ACLIST /* Initialising struct for action list */
|
||||
{
|
||||
LINK rid;
|
||||
}
|
||||
|
||||
STRUCT CHOICE_ITEM /* choice list item */
|
||||
BYTE {
|
||||
TEXT str=""; /* identification text */
|
||||
}
|
||||
|
||||
STRUCT LNCEDIT /* long number edit box */
|
||||
{
|
||||
LONG current = 0;
|
||||
LONG low = 0; /* lowest allowed value */
|
||||
LONG high = 10000000; /* highest allowed value */
|
||||
}
|
||||
|
||||
STRUCT NCEDIT /* numeric control edit box (unsigned words) */
|
||||
{
|
||||
WORD current = 0;
|
||||
WORD low = 0; /* lowest allowed value */
|
||||
WORD high = 65535; /* highest allowed value */
|
||||
}
|
||||
|
||||
STRUCT WNCEDIT /* numeric control edit box (signed words) */
|
||||
{
|
||||
WORD current = 0;
|
||||
WORD low = -32768; /* lowest allowed value */
|
||||
WORD high = 32767; /* highest allowed value */
|
||||
}
|
||||
|
||||
STRUCT FLTEDIT /* floating point edit box */
|
||||
{
|
||||
DOUBLE current=0.0;
|
||||
DOUBLE low =-9.9999999999e99; /* lower bound */
|
||||
DOUBLE high =9.9999999999e99; /* upper bound */
|
||||
BYTE vulen=5; /* width of editor in characters */
|
||||
BYTE ndec=0; /* P_DTOB_GENERAL */
|
||||
}
|
||||
|
||||
STRUCT DTEDIT /* combined date/time editor */
|
||||
{
|
||||
WORD flags;
|
||||
LONG current;
|
||||
LONG low; /* lowest allowed value */
|
||||
LONG high; /* highest allowed value */
|
||||
}
|
||||
|
||||
STRUCT RGEDIT /* range editor */
|
||||
{
|
||||
WORD low=1; /* lowest allowed value */
|
||||
WORD value_1=1; /* lower value of range */
|
||||
WORD value_2=9999; /* higher value of range */
|
||||
WORD high=9999; /* highest allowed value */
|
||||
}
|
||||
|
||||
STRUCT LLEDIT /* lat long editor */
|
||||
{
|
||||
WORD flags; /* Latitude or longitude */
|
||||
WORD value=0; /* The default value */
|
||||
}
|
||||
|
||||
STRUCT WLDSELWN
|
||||
{
|
||||
WORD flags;
|
||||
}
|
||||
|
||||
STRUCT FNEDIT /* filename editor */
|
||||
{
|
||||
BYTE flags=0;
|
||||
TEXT fname="";
|
||||
}
|
||||
|
||||
STRUCT FNSELWN /* filename selector */
|
||||
{
|
||||
BYTE flags=0;
|
||||
TEXT fname="";
|
||||
}
|
||||
|
||||
STRUCT CONTROL
|
||||
LEN {
|
||||
WORD flags=0;
|
||||
BYTE class; /* class of control */
|
||||
TEXT prompt=""; /* Prompt for item */
|
||||
STRUCT info; /* eg CHLIST, TXTMESS, EDWIN, or NCEDIT */
|
||||
}
|
||||
|
||||
STRUCT DIALOG
|
||||
{
|
||||
WORD flags=0;
|
||||
TEXT title="";
|
||||
LEN BYTE STRUCT controls[]; /* CONTROL only */
|
||||
}
|
||||
|
||||
STRUCT TOPIC_ARRAY
|
||||
{
|
||||
LEN BYTE LINK id_lst[]; /* ids of topics or related topics */
|
||||
}
|
||||
|
||||
STRUCT HELP_ARRAY
|
||||
{
|
||||
LINK topic_id=0; /* id of array of related topics */
|
||||
TEXT topic;
|
||||
LEN BYTE STRUCT strlst[];
|
||||
}
|
||||
|
||||
STRUCT PAGE_SIZE
|
||||
{
|
||||
WORD width;
|
||||
WORD length;
|
||||
}
|
||||
|
||||
STRUCT PAGE_SIZE_ARRAY
|
||||
{
|
||||
LEN WORD STRUCT page_size[];
|
||||
}
|
||||
@@ -0,0 +1,236 @@
|
||||
/* Generated by Ctran from hwimman.cl */
|
||||
#define HWIMMAN_G
|
||||
#ifndef PULLDOWN_G
|
||||
#include <pulldown.g>
|
||||
#endif
|
||||
#ifndef APPMAN_G
|
||||
#include <appman.g>
|
||||
#endif
|
||||
#ifndef DLGBOX_G
|
||||
#include <dlgbox.g>
|
||||
#endif
|
||||
#ifndef COMMAN_G
|
||||
#include <comman.g>
|
||||
#endif
|
||||
#ifndef MENUBAR_G
|
||||
#include <menubar.g>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_WSERV 18
|
||||
#define C_HWIMMAN 19
|
||||
/* Method Numbers */
|
||||
#define O_WS_SMART_DIAL 22
|
||||
#define O_AM_YIELD 16
|
||||
#define O_WS_GET_ALLOC_INFO 46
|
||||
#define O_WS_SELF_CHECK 48
|
||||
#define O_WS_BACKGROUND 39
|
||||
#define O_WS_REMOVE_DIAL 8
|
||||
#define O_WS_LOAD_CHLIST_RES 19
|
||||
#define O_WS_SET_MENUBAR 17
|
||||
#define O_WS_UNKNOWN_WM 37
|
||||
#define O_WS_GET_PRINT_CONTEXT 47
|
||||
#define O_WS_DIAL_ENV 23
|
||||
#define O_WS_DO_REMOTE_DIAL 53
|
||||
#define O_WS_REMOVE_FILELIST 33
|
||||
#define O_WS_ANIM_TICK 34
|
||||
#define O_WS_ERROR_DIALOG 13
|
||||
#define O_WS_SWITCH_FILES 35
|
||||
#define O_WS_FILE_INFO_PRINT 51
|
||||
#define O_WS_HIDE_APP 49
|
||||
#define O_WS_PROCESS_KEY 41
|
||||
#define O_WS_CHANGE_CLIWIN 10
|
||||
#define O_WS_ADD_DIAL 7
|
||||
#define O_WS_WRAP_PARA 12
|
||||
#define O_AM_ENSURE_IPCS 17
|
||||
#define O_WS_DYN_INIT 40
|
||||
#define O_WS_SENSE_PDEV_TEXT 28
|
||||
#define O_WS_EVAL_ENV 27
|
||||
#define O_WS_DO_SUBMENU 16
|
||||
#define O_WS_HOOK_TODAY_CHANGED 45
|
||||
#define O_WS_ENS_PRINT_CONTEXT 31
|
||||
#define O_WS_LOCK 24
|
||||
#define O_WS_APPEND_COUNTRY 20
|
||||
#define O_WS_LAUNCH_DYL 43
|
||||
#define O_WS_FOREGROUND 38
|
||||
#define O_WS_RUN_MEMO 52
|
||||
#define O_WS_ALERT 36
|
||||
#define O_WS_DO_HELP 15
|
||||
#define O_WS_DO_DIAL 6
|
||||
#define O_WS_ATTACH_APP 50
|
||||
#define O_WS_EDIT_PRINT_CONTEXT 30
|
||||
#define O_WS_ADD_FILELIST 32
|
||||
#define O_WS_CANCEL 11
|
||||
#define O_WS_SENSE_ACCEL 9
|
||||
#define O_WS_FORMAT_DIALOG 25
|
||||
#define O_WS_QUERY_DIALOG 14
|
||||
#define O_WS_DATE_CHANGED 42
|
||||
#define O_WS_FREE_DIAL 21
|
||||
#define O_WS_USER_ABANDONED 54
|
||||
#define O_AM_NEW_FILENAME 15
|
||||
#define O_WS_RESET_MENUBAR 18
|
||||
#define O_WS_DEFINE_FNBAR 44
|
||||
#define O_WS_EVALUATE 26
|
||||
#define O_WS_EDIT_PDEV_SETUP 29
|
||||
/* Constants for wserv */
|
||||
#define PR_WSERV_CONNECT_AT_BACK W_CONNECT_AT_BACK
|
||||
#define PR_WSERV_FOREGROUND 0x02
|
||||
#define PR_WSERV_CLIWIN_KEY 0x04
|
||||
#define PR_WSERV_CANCELLING 0x08
|
||||
#define PR_WSERV_BASIC_HELP 0x10
|
||||
#define PR_WSERV_FREEFORM_DIALLING 0x20
|
||||
#define PR_WSERV_INSERT_MODE 0x40
|
||||
#define PR_WSERV_INSERT_PENDING 0x80
|
||||
#define PR_WSERV_OWN_DEFAULT_FONT 0x100
|
||||
#define PR_WSERV_RECEIVED_KEY 0x200
|
||||
#define PR_WSERV_HIDDEN 0x400
|
||||
#define PR_WSERV_METRIC 0x800
|
||||
#define PR_WSERV_FULLSCREEN 0x1000
|
||||
#define PR_WSERV_CANCELLING_DIALOG 0x2000
|
||||
#define PR_WSERV_FROM_HWIF 0x4000
|
||||
#define PR_WSERV_OWNPRIO 0x8000
|
||||
#define PR_WSERV_HELP_INDEX 0x01
|
||||
#define WSERV_DTOB_HEX 3
|
||||
#define DEGREES_MODE 0x80
|
||||
#define DTOB_MAX_WIDTH 20
|
||||
#define WS_EVAL_ENV_SET 0
|
||||
#define WS_EVAL_ENV_GET 1
|
||||
#define WS_DIAL_ENV_SET 0
|
||||
#define WS_DIAL_ENV_GET 1
|
||||
#define PDEV_TEXT_MAX_LEN 14
|
||||
#define WS_LOCCHG_LOW 0x0100
|
||||
#define WS_LOCCHG_HIGH 0x4000
|
||||
#define WS_EM_STYLES 0x01
|
||||
#define WS_EM_PRINT_CONTEXT 0x02
|
||||
#define WS_EM_REUSE_BODY_BUFFER 0x04
|
||||
#define WS_EM_REUSE_STYLES_BUFFER 0x08
|
||||
#define WS_EM_CALLBACK 0x40
|
||||
#define MEMO_NO_CHANGE 0
|
||||
#define MEMO_NULL_LENGTH 1
|
||||
#define MEMO_STANDARD_CHANGE 2
|
||||
/* Types for wserv */
|
||||
typedef struct
|
||||
{
|
||||
int com_cat;
|
||||
unsigned short int com_class;
|
||||
} IN_WSERV;
|
||||
typedef struct
|
||||
{
|
||||
unsigned char menu;
|
||||
unsigned char mnitem;
|
||||
unsigned short int menubar_id;
|
||||
unsigned char first_com;
|
||||
unsigned char count;
|
||||
unsigned char accel[1];
|
||||
} WSERV_INFO;
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int id;
|
||||
void *rbuf;
|
||||
PR_DLGBOX **pdlg;
|
||||
} DL_DATA;
|
||||
typedef struct
|
||||
{
|
||||
char *dupnp;
|
||||
char hidden[6];
|
||||
} WS_HIDE_APP_DATA;
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int margin;
|
||||
unsigned short int fmargin;
|
||||
short int font;
|
||||
unsigned short int style;
|
||||
short int nlines;
|
||||
unsigned char *ptable;
|
||||
} WRAP_DATA;
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int ncells;
|
||||
unsigned short int nbytes;
|
||||
} WS_ALLOC_INFO;
|
||||
typedef struct
|
||||
{
|
||||
void *next;
|
||||
void *object;
|
||||
unsigned short int message;
|
||||
} WS_TODAY_HOOK;
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int len;
|
||||
void *p;
|
||||
} MEMO_DATA_PART;
|
||||
typedef struct
|
||||
{
|
||||
MEMO_DATA_PART body;
|
||||
MEMO_DATA_PART styles;
|
||||
MEMO_DATA_PART title;
|
||||
} MEMO_DATA;
|
||||
typedef struct
|
||||
{
|
||||
void *owner;
|
||||
unsigned short int method;
|
||||
} MEMO_CALLBACK;
|
||||
/* Property of wserv */
|
||||
typedef struct {
|
||||
WS_EVENT_X ws;
|
||||
PR_COMMAN *com;
|
||||
PR_DLGCHAIN *dial;
|
||||
PR_MENUBAR *bar;
|
||||
PR_WIN *cli;
|
||||
WSERV_INFO *info;
|
||||
WSERV_INFO *oldinfo;
|
||||
PR_WIN *filter;
|
||||
int filmethod;
|
||||
unsigned short int flags;
|
||||
unsigned short int help_index_id;
|
||||
unsigned short int help;
|
||||
unsigned char lock;
|
||||
unsigned char subdial;
|
||||
char sc[10];
|
||||
unsigned short int locmask;
|
||||
PR_ROOT *filelist;
|
||||
PR_ROOT *anim;
|
||||
PR_ROOT *printer;
|
||||
} PRS_WSERV;
|
||||
typedef struct pr_wserv
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
PRS_WSERV wserv;
|
||||
} PR_WSERV;
|
||||
/* Constants for hwimman */
|
||||
#define H_COMMAND_DEFAULT_FILE 'D'
|
||||
#define H_COMMAND_OPEN_FILE 'O'
|
||||
#define H_COMMAND_CREATE_FILE 'C'
|
||||
#define H_COMMAND_EXIT 'X'
|
||||
#define H_COMMAND_TRANSLATE_FILE 'T'
|
||||
#define H_COMMAND_RUN_FILE 'R'
|
||||
#define H_COMMAND_LAUNCH_DYL 'L'
|
||||
#define H_COMMAND_BYPASS 'Z'
|
||||
#define FLG_APPMAN_FULLSCREEN 0x1000
|
||||
#define FLG_APPMAN_LINKING 0x2000
|
||||
#define FLG_APPMAN_FROM_HWIF 0x4000
|
||||
#define FLG_APPMAN_OWNPRIO 0x8000
|
||||
#define FLG_APPMAN_S3FS 0x0100
|
||||
#define FLG_APPMAN_WSERV_MASK (PR_WSERV_FROM_HWIF|PR_WSERV_OWNPRIO|PR_WSERV_FULLSCREEN)
|
||||
#define RUN_ACTIVE_CLEANUP_NONOTIFY -1
|
||||
/* Types for hwimman */
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int flags;
|
||||
int wserv_cat;
|
||||
unsigned short int wserv_class;
|
||||
} IN_HWIMMAN;
|
||||
/* Property of hwimman */
|
||||
typedef struct {
|
||||
unsigned char contig;
|
||||
unsigned char command;
|
||||
char *defext;
|
||||
char *aliasinfo;
|
||||
PR_AIDLE *yield;
|
||||
} PRS_HWIMMAN;
|
||||
typedef struct pr_hwimman
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_APPMAN appman;
|
||||
PRS_HWIMMAN hwimman;
|
||||
} PR_HWIMMAN;
|
||||
@@ -0,0 +1,223 @@
|
||||
; Generated by Ctran from hwimman.cl
|
||||
HWIMMAN_ING equ 1
|
||||
IFNDEF PULLDOWN_ING
|
||||
INCLUDE ..\inc\PULLDOWN.ING
|
||||
ENDIF
|
||||
IFNDEF APPMAN_ING
|
||||
INCLUDE ..\inc\APPMAN.ING
|
||||
ENDIF
|
||||
IFNDEF DLGBOX_ING
|
||||
INCLUDE ..\inc\DLGBOX.ING
|
||||
ENDIF
|
||||
IFNDEF COMMAN_ING
|
||||
INCLUDE ..\inc\COMMAN.ING
|
||||
ENDIF
|
||||
IFNDEF MENUBAR_ING
|
||||
INCLUDE ..\inc\MENUBAR.ING
|
||||
ENDIF
|
||||
; Class Numbers
|
||||
C_WSERV equ 18
|
||||
C_HWIMMAN equ 19
|
||||
; Method Numbers
|
||||
O_WS_SMART_DIAL equ 22
|
||||
O_AM_YIELD equ 16
|
||||
O_WS_GET_ALLOC_INFO equ 46
|
||||
O_WS_SELF_CHECK equ 48
|
||||
O_WS_BACKGROUND equ 39
|
||||
O_WS_REMOVE_DIAL equ 8
|
||||
O_WS_LOAD_CHLIST_RES equ 19
|
||||
O_WS_SET_MENUBAR equ 17
|
||||
O_WS_UNKNOWN_WM equ 37
|
||||
O_WS_GET_PRINT_CONTEXT equ 47
|
||||
O_WS_DIAL_ENV equ 23
|
||||
O_WS_DO_REMOTE_DIAL equ 53
|
||||
O_WS_REMOVE_FILELIST equ 33
|
||||
O_WS_ANIM_TICK equ 34
|
||||
O_WS_ERROR_DIALOG equ 13
|
||||
O_WS_SWITCH_FILES equ 35
|
||||
O_WS_FILE_INFO_PRINT equ 51
|
||||
O_WS_HIDE_APP equ 49
|
||||
O_WS_PROCESS_KEY equ 41
|
||||
O_WS_CHANGE_CLIWIN equ 10
|
||||
O_WS_ADD_DIAL equ 7
|
||||
O_WS_WRAP_PARA equ 12
|
||||
O_AM_ENSURE_IPCS equ 17
|
||||
O_WS_DYN_INIT equ 40
|
||||
O_WS_SENSE_PDEV_TEXT equ 28
|
||||
O_WS_EVAL_ENV equ 27
|
||||
O_WS_DO_SUBMENU equ 16
|
||||
O_WS_HOOK_TODAY_CHANGED equ 45
|
||||
O_WS_ENS_PRINT_CONTEXT equ 31
|
||||
O_WS_LOCK equ 24
|
||||
O_WS_APPEND_COUNTRY equ 20
|
||||
O_WS_LAUNCH_DYL equ 43
|
||||
O_WS_FOREGROUND equ 38
|
||||
O_WS_RUN_MEMO equ 52
|
||||
O_WS_ALERT equ 36
|
||||
O_WS_DO_HELP equ 15
|
||||
O_WS_DO_DIAL equ 6
|
||||
O_WS_ATTACH_APP equ 50
|
||||
O_WS_EDIT_PRINT_CONTEXT equ 30
|
||||
O_WS_ADD_FILELIST equ 32
|
||||
O_WS_CANCEL equ 11
|
||||
O_WS_SENSE_ACCEL equ 9
|
||||
O_WS_FORMAT_DIALOG equ 25
|
||||
O_WS_QUERY_DIALOG equ 14
|
||||
O_WS_DATE_CHANGED equ 42
|
||||
O_WS_FREE_DIAL equ 21
|
||||
O_WS_USER_ABANDONED equ 54
|
||||
O_AM_NEW_FILENAME equ 15
|
||||
O_WS_RESET_MENUBAR equ 18
|
||||
O_WS_DEFINE_FNBAR equ 44
|
||||
O_WS_EVALUATE equ 26
|
||||
O_WS_EDIT_PDEV_SETUP equ 29
|
||||
; Constants for wserv
|
||||
PR_WSERV_CONNECT_AT_BACK equ (W_CONNECT_AT_BACK)
|
||||
PR_WSERV_FOREGROUND equ (002h)
|
||||
PR_WSERV_CLIWIN_KEY equ (004h)
|
||||
PR_WSERV_CANCELLING equ (008h)
|
||||
PR_WSERV_BASIC_HELP equ (010h)
|
||||
PR_WSERV_FREEFORM_DIALLING equ (020h)
|
||||
PR_WSERV_INSERT_MODE equ (040h)
|
||||
PR_WSERV_INSERT_PENDING equ (080h)
|
||||
PR_WSERV_OWN_DEFAULT_FONT equ (0100h)
|
||||
PR_WSERV_RECEIVED_KEY equ (0200h)
|
||||
PR_WSERV_HIDDEN equ (0400h)
|
||||
PR_WSERV_METRIC equ (0800h)
|
||||
PR_WSERV_FULLSCREEN equ (01000h)
|
||||
PR_WSERV_CANCELLING_DIALOG equ (02000h)
|
||||
PR_WSERV_FROM_HWIF equ (04000h)
|
||||
PR_WSERV_OWNPRIO equ (08000h)
|
||||
PR_WSERV_HELP_INDEX equ (001h)
|
||||
WSERV_DTOB_HEX equ (3)
|
||||
DEGREES_MODE equ (080h)
|
||||
DTOB_MAX_WIDTH equ (20)
|
||||
WS_EVAL_ENV_SET equ (0)
|
||||
WS_EVAL_ENV_GET equ (1)
|
||||
WS_DIAL_ENV_SET equ (0)
|
||||
WS_DIAL_ENV_GET equ (1)
|
||||
PDEV_TEXT_MAX_LEN equ (14)
|
||||
WS_LOCCHG_LOW equ (00100h)
|
||||
WS_LOCCHG_HIGH equ (04000h)
|
||||
WS_EM_STYLES equ (001h)
|
||||
WS_EM_PRINT_CONTEXT equ (002h)
|
||||
WS_EM_REUSE_BODY_BUFFER equ (004h)
|
||||
WS_EM_REUSE_STYLES_BUFFER equ (008h)
|
||||
WS_EM_CALLBACK equ (040h)
|
||||
MEMO_NO_CHANGE equ (0)
|
||||
MEMO_NULL_LENGTH equ (1)
|
||||
MEMO_STANDARD_CHANGE equ (2)
|
||||
; Types for wserv
|
||||
IN_WSERV struc
|
||||
IN_WSERVCom_cat dw ?
|
||||
IN_WSERVCom_class dw ?
|
||||
IN_WSERV ends
|
||||
WSERV_INFO struc
|
||||
WSERV_INFOMenu db ?
|
||||
WSERV_INFOMnitem db ?
|
||||
WSERV_INFOMenubar_id dw ?
|
||||
WSERV_INFOFirst_com db ?
|
||||
WSERV_INFOCount db ?
|
||||
WSERV_INFOAccel db (1) * 1 dup (?)
|
||||
WSERV_INFO ends
|
||||
DL_DATA struc
|
||||
DL_DATAId dw ?
|
||||
DL_DATARbuf dw ?
|
||||
DL_DATAPdlg dw ?
|
||||
DL_DATA ends
|
||||
WS_HIDE_APP_DATA struc
|
||||
WS_HIDE_APP_DATADupnp dw ?
|
||||
WS_HIDE_APP_DATAHidden db (1) * 6 dup (?)
|
||||
WS_HIDE_APP_DATA ends
|
||||
WRAP_DATA struc
|
||||
WRAP_DATAMargin dw ?
|
||||
WRAP_DATAFmargin dw ?
|
||||
WRAP_DATAFont dw ?
|
||||
WRAP_DATAStyle dw ?
|
||||
WRAP_DATANlines dw ?
|
||||
WRAP_DATAPtable dw ?
|
||||
WRAP_DATA ends
|
||||
WS_ALLOC_INFO struc
|
||||
WS_ALLOC_INFONcells dw ?
|
||||
WS_ALLOC_INFONbytes dw ?
|
||||
WS_ALLOC_INFO ends
|
||||
WS_TODAY_HOOK struc
|
||||
WS_TODAY_HOOKNext dw ?
|
||||
WS_TODAY_HOOKObject dw ?
|
||||
WS_TODAY_HOOKMessage dw ?
|
||||
WS_TODAY_HOOK ends
|
||||
MEMO_DATA_PART struc
|
||||
MEMO_DATA_PARTLen dw ?
|
||||
MEMO_DATA_PARTP dw ?
|
||||
MEMO_DATA_PART ends
|
||||
MEMO_DATA struc
|
||||
MEMO_DATABody MEMO_DATA_PART <>
|
||||
MEMO_DATAStyles MEMO_DATA_PART <>
|
||||
MEMO_DATATitle MEMO_DATA_PART <>
|
||||
MEMO_DATA ends
|
||||
MEMO_CALLBACK struc
|
||||
MEMO_CALLBACKOwner dw ?
|
||||
MEMO_CALLBACKMethod dw ?
|
||||
MEMO_CALLBACK ends
|
||||
; Property of wserv
|
||||
PRS_WSERV struc
|
||||
WservWs WS_EVENT_X <>
|
||||
WservCom dw ?
|
||||
WservDial dw ?
|
||||
WservBar dw ?
|
||||
WservCli dw ?
|
||||
WservInfo dw ?
|
||||
WservOldinfo dw ?
|
||||
WservFilter dw ?
|
||||
WservFilmethod dw ?
|
||||
WservFlags dw ?
|
||||
WservHelp_index_id dw ?
|
||||
WservHelp dw ?
|
||||
WservLock db ?
|
||||
WservSubdial db ?
|
||||
WservSc db (1) * 10 dup (?)
|
||||
WservLocmask dw ?
|
||||
WservFilelist dw ?
|
||||
WservAnim dw ?
|
||||
WservPrinter dw ?
|
||||
PRS_WSERV ends
|
||||
PR_WSERV struc
|
||||
WservRoot PRS_ROOT <>
|
||||
WservActive PRS_ACTIVE <>
|
||||
WservWserv PRS_WSERV <>
|
||||
PR_WSERV ends
|
||||
; Constants for hwimman
|
||||
H_COMMAND_DEFAULT_FILE equ ('D')
|
||||
H_COMMAND_OPEN_FILE equ ('O')
|
||||
H_COMMAND_CREATE_FILE equ ('C')
|
||||
H_COMMAND_EXIT equ ('X')
|
||||
H_COMMAND_TRANSLATE_FILE equ ('T')
|
||||
H_COMMAND_RUN_FILE equ ('R')
|
||||
H_COMMAND_LAUNCH_DYL equ ('L')
|
||||
H_COMMAND_BYPASS equ ('Z')
|
||||
FLG_APPMAN_FULLSCREEN equ (01000h)
|
||||
FLG_APPMAN_LINKING equ (02000h)
|
||||
FLG_APPMAN_FROM_HWIF equ (04000h)
|
||||
FLG_APPMAN_OWNPRIO equ (08000h)
|
||||
FLG_APPMAN_S3FS equ (00100h)
|
||||
FLG_APPMAN_WSERV_MASK equ (PR_WSERV_FROM_HWIF or PR_WSERV_OWNPRIO or PR_WSERV_FULLSCREEN)
|
||||
RUN_ACTIVE_CLEANUP_NONOTIFY equ (-1)
|
||||
; Types for hwimman
|
||||
IN_HWIMMAN struc
|
||||
IN_HWIMMANFlags dw ?
|
||||
IN_HWIMMANWserv_cat dw ?
|
||||
IN_HWIMMANWserv_class dw ?
|
||||
IN_HWIMMAN ends
|
||||
; Property of hwimman
|
||||
PRS_HWIMMAN struc
|
||||
HwimmanContig db ?
|
||||
HwimmanCommand db ?
|
||||
HwimmanDefext dw ?
|
||||
HwimmanAliasinfo dw ?
|
||||
HwimmanYield dw ?
|
||||
PRS_HWIMMAN ends
|
||||
PR_HWIMMAN struc
|
||||
HwimmanRoot PRS_ROOT <>
|
||||
HwimmanAppman PRS_APPMAN <>
|
||||
HwimmanHwimman PRS_HWIMMAN <>
|
||||
PR_HWIMMAN ends
|
||||
@@ -0,0 +1,72 @@
|
||||
/* Release 3.00 */
|
||||
|
||||
/*-------------------------------------------------------------------------*
|
||||
* *
|
||||
* io.h - Definitions for low level I/O functions. *
|
||||
* *
|
||||
* COPYRIGHT (C) 1989, 1990 Jensen and Partners. All Rights Reserved. *
|
||||
* *
|
||||
*--------------------------------------------------------------------------*/
|
||||
#include <stdepoc.h>
|
||||
|
||||
#ifndef _IO_INC_
|
||||
#define _IO_INC_
|
||||
|
||||
struct ftime {
|
||||
unsigned ft_tsec : 5; /* Two second interval */
|
||||
unsigned ft_min : 6; /* Minutes */
|
||||
unsigned ft_hour : 5; /* Hours */
|
||||
unsigned ft_day : 5; /* Days */
|
||||
unsigned ft_month : 4; /* Months */
|
||||
unsigned ft_year : 7; /* Year */
|
||||
};
|
||||
|
||||
#define HANDLE_MAX 20U
|
||||
#define SEEK_SET 0
|
||||
#define SEEK_CUR 1
|
||||
#define SEEK_END 2
|
||||
|
||||
extern unsigned _openfd[HANDLE_MAX];
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
extern int access(const char *_path, int _access);
|
||||
extern int chmod(const char *_path, int _mode);
|
||||
extern int _chmod(const char *_path, int _func, int _mode);
|
||||
extern int chsize(int _handle, long _size);
|
||||
extern int close(int _handle);
|
||||
extern int _close(int _handle);
|
||||
extern int creat(const char *_path, int _access);
|
||||
extern int _creat(const char *_path, int _permission);
|
||||
extern int _creat_trunc(const char *_path, int _permission);
|
||||
extern int creatnew(const char *_path, int _premission);
|
||||
extern int _creat_new(const char *_path, int _permission);
|
||||
extern int creattemp(const char *_path, int _permission);
|
||||
extern int _creat_temp(char *_path, int _permission);
|
||||
extern int dup(int _handle);
|
||||
extern int dup2(int _oldhandle, int _newhandle);
|
||||
extern int eof(int _handle);
|
||||
extern int _dup(int _handle);
|
||||
extern int _dup2(int _oldhandle, int _newhandle);
|
||||
extern int _eof(int _handle);
|
||||
extern long filelength(int _handle);
|
||||
extern int _filedrive(int _handle);
|
||||
extern int getftime(int _handle, struct ftime *_ftimep);
|
||||
extern int isatty(int _handle);
|
||||
extern long lseek(int _handle, long _offset, int _fromwhere);
|
||||
extern int open(const char *_path, int _access,... /*unsigned mode*/);
|
||||
extern int _open(const char *_path, int _oflags);
|
||||
extern int read(int _handle, void *_buf, unsigned _num);
|
||||
extern int _read(int _handle, void *_buf, unsigned _num);
|
||||
extern int setmode(int _handle, unsigned _mode);
|
||||
extern int sopen(const char *_path, int _access, int _shflag, ... /*unsigned mode*/);
|
||||
extern long tell(int _handle);
|
||||
extern unsigned umask(unsigned _cmask);
|
||||
extern int unlink(const char *_path);
|
||||
extern int write(int _handle, void *_buf, unsigned _num);
|
||||
extern int _write(int _handle, const void *_buf, unsigned _num);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
@@ -0,0 +1,113 @@
|
||||
/* Release 3.10 */
|
||||
/*-------------------------------------------------------------------------*
|
||||
* *
|
||||
* IOMANIP.HPP - header file for pasting I/O manipulators. *
|
||||
* *
|
||||
* COPYRIGHT (C) 1990..1992 Clarion Software Corporation *
|
||||
* All Rights Reserved *
|
||||
* *
|
||||
*--------------------------------------------------------------------------*/
|
||||
#include <stdepoc.h>
|
||||
|
||||
#ifndef __IOMANIP_INC_
|
||||
#define __IOMANIP_INC_
|
||||
|
||||
#include <iostream.hpp>
|
||||
#include <generic.hpp>
|
||||
|
||||
#define SMANIP(type) _PASTE2(smanip_, type)
|
||||
#define SAPP(type) _PASTE2(sapply_, type)
|
||||
#define IMANIP(type) _PASTE2(imanip_, type)
|
||||
#define OMANIP(type) _PASTE2(omanip_, type)
|
||||
#define IOMANIP(type) _PASTE2(iomanip_, type)
|
||||
#define IAPP(type) _PASTE2(iapply_, type)
|
||||
#define OAPP(type) _PASTE2(oapply_, type)
|
||||
#define IOAPP(type) _PASTE2(ioapply_, type)
|
||||
|
||||
#define IOMANIPdeclare(type) \
|
||||
class SMANIP(type) { \
|
||||
ios& (*_fn)(ios&, type); \
|
||||
type _ag; \
|
||||
public: \
|
||||
SMANIP(type)(ios& (*_f)(ios&, type), type _a) : _fn(_f), _ag(_a) { } \
|
||||
friend istream& operator>>(istream& _s, const SMANIP(type)& _f) { \
|
||||
(*_f._fn)(_s, _f._ag); return _s; } \
|
||||
friend ostream& operator<<(ostream& _s, const SMANIP(type)& _f) { \
|
||||
(*_f._fn)(_s, _f._ag); return _s; } \
|
||||
}; \
|
||||
class SAPP(type) { \
|
||||
ios& (*_fn)(ios&, type); \
|
||||
public: \
|
||||
SAPP(type)(ios& (*_f)(ios&, type)) : _fn(_f) { } \
|
||||
SMANIP(type) operator()(type _z) { return SMANIP(type)(_fn, _z); } \
|
||||
}; \
|
||||
class IMANIP(type) { \
|
||||
istream& (*_fn)(istream&, type); \
|
||||
type _ag; \
|
||||
public: \
|
||||
IMANIP(type)(istream& (*_f)(istream&, type), type _z ) : \
|
||||
_fn(_f), _ag(_z) { } \
|
||||
friend istream& operator>>(istream& _s, const IMANIP(type)& _f) { \
|
||||
return(*_f._fn)(_s, _f._ag); } \
|
||||
}; \
|
||||
class IAPP(type) { \
|
||||
istream& (*_fn)(istream&, type); \
|
||||
public: \
|
||||
IAPP(type)(istream& (*_f)(istream&, type)) : _fn(_f) { } \
|
||||
IMANIP(type) operator()(type _z) { \
|
||||
return IMANIP(type)(_fn, _z); } \
|
||||
}; \
|
||||
class OMANIP(type) { \
|
||||
ostream& (*_fn)(ostream&, type); \
|
||||
type _ag; \
|
||||
public: \
|
||||
OMANIP(type)(ostream& (*_f)(ostream&, type), type _z ) : \
|
||||
_fn(_f), _ag(_z) { } \
|
||||
friend ostream& operator<<(ostream& _s, const OMANIP(type)& _f) { \
|
||||
return(*_f._fn)(_s, _f._ag); } \
|
||||
}; \
|
||||
class OAPP(type) { \
|
||||
ostream& (*_fn)(ostream&, type); \
|
||||
public: \
|
||||
OAPP(type)(ostream& (*_f)(ostream&, type)) : _fn(_f) { } \
|
||||
OMANIP(type) operator()(type _z) { return OMANIP(type)(_fn, _z); } \
|
||||
}; \
|
||||
class IOMANIP(type) { \
|
||||
iostream& (*_fn)(iostream&, type); \
|
||||
type _ag; \
|
||||
public: \
|
||||
IOMANIP(type)(iostream& (*_f)(iostream&, type), type _z ) : \
|
||||
_fn(_f), _ag(_z) { } \
|
||||
friend istream& operator>>(iostream& _s, const IOMANIP(type)& _f) { \
|
||||
return(*_f._fn)(_s, _f._ag); } \
|
||||
friend ostream& operator<<(iostream& _s, const IOMANIP(type)& _f) { \
|
||||
return(*_f._fn)(_s, _f._ag); } \
|
||||
}; \
|
||||
class IOAPP(type) { \
|
||||
iostream& (*_fn)(iostream&, type); \
|
||||
public: \
|
||||
IOAPP(type)(iostream& (*_f)(iostream&, type)) : _fn(_f) { } \
|
||||
IOMANIP(type) operator()(type _z) { return IOMANIP(type)(_fn, _z); } \
|
||||
}
|
||||
|
||||
|
||||
//CEP 6/7/91
|
||||
#pragma save,warn(wpnu=>off)
|
||||
IOMANIPdeclare(int);
|
||||
IOMANIPdeclare(long);
|
||||
#pragma restore
|
||||
|
||||
smanip_int setbase(int _b);
|
||||
|
||||
smanip_long resetiosflags(long _b);
|
||||
|
||||
smanip_long setiosflags(long _b);
|
||||
|
||||
smanip_int setfill(int _f);
|
||||
|
||||
smanip_int setprecision(int _n);
|
||||
|
||||
smanip_int setw(int _n);
|
||||
|
||||
#endif
|
||||
␍
|
||||
@@ -0,0 +1,700 @@
|
||||
/* Release 3.10 */
|
||||
/*-------------------------------------------------------------------------*
|
||||
* *
|
||||
* IOSTREAM.HPP - header file for stream input and output. *
|
||||
* *
|
||||
* COPYRIGHT (C) 1990..1992 Clarion Software Corporation *
|
||||
* All Rights Reserved *
|
||||
* *
|
||||
*--------------------------------------------------------------------------*/
|
||||
#include <stdepoc.h>
|
||||
|
||||
#ifndef _IOSTREAM_INC_
|
||||
#define _IOSTREAM_INC_
|
||||
|
||||
#include <mem.h>
|
||||
|
||||
#ifdef EOF
|
||||
#if EOF != -1
|
||||
#undef EOF
|
||||
#define EOF (-1)
|
||||
#endif
|
||||
#else
|
||||
#define EOF (-1)
|
||||
#endif
|
||||
|
||||
#define zapeof(c) ((c)&0xFF)
|
||||
|
||||
typedef long streampos;
|
||||
typedef long streamoff;
|
||||
|
||||
class streambuf;
|
||||
class ostream;
|
||||
|
||||
class ios {
|
||||
|
||||
public:
|
||||
enum io_state {
|
||||
goodbit = 0x00,
|
||||
eofbit = 0x01,
|
||||
failbit = 0x02,
|
||||
badbit = 0x04,
|
||||
hardfail = 0x80
|
||||
};
|
||||
|
||||
enum open_mode {
|
||||
in = 0x01,
|
||||
out = 0x02,
|
||||
ate = 0x04,
|
||||
app = 0x08,
|
||||
trunc = 0x10,
|
||||
nocreate = 0x20,
|
||||
noreplace = 0x40,
|
||||
binary = 0x80
|
||||
};
|
||||
|
||||
enum seek_dir {
|
||||
beg=0,
|
||||
cur=1,
|
||||
end=2
|
||||
};
|
||||
|
||||
enum {
|
||||
skipws = 0x0001,
|
||||
left = 0x0002,
|
||||
right = 0x0004,
|
||||
internal = 0x0008,
|
||||
dec = 0x0010,
|
||||
oct = 0x0020,
|
||||
hex = 0x0040,
|
||||
showbase = 0x0080,
|
||||
showpoint = 0x0100,
|
||||
uppercase = 0x0200,
|
||||
showpos = 0x0400,
|
||||
scientific = 0x0800,
|
||||
fixed = 0x1000,
|
||||
unitbuf = 0x2000,
|
||||
stdio = 0x4000
|
||||
};
|
||||
|
||||
static const long basefield;
|
||||
static const long adjustfield;
|
||||
static const long floatfield;
|
||||
|
||||
ios(streambuf* _buffer);
|
||||
virtual ~ios();
|
||||
|
||||
long flags();
|
||||
long flags(long _fl);
|
||||
long setf(long _setbits, long _fld);
|
||||
long setf(long _fld);
|
||||
long unsetf(long _fld);
|
||||
|
||||
int width();
|
||||
int width(int _w);
|
||||
|
||||
char fill();
|
||||
char fill(char _f);
|
||||
|
||||
int precision();
|
||||
int precision(int _p);
|
||||
|
||||
ostream* tie();
|
||||
ostream* tie(ostream* _ost);
|
||||
|
||||
int rdstate();
|
||||
int eof();
|
||||
int fail();
|
||||
int bad();
|
||||
int good();
|
||||
void clear(int = 0);
|
||||
operator void* ();
|
||||
int operator! ();
|
||||
streambuf* rdbuf();
|
||||
|
||||
static long bitalloc();
|
||||
static int xalloc();
|
||||
long& iword(int);
|
||||
void*& pword(int);
|
||||
|
||||
static void sync_with_stdio();
|
||||
|
||||
int skip(int);
|
||||
|
||||
protected:
|
||||
|
||||
enum {
|
||||
translate = 0x080,
|
||||
skipping = 0x100,
|
||||
tied = 0x200
|
||||
};
|
||||
|
||||
streambuf *_bp;
|
||||
ostream* x_tie;
|
||||
int state;
|
||||
int ispecial;
|
||||
int ospecial;
|
||||
long x_flags;
|
||||
int x_precision;
|
||||
int x_width;
|
||||
int x_fill;
|
||||
int isfx_special;
|
||||
int osfx_special;
|
||||
int delbuf;
|
||||
int assign_private;
|
||||
|
||||
ios();
|
||||
void init(streambuf* _buffer);
|
||||
void setstate(int);
|
||||
static void (*stdioflush)();
|
||||
|
||||
private:
|
||||
|
||||
union ios_user_union {
|
||||
long x;
|
||||
void *p;
|
||||
};
|
||||
|
||||
static long nextbit;
|
||||
static int usercount;
|
||||
union ios_user_union *userwords;
|
||||
int nwords;
|
||||
void uresize(int);
|
||||
|
||||
ios(ios&); // not implemented
|
||||
void operator= (ios&); // not implemented
|
||||
};
|
||||
|
||||
#ifdef _SMALL_INLINE
|
||||
inline streambuf* ios::rdbuf() { return _bp;}
|
||||
inline ostream* ios::tie() { return x_tie;}
|
||||
inline char ios::fill() { return x_fill; }
|
||||
inline int ios::precision() { return x_precision; }
|
||||
inline int ios::rdstate() { return state; }
|
||||
inline int ios::eof() { return (state&eofbit); }
|
||||
inline int ios::fail() { return (state&(failbit|badbit|hardfail)); }
|
||||
inline int ios::bad() { return (state&(badbit|hardfail)); }
|
||||
inline int ios::good() { return (state == 0); }
|
||||
inline long ios::flags() { return x_flags; }
|
||||
inline int ios::width() { return x_width; }
|
||||
inline int ios::width(int _w) { int _temp = x_width;
|
||||
x_width = _w;
|
||||
return _temp; }
|
||||
inline char ios::fill(char _w) { char _temp = x_fill;
|
||||
x_fill = _w;
|
||||
return _temp; }
|
||||
inline int ios::precision(int _w) { int _temp = x_precision;
|
||||
x_precision = _w;
|
||||
return _temp; }
|
||||
|
||||
inline ios::operator void* () {return (fail()|eof()) ? 0 : this; }
|
||||
inline ios::operator! () {return (fail()|eof()); }
|
||||
#endif
|
||||
|
||||
|
||||
class streambuf {
|
||||
|
||||
public:
|
||||
|
||||
streambuf();
|
||||
streambuf(char * _buf, int _size);
|
||||
virtual ~streambuf();
|
||||
|
||||
virtual streambuf* setbuf(char * _buf, int _size);
|
||||
virtual streambuf* setbuf(char * _buf, int , int);
|
||||
|
||||
int sgetc();
|
||||
int snextc();
|
||||
int sbumpc();
|
||||
void stossc();
|
||||
int sgetn(char *_s, int _num);
|
||||
virtual int do_sgetn(char *_s, int _num);
|
||||
virtual int underflow();
|
||||
int sputbackc(char _c);
|
||||
virtual int pbackfail(int);
|
||||
int in_avail();
|
||||
|
||||
int sputc(int _c);
|
||||
virtual int do_sputn(const char *_s, int _num);
|
||||
int sputn(const char *_s, int _num);
|
||||
virtual int overflow(int _c = EOF);
|
||||
int out_waiting();
|
||||
|
||||
virtual streampos seekoff(streamoff, ios::seek_dir, int = (ios::in | ios::out));
|
||||
virtual streampos seekpos(streamoff, int = (ios::in | ios::out));
|
||||
virtual int sync();
|
||||
int dbp();
|
||||
|
||||
protected:
|
||||
|
||||
char *base();
|
||||
char *ebuf();
|
||||
int blen();
|
||||
char *pbase();
|
||||
char *pptr();
|
||||
char *epptr();
|
||||
char *eback();
|
||||
char *gptr();
|
||||
char *egptr();
|
||||
void setp(char *, char *);
|
||||
void setg(char *, char *, char *);
|
||||
void pbump(int);
|
||||
void gbump(int);
|
||||
void setb(char *, char *, int = 0);
|
||||
void unbuffered(int);
|
||||
int unbuffered();
|
||||
int allocate();
|
||||
virtual int doallocate();
|
||||
|
||||
private:
|
||||
short _alloc;
|
||||
short _unbuf;
|
||||
char *_base;
|
||||
char *_ebuf;
|
||||
char *_pbase;
|
||||
char *_pptr;
|
||||
char *_epptr;
|
||||
char *_eback;
|
||||
char *_gptr;
|
||||
char *_egptr;
|
||||
|
||||
streambuf(streambuf&);
|
||||
void operator= (streambuf&);
|
||||
|
||||
int do_snextc();
|
||||
};
|
||||
#ifdef _SMALL_INLINE
|
||||
inline char * streambuf::base() { return _base; }
|
||||
inline char * streambuf::pbase() { return _pbase; }
|
||||
inline char * streambuf::pptr() { return _pptr; }
|
||||
inline char * streambuf::epptr() { return _epptr; }
|
||||
inline char * streambuf::gptr() { return _gptr; }
|
||||
inline char * streambuf::egptr() { return _egptr; }
|
||||
inline char * streambuf::eback() { return _eback; }
|
||||
inline char * streambuf::ebuf() { return _ebuf; }
|
||||
|
||||
inline int streambuf::unbuffered() { return _unbuf; }
|
||||
inline int streambuf::blen() { return (int) (_ebuf - _base); }
|
||||
|
||||
inline void streambuf::pbump(int _n) { _pptr += _n; }
|
||||
inline void streambuf::gbump(int _n) { _gptr += _n; }
|
||||
inline void streambuf::unbuffered(int _ub) { _unbuf = (_ub != 0); }
|
||||
inline int streambuf::in_avail() { return (_egptr > _gptr) ?
|
||||
(int)(_egptr - _gptr): 0; }
|
||||
inline int streambuf::out_waiting() { return _pptr ?
|
||||
(int)(_pptr - _pbase): 0; }
|
||||
inline int streambuf::allocate() { return((_base || _unbuf) ? 0 : doallocate()); }
|
||||
|
||||
inline int streambuf::sgetc() { return ((_gptr >= _egptr) ? underflow() :
|
||||
(unsigned char) *_gptr); }
|
||||
|
||||
inline int streambuf::snextc() { return ((++_gptr >= _egptr) ?
|
||||
do_snextc() :
|
||||
(unsigned char) *_gptr); }
|
||||
|
||||
inline int streambuf::sbumpc() { return ((_gptr >= _egptr)
|
||||
&& (underflow() == EOF) ?
|
||||
EOF :
|
||||
(unsigned char) *_gptr++); }
|
||||
inline void streambuf::stossc() { if (_gptr >= _egptr)
|
||||
underflow();
|
||||
else
|
||||
++_gptr; }
|
||||
|
||||
inline int streambuf::sputbackc(char _c) { return (_gptr > _eback) ?
|
||||
*--_gptr = _c :
|
||||
pbackfail(_c) ; }
|
||||
|
||||
inline int streambuf::sputc(int _c) { return (_pptr >= _epptr) ?
|
||||
overflow(_c) :
|
||||
(*_pptr++=_c, _c); }
|
||||
|
||||
#ifdef _BIG_INLINE
|
||||
inline int streambuf::sputn(const char *_s, int _n) {
|
||||
if(_n <= (_epptr - _pptr)) {
|
||||
memcpy(_pptr, _s, _n);
|
||||
pbump(_n);
|
||||
return _n;
|
||||
}
|
||||
return do_sputn(_s, _n); }
|
||||
|
||||
inline int streambuf::sgetn(char *_s, int _n) {
|
||||
if(_n <= (_egptr - _gptr)) {
|
||||
memcpy(_s, _gptr, _n);
|
||||
gbump(_n);
|
||||
return _n;
|
||||
}
|
||||
return do_sgetn(_s, _n); }
|
||||
|
||||
#endif
|
||||
#endif
|
||||
class istream : virtual public ios {
|
||||
|
||||
public:
|
||||
|
||||
istream(streambuf*);
|
||||
istream(streambuf*, int _sk, ostream* _t=NULL);
|
||||
istream(int _sz, char *, int _sk=1);
|
||||
istream(int _fd, int _sk=1, ostream* _t=NULL);
|
||||
virtual ~istream();
|
||||
|
||||
int ipfx(int = 0);
|
||||
int ipfx0();
|
||||
int ipfx1();
|
||||
void isfx() {}
|
||||
|
||||
istream& seekg(streampos);
|
||||
istream& seekg(streamoff, ios::seek_dir);
|
||||
streampos tellg();
|
||||
|
||||
int sync();
|
||||
|
||||
istream& get( signed char*, int, char = '\n');
|
||||
istream& get(unsigned char*, int, char = '\n');
|
||||
istream& get( char*, int, char = '\n');
|
||||
istream& read( signed char*, int);
|
||||
istream& read(unsigned char*, int);
|
||||
istream& read( char*, int);
|
||||
istream& getline( signed char*, int, char = '\n');
|
||||
istream& getline(unsigned char*, int, char = '\n');
|
||||
istream& getline( char*, int, char = '\n');
|
||||
|
||||
istream& get(streambuf&, char = '\n');
|
||||
istream& get( signed char&);
|
||||
istream& get(unsigned char&);
|
||||
istream& get( char&);
|
||||
int get();
|
||||
|
||||
int peek();
|
||||
int gcount();
|
||||
istream& putback(char);
|
||||
istream& ignore(int = 1, int = EOF);
|
||||
|
||||
istream& operator>> (istream& (*_f)(istream&));
|
||||
istream& operator>> (ios& (*_f)(ios&));
|
||||
istream& operator>> ( signed char*);
|
||||
istream& operator>> (unsigned char*);
|
||||
istream& operator>> ( char*);
|
||||
istream& operator>> ( signed char&);
|
||||
istream& operator>> (unsigned char&);
|
||||
istream& operator>> ( char&);
|
||||
istream& operator>> (short&);
|
||||
istream& operator>> (int&);
|
||||
istream& operator>> (long&);
|
||||
istream& operator>> (unsigned short&);
|
||||
istream& operator>> (unsigned int&);
|
||||
istream& operator>> (unsigned long&);
|
||||
istream& operator>> (float&);
|
||||
istream& operator>> (double&);
|
||||
istream& operator>> (long double&);
|
||||
|
||||
istream& operator>> (streambuf*);
|
||||
|
||||
protected:
|
||||
|
||||
istream();
|
||||
int do_ipfx(int);
|
||||
void eatwhite();
|
||||
|
||||
private:
|
||||
|
||||
int _gcount;
|
||||
int do_get();
|
||||
};
|
||||
|
||||
#ifdef _SMALL_INLINE
|
||||
inline int istream::gcount() { return _gcount; }
|
||||
|
||||
inline int istream::ipfx(int _need) { if( _need ? (ispecial&~skipping) :
|
||||
ispecial)
|
||||
return do_ipfx(_need);
|
||||
return 1; }
|
||||
|
||||
inline int istream::ipfx0() { return ispecial ? do_ipfx(0) : 1; }
|
||||
|
||||
inline int istream::ipfx1() { return (ispecial&~skipping) ? do_ipfx(1) : 1; }
|
||||
|
||||
inline istream& istream::operator>>(unsigned char& _c) {
|
||||
if(ipfx0()) {
|
||||
if(_bp->in_avail())
|
||||
_c = _bp->sbumpc();
|
||||
else
|
||||
_c = do_get();
|
||||
}
|
||||
return *this; }
|
||||
|
||||
inline istream& istream::operator>>(signed char& _c) {
|
||||
if(ipfx0()) {
|
||||
if(_bp->in_avail())
|
||||
_c = _bp->sbumpc();
|
||||
else
|
||||
_c = do_get();
|
||||
}
|
||||
return *this; }
|
||||
|
||||
inline istream& istream::operator>>( char& _c) {
|
||||
if(ipfx0()) {
|
||||
if(_bp->in_avail())
|
||||
_c = _bp->sbumpc();
|
||||
else
|
||||
_c = do_get();
|
||||
}
|
||||
return *this; }
|
||||
|
||||
inline istream& istream::operator>>(unsigned char* _s) {
|
||||
return *this>>(signed char *) _s; }
|
||||
|
||||
inline istream& istream::operator>>( char* _s) {
|
||||
return *this>>(signed char *) _s; }
|
||||
|
||||
inline istream& istream::get(unsigned char* _s, int _l, char _t) {
|
||||
return get((signed char *)_s, _l, _t); }
|
||||
|
||||
inline istream& istream::get( char* _s, int _l, char _t) {
|
||||
return get((signed char *)_s, _l, _t); }
|
||||
|
||||
#ifdef _BIG_INLINE_
|
||||
inline istream& istream::get(unsigned char& _c) {
|
||||
if( ipfx1() ) {
|
||||
if( _bp->in_avail() ) {
|
||||
_gcount = 1;
|
||||
_c = _bp->sbumpc();
|
||||
}
|
||||
else
|
||||
_c = do_get();
|
||||
}
|
||||
return *this; }
|
||||
|
||||
inline istream& istream::get(signed char& _c) {
|
||||
if( ipfx1() ) {
|
||||
if( _bp->in_avail()) {
|
||||
_gcount = 1;
|
||||
_c = _bp->sbumpc();
|
||||
}
|
||||
else
|
||||
_c = do_get();
|
||||
}
|
||||
return *this; }
|
||||
|
||||
|
||||
inline istream& istream::get( char& _c) {
|
||||
if( ipfx1() ) {
|
||||
if( _bp->in_avail()) {
|
||||
_gcount = 1;
|
||||
_c = _bp->sbumpc();
|
||||
}
|
||||
else
|
||||
_c = do_get();
|
||||
}
|
||||
return *this; }
|
||||
|
||||
inline int istream::get() {
|
||||
if( ipfx1() ) {
|
||||
int _c = _bp->sbumpc();
|
||||
if( _c == EOF )
|
||||
setstate(eofbit);
|
||||
else _gcount = 1;
|
||||
return _c;
|
||||
}
|
||||
return EOF; }
|
||||
|
||||
#endif
|
||||
|
||||
inline istream& istream::read(unsigned char* _s, int _l) {
|
||||
return read((signed char *)_s, _l); }
|
||||
|
||||
inline istream& istream::read( char* _s, int _l) {
|
||||
return read((signed char *)_s, _l); }
|
||||
|
||||
inline istream& istream::getline(unsigned char* _s, int _l, char _t) {
|
||||
return getline((signed char *)_s, _l, _t); }
|
||||
|
||||
inline istream& istream::getline( char* _s, int _l, char _t) {
|
||||
return getline((signed char *)_s, _l, _t); }
|
||||
|
||||
inline int istream::sync() { return _bp->sync(); }
|
||||
|
||||
inline istream& istream::operator>> (istream& (*_f)(istream&)) {
|
||||
return (*_f)(*this); }
|
||||
|
||||
inline int istream::peek() { return ipfx1() ? _bp->sgetc() : EOF; }
|
||||
|
||||
#endif
|
||||
|
||||
class ostream : virtual public ios {
|
||||
|
||||
public:
|
||||
|
||||
|
||||
ostream(streambuf *);
|
||||
~ostream();
|
||||
|
||||
ostream(int _fd);
|
||||
ostream(int _sz, char *);
|
||||
|
||||
int opfx();
|
||||
void osfx();
|
||||
ostream& flush();
|
||||
|
||||
ostream& seekp(streampos);
|
||||
ostream& seekp(streamoff, ios::seek_dir);
|
||||
streampos tellp();
|
||||
|
||||
ostream& put(char);
|
||||
ostream& write(const char*, int);
|
||||
ostream& write(const signed char*, int);
|
||||
ostream& write(const unsigned char*, int);
|
||||
|
||||
ostream& operator<<( signed char);
|
||||
ostream& operator<<(unsigned char);
|
||||
ostream& operator<<( char);
|
||||
ostream& operator<<( signed short);
|
||||
ostream& operator<<(unsigned short);
|
||||
ostream& operator<<( signed int);
|
||||
ostream& operator<<(unsigned int);
|
||||
ostream& operator<<( signed long);
|
||||
ostream& operator<<(unsigned long);
|
||||
ostream& operator<<(float);
|
||||
ostream& operator<<(double);
|
||||
ostream& operator<<(long double);
|
||||
ostream& operator<<(const char *);
|
||||
ostream& operator<<(const signed char *);
|
||||
ostream& operator<<(const unsigned char *);
|
||||
ostream& operator<<(void *);
|
||||
|
||||
ostream& operator<<(streambuf*);
|
||||
ostream& operator<<(ostream& (*_f)(ostream&));
|
||||
ostream& operator<<(ios& (*_f)(ios&));
|
||||
|
||||
protected:
|
||||
|
||||
ostream();
|
||||
int do_opfx();
|
||||
int do_osfx();
|
||||
|
||||
private:
|
||||
|
||||
void outlong(unsigned long, int);
|
||||
void outstr(const char *);
|
||||
};
|
||||
|
||||
#ifdef _SMALL_INLINE
|
||||
inline int ostream::opfx() { return ospecial ? do_opfx() : 1; }
|
||||
|
||||
inline void ostream::osfx() { if((x_flags&(stdio|unitbuf)) || (ospecial)) do_osfx(); }
|
||||
|
||||
inline ostream& ostream::operator<<(unsigned char _c) {
|
||||
return *this <<(signed char ) _c; }
|
||||
|
||||
inline ostream& ostream::operator<<( char _c) {
|
||||
return *this <<(signed char ) _c; }
|
||||
|
||||
inline ostream& ostream::operator<<(short _i) { return *this<<(long)_i; }
|
||||
|
||||
inline ostream& ostream::operator<<(unsigned short _i) {
|
||||
return *this<<(unsigned long)_i; }
|
||||
|
||||
inline ostream& ostream::operator<<(int _i) { return *this<<(long)_i; }
|
||||
|
||||
inline ostream& ostream::operator<<(unsigned int _i) {
|
||||
return *this<<(unsigned long)_i; }
|
||||
|
||||
inline ostream& ostream::operator<<(float _f) {
|
||||
return *this<<(long double)_f; }
|
||||
|
||||
inline ostream& ostream::operator<<(double _f) {
|
||||
return *this<<(long double)_f; }
|
||||
|
||||
inline ostream& ostream::operator<<(ostream& (*_f)(ostream&)) {
|
||||
return (*_f)(*this); }
|
||||
|
||||
inline ostream& ostream::write(const signed char *_s, int _n) {
|
||||
return write((const char *)_s, _n); }
|
||||
|
||||
inline ostream& ostream::write(const unsigned char *_s, int _n) {
|
||||
return write((const char *)_s, _n); }
|
||||
|
||||
inline ostream& ostream::put(char _c) {
|
||||
if(_bp->sputc(_c) == EOF)
|
||||
setstate(badbit);
|
||||
return *this; }
|
||||
|
||||
inline ostream& ostream::operator<<(const signed char *_s) {
|
||||
return *this<<(const char *) _s; }
|
||||
|
||||
inline ostream& ostream::operator<<(const unsigned char *_s) {
|
||||
return *this<<(const char *) _s; }
|
||||
#endif
|
||||
|
||||
class iostream : public istream , public ostream {
|
||||
|
||||
public:
|
||||
|
||||
iostream(streambuf*);
|
||||
virtual ~iostream();
|
||||
|
||||
protected:
|
||||
iostream();
|
||||
|
||||
};
|
||||
|
||||
|
||||
class istream_withassign : public istream {
|
||||
|
||||
public:
|
||||
|
||||
istream_withassign();
|
||||
virtual ~istream_withassign();
|
||||
|
||||
istream_withassign& operator= (istream&);
|
||||
istream_withassign& operator= (streambuf*);
|
||||
|
||||
private:
|
||||
|
||||
unsigned assign_const;
|
||||
};
|
||||
|
||||
class ostream_withassign : public ostream {
|
||||
|
||||
public:
|
||||
|
||||
ostream_withassign();
|
||||
virtual ~ostream_withassign();
|
||||
|
||||
ostream_withassign& operator= (ostream&);
|
||||
ostream_withassign& operator= (streambuf*);
|
||||
|
||||
private:
|
||||
|
||||
unsigned assign_const;
|
||||
};
|
||||
|
||||
class iostream_withassign : public iostream {
|
||||
|
||||
public:
|
||||
|
||||
iostream_withassign();
|
||||
virtual ~iostream_withassign();
|
||||
|
||||
iostream_withassign& operator= (ios&);
|
||||
iostream_withassign& operator= (streambuf*);
|
||||
|
||||
private:
|
||||
|
||||
unsigned assign_const;
|
||||
};
|
||||
|
||||
extern istream_withassign cin;
|
||||
extern ostream_withassign cout;
|
||||
extern ostream_withassign cerr;
|
||||
extern ostream_withassign clog;
|
||||
|
||||
ostream& endl(ostream&);
|
||||
ostream& ends(ostream&);
|
||||
ostream& flush(ostream&);
|
||||
istream& ws(istream&);
|
||||
ios& dec(ios&);
|
||||
ios& hex(ios&);
|
||||
ios& oct(ios&);
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,266 @@
|
||||
/* Generated by Ctran from ipc.cat */
|
||||
#define IPC_G
|
||||
#ifndef APPMAN_G
|
||||
#include <appman.g>
|
||||
#endif
|
||||
#ifndef P_FILE_H
|
||||
#include <p_file.h>
|
||||
#endif
|
||||
/* Class Numbers */
|
||||
#define C_SERVER 16
|
||||
#define C_LINKSV 17
|
||||
#define C_LINKCL 18
|
||||
#define C_TOPLIP 19
|
||||
#define C_EXOPL 20
|
||||
#define C_CMAP 21
|
||||
#define C_VOICE 22
|
||||
#define C_NOTIFY 23
|
||||
#define C_CONSOL 24
|
||||
/* Method Numbers */
|
||||
#define O_CM_AUTOWRAP 9
|
||||
#define O_NO_DRAW 7
|
||||
#define O_CO_DRAW 6
|
||||
#define O_CO_KEY 4
|
||||
#define O_CM_INSERT 2
|
||||
#define O_SV_INIT 2
|
||||
#define O_LC_START 1
|
||||
#define O_CM_ATTRIB 12
|
||||
#define O_CO_EDIT 10
|
||||
#define O_CM_RECT 3
|
||||
#define O_TIP_COMPLETE 6
|
||||
#define O_CM_SENSE_SIZE 7
|
||||
#define O_CO_SIZE 8
|
||||
#define O_CM_ENQ_DRAW 4
|
||||
#define O_CO_ESC 9
|
||||
#define O_SV_RUN 3
|
||||
#define O_CM_SENSE_CPOS 5
|
||||
#define O_CM_SCROLL 11
|
||||
#define O_CO_EXTRA 5
|
||||
#define O_TIP_GETLINE 5
|
||||
#define O_TIP_START 4
|
||||
#define O_LS_GET_DATA 5
|
||||
#define O_CM_SET_CPOS 6
|
||||
#define O_CO_CURSOR 7
|
||||
#define O_LC_GET_DATA 2
|
||||
#define O_LC_STOP 3
|
||||
#define O_CM_POINT_ROW 8
|
||||
#define O_LS_SET_FORMAT 4
|
||||
#define O_CM_SCROLLOCK 10
|
||||
#define O_CM_INIT 1
|
||||
#define O_SV_ABRUN 1
|
||||
/* Property of server */
|
||||
typedef struct {
|
||||
P_QUE q;
|
||||
unsigned short int t1;
|
||||
unsigned short int t2;
|
||||
unsigned short int cid;
|
||||
} PRS_SERVER;
|
||||
typedef struct pr_server
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_SERVER server;
|
||||
} PR_SERVER;
|
||||
/* Constants for linksv */
|
||||
#define TY_LINKSV_STEP 0x21
|
||||
#define TY_LINKSV_DEATH 0x22
|
||||
#define DF_LINK_NATIVE 0
|
||||
#define DF_LINK_TEXT 1
|
||||
#define DF_LINK_TABTEXT 2
|
||||
#define DF_LINK_VOICE 3
|
||||
#define DF_LINK_PARAS 4
|
||||
#define DF_LINK_SPR 5
|
||||
#define DF_LINK_WRD 6
|
||||
#define DF_LINK_AGD 7
|
||||
/* Property of linksv */
|
||||
typedef struct {
|
||||
unsigned char *buf;
|
||||
unsigned short int len;
|
||||
} PRS_LINKSV;
|
||||
typedef struct pr_linksv
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_SERVER server;
|
||||
PRS_LINKSV linksv;
|
||||
} PR_LINKSV;
|
||||
/* Property of linkcl */
|
||||
typedef struct {
|
||||
unsigned short int pid;
|
||||
} PRS_LINKCL;
|
||||
typedef struct pr_linkcl
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_LINKCL linkcl;
|
||||
} PR_LINKCL;
|
||||
/* Constants for toplip */
|
||||
#define TY_TOPLIP_LINE 0x10
|
||||
#define TY_TOPLIP_DEATH 0x11
|
||||
/* Types for toplip */
|
||||
typedef struct
|
||||
{
|
||||
short int stat;
|
||||
unsigned short int mode;
|
||||
unsigned short int line;
|
||||
unsigned short int offset;
|
||||
} PR_TOPLIP_STATUS;
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int pid;
|
||||
char *bofs;
|
||||
PR_TOPLIP_STATUS *sofs;
|
||||
} PR_TOPLIP_SOURCE;
|
||||
/* Property of toplip */
|
||||
typedef struct {
|
||||
PR_TOPLIP_STATUS st;
|
||||
char buf[256];
|
||||
} PRS_TOPLIP;
|
||||
typedef struct pr_toplip
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_SERVER server;
|
||||
PRS_TOPLIP toplip;
|
||||
} PR_TOPLIP;
|
||||
/* Constants for exopl */
|
||||
#define EXOPL_ISEXP 0x01
|
||||
#define EXOPL_SIGNAL 0x02
|
||||
#define EXOPL_NTFY 0x04
|
||||
/* Types for exopl */
|
||||
typedef struct
|
||||
{
|
||||
double value;
|
||||
short int error;
|
||||
unsigned short int line;
|
||||
unsigned short int offset;
|
||||
char src[P_FNAMESIZE];
|
||||
} EXOPL_RESBUF;
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int flags;
|
||||
short int cid;
|
||||
unsigned char *qofs;
|
||||
unsigned short int qlen;
|
||||
EXOPL_RESBUF *rofs;
|
||||
} EXOPL_PAR;
|
||||
/* Property of exopl */
|
||||
typedef struct {
|
||||
EXOPL_RESBUF result;
|
||||
} PRS_EXOPL;
|
||||
typedef struct pr_exopl
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
PRS_EXOPL exopl;
|
||||
} PR_EXOPL;
|
||||
/* Constants for cmap */
|
||||
#define DR_CMAP_END 0
|
||||
#define DR_CMAP_TEXT 1
|
||||
#define DR_CMAP_SPACES 2
|
||||
#define DR_CMAP_SCROLL 3
|
||||
#define OP_CMAP_CLEAR 1
|
||||
#define OP_CMAP_INVALID 2
|
||||
/* Types for cmap */
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int len;
|
||||
unsigned char *buf;
|
||||
unsigned char row;
|
||||
unsigned char col;
|
||||
} PR_CMAP_DRAW;
|
||||
/* Property of cmap */
|
||||
typedef struct {
|
||||
unsigned char *base;
|
||||
unsigned short int toprow;
|
||||
unsigned short int width;
|
||||
unsigned short int height;
|
||||
unsigned short int row;
|
||||
unsigned short int col;
|
||||
short int scroll;
|
||||
unsigned char wrap;
|
||||
unsigned char slock;
|
||||
} PRS_CMAP;
|
||||
typedef struct pr_cmap
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_CMAP cmap;
|
||||
} PR_CMAP;
|
||||
/* Constants for voice */
|
||||
#define TY_VOICE_PLAY 0
|
||||
#define TY_VOICE_EDIT 1
|
||||
#define TY_VOICE_CANCEL 2
|
||||
/* Types for voice */
|
||||
typedef struct
|
||||
{
|
||||
short int *pstat;
|
||||
unsigned char *buf;
|
||||
unsigned short int len;
|
||||
unsigned short int maxlen;
|
||||
} RQ_VOICE_MSG;
|
||||
/* Property of voice */
|
||||
typedef struct {
|
||||
PR_ROOT *owner;
|
||||
unsigned short int method;
|
||||
} PRS_VOICE;
|
||||
typedef struct pr_voice
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
PRS_VOICE voice;
|
||||
} PR_VOICE;
|
||||
/* Constants for notify */
|
||||
#define NOTIFY_MESS_TYPE 0
|
||||
#define NOTIFY_MESS_ARGS 5
|
||||
#define NOTIFY_MESS_SIZE 64
|
||||
/* Property of notify */
|
||||
typedef struct {
|
||||
unsigned char err0text[NOTIFY_MESS_SIZE];
|
||||
unsigned char err1text[NOTIFY_MESS_SIZE];
|
||||
unsigned char but0text[NOTIFY_MESS_SIZE];
|
||||
unsigned char but1text[NOTIFY_MESS_SIZE];
|
||||
unsigned char but2text[NOTIFY_MESS_SIZE];
|
||||
unsigned char pname[NOTIFY_MESS_SIZE];
|
||||
} PRS_NOTIFY;
|
||||
typedef struct pr_notify
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_ACTIVE active;
|
||||
PRS_IPCS ipcs;
|
||||
PRS_NOTIFY notify;
|
||||
} PR_NOTIFY;
|
||||
/* Constants for consol */
|
||||
#define CONSOL_MESS_READ 0
|
||||
#define CONSOL_MESS_WRITE 1
|
||||
#define CONSOL_MESS_CLOSE 2
|
||||
#define CONSOL_MESS_SET 3
|
||||
#define CONSOL_MESS_SENSE 4
|
||||
#define CONSOL_MESS_TEST 5
|
||||
#define CONSOL_MESS_FLUSH 6
|
||||
#define CONSOL_MESS_CANCEL 7
|
||||
#define CONSOL_MESS_EDIT 8
|
||||
#define CONSOL_MESS_SPARE1 9
|
||||
#define CONSOL_MESS_SPARE2 10
|
||||
#define CONSOL_MESS_SPARE3 11
|
||||
#define CONSOL_MESS_SPARE4 12
|
||||
#define CONSOL_MESS_DIED 13
|
||||
#define CONSOL_KEY_TYPE_AHEAD 32
|
||||
#define CONSOL_MAX_STRING 255
|
||||
/* Types for consol */
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int keycode;
|
||||
unsigned char modifiers;
|
||||
unsigned char count;
|
||||
} PR_CONSOL_WMSG_KEY;
|
||||
/* Property of consol */
|
||||
typedef struct {
|
||||
PR_CMAP *cmap;
|
||||
unsigned short int rcomp;
|
||||
unsigned char *rmess;
|
||||
PR_CONSOL_WMSG_KEY *head;
|
||||
PR_CONSOL_WMSG_KEY *tail;
|
||||
PR_CONSOL_WMSG_KEY list[CONSOL_KEY_TYPE_AHEAD];
|
||||
} PRS_CONSOL;
|
||||
typedef struct pr_consol
|
||||
{
|
||||
PRS_ROOT root;
|
||||
PRS_SERVER server;
|
||||
PRS_CONSOL consol;
|
||||
} PR_CONSOL;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user