|  | 
 | ||||
|        | |||||
|  | |||||
| What was fixed | |||||
string sink literal erroneously referred to the production for [void function call], where the
production for [value function call] was meant.
null
character would be truncated, thereby making it inaccessible.
conversion-function from numeric-literal to string.
conversion-function was being silently accepted. A
compile-time warning is now generated where a conversion-function may recurse.
require a record
type was misleading, implying that record types cannot be exported.
constant shelf of
size 0; this is no longer needed.
element names were referred to as GIs in certain error messages.
#current-output at the outermost scope of a string sink function.
this referent could not be used as a string sink in contexts
where this use is unambiguous (e.g., using output as this referent).
-ftrace command-line option was used.
string source to a function accepting an
argument of class read-only would trigger an internal error.
-ftrace option could lead to an internal error in programs
using catch/throw.
string shelf item
appeared in a position where a character class was expected.
referent or file
<filename> appeared in one of the branches of the conditional
operator, which in turn appeared in a string sink context.
open ... as applied to a string sink function predeclared with
elsewhere would cause an internal error.
overriding of a dynamic function for a type that is not visible.
referents, indexed by item number, i.e.,
    output "d" % item of referents[1] || "%n"
catch was being referred to as a function.
new on a switch in an expression context.
translate rules did not flush the content captured by the implicit translate rule early enough. That could cause the content captured by a translate rule to be mixed up with the content preceding the rule.
else clause on a do select-type block
when the head type had already been handled in a case clause. This is contrary to the specification, since the else clause is dead code, and should be removed. An error is now emitted.
append modifier could not be used in conjuction with the new
operator on the left-hand side of the open action.
set.
declare data-letters declaration
referred to it as the (deprecated) letters declaration.
declare name-letters declaration.
shared as name in an interface module would lead to a segmentation fault when the corresponding implementation module was imported.
overloaded function was declared as either value source or value output.
current elements pseudo-shelf is accessed in a context where it is guaranteed to be empty.
 overloaded switch function could not be used in a find rule.
value string source argument to a function taking a read-only string argument would trigger an internal error.
returns in function bodies were not being emitted.
record type that extended another pre-declared record type.
overloaded when it was previously-defined as overloaded would lead to an incorrect error message.
next group is in a find rule did not affect the find-end rules' active group.
null character would be truncated, thereby making it inaccessible.
conversion-function from string source to switch could not be invoked: an error was emitted claiming that a type cycle had been created.
string source cast on #current-input was causing the input to be buffered.  This was both unnecessary and incorrect.
new operator applied to strings and streams would lead to an internal error in the OmniMark compiler.
 doctype is test inside a repeat over loop could lead to a segmentation fault.
