86 Commits

Author SHA1 Message Date
davidmc%netscape.com
9c681e5866 set morkStore::mStore_CanAutoAssignAtomIdentity to true in places
where MDB clients can access a store instance, so that this bool
is enabled only at the last possible moment.


git-svn-id: svn://10.0.0.236/trunk@28584 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-21 23:57:03 +00:00
davidmc%netscape.com
384e7119db fix morkAtomSpace::MakeBookAtomCopy() so it will use new boolean
slot on morkStore, mStore_CanAutoAssignAtomIdentity, to decide
whether new atoms with auto assigned identity is allowed.


git-svn-id: svn://10.0.0.236/trunk@28583 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-21 23:56:02 +00:00
davidmc%netscape.com
79c7b85c02 use new default atom space constant; init the new boolean
controlling whether auto assignment of atom IDs is allowed


git-svn-id: svn://10.0.0.236/trunk@28581 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-21 23:54:22 +00:00
davidmc%netscape.com
8eee3764b6 add new constant kValueSpaceScope to replace old ambiguous
ground atom space constant to fix problem with default atom
spacing 'a' being used instead of the 'v' space expected by the
parser (causing more than one atom space to be used ... bad).
Also add a boolean controlling whether auto-assignment of
atom IDs is permitted by atom spaces (so this can be disabled
during parsing, so it can be detected when it's inappropriate).


git-svn-id: svn://10.0.0.236/trunk@28580 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-21 23:53:38 +00:00
davidmc%netscape.com
502113bf3e fix morkEnv::OidAsHex() to print a scope < 0x80 as
a plain text byte instead of ^hex hex when the character
is a name byte


git-svn-id: svn://10.0.0.236/trunk@28578 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-21 23:51:22 +00:00
davidmc%netscape.com
7571020113 change format to v1.4 to account for hex oids for single char
spaces changing from, eg., 1CE:^6D to 1CE:m


git-svn-id: svn://10.0.0.236/trunk@28577 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-21 23:50:03 +00:00
alecf%netscape.com
028e04df26 include NSPR libs from the right directory
git-svn-id: svn://10.0.0.236/trunk@28467 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-21 18:45:41 +00:00
davidmc%netscape.com
78be598983 also permit zero scope to be okay as column scope for value oids
inside metainfo cells.


git-svn-id: svn://10.0.0.236/trunk@28377 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-20 23:52:38 +00:00
davidmc%netscape.com
2ce3c9fab5 also turn on assertions for Mac
git-svn-id: svn://10.0.0.236/trunk@28376 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-20 23:51:57 +00:00
davidmc%netscape.com
bf236be73b append ":c" suffix to table kind hex refs so that column space
is used for the atom instead of the value space.


git-svn-id: svn://10.0.0.236/trunk@28375 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-20 23:51:31 +00:00
davidmc%netscape.com
d2e60ffe1c change Mork file format version number to 1.3 to protect folks
from badly formed files created during last day due to incorrect
table kind hex refs in Mork.


git-svn-id: svn://10.0.0.236/trunk@28374 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-20 23:50:46 +00:00
davidmc%netscape.com
5c99d5d6db replace tabs with (Mork canonical) two spaces
git-svn-id: svn://10.0.0.236/trunk@28333 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-20 22:14:35 +00:00
davidmc%netscape.com
ebeffecaed continue long values using \linebreak notation; this is done
in conjunction with a change to morkParser::ReadValue()
which will correctly interpret this notation.  Note this is
technically a format change in the sense that old versions
of Mork will not read such line continuations correctly; but
the change is forward compatible so folks should not notice.


git-svn-id: svn://10.0.0.236/trunk@28307 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-20 20:33:56 +00:00
davidmc%netscape.com
107c34982d fix morkParser::ReadValue() so that CR or LF following '\'
is consumed as a line continuation, rather than escaping the
byte after '\'; this is now done in conjunction with changing
morkWriter to continue long values with \linebreak.


git-svn-id: svn://10.0.0.236/trunk@28305 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-20 20:31:36 +00:00
davidmc%netscape.com
743f6cb931 several whitespace and content writing changes that do not
change the format; write table kind as hex reference because
this shortens overhead for small thread tables; suppress newline
for table meta row, because this tends to put thread tables on one
line when they have few rows; delay starting dict preceding table
as long as possible, so that no dict appears at all when no new alias
is written, because this also reduces per thread table overhead.


git-svn-id: svn://10.0.0.236/trunk@28294 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-20 19:58:16 +00:00
davidmc%netscape.com
043c5a16f9 increase kMaxIndent to 66 for better formatting;
add boolean to suppress dirty row newline for table's meta row
(because this more often causes a one line thread with few rows)


git-svn-id: svn://10.0.0.236/trunk@28293 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-20 19:55:08 +00:00
davidmc%netscape.com
976fc58c83 rename one accidentally named "Set..." method to "Get...";
fix class to actually work correctly (I think...)


git-svn-id: svn://10.0.0.236/trunk@28138 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:30:51 +00:00
davidmc%netscape.com
de4c63fdcb rename one accidentally named "Set..." method to "Get..."
git-svn-id: svn://10.0.0.236/trunk@28137 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:30:22 +00:00
davidmc%netscape.com
a76fb50c2f rename one accidentally named "Set..." method to "Get...";
implement a lot of methods for the first time


git-svn-id: svn://10.0.0.236/trunk@28136 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:30:10 +00:00
davidmc%netscape.com
7485e2f674 rename one accidentally named "Set..." method to "Get...";
return morkRow from CanUseCellCursor()


git-svn-id: svn://10.0.0.236/trunk@28134 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:29:26 +00:00
davidmc%netscape.com
34af8fd400 clarify and increase number of oid<->pos<-> row table methods
git-svn-id: svn://10.0.0.236/trunk@28133 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:28:03 +00:00
davidmc%netscape.com
6fede59c0e rename accidentally named "Set..." method to "Get...";
clarify and increase number of oid<->pos<-> row table methods


git-svn-id: svn://10.0.0.236/trunk@28132 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:27:02 +00:00
davidmc%netscape.com
c2c810a130 increase kMaxIndent to 64
git-svn-id: svn://10.0.0.236/trunk@28131 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:25:52 +00:00
davidmc%netscape.com
db6add5d02 subtle white space changes without changing format
git-svn-id: svn://10.0.0.236/trunk@28130 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:25:23 +00:00
davidmc%netscape.com
3a71b75160 add morkTable::SafeRowAt() so a row can be indexed in a table
with safety check on index within morkArray.


git-svn-id: svn://10.0.0.236/trunk@28129 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:24:50 +00:00
davidmc%netscape.com
26c379c0f9 reorder morkTable member construction to quell Unix warnings;
init mTable_CellUses to zero.


git-svn-id: svn://10.0.0.236/trunk@28128 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:24:06 +00:00
davidmc%netscape.com
7f6cf2a63e reorder morkStore member construction to quell Unix warnings
git-svn-id: svn://10.0.0.236/trunk@28127 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:23:27 +00:00
davidmc%netscape.com
86c107f548 reorder morkRowSpace member construction to quell Unix warnings
git-svn-id: svn://10.0.0.236/trunk@28126 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:23:06 +00:00
davidmc%netscape.com
84b82d9ef1 add NilRowObjectError();
git-svn-id: svn://10.0.0.236/trunk@28123 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:22:28 +00:00
davidmc%netscape.com
551d340dcd morkRow::CellAt(): check for negative mork_pos index
morkRow::Set(): call morkAtom::AddCellUse() in both if branches


git-svn-id: svn://10.0.0.236/trunk@28122 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:21:46 +00:00
davidmc%netscape.com
7b339c9d3a add checks for negative mork_pos values during qualification of
valid indexes into a morkArray.  Also cast integer types to
quell some compiler warnings about signed/unsigned.


git-svn-id: svn://10.0.0.236/trunk@28121 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:19:50 +00:00
davidmc%netscape.com
28409f45ad make morkPortTableCursor actually work
git-svn-id: svn://10.0.0.236/trunk@28120 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:18:34 +00:00
davidmc%netscape.com
3de881b44c fix morkParser::ReadValue() so it will notice '$' when reading values,
and unescape bytes written in hex earlier by morkWriter.


git-svn-id: svn://10.0.0.236/trunk@28118 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:17:10 +00:00
davidmc%netscape.com
8de8212446 reorder morkFactory member construction to quell Unix warnings
git-svn-id: svn://10.0.0.236/trunk@28115 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:16:03 +00:00
davidmc%netscape.com
de0e432e9f add morkEnv::HexToByte()
git-svn-id: svn://10.0.0.236/trunk@28114 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:15:35 +00:00
davidmc%netscape.com
4e13238634 add morkEnv::HexToByte();
git-svn-id: svn://10.0.0.236/trunk@28113 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:15:11 +00:00
davidmc%netscape.com
a6ad4135a3 type of morkCh_Type[] changed to mork_flags array
git-svn-id: svn://10.0.0.236/trunk@28112 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:14:44 +00:00
davidmc%netscape.com
ef788c49e4 change type of char pred array to mork_flag, so that callers
can pull and cache a byte of predicate bits, permitting many
predicates to be examined in a register value without any
implied memory access to slow a CPU in tight loops.


git-svn-id: svn://10.0.0.236/trunk@28110 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:14:04 +00:00
davidmc%netscape.com
d598b309e4 reorder morkCell member construction to quell Unix warmings.
git-svn-id: svn://10.0.0.236/trunk@28109 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:12:14 +00:00
davidmc%netscape.com
1314cf0467 add new mork_u1 typedefs mork_ch and mork_flags, so that
char predicates in morkCh.h can distinguish between methods
that operate on characters themselves, or else upon a cached
flag value pulled from a char predicate flag map.


git-svn-id: svn://10.0.0.236/trunk@28108 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:11:35 +00:00
bienvenu%netscape.com
fcd9d51d55 more work on threading, fix mork warnings, problem deleting out of date summary files
git-svn-id: svn://10.0.0.236/trunk@26346 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-05 22:50:45 +00:00
bienvenu%netscape.com
599db9b1e1 start implementing port table cursor
git-svn-id: svn://10.0.0.236/trunk@26214 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-04 17:38:39 +00:00
ducarroz%netscape.com
698cf056af Part of Messenger Mac landing
git-svn-id: svn://10.0.0.236/trunk@25975 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-02 01:00:37 +00:00
bienvenu%netscape.com
d303469c0d couple bug fixes, fix memory leaks, table scope
git-svn-id: svn://10.0.0.236/trunk@25675 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-31 05:21:49 +00:00
bienvenu%netscape.com
7483e9e6e6 latest mork drop, fix ref counting bug, add meta table info
git-svn-id: svn://10.0.0.236/trunk@25595 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-30 05:43:09 +00:00
ducarroz%netscape.com
3133b2c2de First Checked In.
git-svn-id: svn://10.0.0.236/trunk@25004 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-24 21:49:55 +00:00
bienvenu%netscape.com
fd4b3bf859 make close mdb object close the object as well as the handle
git-svn-id: svn://10.0.0.236/trunk@24917 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-23 23:33:53 +00:00
bienvenu%netscape.com
0ae407f269 get mork parsing working so we can read existing databases
git-svn-id: svn://10.0.0.236/trunk@24906 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-23 23:01:37 +00:00
bienvenu%netscape.com
5519876793 initial entry into cvs
git-svn-id: svn://10.0.0.236/trunk@24655 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-22 05:11:27 +00:00
alecf%netscape.com
95d8f4b065 add NSPR-based string manipulation and add to link line
git-svn-id: svn://10.0.0.236/trunk@24549 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-20 02:13:44 +00:00