/[james]/archive/wimplibs/Mess/2
ViewVC logotype

Contents of /archive/wimplibs/Mess/2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32 - (show annotations) (download)
Thu Sep 25 18:54:17 2003 UTC (21 years, 3 months ago) by james
File size: 3040 byte(s)
Initial import.

1 REM > JLibraries:Mess.2
2 REM © James Bursa, 1997
3
4 REM JB 16 Nov 1997 created
5 REM JB 17 Nov 1997 added FNMess_Global*
6 REM JB 06 Dec 1997 uses file pointer not names for speed
7
8
9 DEF FNMess_Open(Path$, Fixd%)
10 LOCAL Flag%, Size%, Buff%
11
12 SYS"MessageTrans_FileInfo",, Path$ TO ,, Size%
13 IF Fixd% THEN
14 DIM Buff% Size% + 20
15 !Buff% = Buff% + 4
16 ELSE
17 Buff% = FNHeap_Alloc(Size% + 16)
18 IF Buff% = 0 THEN ERROR Erro_Memo%, ""
19 ENDIF
20 SYS"MessageTrans_OpenFile", !Buff%, Path$, !Buff% + 16
21 =Buff%
22
23 REM ˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜
24
25 DEF FNMess_Lookup(Tokn$, File%)
26 LOCAL Text$
27 File% = !File%
28 File%!8 = File% + 16
29 SYS"MessageTrans_Lookup", File%, Tokn$ TO ,, Text$
30 =Text$
31
32 REM ˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜
33
34 DEF FNMess_XLookup(Tokn$, File%)
35 LOCAL Text$, PFlg%
36 File% = !File%
37 File%!8 = File% + 16
38 SYS"XMessageTrans_Lookup", File%, Tokn$ TO ,, Text$; PFlg%
39 IF (PFlg% AND 1) THEN =""
40 =Text$
41
42 REM ˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜
43
44 DEF FNMess_Adr(Tokn$, File%)
45 LOCAL Text%
46 File% = !File%
47 File%!8 = File% + 16
48 SYS"MessageTrans_Lookup", File%, Tokn$ TO ,, Text%
49 =Text%
50
51 REM ˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜
52
53 DEF FNMess_XAdr(Tokn$, File%)
54 LOCAL Text%, PFlg%
55 File% = !File%
56 File%!8 = File% + 16
57 SYS"XMessageTrans_Lookup", File%, Tokn$ TO ,, Text%; PFlg%
58 IF (PFlg% AND 1) THEN =0
59 =Text%
60
61 REM ˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜
62
63 DEF FNMess_Get1(Tokn$, File%, a$)
64 =FNMess_Get4(Tokn$, File%, a$, "", "", "")
65
66 REM ˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜
67
68 DEF FNMess_Get2(Tokn$, File%, a$, b$)
69 =FNMess_Get4(Tokn$, File%, a$, b$, "", "")
70
71 REM ˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜
72
73 DEF FNMess_Get3(Tokn$, File%, a$, b$, c$)
74 =FNMess_Get4(Tokn$, File%, a$, b$, c$, "")
75
76 REM ˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜
77
78 DEF FNMess_Get4(Tokn$, File%, a$, b$, c$, d$)
79 LOCAL Text$
80 File% = !File%
81 File%!8 = File% + 16
82 SYS"MessageTrans_Lookup", File%, Tokn$, STRING$(255, " "), 255, a$, b$, c$, d$ TO ,, Text$
83 =Text$
84
85 REM ˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜
86
87 DEF FNMess_Global(Tokn$)
88 =FNMess_Global4(Tokn$, "", "", "", "")
89
90 REM ˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜
91
92 DEF FNMess_Global1(Tokn$, a$)
93 =FNMess_Global4(Tokn$, a$, "", "", "")
94
95 REM ˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜
96
97 DEF FNMess_Global2(Tokn$, a$, b$)
98 =FNMess_Global4(Tokn$, a$, b$, "", "")
99
100 REM ˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜
101
102 DEF FNMess_Global3(Tokn$, a$, b$, c$)
103 =FNMess_Global4(Tokn$, a$, b$, c$, "")
104
105 REM ˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜
106
107 DEF FNMess_Global4(Tokn$, a$, b$, c$, d$)
108 LOCAL Text$
109 SYS"MessageTrans_Lookup", 0, Tokn$, STRING$(255, " "), 255, a$, b$, c$, d$ TO ,, Text$
110 =Text$

  ViewVC Help
Powered by ViewVC 1.1.26