value argument as a shelf-class argument (i.e., read-only, modifiable, or write-only) to a
catch would trigger an internal error.
elsewhered, never defined, and called in a using input as qualifier, would lead to an internal error at run-time.
stream test was applied to a value stream argument.
string source modifiers (e.g., binary-mode, buffered, ...) were
not always being propagated to external string source functions.
optional argument could be used in a context where its value was required but unknown, leading to undefined results. This is now a run-time error.
value string sink argument would lead to a segmentation fault in the compiler.
stream indexed numerically to a function as optional string sink argument could corrupt the optionality of other arguments.
elsewhered function definitions, the OmniMark compiler rejected #main-input and #process-input as initialisers on optional string source function arguments, as well as #main-output, #error,
#suppress, and #process-output as initializers on optional string sink function arguments.
#main-output or #process-input is encountered in contexts where it might lead OmniMark to wait indefinitely for input.
#current-input and #current-output are no longer accessible in record type constructors.
dynamic function on an undeclared shelf could lead to an internal error.
string could not be copyed to a shelf of type
stream. This operation is well-defined and should be allowed.
else clause of a do...done block
pointed to an incorrect line number.
-load command-line option now indicates so.
name of on supplied external string sink functions did not always return the correct name.
is thrown did not succeed for exceptions that have been thrown and will be handled by the current catch scope, nor for exceptions thrown by other coroutines.
catch clause, the program could continue running.
insertion-break and replacement-break rules were not properly module-protected. Now they fire in the module where the stream was opened.
external-text-entity rules in one module was turning off default entity resolution in other modules.
repeated (||*) operator on a string longer than 4096 characters.
string source being matched could erroneously fail.
content-start pattern was sometimes erroneously succeeding at a point following an entity.
repeat over #libpath, inside an external-text-entity rule.
stream previously opened as a buffer without referents-allowed
and then reopened with referents-allowed no longer buffers the previous contents of the buffer. This should result in a small performance improvement.
drop or take operator was causing a crash.
reopen with referents-allowed without as clause was failing if the stream did not already have referents allowed.
string sink function passed as a value string sink argument could cause an internal error, or a section of code to be not executed.
output-to a string sink function with an empty body, predeclared with elsewhere, could cause an internal error at run-time.
external string sink function could crash at run time.
value-start pattern didn't match on the beginning of a source created using drop operator.
string source function that was eventually resolved to an external string souce exported from a module was not correctly generated: incorrect data was generated from the call.
null characters were truncated when emitted by assert or not-reached.
translate rule header could cause a segmentation fault.
halt-everything in markup-error rule would cause a segmentation fault at run time.
string source function could raise an internal error.
find-start rule could affect the element rules' active group.
optional argument to an external function was treated as specified.
write-only.
string sink function passed as an argument to an external function did not receive any input until the external function closed it.
value string sink arguments could not be passed a multi-component sink, constructed using operator '&'.
#current-output in an always clause could lead to a segmentation fault if the current output was a coroutine that executed halt.
string source function with another string source function passed as argument was being bypassed when called in the context of a do xml-parse or do sgml-parse.
string source that was consumed as a part of a join could sometimes be scanned again outside of the join.
join of multiple string sources was scanned and then restored to its starting position, the join's components' positions were not restored.
-warning specified, but no total warning count.
#main-input and #process-input string sources to be used together even when there were no input files specified.
log-message could unnecessarily consume large
amounts of memory.
modifiable stream argument have been generalized to take a write-only string argument.
vfs.connect-directory was expecting a "file:" protocol specification. It now works on plain file system paths.
vfs.copy was failing to copy symbolically linked directories on Unix platforms.
vfs.describe did not report proper results for a Unix file when its owner or group identifier did not correspond to a known user or group.
OM_PersistentSource_t::AtEnd () that provides access to the low-level
C API call OMXF_SourceAtEnd ().
string or stream, and of
shelf class (i.e., read-only, write-only, or modifiable).
opaque, and of shelf
class (i.e., read-only, write-only, or modifiable).
external string sink would refer to it as a persistent source, rather than persistent sink.
db.insert, db.update, and db.delete that operate on tables now can handle table and field names with non-alphanumeric characters.
global referents entry in the variable table now appears only if the program uses referents.
cross-translate, could be run but not debugged in Studio for Eclipse.
throw from within a using nested-referents scope would terminate the current debugging session in OmniMark Studio.
-ftrace option was missing from the OmniMark Studio debugger.
#external-text-entity #document rule was not working in the OmniMark Studio debugger.
#external-test-entity rule could terminate the current OmniMark Studio debugging session.
global or constant shelf could stop the Studio debugger.
 invalid-data rule could cause the OmniMark Studio debugger to prematurely quit execution.
