release.txt
来自「在手机操作系统symbina上使用的一个脚本扩展语言的代码实现,可以参考用于自己」· 文本 代码 · 共 1,156 行 · 第 1/3 页
TXT
1,156 行
Changed COplParseApp::ParseL() to take extra flag arg.
virtual void COplParseApp::ParseL(COpl16ModuleBackEnd& aBackEnd,TBool aLocatingError)=0;
4) Changed TYPE to be for Opl1993 only - FLAGS is used on Opler1 to avoid confusion.
5) Caption length defined to be the same as for Apparc (KApaMaxAppCaption==256)
and uses TApaAppCaption for the buffer declaration.
const TInt KApaMaxAppCaption=0x100; // Default name is a file name, so the same limit is used
typedef TBuf<KApaMaxAppCaption> TApaAppCaption; // current language name of the app (for task lists, dialogs etc)
Version 0.01.026
================
(Released by Howard on 8/4/97)
Uses: e32tools=057 eiktools=120 e32=096 f32=065 store=040 fbserv=052
apparc=055 gdi=046 fntstore=037 fonts=060
1) Sorted out the MNT file. Now depends on FONTS too for FBSERV startup.
PGETBLD OPLT GROUP, MNT BLD, MNT BTST, MNT RTST now works provided 32 bit addressing
is disabled in inc\OPLTRDEF.H. Nick is looking into fixing this problem.
(The translator tests need the 32 bit addressing switch disabled but the release for
the runtime needs it enabled.)
2) Sorted out some death with ICON. Was panicking for more than one MBM.
3) Produced modules with the new OPL runtime UID. Changed all the Opler1 REF accordingly,
first checking the output using OPLDIS.
Version 0.01.025
================
(Released by Howard on 2/4/97)
1) dCHECKBOX var chk%,prompt$ now support
2) FLAGS constInt now used instead of TYPE
3) Now gives syntax error for strings passed by reference to OPX functions (omission).
It used to push the address. By rights it should push a left-side ref.
4) Now returns EErrSuccess rather than EErrEof for success - otherwise gets confused when
you get EOF error reading MBM file for ICON keyword.
5) CAPTION was getting corrupted name if constant definition used for language code - same
buffer was used to read both.
6) Maximum caption length for CAPTION keyword is now 8 - the same as the caption length in APP.
Awaiting spec decision before changing to a larger value.
7) In TModTran.MAK, for some reason FbsStartup() exits with code
200000. Some dependency missing - works ok if get OPLR build first.
I'll sort this out after this release.
Version 0.01.024
================
(Released by Howard 26 March 1997)
Uses: e32tools=055 eiktools=120 e32=094 f32=063 store=038 fbserv=051
apparc=052 gdi=045 fntstore=036
Howard
------
1) For Opler1 only, now supports 3 optional uids (0 or 3 only):
dFILE f$,prompt$,flags%[,uid1=0,uid2=0,uid3=0]
Three zeroes pushed for Opler1 only if none supplied.
Version 0.01.023
================
(Released by Howard 19 March 1997)
Uses: e32tools=053 eiktools=120 e32=093 f32=061 store=037 fbserv=050
apparc=049 gdi=045 fntstore=036
Rebuilt with Apparc 049.
Version 0.01.022
================
(Released by Howard 15 March 1997)
Uses: e32tools=051 eiktools=120 e32=090 f32=060 store=037 fbserv=049 apparc=048
Note: Released version has switch __32_BIT_ADDRESS__ defined
so translator needs rebuilding with switch off for tests to pass
Kevin
-----
1) Changed to new UID scheme where OPL specific 2nd UID is used rather than generic
Interpreter UID. The root stream no longer needs the root stream to have the Opl
interpreter Uid but this can only be removed when the consisten changes have been made
in the Runtime.
So:
KUidOplAppNoFile replaces KUidInterpreterApp
New KUidOplApp used for document-based apps
Temporary fix:
- Reintroduced TYPE 1 keyword for file-based apps (other types ignored ie. nojn-filebased)
- needs tidying to give error on types other than 1 (or possibly change TYPE to FLAGS again)
Howard
------
1) Changed OPLER1.REF according to the new UID scheme above
2) Changed TMODTRAN COpler1Opo::ConstructL() to support these UIDs:
TestL(type[1]==KUidOplAppNoFile || type[1]==KUidOplApp)
From NickT
----------
1) Eval translator now accepts external variable references. There are two new Qcodes
EEvalRightSideReference (0xff 0x31) && EEvalLeftSideReference (0xff 0x32).
These are followed in the qcode by the name of the variable (LBC) and a type byte
with the top bit set to indicate and array reference (c.f. entries in teh Module externals table)
See Test3 in TEVLTRAN.CPP for an example.
2) Eval Translator now converst all explicit procedure calls into
QCODE as if the procedure had been called indirectly by name, i.e.
fred%(2)
gets converted into qcode for
@%:("fred")(2)
The simplifies the interface to the Eval translator, which now takes
refrences to CBufBase& for teh qcode and TInt& for the make stack
depth.
Again, see TEVLTRAN.CPP for an example.
3) Can now declare negative CONST values
e.g.
CONST fred%=-4
and
CONST jim=-1.23.
NOTE: Grammar is trivial and only allows optional minus sign.
Version 0.01.021
================
(Released by Howard 12/03/97)
Uses: e32tools=051, e32=090, e32=060, store=037, fbserv=049, apparc=046
B6 release
Just rebuilt to use new incompatible APPARC.
Version 0.01.020
================
(Released by Howard 05/03/97)
Uses: e32tools 051,e32 090,f32 058,store 036,fbserv 049,apparc 045
B5(04) release
1. Outputs debug flag:
TUint16(CTextTranslator::EDebug) or TUint16(CTextTranslator::ERelease)
to module root stream after OPX table stream ID.
2. GETCMD$ supported for Opler1 translator.
3. OPA's ICN file deleted if CAPTION specified but no ICON in APP...ENDA construct - default
ICN used in this case. An ICN without any icons can't be used. This is considered a bug in the
OPL app. The ICN will be generated again when ICON is specified.
Version 0.01.019
================
Uses: e32 089,e32tools 051,f32 055, store 035, fbserv 047, apparc 044
(Released by Howard on 28/02/97)
Rebuilt with new Apparc.
Version 0.01.018
================
Uses: e32 087, e32tools 051,f32 050, store 035, fbserv 045, apparc 041
(Released by Howard on 20/02/97)
1. Added mPOPUP x%,y%,posType%,item$,hotKey%,[itemx$,hotKeyx%]+
posType% is the position type controlling the relative position of the popup from x%,y%.
0 - top-left
1 - top-left
2 - bottom-left
3 - bottom-right
item$ and hotKey% can take the same values as for mCARD. Note that
cascades in popups are not supported though.
2. Changed UADD and USUB back to take and return 16 bit arguments. 32-bit OPL programs should
just use long::operator+. Library module authors should also use long operator+ and return a
long.
3. Dropped OPLTDATA.PRJ from translator release. This used to specify
the default icon mbm DEFOPICN.MBM which is no longer needed with
APPARC providing a default ICN file.
Version 0.01.017
================
Uses: e32 087, e32tools 051,f32 050, store 035, fbserv 045, apparc 041
(Released by Howard on 12/02/97)
1. dINIT title$[,flags%] now supported where flags can specify buttons below or buttons right.
This is needed in dINIT because Eikon needs it done on dialog construction.
2. IOOPEN(h%,addr%,...) was generating 16-bit address rather than 32-bit.
3. IOOPEN(h%,...) required h% to be a reference to a long rather than to a short int giving
a syntax error for h%.
Version 0.01.016
================
Uses: e32tools 051,e32 087,f32 050,store 035,fbserv 045, apparc 041
(Released by Howard 10 Feb)
Doesn't generate its own default ICN file. Note that CAPTION must not be used now without
an ICON, because this will generate an ICN with no icon bitmaps!
This is considered a bug in OPLT - in the next release I'll delete the generated ICN if it contains
no icons.
Version 0.01.015
================
Uses: e32tools 051,e32 087,f32 050,store 035,fbserv 045, apparc 038
(Released by Howard 7 Feb)
Changes by Howard:
1) Doesn't call OplTargetIsApp() when locating errors. This was causing the deletion of the APP
on error.
2) Now supports CAPTION caption$,languageCode%
for the ICN file specification, where args must be constants.
The caption is used to display the task in the system task list.
If CAPTION is not provided, uses the <name> arg from APP <name> and uses the current
machine's language. If CAPTION is provided then the APP <name> arg is ignored.
If run on another language machine, the caption will be the same as the
ICN filename.
As is previous releases, if APP...ENDA is empty and an ICN file exists, the ICN file is not
changed and it is assumed to contain a caption already.
3) Smartkey (SMK) files no longer generated.
4) Added OPLTRDEF.H for definitions common to translator and runtime. Currently only defines
the debugging switch __32_BIT_ADDRESS__
5) Translator supports 32 bit addressing. Many keywords and functions are affected by this
including:
- any keywords/functions with 'var' arguments
- ADDR returns 32 bits
- PEEK*, POKE*
- ALLOC and related heap keywords/functions
The runtime will let the user set a flag to prevent 32 bit addressing at the user-level
6) dBUTTONS now allows many buttons in a dialog. Current arbitrary maximum set to 50.
Version 0.01.014
================
(Howard 3 Feb)
Uses: E32 086, E32tools 051, F32 050, Store 034, Fbserv 044, Apparc 034
Changes by Nick:
1) OPLDIS.EXE disassembly program brought up to date. It is saved as
r:\oplt\opldis.exe. The source files are also saved there for now and
need to built under TCS within the OLD opl group
2) Changed gCreateBit so that it now only has an optional 3rd
argument when transtaing for Opler1. As such, gCreateBit has fixed
number of arguments under SIUBO & variable argument count under
opler1.
3) Added Runtime error location. See TModTran Test4 for details.
Basically call
IMPORT_C void LocateErrorL(MTextSourceSystem& aTextSystem, // As for translating
const TFileName& aSourceName, // As for translating
const TFileName& aTargetName, // A temporary output file - deleted when done
CTextTranslator::TDebugFlag aDebugFlag, // Whether original was debug or release mode.
TSourceTranslateError& anError, // anError.iPosition is the offset in the procedure qcode where the error occured.
TInt aLineNumber) // line number of the procedure in the source module ( from OPO Module)
Then call TranslateChunkL repeatedly as for source translation.
TranslateChunk will return KErrGeneral & anError.Error will be
EErrFound when the error is located. anError.Position will be the
source offset to the error.
Otherwise returns are as for normal module translation.
4) When translating for Opler1 with debug flag set, the translator now outputs a symbol file for
use with the debugger. The file is a DirectFileStore like the Opo Module itself. It's
TUid is
TUidType(KDirectFileStoreLayout,KUidDebuggerObj,KUidOplDebugger)
with
const TUid KUidDebuggerObj= {268435748};
const TUid KUidOplDebugger= {268435749};
The Root stream consists of
KUidOplDebugger
TUint16(TranslatorVersion) // As in Opo Module
TUint16(MinRuntimeVersion)
TStreamId(ProcedureTable);
The ProcedureTableStream is structured
TUint16(EntryCount) // Number of procedures in the module
[TStreamId(ProcStream)]+ // these are guaranteed to be in the same order as the procedure lookup table in the object module
Each Proc Stream is structured as follows
TStreamId(Arguments)
TStreamId(Externals)
TStreamId(Globals)
TStreamId(Locals)
For the Arguments and Externals the symbol streams is structured
TLbc(SymbolName) // LBC name
TGlobalType(SymbolType) // Type plus top bit set if an array
TUint16(SymbolAddress) // The addres of the symbol within the frame
... repeats for each symbol ...
Zero length name (i.e. zero terminating byte)
For the Globals and Locals the symbol streams is structured
TLbc(SymbolName) // LBC name
TGlobalType(SymbolType) // Type plus top bit set if an array
TUint16(SymbolAddress) // The addres of the symbol within the frame
TUint16(MaxArraySize) // 0 if not an array
TUint16(maxStringSize) // 0 if not a string variable.
... repeats for each symbol ...
Zero length name (i.e. zero terminating byte)
NOTE: This stuff has not been tested as yet.
5) Bug fixes.
OPL HA-25 - fixed earlier but closed now.
OPL HA-27 & HA-2 : Parsing Include file names - now done.
OPL HA-26 - OPx functions which take no arguments can now be declared w/o brackets
OPL HA-3 - File name when error occurs.
Lexer::Reset was accidentally restoring the file name of the root file as it
closed down all the include files after the error is found.
COplModuleLexer::Close(TBool aRestoreName) now takes a flag which
allows Reset to bypass this.
OPL HA-4 - ENDWH at the end of a procedure causing problems.
OPL HA-18 - a%() incorrectly allowed as array for stats functions
OPL HA-20 - FindFile spec (done someytime in teh past)
OPL HA-22 - KillMark etc (ditto)
OPL HA-24 - Greedy class names
HA-350 - Stack size wrong.
HA-425 - Checking array types (see OPL HA-18 above).
SW-60 - Allowing const in APP ENDA (see caveat in database - not yet tested).
6) Added support for explicitly declared external procedures and variables.
DECLARE EXTERNAL
placed in the module, outside the procedure definitons, will cause an error to be raised subsequently\
whenever an external variable (EErrUndefinedVariable) or procedure (EErrUndefinedProcedure) is used
without first being explicitly declared.
Procedures are declared at a module scope and variables within procedure scope, e.g.
DECLARE EXTERNAL
EXTERNAL ext1%:
EXTERNAL ext2%(fred)
PROC myProc%:
EXTERNAL extVar1,extVar2
LOCAL a%
PRINT a%+ext1%+ext2%:(extVar1*extVar2)
ENDP
7) Changed error raised when you try to declar a procedure within an
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?