-help command-line option text did not specify the arguments for
the -gc-threshold and -gc-increment options.
#appinfo information was accessible from an XML parse
nested in an SGML parse.
#current-output from a function called within a fork
(i.e., the & operator) could go to another stream specified by the
fork.
using output as (and similar constructs) with
multiple destinations could be confused by extra parentheses around
the first stream.
using attribute scope containing "%c" could cause an internal
error in some cases.
string source function used on the right-hand side
of a scanned join operator (i.e., ||) was sometimes discarded.
always clause could stop exception propagation.
submit action in a pattern matching context (e.g., do scan), prefixed by a using output as would lead to an internal error.
submit of a string source derived from the output of a parse could
cause a segmentation fault.
string source as a string sink would lead to an
internal error in certain circumstances.
binary operator could not be overloaded.
difference, format, mask, modulo, shift, and
union could not be stropped (i.e., escaped using the backtick)
process-end rule in an implementation module would cause an
internal error.
document-start, docuement-end,
find-start, or find-end rule is encountered in a module; these rules
cannot be triggered within a module.
is keyed shelf query is applied to
a keyless shelf; this test is invariant and should be removed.
-ftrace command-line option, the compiler could
report that a valid function definition was invalid.
#markup-parser sink from an element rule would
cause an internal error instead of throwing to #program-error.
newline declaration was allowed in a program that contained
modules, if it appeared after the module import(s). This is not
well-defined, and is contrary to the specification. An error message
is now generated.
open or reopen did
not have any effect.
buffer attachment type did not allow modifiers to be specified.
value string sink arguments was not
reported at compile-time, and could lead to a segmentation fault at
run-time.
open-only modifiers,
like text-mode, in other contexts like using output as.
reopen...as  was applied to a stream that cannot be reopened,
an invalid error was reported.
string sink or string source
would lead to an internal error.
new operator appearing where a string sink was expected could
cause a segmentation fault. This is now a compile-time error.
++  operator sometimes did not restore the input consumed.
string sink functions from external filter libraries (e.g.,
omffbase64) would close persistent string sinks (such as #main-output) that were
passed to them.
string sink function passed  as an argument to an
external function would not see the data written into it by the
external function.
#current-output has name caused an internal error instead
of a proper compile-time error.
#current-output as a write-only argument could cause an
internal error instead of a proper compile-time error.
string coercion could cause an internal error in certain contexts.
item of applied to a shelf
indexed by item).
lookahead not not would lead to an internal
error, rather than a syntax error in certain circumstances.
named sub-pattern anywhere but in the header of a
translate rule or in the header of a processing-instruction rule would
lead to an internal error.
return (from an always clause) from a string source or
string sink function caused an error.
catch declaration would lead to an
internal error in a catch clause.
string source
function was lazily consumed.
constant shelves
declared with the same name, but with different types.
global shelf of a record type could be used in its
initializer. This is no longer allowed, since the shelf has not been
created when the initializer runs.
save a constant
specified the wrong type.
using nested-referents
scopes.
catch invocation could be left out. This is
contrary to the specification: the herald is now required.
string sink function in a using shelf item
association would trigger a misleading error message.
value string source
argument appeared in a using shelf item association.
value string sink argument in a
using shelf item association.
save groups was
encountered was incorrect.
string source function to its #current-output and
a string sink function in parallel could cause an internal error.
submit within a using input  scope in a find rule could trigger an
internal error in the compiler.
-f command-line option on Unix did not accept OmniMark project
files (.xop) produced on Windows.
switch cast would cause an internal error.
#current-input is attached test returned a wrong value in some
circumstances.
is specified test on optional arguments to a
function was incorrect under certain circumstances.
string source coroutine was output through an intermediary,
context switches did not occur until the coroutine was finished.
initial clause was specified on an
optional argument of class other than value.
newon a shelf literal heralded by an undeclared type
would trigger an internal error or a segfault in the compiler.
using output as to be applied to the result of
operator new.
catch arguments.
#current-input in
several contexts where #current-input would be unattached at
run-time. This moves an error from run-time to compile-time.
#current-input in a string source function. This error used to be caught at run-time; it is now
caught at compile-time.
sink would cause an internal
error.
export as opaque catch.
capture-environment in the library OMUTIL was not
displaying error messages in failure cases.
string-returning function called from a pattern could consume
#current-input and affect the continued pattern matching. The patterns
are now protected from side-effects on #current-input.
markup-error or sgml-error rule: this
style is deprecated, and its support will be removed in a future
version of OmniMark.
#console is encountered; #console is
deprecated.
drop, matches and take did not try to invoke conversion
functions on their first argument.
item of was applied
to a shelf indexed by item.
any{"%d(i)"}, where i is an integer, was being
rejected.
return action  in a function body.
#current-input from a string sink function
cannot be used as a value string source function argument has been
removed.
streams if one item on the
shelf was unattached.
any* would consume only up to 2 GB of data. This
limitation has been removed.
repeat over loop inside of a catch clause would scramble the
information required to rethrow the exception.
with append modifier had no effect when assigning to a
referent.
modifiable record types would
collide. This restriction has been removed.
is default-entity test caused it to always
evaluate to false.
opaque as
the data type of an argument of a catch or a function. The problem
would not be manifest if a user-defined data type named opaque was
declared. 
switch shelf item using an item indexer was
not being handled properly, which could lead to erroneous behavior at
run-time. 
any* when true. 
find-start rule
for a cross-translate program.
lastmost indexer on a shelf-class function
argument could lead to a segmentation fault in the OmniMark
interpreter. 
% (format) operator was not being handled properly in a pattern
context.
referents shelf now supports the new indexer syntax.
any** were not being evaluated correctly.
->) did not handle user-defined types
properly. 
any** (or any++). 
number of sgml-dtds. 
scan  input #main-input in an XML parse.
-ftrace command-line option has been changed:
instead of writing its output to the #error stream, it is written to
log-message, allowing this feature to be used in server environments
where no-default-iomight be in effect.
throw occurred inside a
repeat over current elements. 
elsewhered) definition, which was satisfied in
the importer. This has been disabled.
repeat over current elements loop to change
the name of the current element obtained via the name of element
expression. 
last content is appearing outside of a parse would cause the
OmniMark run-time to segfault. 
new as the read-only argument to a
function would cause an internal error. 
clear sgml-dtds{""}. 
is specified
applied to a shelf with a key-based indexer. 
name of operator  has been improved.
name of  operator is applied to
a value stream argument has been improved.
remainder source. 
has name test was not being flagged as
used, and therefore a spurious warning was being emitted. 
translate rules were firing within the scope of markup-comment
rules if they wrote to #error.
find any ++ => p lookahead ("Hello, World!" | =|)
record type that the other extended.
dynamic function had to be declared as overloaded as well, if an
overriding was declared in a different module.
referent
"..." to be used wherever a stream shelf reference was required.
#current-input was not inherited from the invoking domain to the
input domain when invoking a markup-parser.
dynamicfunction declaration could cause an
internal error in the OmniMark parser.
new has led to a number of
issues being fixed in its implementation.
down-translate was begun
on a truncated input.
repeat over on an empty constant or global shelf would cause an
internal error.
** pattern operator has been improved.
process local stream s initial { "Hello, World!" with key "Salut, Monde!" } set key of s{"Salut, Monde!"} to "Salut, Monde!"
value was not being handled correctly when used as a
function argument herald.
stream-returning function to a stream shelf has
been optimized.
referents and records would cause a crash at
execution time.
activate or deactivate on an
expression involving cast.
dynamic
function involved the cast operator.
is specified test was not being evaluated correctly in a
well-formed parse.
using a field of a result of a record-returning function has been fixed. 
and, couldn't be exported from modules.
item of a built-in stream shelf like #current-output caused an internal error.
elsewhere function definition.
with append modifier in some situations didn't work properly on buffers.
repeat over action didn't check if the shelf was an unspecified optional function argument. 
copy action didn't check if either of the shelves was an unspecified optional function argument. 
catch and always. 
#current-input appearing after an action containing the drop operator referenced the result of the drop instead of the contextual current input.
#main-input in memory.
new applied to a stream shelf literal would cause an
internal error in the compiler. 
format function using a different signature.
source function call.
repeat over or using of a value string argument, using a shelf reference
alias, was not being handled properly by the OmniMark compiler.
OCI backend
db.discard function on a compiled statement used for a
streaming insert no longer causes a crash
   
ODBC backend
markup-parse is being performed using the omxerces library and XML schema validation is active. 
and has been fixed; these are now handled correctly. 
insertion-break or replacement-break were erroneously being rejected; this has been fixed. 
insertion-break or replacement-break; this has been fixed. 
#current-output following a drop expression on something other than #current-output; this has been corrected. 
#markup-parser, rather than the deprecated #sgml. 
omutil.xmd and omutil.xin calls util.get-millisecond-time and UTIL_GetMilliSecondTimer respectively could fail on Windows with a message "Invalid integer argument". This has been fixed. 
as definition and an elsewhere definition. This has been fixed. 
elsewhere definition for a function without also exporting an as definition for the same function. 
#args, rather than the deprecated #command-line-names. 
elsewhere declaration. 
using prefix. 
repeat for integer foo ... now allows int32 to be used in place of 
integer.
drop used in a global variable  initializer expression no longer 
causes an internal error.
content is declared-empty is only true when an element is
declared empty.
content is empty-tag is only true when an element has an empty
tag. 
TCPConnectionGetOutput and TCPConnectionGetSource now set return values properly when applied to a TCPConnection that is in error or not connected.
tcp-accept-connection in the omtcp library to crash or enter an infinite loop when receiving many requests quickly. 
bcd values. This has been fixed.
describe now works on read-only devices, such as CD-Roms.
make-directory now gives new directories the correct access permissions.
describe now takes Daylight Savings Time into account when reporting file access times.
ldapOpen will now allow port numbers up to 65535.
ldapCreateAttribute, ldapAttributeGetValue, ldapAttributeGetValues and ldapModifyEntry now check the datatype parameter.
MailInBoxGetMessage caused extra null bytes in lines that were longer than 512 characters. 
vfsDescribe no longer fails on Windows when the target is on a read-only filesystem (such as a CD-ROM)
vfsDescribe now properly handles daylight savings time.
vfsMakeDir no longer ignores the user's umask on UNIX, and no longer sets more restrictive permissions than requested.
round has been fixed to use "nearest" instead of "by"
round now handles half-way cases properly (e.g. 3.5 -> 4)
ceil, trunc and floor have been fixed to handle exceptional cases.
NaN is now platform-independent
Desktop Engine and Server Engine on the Windows platforms again correctly handles reading standard input from the command line. This fixes an error introduced in 6.1.3a.
Desktop Engine and Server Engine on the Windows platforms now correctly handle reading from standard input, when running as a CGI under IIS5.
file...is writable test works correctly for non-existant files in a writable directory.
always blocks now execute after uncaught external exceptions.
The following problems have been fixed in version 6.1.2
new my-shelf {"d" % i}or by issuing
set new my-shelf {"d" %i} to "fred"
Studio once again reads large program and data files correctly. A defect introduced in version 6.1 caused Studio to occasionally read large programs and data files incorrectly when they were loaded into edit buffers.
The following problems have been fixed in version 6.1
Problems have been fixed so that OmniMark Studio for Eclipse
For further information, see the OmniMark Studio for Eclipse Windows help file.
The following problems have been fixed in version 6.0.2
integer  and counter are useable interchangeably as casting operators for user-defined conversions function casts.
 using #group will now save the group set for restoration.
 #current-input matches... certain patterns will not cause characters to be consumed from #current-input even when the matches failed. 
The following problems have been fixed in version 6.0.1
The following problems have been fixed in version 6.0. This list includes fixes to problems discovered in public betas of OmniMark 6:
copy-clear produced a run-time error when used on a modifiable shelf function argument.
null pattern modifier did not work correctly with repeat scan.
++ and ** occurrence indicators were causing the ul pattern modifier to extend beyond its proper scope.
using input as was not behaving correctly inside a match body of a do scan #current-input.
1 < "2" < 98) were causing an internal error.
do when with a catch block was erroneously falling through from the catch block to the else clause.
name of #main-output was causing a syntax error.
#external-exception did not result in a throw to #program-error.
ul pattern operator scope was incorrectly extended to the end of the pattern.
word-end was being handled incorrectly.  This was introduced with OmniMark 5.3.
do when <string-expression> matches ...was not supported. This error was introduced with OmniMark 5.3.
The following have been fixed in version 5.3.
catch now works in processing-instruction rules.
Trying to output a catch now triggers an error message, not a segmentation fault.
When using the halt statement, the return value generated by the presence of markup errors was taking precedence over the programmer-defined return value. The halt value now always takes precedence over markup errors. 
The following errors are corrected in OmniMark 5.2:
You can now flush streams in Windows.
Including duplicate entity definitions after multiple doctypes no longer triggers an internal error.
An extra carriage return is no longer emitted to standard out/standard error in Windows.
Throwing from sgml-parse no longer triggers an internal error.
The construct ul (pattern => var)+ no longer triggers an internal error.
#sgml-error-total and #markup-error-total are no longer reset to 0 in document-end rules.
When #current-input is not yet attached, the code output #current-input now gives a run-time error message instead of a segmentation fault.
rethrow #program-error now works.
When no element rule can fire for an element name and no element #implied rule is used, a run-time error message is given instead of a segmentation fault.
Compiling DTDs works properly again.
Attempting the is attached test on a remainder shelf no longer gives an internal error.  
In Linux, OmniMark no longer gives a segmentation fault when it finds a syntax error of the form when parent is (x or ).
Opaque remainder shelves with exactly two items no longer trigger an internal error.
Trying to call an external output function that takes a remainder argument no longer triggers an internal error.
When a stream is reopened with referents-allowed, length of now returns the correct value, not twice the correct value.
Using nested saves no longer triggers an internal error.
A syntax error in a copy action no longer triggers an internal error.
Extra output no longer occurs in an up-translation of xml-parse/sgml-parse.
Dynamically converting from a string to a number now allows a leading "+" in the string.
The pattern ul [char-set] now ignores case.
System identifiers in external entities and doctypes may be the empty string. In previous versions, this triggered an internal error.
OmniMark now gives a run-time error instead of a segmentation fault if the program tries to compile a DTD to a shelf with the key currently in use.
OmniMark no longer gives a segmentation fault when trying to use a nonexistent DTD key.
using group <group-name> and #implied now triggers a compiler error.  This change could break programs that currently work.
An interaction between translate rules, nested parse actions, and entities has been fixed.
File output using the options -log or -alog is now unbuffered.
The following have been fixed in version 5.1.1.
OmniMark 5.1 had an error in the operation of do scan, repeat scan, and submit. When a match statement or a find rule started with value-start and the string matched was greater than 108 characters, the match failed when it shouldn't have.
The following corrections have been made in OmniMark 5.1:
or bar character ("|") in source code.
join or repeated. This might break existing OmniMark 5 programs
that took advantage of this.
submit #main-input from a markup rule no longer allows
unmatched text to be subject to line breaking. This fix can change
the behavior of programs written to take advantage of this
error, which was introduced in the May 1999 release of OmniMark 5.
The following OmniMark errors have been corrected in OmniMark 5:
Using the statement:
Set function-library of external-function asf to ""made any subsequent call to external function asf cause a fatal error, and an operating system call message would be displayed.
The Date and Time library had several problems:
On Digital UNIX (OSF), internal error 14-683 arose because binary conversion was limited to 1 to 4 character strings, even though counters on that platform could be up to 8 bytes long.
When an SGML document was submitted to do sgml-parse and it had a comment in the instance not ended in the document entity, OmniMark reported an internal error.
The code
... do sgml-parse document scan input f() ...first gave the correct error message that the input function wasn't internal, but then hit internal error 87-2265: define external function f () as "f".
A do sgml-parse instance, using a previously saved DTD, could cause an OmniMark internal error if another DTS was encountered within the instance.
As a result of error recovery in a bad mixed content model, customer-supplied documents could cause the SGML parser to go into an infinite loop, emitting record-end characters.
The erroneous pattern
  find ('href="' [^'"']* uc [^'"']* '"') => link
caused an infinite loop, and produced the message "Expecting start of a pattern, but received '^'".
On HttpRequestSend, the response could have a returned status of "200 - OK" even if the connection failed.
Internal error 116-4875 arose when you used put #sgml in an input function, wrote something to #error, and used an sgml-error rule elsewhere.
For code:
output file "dir" || "/" || "Filename"trying to read the file "dir", a directory, triggered an "interpreter read abort".
Jackhammer reported a segmentation fault when trying to handle empty files or data files with a header but no body.
The mail library would hang when reading certain messages from the InMailBox.
When messages were marked for deletion, MailInBoxGetMessage would deny you access to the other, non-marked messages.
When using no-default-io and sgml-error rules, an error reported that #main-output was unavailable.
OCI_odespp incorrectly handles the defsup, mode, and radix arguments.
For opaque arguments (modifiable and read-only), OmniMark didn't detect that you had specified the wrong opaque type.
Opaque expressions could not be parenthesized.
When trying an output-to on a local stream that had more than one item, a segmentation fault resulted when the stream was closed.
When trying to output to a modifiable stream parameter using item number indexing, you still output to the default item.
Improvements needed to pattern-matching performance when patterns started with dynamic strings. For example, the find rule in the following code would incorrectly attempt to match "a":
  global stream s
  
  find "b%g(s)"  ; s is open
    output "B"
  
  process
    submit "abc%n"
External functions didn't process read-only variables when followed by remainder arguments. The read-only shelf appeared, usually incorrectly, to have the same number of arguments as the following remainder shelf.
Entering the command line omnimark -s prog.xom -s prog.xom produced the message: "The instruction at 0x... referenced memory at 0x... The memory could not be written."
When OmniMark couldn't open a file for writing, and quit with an error message, a segmentation fault resulted when it tried to close the unopened file.
The #sgml stream allowed translation and line breaking, but shouldn't.
When sgml-error was false, an internal error was produced in the debugger.
The sgml-in and sgml-out actions were not allowed in functions or inside do sgml-parse blocks.
If a non-text entity reference occurs within a text entity referenced from within RCDATA element content, the SGML parser erroneously reports that an entity referenced prior to the start of the RCDATA element is ended within the element's content.
When a non-SGML character occurred in CDATA element content, and it occurred immediately following a non-stripped record-end character (that is, one not at the start or end of the element), the OmniMark's SGML parser didn't recognize it and reported an "impossible" error. This error, in turn, caused OmniMark itself to terminate abnormally (for example, a segmentation error).
Garbled syntax error messages were generated by code:  
set integer j to item of attributes lastmost
The message was: Syntax Error. Expecting "The keyword 'ATTRIBUTES' cannot be used with the 'LASTMOST' indexer", but received "SET".
Testing to see if file "" existed triggered a non-recoverable error message.
On VAX/VMS, accessing a nonexistent directory caused an access violation.
When compiling with -warnings, a warning appeared that a stream opened only as an external output stream might be used incorrectly, even when it was opened, written to, and closed.
An internal error message was generated when using -warnings and -limit, and the warning level was exceeded in the compiler. The following program triggered the message:
process local integer i local integer j local integer k process output "hello%n"
Command line was:
omnimark -s prog.xom -limit 2 -warning
Generated message was:
omnimark -- OmniMark Warning on line 5 in file tr5447b.xom: A shelf is possibly not being used as intended. The LOCAL integer 'K' is never initialized or used. omnimark -- OmniMark Warning on line 5 in file tr5447b.xom: A shelf is possibly not being used as intended. The LOCAL integer 'J' is never initialized or used. There were 2 warnings detected. Internal Error.
In Windows NT, specifying -library followed by a non-conforming library file on the OmniMark 4.0 command line caused a memory fault.
On Windows 95/98/NT platforms, a memory error occurred when the following command line was issued: omnimark -term.
OmniMark sometimes terminated with a segmentation fault when parsing an XML document with more than one ATTLIST declaration for an element.
The following errors have been corrected in OmniMark CI 4.0.2:
system-call is invoked and the process' "INTR" and "QUIT" signals are currently different, the difference is not restored when the system-call returns.
sgml-error and markup-error rules cannot be used in programs that include a no-default-io declaration.
sgml-error, and there are warnings in the data, the warnings aren't reported (which is correct), but they are still counted towards the specified limit.
attributes lastmost is used, an incorrect error message is reported.
The following errors have been corrected in the OmniMark Kernel:
The following errors have been corrected in OmniMark CI 4.0.1:
do when f1 () f2 () and false, constant string values at the end of tests, such as do when f1 () and "a" = "b", and tests that contain only constants along with constant string values, such as do when i != 3 and "a" = "b" produce internal errors.
sgml-out <dynamic string value> causes a memory leak.
set new statement, as in set new s to s || ".txt".
sgml-error rule in a program in which no-default-io has been declared, when that sgml-error rule fires, the program will terminate immediately.
The following list of OmniMark errors found in V3R1a have been fixed in 4.0:
Memory Leaks
If an external function signals an exception in nested do sgml-parse's, memory is leaked.
Programs that contained both sgml-error rules and explicit references to the #sgml stream leak memory when the sgml-error rules are executed.
Writing single values larger than 8 Kb to the #sgml stream leaked memory.
Parsing documents that have a document element that has a CDATA attribute leaked memory.
Programs that write to the #sgml stream from an sgml-error rule leaked memory.
Programs that accessed data attributes leaked memory.
do sgml-parse
Specifying an unknown element in a do sgml-parse instance with document-element unknown-element caused OmniMark to crash.
In process programs, the state of the #sgml stream is attached after a non-nested do sgml-parse action was executed. It should be unattached.
Accessing the dtds shelf with a nonexistent key in a do sgml-parse instance with dtds key "unknown-key" causes OmniMark to crash.
The SGML stream isn't being flushed for find rules that contain embedded conditions such as find "&" (when number of current elements > 0). This means that the test can potentially fail when it should have succeeded.
Functions
The following code, which accesses an optional, unspecified function argument, does not report an access error in the second action:
output x when x is specified output x
Passing a constant as a read-only function parameter causes OmniMark to crash.
Function argument heralds sharing the same prefix are not being properly distinguished. Consider this definition:
  define function foo sk1 read-only switch n1 optional
                       sk   value integer n2 optional
                       as
           ...
Now calling the function so:
foo sk 1The herald "sk" is mistaken for the herald "sk1".
Executing the submit action in a function invoked by an sgml-error rule causes an internal error.
The method OMXF_GetBinaryOrderingValue now returns the correct binary ordering.
Programs that try to match patterns of size > 2k when using external source functions fail.
Using the copy action to copy to a modifiable shelf argument corrupts the shelf.
The following code, where "arg" is an optional function argument, causes an internal error. In V3R0 the internal error is 86-440 and in V3R1a it is 86-335:
  output sample when sample is specified
  do when sample is specified
     output sample
  done
The following code, which creates and removes the same keyed item from a shelf with an initial -size of 0, causes OmniMark to crash:
       global stream s var initial-size 0
       process
          new s key "some"
          new s
          remove s
          new s key "some"
Miscellaneous
Copying one stream shelf to another changed the target shelf's name for some error messages.
OmniMark enters an infinite loop while writing to a file when the disk is full.
Assigning to a shelf with a declared size greater than 1 from the command line was not being reported as an error.
Stream items assigned multi-part values via a set action did not have the stream's name attached to the stream item. The internal stream #ANONYMOUS name was instead attached.
The test do when file x is writable applied to a file that does not exist, where the directory it names does exist and is writable, now correctly returns the value true.
The following incorrect code is incorrectly reported:
  process
    set #first to true
The error message now refers to switch #last instead of #first.
The test attributes has key x applied to an element that has no attributes causes OmniMark to crash.
Trying to match entity names with the following pattern when there are only lowercase letters causes OmniMark to report an "insufficient memory error" and then terminate:
translate entity named (lc+ [lc or digit]+=>lower) => ent-name
Empty strings are incorrectly parsed in command-line argument files.
The expression do when file <my-file> matches <string expression> does not work.
An OmniMark program is limited to 8 MB of constant strings.
The rule translate entity valued any+ named any+ is declared to be an error.
Copyright © Stilo International plc, 1988-2010.