Compare commits

..

2040 Commits

Author SHA1 Message Date
mcmullen%netscape.com
2f5a1bb974 Resolve an ambiguity.
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21795 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-24 21:58:24 +00:00
mcmullen%netscape.com
ba6697abea Added nsIFileStream.h
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21555 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-23 02:51:31 +00:00
dougt%netscape.com
83e45c0c06 Minor fix.
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21551 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-23 02:40:05 +00:00
mcmullen%netscape.com
082eb36f10 Resolve an ambiguity.
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21547 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-23 02:34:25 +00:00
dougt%netscape.com
c9419449af Minor fixes.
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21546 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-23 02:34:08 +00:00
mcmullen%netscape.com
53d1512433 added nsIFileStream.cpp
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21545 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-23 02:31:48 +00:00
mcmullen%netscape.com
9a8b653ca2 COMify the file stream classes. This is pretty much a rewrite of the file streams.
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21509 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-23 00:46:54 +00:00
dougt%netscape.com
aebd76033c Fixed typo in #ifdef
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21484 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-22 19:27:48 +00:00
mcmullen%netscape.com
5dd8dddb46 Change += because SetLeafName has changed its meaning.
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21480 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-22 19:07:55 +00:00
mcmullen%netscape.com
2b96a39294 Added i.Exists() because bool doesn't compile on Unix.
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21473 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-22 18:57:15 +00:00
dougt%netscape.com
718707ba40 Fixes to unix copy/move/execute testcases
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21448 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-22 01:33:25 +00:00
dougt%netscape.com
10eeba9d76 Bug Fixes.
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21447 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-22 01:31:57 +00:00
mcmullen%netscape.com
91646707bf Since nsFileSpec no longer always resolves aliases, resolve them on open.
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21421 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-21 01:03:35 +00:00
mcmullen%netscape.com
5d54af72be Don't call resolved alias. Allow a file spec to be the spec of an alias.
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21420 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-21 01:02:47 +00:00
mcmullen%netscape.com
2a09be3c39 Unix and windows: directories etc were returning an empty string for the leaf name (because the path ended with the separator). Fixed Get/SetLeafName for this case.
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21419 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-21 01:02:16 +00:00
mcmullen%netscape.com
b77bb8b8c5 Fix unix. Also un-inline a function (to support use of errors in other files)
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21415 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-20 23:40:17 +00:00
mcmullen%netscape.com
946bd4bc0f First Checked In.
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21387 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-20 03:07:31 +00:00
mcmullen%netscape.com
6e77208d7a Removed bool and explicit for Unix compilers
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21328 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-19 20:10:50 +00:00
mcmullen%netscape.com
b5fe3e7a13 Unified all the error handling. Implemented Error() and mError on all platforms. Added an error macro to use the range now reserved for us in nsError.h.
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21182 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-18 20:27:46 +00:00
mcmullen%netscape.com
ec80e4e760 Added a constant for the maximum persistent data size, and thus made two different constants consistent.
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21162 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-18 18:37:41 +00:00
dougt%netscape.com
74774c47f2 Treaks to get persistance working on windows.
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21157 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-18 17:56:15 +00:00
mcmullen%netscape.com
5c1cada60f PersistentFileDescriptor implemented.
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21119 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-18 04:26:23 +00:00
dougt%netscape.com
91f491620b Tweaks to get unix building.
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21091 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-18 02:17:46 +00:00
dougt%netscape.com
9037f57592 Changes bool to PRBool.
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21088 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-18 01:54:29 +00:00
mcmullen%netscape.com
e778f7b001 This time, go in on the BRANCH, I say!
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21074 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-18 00:51:32 +00:00
mcmullen%netscape.com
3afb4537a8 Updated to match the header changes I've been making. Also, added the declaration of the persistent filespec class.
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21064 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-18 00:35:41 +00:00
dougt%netscape.com
4fdcc84d5c Changed an 8-bit "Bullet" char to an *.
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21045 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 23:31:53 +00:00
dougt%netscape.com
bde4db995d added Copy(), Move(), Rename(), Execute(), to the nsNativeFileSpec.
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21044 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 23:28:38 +00:00
dougt%netscape.com
278fb56b72 Added Copy(), Move(), Rename(), and Execute() to the nsNativeFileSpec.
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@21042 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 23:26:38 +00:00
(no author)
4bafe0bf37 This commit was manufactured by cvs2svn to create branch 'BASE_17_FEB_99'.
git-svn-id: svn://10.0.0.236/branches/BASE_17_FEB_99@20989 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 18:20:28 +00:00
warren%netscape.com
84d3803b00 Added missing definition of nsFilePath::nsFilePath(const nsFilePath&)
git-svn-id: svn://10.0.0.236/trunk@20988 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 18:20:27 +00:00
kipp%netscape.com
12b2eb58ee Renamed calls to FE_SetTimeout to IL_SetTimeout to avoid dll linkage problem on unix
git-svn-id: svn://10.0.0.236/trunk@20987 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 18:14:58 +00:00
rods%netscape.com
f72ebb9ef9 Changed some of the sizing because the font is smaller
git-svn-id: svn://10.0.0.236/trunk@20986 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 18:06:19 +00:00
nhotta%netscape.com
8d4d0a279d nsILocale integration.
git-svn-id: svn://10.0.0.236/trunk@20985 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 18:00:29 +00:00
slamm%netscape.com
d3179f005f Add clean targets. Add windows equivalent targets.
git-svn-id: svn://10.0.0.236/trunk@20984 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 17:59:06 +00:00
nhotta%netscape.com
a807dd4853 Changed MIME encoder from csid base to charset name base.
git-svn-id: svn://10.0.0.236/trunk@20983 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 17:47:25 +00:00
briano%netscape.com
909eb56d25 Automated update
git-svn-id: svn://10.0.0.236/trunk@20982 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 17:45:38 +00:00
slamm%netscape.com
fbf1d1ac0a overhaul. Quit if conflicts during checkout. Make default target pull and build. Set up dependencies rules for configure. Get ready for menu config.
git-svn-id: svn://10.0.0.236/trunk@20981 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 17:36:29 +00:00
coop%netscape.com
6b258d8513 NOT YET PART OF SEAMONKEY:
* replaces reference to unistd.h by stdlib.h


git-svn-id: svn://10.0.0.236/trunk@20980 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 17:36:01 +00:00
slamm%netscape.com
0b3a71de02 Add option for -MMD dependencies.
git-svn-id: svn://10.0.0.236/trunk@20979 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 17:33:07 +00:00
troy%netscape.com
0698a49751 Changes for having OBJECT element render its contents if the OBJECT can't
be rendered


git-svn-id: svn://10.0.0.236/trunk@20978 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 17:02:27 +00:00
troy%netscape.com
ab4336334a Fix for bug #2899
git-svn-id: svn://10.0.0.236/trunk@20977 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 17:01:39 +00:00
rods%netscape.com
d9e8c7f71f Reduced the font size of the buttons
git-svn-id: svn://10.0.0.236/trunk@20976 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 16:55:23 +00:00
rods%netscape.com
fe6e22933b Fixed the termination of the app when a window closes
git-svn-id: svn://10.0.0.236/trunk@20975 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 16:49:43 +00:00
rods%netscape.com
1dbd117587 Added separators
git-svn-id: svn://10.0.0.236/trunk@20974 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 16:49:14 +00:00
rods%netscape.com
1566696e47 Added an ifdef to get exit working because the Register and unregister isn't working right
git-svn-id: svn://10.0.0.236/trunk@20973 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 16:18:17 +00:00
rods%netscape.com
8cae2f7eee Added extra experimental menu and items and added in an extra toolbar
git-svn-id: svn://10.0.0.236/trunk@20972 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 16:17:17 +00:00
rods%netscape.com
6fbb1d5d39 Made AppCoreManager a a Gecko service
git-svn-id: svn://10.0.0.236/trunk@20971 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 16:16:35 +00:00
rods%netscape.com
5db991bd3b Added some experienmental methods BrowserAppCore
for example: newWindow, exit, close, printPreview


git-svn-id: svn://10.0.0.236/trunk@20970 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 16:15:06 +00:00
rods%netscape.com
10e3849823 AppCores are now mantained in a nsVoidArray
git-svn-id: svn://10.0.0.236/trunk@20969 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 16:14:15 +00:00
terry%netscape.com
3cc8cf1a19 Put in better description for Embedding APIs.
git-svn-id: svn://10.0.0.236/trunk@20968 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 16:14:14 +00:00
rods%netscape.com
42420a8c97 Added temporary menu hook up as an experiement
git-svn-id: svn://10.0.0.236/trunk@20967 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 16:12:10 +00:00
rods%netscape.com
7fea89585a Added nsIMenuListener as the base class for nsIXULCommand
git-svn-id: svn://10.0.0.236/trunk@20966 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 16:11:13 +00:00
ftang%netscape.com
aad957545c change font preference code so it will pick the font setting for the defalt charset instead of always latin 1. Reviewed by peterl, kipp and troy
git-svn-id: svn://10.0.0.236/trunk@20965 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 15:52:02 +00:00
ftang%netscape.com
496eec0e01 add nsCategoryImp.cpp
git-svn-id: svn://10.0.0.236/trunk@20964 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 15:42:26 +00:00
ftang%netscape.com
ffd89aa4ee add nsCategory.cpp
git-svn-id: svn://10.0.0.236/trunk@20963 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 15:40:10 +00:00
ftang%netscape.com
95373911cb 1. fix the Prefix file problem for Debug target
2. Add nsCategoryImp.cpp


git-svn-id: svn://10.0.0.236/trunk@20962 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 15:37:28 +00:00
ftang%netscape.com
dd2351f9c4 add CID for lwbrk
git-svn-id: svn://10.0.0.236/trunk@20961 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 15:30:26 +00:00
ftang%netscape.com
d2cbcd36da add lwbrk
git-svn-id: svn://10.0.0.236/trunk@20960 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 15:27:16 +00:00
ftang%netscape.com
3f28058dec First Checked In.
git-svn-id: svn://10.0.0.236/trunk@20959 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 15:20:52 +00:00
ftang%netscape.com
54d5f999f2 add test cases 5-6 and reorg it
git-svn-id: svn://10.0.0.236/trunk@20958 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 15:17:08 +00:00
ftang%netscape.com
c503957b8f fix contextual bug
git-svn-id: svn://10.0.0.236/trunk@20957 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 15:16:23 +00:00
ftang%netscape.com
35b9eb376f add toc file
git-svn-id: svn://10.0.0.236/trunk@20956 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 15:15:39 +00:00
ebina%netscape.com
0059de3371 Update the MANIFEST file for the new headers that get exported.
git-svn-id: svn://10.0.0.236/trunk@20955 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 15:03:04 +00:00
ebina%netscape.com
fe935c1b65 added files: mozilla/network/cnvts/magic.cpp, mozilla/network/cnvts/cvplugin.cpp, mozilla/network/cnvts/nsNetConverterStream.cpp
git-svn-id: svn://10.0.0.236/trunk@20954 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 15:01:18 +00:00
ebina%netscape.com
e4d1c56e4a Build the new plugin converter files on linux.
git-svn-id: svn://10.0.0.236/trunk@20953 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 14:57:34 +00:00
briano%netscape.com
ab3f8c8b0e Automated update
git-svn-id: svn://10.0.0.236/trunk@20952 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 14:45:37 +00:00
ramiro%netscape.com
93a4389e73 Add support for insure.
git-svn-id: svn://10.0.0.236/trunk@20951 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 14:37:18 +00:00
rods%netscape.com
f135ae5edf Added methods for adding and removing nsMenuListeners
and


git-svn-id: svn://10.0.0.236/trunk@20950 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 14:34:33 +00:00
rods%netscape.com
89cdbe170a Changed GetItemAt to return a nsISupports instead of a nsIMenuItem, this is
because a menu can hold both other menus and menu items.
Implemented several more of the menu methods and added the listenr methods to the
menu item.


git-svn-id: svn://10.0.0.236/trunk@20949 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 14:31:26 +00:00
rods%netscape.com
d8a48cb718 Added the dispatch to menu listeners
git-svn-id: svn://10.0.0.236/trunk@20948 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 14:30:47 +00:00
rods%netscape.com
c188f38978 Added methods for adding and removing menu listeners
git-svn-id: svn://10.0.0.236/trunk@20947 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 14:29:51 +00:00
rods%netscape.com
55fd386c70 Changed GetItemAt to return a nsISupports instead of a nsIMenuItem, this is
because a menu can hold both other menus and menu items.


git-svn-id: svn://10.0.0.236/trunk@20946 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 14:29:15 +00:00
waterson%netscape.com
b69922c4d5 Added nsIDOMElementObserver interface, implemented OnSetAttribute(). Fixed so that a shared namespace manager is held.
git-svn-id: svn://10.0.0.236/trunk@20945 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 11:57:57 +00:00
waterson%netscape.com
0067870114 Implemented nsIDOMElement::GetAttribute().
git-svn-id: svn://10.0.0.236/trunk@20944 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 11:56:44 +00:00
waterson%netscape.com
bff20acf78 Added nsIDOMElementObserver interface to QI.
git-svn-id: svn://10.0.0.236/trunk@20943 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 11:56:15 +00:00
waterson%netscape.com
769c236738 Landed RDF_19990217_BRANCH. This includes a bunch of changes to get XUL scriptability up and running; also, nsRDFResourceElement and nsRDFGenericElement have been collapsed into a single class, and most of the state has been turned into attributes on the class.
git-svn-id: svn://10.0.0.236/trunk@20942 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 11:09:57 +00:00
jband%netscape.com
23bb05a6af more tests and type conversion fixes
git-svn-id: svn://10.0.0.236/trunk@20923 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 09:24:12 +00:00
grail%cafebabe.org
926e87ac79 DND compatibility issues.
git-svn-id: svn://10.0.0.236/trunk@20922 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 08:42:21 +00:00
waterson%netscape.com
e6531f8683 Modified generated files so that NS_InitFooClass() is accessable outside of JSDOM.DLL. a=vidur%netscape.com.
git-svn-id: svn://10.0.0.236/trunk@20919 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 08:33:27 +00:00
waterson%netscape.com
f8f837b4fc Made NS_InitFooClass() accessable outside of JSDOM.DLL.
git-svn-id: svn://10.0.0.236/trunk@20918 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 08:32:14 +00:00
grail%cafebabe.org
3530ea3ce6 Removed unbuildable targets out until they're ready to be built.
git-svn-id: svn://10.0.0.236/trunk@20917 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 08:29:18 +00:00
mscott%netscape.com
97de3ac691 Move some convience functions into nsNNTPProtocol. LoadUrl now takes a consumer.
git-svn-id: svn://10.0.0.236/trunk@20916 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 08:19:49 +00:00
leaf%mozilla.org
f8b4c0424a oh, yeah, there needs to be an $FE defined somewhere... could be gutted
i'm sure, but i'd like it to just work right now.


git-svn-id: svn://10.0.0.236/trunk@20915 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 08:18:52 +00:00
mscott%netscape.com
08ea3d78f7 LoadUrl now takes a nsISupports which could be the consumer display stream. Externally declared convience functions for building and runnning a news url (which can be used in our messenger demo). Added code to call webshell->LoadUrl after retrieving a news article and writing it to a temp file. This will cause the url to be displayed in the ui.
git-svn-id: svn://10.0.0.236/trunk@20914 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 08:18:07 +00:00
waterson%netscape.com
b2f701699d Create RDF_19990217_BRANCH from RDF_DOM_19990216_BRANCH to pick up nsCOMPtr changes before doing major whackage.
git-svn-id: svn://10.0.0.236/trunk@20911 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 08:17:56 +00:00
mscott%netscape.com
da55d1f653 LoadUrl now takes a nsISupports which could be the consumer display stream. Externally declared convience functions for building and runnning a news url (which can be used in our messenger demo).
git-svn-id: svn://10.0.0.236/trunk@20910 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 08:17:04 +00:00
mscott%netscape.com
cfee4c3f6e Add some debug code to figure out when the messenger dll gets loaded....
git-svn-id: svn://10.0.0.236/trunk@20909 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 08:14:46 +00:00
mscott%netscape.com
8d04b23b39 Fix some syntax problems (missing '/' at end of some statements). Added some dump debug code to figure out if our JS glue code is even getting called (which it isn't right now).
git-svn-id: svn://10.0.0.236/trunk@20908 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 08:13:56 +00:00
mscott%netscape.com
fa9393926d Add code to build and execute a news url....
git-svn-id: svn://10.0.0.236/trunk@20907 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 08:12:44 +00:00
mscott%netscape.com
a0d6ac02f9 NS_InitMsgAppCoreClass now takes a JSObject for the parent...
git-svn-id: svn://10.0.0.236/trunk@20906 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 08:11:54 +00:00
mscott%netscape.com
16a3f6f994 Add JSObject for the parent to the arguments NS_InitMsgAppCore.
git-svn-id: svn://10.0.0.236/trunk@20905 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 08:09:47 +00:00
jband%netscape.com
ce894be40d more tests and fixed to get the tests to run, clean up of iid stuff for compiling on Linux
git-svn-id: svn://10.0.0.236/trunk@20903 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 07:07:39 +00:00
jband%netscape.com
de84b5da7e get this code compiling in win32
git-svn-id: svn://10.0.0.236/trunk@20902 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 07:05:36 +00:00
leaf%mozilla.org
252f7704b1 Adding makefile.win changes for eric bina. we'll try using camelot to add
the mac project file support.


git-svn-id: svn://10.0.0.236/trunk@20901 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 06:55:48 +00:00
grail%cafebabe.org
584afa89a7 Changed getDropTarget() to match with getGrendelDropTarget()
git-svn-id: svn://10.0.0.236/trunk@20900 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 06:19:28 +00:00
danm%netscape.com
9d9fe04c5a fixing compilation problems with new nsCOMPtr. part of the carpool.
git-svn-id: svn://10.0.0.236/trunk@20899 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 06:18:11 +00:00
warren%netscape.com
a9eeb049e5 Added some RDF accessors for messages.
git-svn-id: svn://10.0.0.236/trunk@20898 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 06:15:13 +00:00
alecf%netscape.com
116d8cfc28 ignore generated files
git-svn-id: svn://10.0.0.236/trunk@20897 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 06:01:24 +00:00
alecf%netscape.com
d6179f96c1 add test directories back to build
git-svn-id: svn://10.0.0.236/trunk@20896 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 05:59:14 +00:00
alecf%netscape.com
5249a5dbda fix for egcs 1.0.x multiple inheritance bug
git-svn-id: svn://10.0.0.236/trunk@20895 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 05:59:01 +00:00
alecf%netscape.com
33c9decae9 fix egcs compiler bustage
git-svn-id: svn://10.0.0.236/trunk@20894 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 05:57:50 +00:00
brendan%netscape.com
db787f8261 Second checkpoint.
git-svn-id: svn://10.0.0.236/trunk@20893 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 05:56:30 +00:00
scc%netscape.com
8690ac32e8 changes for nsCOMPtr
git-svn-id: svn://10.0.0.236/trunk@20891 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 05:45:31 +00:00
warren%netscape.com
0d6b96d3aa Added sidebar xul
git-svn-id: svn://10.0.0.236/trunk@20890 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 05:34:15 +00:00
warren%netscape.com
c774475bf5 Scott Putterman's changes to make the folder pane work.
git-svn-id: svn://10.0.0.236/trunk@20889 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 05:32:08 +00:00
scc%netscape.com
66a0ecf87f changes for nsCOMPtr
git-svn-id: svn://10.0.0.236/trunk@20888 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 05:29:19 +00:00
grail%cafebabe.org
1bd2c84e16 Removed TestDataSource2 from the compilation list.
git-svn-id: svn://10.0.0.236/trunk@20887 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 05:27:47 +00:00
grail%cafebabe.org
5c95e6e025 Patches from Edwin to clarify method calls for inner methods.
git-svn-id: svn://10.0.0.236/trunk@20886 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 05:26:17 +00:00
scc%netscape.com
1c36e9851a added methods of |nsCOMPtr|
git-svn-id: svn://10.0.0.236/trunk@20884 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 05:00:24 +00:00
danm%netscape.com
d4b9511aad changed nsCOMPtr comparison operators to explicitly use get(). part of nsCOMPtr carpool.
git-svn-id: svn://10.0.0.236/trunk@20883 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 04:39:22 +00:00
scc%netscape.com
cc96f52e14 missing '&' found, returned to rightful home
git-svn-id: svn://10.0.0.236/trunk@20862 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 03:12:03 +00:00
mjudge%netscape.com
519bd126c3 fix for nsCOMPtr Carpool change
git-svn-id: svn://10.0.0.236/trunk@20860 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 02:56:26 +00:00
mcafee%netscape.com
368637b894 Adding do_QueryInterface() wrapper for nsCOMPtr carpool
git-svn-id: svn://10.0.0.236/trunk@20858 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 02:31:01 +00:00
mcafee%netscape.com
0c1cb525c7 Adding do_QueryInterface() wrapper for nsCOMPtr carpool
git-svn-id: svn://10.0.0.236/trunk@20857 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 02:23:56 +00:00
danm%netscape.com
1aaae0af52 activate exception handling for tests: TestCOMPtr uses them
git-svn-id: svn://10.0.0.236/trunk@20854 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 02:18:40 +00:00
sfraser%netscape.com
379713ae18 Do the addref in a better way; part of the nsCOMPtr carpool
git-svn-id: svn://10.0.0.236/trunk@20853 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 02:13:54 +00:00
sfraser%netscape.com
5e58b8a2af Part of the great nsCOMPtr carpool. Approved by those in power.
git-svn-id: svn://10.0.0.236/trunk@20852 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 02:08:01 +00:00
mcafee%netscape.com
8e4341cd89 Adding do_QueryInterface() wrapper for nsCOMPtr carpool. r=scc a=sar
git-svn-id: svn://10.0.0.236/trunk@20851 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 02:08:00 +00:00
alecf%netscape.com
9c5cc9a256 move function declaration
git-svn-id: svn://10.0.0.236/trunk@20850 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 02:03:23 +00:00
mjudge%netscape.com
935f3ddcd6 new modifications to nsCOMPtr to explicitly change to QueryInterface
git-svn-id: svn://10.0.0.236/trunk@20849 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 01:59:56 +00:00
mjudge%netscape.com
1f5055f815 checking for nsCOMPtr change
git-svn-id: svn://10.0.0.236/trunk@20848 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 01:59:01 +00:00
scc%netscape.com
4e937fc0aa updated to new interface for nsCOMPtr
git-svn-id: svn://10.0.0.236/trunk@20847 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 01:58:25 +00:00
scc%netscape.com
4f503f2e63 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@20846 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 01:57:07 +00:00
alecf%netscape.com
8162b7aeb8 add InitMsgAppCoreclass to exported header
git-svn-id: svn://10.0.0.236/trunk@20845 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 01:56:45 +00:00
mcafee%netscape.com
4cc240caf4 Adding nsCOMPtr.cpp for nsCOMPtr carpool
git-svn-id: svn://10.0.0.236/trunk@20844 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 01:55:00 +00:00
ebina%netscape.com
bb4a16eaef Use PR_TRUE and PR_FALSE instead of True and False.
git-svn-id: svn://10.0.0.236/trunk@20841 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 01:27:10 +00:00
kmcclusk%netscape.com
b932514d5e added #ifdef XP_PC in nsSelectControlFrame::GetProperty to fix MAC crash
on www.city.net


git-svn-id: svn://10.0.0.236/trunk@20840 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 01:24:16 +00:00
brendan%netscape.com
166c8a5abe Checkpoint xpidl -m stub work.
git-svn-id: svn://10.0.0.236/trunk@20839 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 01:17:52 +00:00
bienvenu%netscape.com
28d559cdf5 call base class line handler to get parsing to work
git-svn-id: svn://10.0.0.236/trunk@20838 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 00:36:07 +00:00
bienvenu%netscape.com
6035d614ae fix memory crunch freeing memory I don't own
git-svn-id: svn://10.0.0.236/trunk@20837 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 00:35:25 +00:00
briano%netscape.com
5c7f970359 Fixed Kipp's hack to allow CPP_PROG_LINK to be overridden when necessary.
git-svn-id: svn://10.0.0.236/trunk@20836 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 00:32:17 +00:00
bienvenu%netscape.com
c77b725d99 get this to compile for debug me
git-svn-id: svn://10.0.0.236/trunk@20834 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 00:10:48 +00:00
bienvenu%netscape.com
12a50ad32b make pop3 protocol use mailbox parse and line buffer
git-svn-id: svn://10.0.0.236/trunk@20833 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 00:09:22 +00:00
alecf%netscape.com
a835c68f8e add commands for loading urls through the MsgAppCore
git-svn-id: svn://10.0.0.236/trunk@20832 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-17 00:09:01 +00:00
alecf%netscape.com
26600ad5c3 Add new OpenURL method and reflect it into JavaScript
git-svn-id: svn://10.0.0.236/trunk@20831 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 23:52:22 +00:00
alecf%netscape.com
ed4bbfbcbe fix for egcs compiler bugs
git-svn-id: svn://10.0.0.236/trunk@20830 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 23:10:46 +00:00
terry%netscape.com
8e221c4fa3 Fixed up NGLayout components (see bug 3139).
git-svn-id: svn://10.0.0.236/trunk@20829 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 23:04:08 +00:00
terry%netscape.com
abfcd4652c Added five new components to Mozilla and to MailNews (see bug 3155).
git-svn-id: svn://10.0.0.236/trunk@20826 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 22:27:30 +00:00
erik%netscape.com
0e5165eb02 temporarily disable the string resource test until the nsIProperties
crash(?) is resolved


git-svn-id: svn://10.0.0.236/trunk@20825 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 22:09:43 +00:00
alecf%netscape.com
d972ef6fb2 export nsMsgLineBuffer.h
git-svn-id: svn://10.0.0.236/trunk@20824 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 20:08:06 +00:00
michaelp%netscape.com
d1f2203c7c added unknown content quality. fixed potential crash because of bug in timer
code. now uses rootscrollable for all scrollable view notifications.


git-svn-id: svn://10.0.0.236/trunk@20823 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 19:57:45 +00:00
waterson%netscape.com
462489fc94 Removed rdfDebug and domDebug from opt build. These were included by mistake.
git-svn-id: svn://10.0.0.236/trunk@20820 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 19:56:18 +00:00
dp%netscape.com
1215f65f26 Fixed dll not being unloaded if registrations filed. Also, returning more appropriate error messages
git-svn-id: svn://10.0.0.236/trunk@20819 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 19:34:10 +00:00
briano%netscape.com
101bac8b27 Automated update
git-svn-id: svn://10.0.0.236/trunk@20818 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 19:31:43 +00:00
waterson%netscape.com
9debf69f1f Landed RDFDOM_19990215_BRANCH. Began implementing DOM-to-RDF functionality.
git-svn-id: svn://10.0.0.236/trunk@20817 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 19:30:04 +00:00
slamm%netscape.com
0fc815c181 Move makefile list into allmakefiles.sh
git-svn-id: svn://10.0.0.236/trunk@20816 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 19:29:21 +00:00
slamm%netscape.com
99198fec39 add intl/lwbrk directories
git-svn-id: svn://10.0.0.236/trunk@20815 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 19:28:33 +00:00
ftang%netscape.com
29f7619162 fix the export problem
git-svn-id: svn://10.0.0.236/trunk@20814 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 19:24:09 +00:00
briano%netscape.com
5f7c1dc839 Automated update
git-svn-id: svn://10.0.0.236/trunk@20811 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 19:15:38 +00:00
sar%netscape.com
af5c10b815 add allmakefile.sh per a request by slamm. This file complements configure.in --sarah
git-svn-id: svn://10.0.0.236/trunk@20810 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 19:10:31 +00:00
nhotta%netscape.com
5d29924ceb Bug fix, changed NSILOCALE_TIME to NSILOCALE_COLLATE.
git-svn-id: svn://10.0.0.236/trunk@20809 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 19:09:15 +00:00
rods%netscape.com
5b0507d693 Changed the registered name AppCoresManager to XPAppCoresManager
git-svn-id: svn://10.0.0.236/trunk@20808 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 19:08:56 +00:00
nhotta%netscape.com
ba9f84445b nsILocale integration.
git-svn-id: svn://10.0.0.236/trunk@20807 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 19:05:10 +00:00
ftang%netscape.com
f6dd72944f add intl/lwbrk directories
git-svn-id: svn://10.0.0.236/trunk@20806 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 19:04:05 +00:00
ftang%netscape.com
0ea1b31dd3 add UNIX build
git-svn-id: svn://10.0.0.236/trunk@20805 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 19:02:26 +00:00
ftang%netscape.com
ad361b0034 add UNIX makefile
git-svn-id: svn://10.0.0.236/trunk@20804 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 19:01:40 +00:00
kmcclusk%netscape.com
6782e965de Added code to get the selected item from the content model during Paint.
Factored code to paint option elements. Listboxes, single+multiselect and
combo boxes now print their state correctly.


git-svn-id: svn://10.0.0.236/trunk@20803 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 18:57:44 +00:00
guha%netscape.com
97d456b38c Some opendir related fixes
git-svn-id: svn://10.0.0.236/trunk@20802 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 18:54:18 +00:00
coop%netscape.com
2e906139b0 NOT YET PART OF SEAMONKEY:
* eliminated compiler warnings on Linux
* added extra error checking for file manipulation in SimpleTypeLib and xpt_dump
* removed erroneous comment from xpt_struct.h


git-svn-id: svn://10.0.0.236/trunk@20801 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 18:41:30 +00:00
nhotta%netscape.com
80dfbdbaea Added charset conversion wrappers.
git-svn-id: svn://10.0.0.236/trunk@20800 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 18:40:08 +00:00
nhotta%netscape.com
00b6cd61a9 Initial check in.
git-svn-id: svn://10.0.0.236/trunk@20799 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 18:37:10 +00:00
ftang%netscape.com
ee4593df3e change the test code to use service manager
git-svn-id: svn://10.0.0.236/trunk@20798 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 18:37:01 +00:00
ftang%netscape.com
2b67a2ec3f add comment, remove InitUnicodeDecoder method
git-svn-id: svn://10.0.0.236/trunk@20797 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 18:32:02 +00:00
briano%netscape.com
e63ce482f2 Automated update
git-svn-id: svn://10.0.0.236/trunk@20796 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 18:31:20 +00:00
slamm%netscape.com
f59cd2ba61 Move defines from Makefile control to autoconf control.
git-svn-id: svn://10.0.0.236/trunk@20795 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 18:29:55 +00:00
slamm%netscape.com
ab37511cae Separate the list of makefiles into a new file.
git-svn-id: svn://10.0.0.236/trunk@20794 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 18:29:51 +00:00
slamm%netscape.com
f1039dd4e2 Move defines from CFLAGS to DEFINES.
git-svn-id: svn://10.0.0.236/trunk@20793 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 18:29:47 +00:00
ftang%netscape.com
719c61207f first check in
git-svn-id: svn://10.0.0.236/trunk@20792 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 18:13:35 +00:00
alecf%netscape.com
fe0412f001 remove pop3/mailbox tests from unix build until unix makefiles are written
git-svn-id: svn://10.0.0.236/trunk@20791 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 18:12:52 +00:00
ftang%netscape.com
2d74859e05 check in new changes
git-svn-id: svn://10.0.0.236/trunk@20790 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 18:11:14 +00:00
briano%netscape.com
b1121113f1 Automated update
git-svn-id: svn://10.0.0.236/trunk@20789 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 18:00:39 +00:00
alecf%netscape.com
ee9600b772 BSD/OS 4.0 patch, thanks to bert_triehuis@nl.compuware.com
git-svn-id: svn://10.0.0.236/trunk@20788 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 17:46:33 +00:00
terry%netscape.com
60d84be151 Add info about MysqlPerl stuff.
git-svn-id: svn://10.0.0.236/trunk@20787 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 17:41:42 +00:00
pinkerton%netscape.com
732551a79a no longer exports nsIToolbarItem because this interface is obsolete.
git-svn-id: svn://10.0.0.236/trunk@20786 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 17:37:40 +00:00
pinkerton%netscape.com
243fa7c315 No longer exports nsIToolbarItem because this interface is obsolete.
git-svn-id: svn://10.0.0.236/trunk@20785 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 17:37:00 +00:00
pinkerton%netscape.com
4374557e9f no longer implements nsIToolbarItem because this interface is obsolete.
git-svn-id: svn://10.0.0.236/trunk@20784 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 17:35:53 +00:00
pinkerton%netscape.com
8ef0996ea9 remove nsJSAppCores and add nsJSAppCoresManager.
git-svn-id: svn://10.0.0.236/trunk@20783 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 16:48:30 +00:00
rods%netscape.com
5eed8ff9e0 Rename AppCores.idl to AppCoresManager.idl
and renamed all the CIDs to uppercase


git-svn-id: svn://10.0.0.236/trunk@20782 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 16:46:19 +00:00
jfrancis%netscape.com
794f3762f2 new content subtree iterator
git-svn-id: svn://10.0.0.236/trunk@20781 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 15:48:13 +00:00
jfrancis%netscape.com
01d4e109e7 registering content iterators
git-svn-id: svn://10.0.0.236/trunk@20780 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 15:47:54 +00:00
jfrancis%netscape.com
4edfdaf9b5 replaced IsNodeInsideRange() with CompareNodeToRange()
git-svn-id: svn://10.0.0.236/trunk@20779 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 15:46:37 +00:00
jfrancis%netscape.com
f17a23ddd9 Replaced IsNodeInsideRange() with CompareNodeToRange() and also removed forward class declarations to make VC5 happy
git-svn-id: svn://10.0.0.236/trunk@20778 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 15:43:28 +00:00
rickg%netscape.com
2e468226f6 fixed bad define
git-svn-id: svn://10.0.0.236/trunk@20777 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 08:14:48 +00:00
rickg%netscape.com
3d297b0ba4 fixed bad define
git-svn-id: svn://10.0.0.236/trunk@20776 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 08:11:21 +00:00
rickg%netscape.com
781f6ccb10 added v-dtor to taghander
git-svn-id: svn://10.0.0.236/trunk@20775 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 08:07:20 +00:00
rickg%netscape.com
d2122ed2b0 fixed backward define
git-svn-id: svn://10.0.0.236/trunk@20774 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 08:04:01 +00:00
hyatt%netscape.com
cf06c5d0e9 Added the sync-up when the broadcast listener first gets added.
git-svn-id: svn://10.0.0.236/trunk@20773 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 07:57:55 +00:00
rickg%netscape.com
d444ccf989 fixed a wad of little bugs and added regression test
git-svn-id: svn://10.0.0.236/trunk@20772 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 07:38:27 +00:00
rickg%netscape.com
334907990d allow plain text file to be handled by HTML document
git-svn-id: svn://10.0.0.236/trunk@20771 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 07:37:53 +00:00
rickg%netscape.com
8cb5d3e503 removed bug from deque, and added replaceChar call to string
git-svn-id: svn://10.0.0.236/trunk@20767 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 06:47:00 +00:00
jband%netscape.com
86dcf85db0 NOT YET PART Of SEAMONKEY - fixes for conversions, added 'load' to test program to breakout js code into its own file, added support for global object being a wrapped native, fixed parent interface support, change makefiles for JS_THREADSAFE, add missing dropProperty support to my Ops, added more tests
git-svn-id: svn://10.0.0.236/trunk@20766 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 06:29:29 +00:00
brendan%netscape.com
b03b95e2a4 prep for -m stub; misc code cleanups.
git-svn-id: svn://10.0.0.236/trunk@20765 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 05:10:40 +00:00
troy%netscape.com
e0e1a0be11 Added code to set/get the view manager's root scrollable view
git-svn-id: svn://10.0.0.236/trunk@20764 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 04:41:15 +00:00
troy%netscape.com
bb010a6114 Minor clean up
git-svn-id: svn://10.0.0.236/trunk@20761 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 04:07:27 +00:00
shaver%netscape.com
7ac3f074af make includes work right; support `-\' as stdin for input file
git-svn-id: svn://10.0.0.236/trunk@20760 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 03:47:24 +00:00
mjudge%netscape.com
549c1927f3 fixing some things for selection to allow keyboard navigation. not hooked up to caret yet. also removed some not used calls in nsFrame for the "old" selection model.
git-svn-id: svn://10.0.0.236/trunk@20759 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 02:42:08 +00:00
rickg%netscape.com
fcae472e5d added mtbf to tools directory
git-svn-id: svn://10.0.0.236/trunk@20758 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 02:41:05 +00:00
michaelp%netscape.com
2c3dc317a4 turned off timers when our damage count goes to zero.
git-svn-id: svn://10.0.0.236/trunk@20757 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 02:25:20 +00:00
mcafee%netscape.com
96d9fe0464 Ignore generated files
git-svn-id: svn://10.0.0.236/trunk@20756 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 01:50:51 +00:00
mcafee%netscape.com
193cea7624 Fixing libreg breakage
git-svn-id: svn://10.0.0.236/trunk@20755 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 01:40:50 +00:00
mcafee%netscape.com
3261298090 More portable makefile, fixing -lreg breakage.
git-svn-id: svn://10.0.0.236/trunk@20754 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 01:35:23 +00:00
nisheeth%netscape.com
865f26a97a Test file for changing attributes on the PRE tag via the DOM.
git-svn-id: svn://10.0.0.236/trunk@20752 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 01:02:21 +00:00
michaelp%netscape.com
1b2aa59d45 added Get/SetScrollableRoot() to nsIViewManager. fixed bug where maximizing
window would cause junk to be shown below/to the right of the real content
if the document was scrolled towards bottom/right. fixed flashing scrollbar
problem. made quality control work again.


git-svn-id: svn://10.0.0.236/trunk@20751 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 00:57:06 +00:00
michaelp%netscape.com
07e545d59e turned on quality control again, but until someone who better understands
thr browser window better has a look at this, it won't work across
frame sets.


git-svn-id: svn://10.0.0.236/trunk@20750 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 00:55:15 +00:00
michaelp%netscape.com
356a0ea5bd all scrollbar recomputation is now the responsibility of the owner of the
scrolled view.


git-svn-id: svn://10.0.0.236/trunk@20749 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 00:53:15 +00:00
michaelp%netscape.com
e6e101dfd1 made nsRenderingContextWin::GetClipRegion() work.
git-svn-id: svn://10.0.0.236/trunk@20748 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 00:50:32 +00:00
nisheeth%netscape.com
3b81ed11ce Test for changing attributes on the DIV, P, and HEADING tags via the DOM.
git-svn-id: svn://10.0.0.236/trunk@20747 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 00:24:29 +00:00
nisheeth%netscape.com
cb1a27b8f7 Test file for changing attributes on the FONT and BASEFONT elements using the
DOM.


git-svn-id: svn://10.0.0.236/trunk@20744 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-15 23:51:32 +00:00
nisheeth%netscape.com
cd8aba491a Added style hints for DOM attribute changes to the FONT and BASEFONT content objects.
git-svn-id: svn://10.0.0.236/trunk@20743 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-15 23:48:09 +00:00
waterson%netscape.com
80bf7397a5 Got rid of #include's, too.
git-svn-id: svn://10.0.0.236/trunk@20733 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-15 19:56:47 +00:00
waterson%netscape.com
6d9e8212a0 Got rid of nsIRDFDocument: we never use it here anyway.
git-svn-id: svn://10.0.0.236/trunk@20732 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-15 19:53:55 +00:00
beard%netscape.com
334061690b Synced with current stream interfaces.
git-svn-id: svn://10.0.0.236/trunk@20731 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-15 18:29:06 +00:00
buster%netscape.com
0bda0d910f minor fixes and lots of comments
git-svn-id: svn://10.0.0.236/trunk@20730 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-15 18:25:30 +00:00
buster%netscape.com
72d2391591 merges text insertions again, based on new aggregate insert txn
git-svn-id: svn://10.0.0.236/trunk@20729 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-15 18:24:58 +00:00
buster%netscape.com
b12b27a6f0 removed unnecessary parent param from DeleteNode
git-svn-id: svn://10.0.0.236/trunk@20728 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-15 18:22:58 +00:00
buster%netscape.com
00c25964ec changed some forward class declarations to #include of the class
declaration.  These classes are used in nsCOMPtr's, and
VC 5.0 needs the full class declaration to compile.


git-svn-id: svn://10.0.0.236/trunk@20727 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-15 16:26:04 +00:00
cyeh%netscape.com
32f9067d0e complete botched file rename attempted by danm.
git-svn-id: svn://10.0.0.236/trunk@20726 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-15 15:31:38 +00:00
danm%netscape.com
b42b001008 renaming. cursed mixed-case filenames.
git-svn-id: svn://10.0.0.236/trunk@20725 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-15 07:15:48 +00:00
nisheeth%netscape.com
e3f2944049 - Changed name of getter function for style hints to GetStyleHintForAttributeChange().
- Plugged in style hint for changes to the <HR NOSHADE> attribute.


git-svn-id: svn://10.0.0.236/trunk@20724 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-15 06:42:44 +00:00
danm%netscape.com
2cf50fdc88 added beginnings of toolkit dialog factory
git-svn-id: svn://10.0.0.236/trunk@20723 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-15 05:38:15 +00:00
danm%netscape.com
19dabdfcc0 matching Troy's recent checkins adding const to some method parameters. Didn't compile for me using VC6 until I made these changes. They seem harmless enough.
git-svn-id: svn://10.0.0.236/trunk@20722 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-15 05:21:53 +00:00
bienvenu%netscape.com
c4a5b54c35 add Reset method for byte array
git-svn-id: svn://10.0.0.236/trunk@20721 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-15 03:08:04 +00:00
bienvenu%netscape.com
f41e196da3 add stubs for mdb
git-svn-id: svn://10.0.0.236/trunk@20720 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-15 03:06:55 +00:00
bienvenu%netscape.com
52be604435 change default mailbox path
git-svn-id: svn://10.0.0.236/trunk@20719 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-15 03:05:20 +00:00
pavlov%pavlov.net
8f032bc5b5 apply patch from Tomi Leppikangas <Tomi.Leppikangas@oulu.fi> to fix
nsTextHelper::SetText()


git-svn-id: svn://10.0.0.236/trunk@20718 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-15 01:54:08 +00:00
nisheeth%netscape.com
8b0af6d00b Test for DOM attribute changes on the HR element.
git-svn-id: svn://10.0.0.236/trunk@20717 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-15 01:50:01 +00:00
bienvenu%netscape.com
1c43108e78 we need rdfbase now
git-svn-id: svn://10.0.0.236/trunk@20716 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 22:34:47 +00:00
bienvenu%netscape.com
b6d1e1997d get rid of duplicate m_mailDB in derived class
git-svn-id: svn://10.0.0.236/trunk@20715 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 22:34:00 +00:00
bienvenu%netscape.com
483f2f6e2e more work to get mailbox parsing working
git-svn-id: svn://10.0.0.236/trunk@20714 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 22:33:19 +00:00
bienvenu%netscape.com
a5f5eca604 hack up to get rid of pure virtual classes and virtual routines so I can link
git-svn-id: svn://10.0.0.236/trunk@20713 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 22:31:28 +00:00
bienvenu%netscape.com
132eb72d57 override IID method
git-svn-id: svn://10.0.0.236/trunk@20712 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 19:45:41 +00:00
bienvenu%netscape.com
cbb92c1430 override IID method
git-svn-id: svn://10.0.0.236/trunk@20711 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 19:31:54 +00:00
bienvenu%netscape.com
246b4ad1aa override IID method
git-svn-id: svn://10.0.0.236/trunk@20710 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 19:16:49 +00:00
troy%netscape.com
f89f085421 Fixed some more memory leaks
git-svn-id: svn://10.0.0.236/trunk@20709 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 18:02:38 +00:00
locka%iol.ie
c0b2628626 Simple plugin test file
git-svn-id: svn://10.0.0.236/trunk@20708 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 13:29:37 +00:00
locka%iol.ie
cce0fb751a Added object implementing IPropertyBag
git-svn-id: svn://10.0.0.236/trunk@20707 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 13:26:57 +00:00
locka%iol.ie
b5bf0ccfd2 Plugin .def file
git-svn-id: svn://10.0.0.236/trunk@20706 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 13:25:52 +00:00
locka%iol.ie
702edc0ecd Added plugin headers
git-svn-id: svn://10.0.0.236/trunk@20705 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 13:24:48 +00:00
locka%iol.ie
e56aadc0cf no message
git-svn-id: svn://10.0.0.236/trunk@20704 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 13:24:11 +00:00
locka%iol.ie
b4e7db6808 Change version info to be plugin compatible
git-svn-id: svn://10.0.0.236/trunk@20703 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 13:24:03 +00:00
locka%iol.ie
5238153785 Renamed MozillaControl as npmozctl
git-svn-id: svn://10.0.0.236/trunk@20702 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 13:23:18 +00:00
locka%iol.ie
a6d1f68128 Moved PropertyList out into its own header
git-svn-id: svn://10.0.0.236/trunk@20701 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 13:22:29 +00:00
locka%iol.ie
5a2c3dcaaa Added conditional plugin compilation support
git-svn-id: svn://10.0.0.236/trunk@20700 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 13:21:44 +00:00
locka%iol.ie
175570e428 Basic impl of a plugin
git-svn-id: svn://10.0.0.236/trunk@20699 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 13:21:05 +00:00
locka%iol.ie
08c4894406 Simple inplace frame object implementation
git-svn-id: svn://10.0.0.236/trunk@20698 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 13:20:35 +00:00
locka%iol.ie
ddbf643c52 Added support for IPersistPropertyBag and other things
git-svn-id: svn://10.0.0.236/trunk@20697 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 13:20:07 +00:00
locka%iol.ie
b8fd7c2564 Added some extra macros
git-svn-id: svn://10.0.0.236/trunk@20696 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 13:19:08 +00:00
locka%iol.ie
74455c95c4 Updated to reflect changes in plugin api
git-svn-id: svn://10.0.0.236/trunk@20695 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 13:18:42 +00:00
jfrancis%netscape.com
0890c9fce8 I wish VC++ would give me a @#$*&^#! break.
git-svn-id: svn://10.0.0.236/trunk@20694 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 12:51:29 +00:00
jfrancis%netscape.com
c461188a76 some (NULL != nsCOMPtr<Foo>'s) snuck thru - VC++ no like. I don't like 'em either.
git-svn-id: svn://10.0.0.236/trunk@20693 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 11:14:55 +00:00
jfrancis%netscape.com
dd3bd0cca0 VC++ not hip to mixing goto's with automatics that have contructor/destructors.
git-svn-id: svn://10.0.0.236/trunk@20692 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 10:18:20 +00:00
jfrancis%netscape.com
665de0a76a ground work for new content subtree iterator
git-svn-id: svn://10.0.0.236/trunk@20691 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 09:15:13 +00:00
jfrancis%netscape.com
209384aa9e nsCOMPtr conversion plus some new utility functions
git-svn-id: svn://10.0.0.236/trunk@20690 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 09:14:50 +00:00
leaf%mozilla.org
c46c9dde47 Adding the badly hacked up, barely working tinderbox scripts.
(build-moz-smoke.pl is ok, build-grendel.pl needs more work)


git-svn-id: svn://10.0.0.236/trunk@20689 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 07:15:44 +00:00
jfrancis%netscape.com
dd054b4642 grabbed an id for nsContentSubtreeIterator_CID
git-svn-id: svn://10.0.0.236/trunk@20688 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 06:47:43 +00:00
troy%netscape.com
4ff873c623 Made some things const
git-svn-id: svn://10.0.0.236/trunk@20687 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 06:38:24 +00:00
troy%netscape.com
fa56f043ef Added const to definition
git-svn-id: svn://10.0.0.236/trunk@20686 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 06:37:24 +00:00
troy%netscape.com
6dd2f2c957 Fixed a bunch of "const" problems
git-svn-id: svn://10.0.0.236/trunk@20685 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 06:35:01 +00:00
troy%netscape.com
4c326c55eb Added cast
git-svn-id: svn://10.0.0.236/trunk@20682 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 06:20:52 +00:00
troy%netscape.com
e648bc58f5 Added a cast
git-svn-id: svn://10.0.0.236/trunk@20681 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 06:13:06 +00:00
troy%netscape.com
36097df1c6 Added some casts to get things to compile
git-svn-id: svn://10.0.0.236/trunk@20680 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 06:12:29 +00:00
troy%netscape.com
4ca2c9fafc Added cast to get it to compile
git-svn-id: svn://10.0.0.236/trunk@20679 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 06:10:51 +00:00
troy%netscape.com
3c90d2a780 Added some "const" to code that was retrieving a pointer to the internal
buffer managed by nsString


git-svn-id: svn://10.0.0.236/trunk@20678 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 05:56:15 +00:00
troy%netscape.com
658dac2de0 Fixed some memory leaks
git-svn-id: svn://10.0.0.236/trunk@20677 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 05:44:39 +00:00
troy%netscape.com
dc4dd5e2b6 Added missing "const" that was allowing internal pointer to Unicode
string tobe returned as a non-const value


git-svn-id: svn://10.0.0.236/trunk@20676 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 05:44:01 +00:00
troy%netscape.com
307ef53826 Fixed some memory leaks
git-svn-id: svn://10.0.0.236/trunk@20675 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 05:34:07 +00:00
troy%netscape.com
1a976b63f6 Added NS_RELEASE of nsIUnicharInputStream interface in Load()
git-svn-id: svn://10.0.0.236/trunk@20674 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 05:20:34 +00:00
troy%netscape.com
9d0d5cb136 Added NS_RELEASE of nsIInputStream interface in nsStringBundle constructor
git-svn-id: svn://10.0.0.236/trunk@20673 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 05:07:13 +00:00
troy%netscape.com
9e2d9f22ba Added a missing NS_RELEASE of a nsIURL interface
git-svn-id: svn://10.0.0.236/trunk@20672 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 04:58:10 +00:00
troy%netscape.com
6d851001ef Fixed InitConstraints() to correctly compute the containing block height
for child elements of a scrolled element


git-svn-id: svn://10.0.0.236/trunk@20671 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 04:43:44 +00:00
beard%netscape.com
c673563872 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@20670 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 04:26:16 +00:00
troy%netscape.com
1450f8838e Added frame-type atoms for area,scroll,viewport,root,page frame classes
git-svn-id: svn://10.0.0.236/trunk@20669 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-14 03:47:33 +00:00
briano%netscape.com
148f96f6da Automated update
git-svn-id: svn://10.0.0.236/trunk@20668 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 21:44:16 +00:00
kipp%netscape.com
597b5f13e7 Avoid using the trapezoid data when we have none (bug #1277)
git-svn-id: svn://10.0.0.236/trunk@20667 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 19:39:31 +00:00
jband%netscape.com
1f399e1730 NOT YET PART OF SEAMONKEY - more conversion stuff implemented
git-svn-id: svn://10.0.0.236/trunk@20666 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 19:28:38 +00:00
kipp%netscape.com
7296f89a76 Be more careful about returning break-before status
git-svn-id: svn://10.0.0.236/trunk@20665 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 19:18:45 +00:00
shaver%netscape.com
b60d07ed69 fix platform detection for Linux/Alpha (Dan Morrill <morrildl@toshiba-179-24.nycap.rr.com>)
git-svn-id: svn://10.0.0.236/trunk@20664 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 18:58:34 +00:00
kipp%netscape.com
777c2af1fe Use correct IID when doing QueryInterface to avoid using incorrect vtable (bug #2782)
git-svn-id: svn://10.0.0.236/trunk@20663 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 17:49:42 +00:00
warren%netscape.com
b39c736097 Converted nsIMsg into nsIMessage, unifying with nsMsgHdr. Removed NS_DEFINE_IID macros. Renamed a few types and enums.
git-svn-id: svn://10.0.0.236/trunk@20662 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 10:39:59 +00:00
mcafee%netscape.com
c981e00884 white space, ignore
git-svn-id: svn://10.0.0.236/trunk@20661 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 08:45:27 +00:00
troy%netscape.com
2aa3cd9ceb Changed frame construction code to set NS_FRAME_REPLACED_ELEMENT but, and
changed the HTML reflow state to read the bit


git-svn-id: svn://10.0.0.236/trunk@20660 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 05:59:19 +00:00
troy%netscape.com
8849170f95 Added NS_FRAME_REPLACED_ELEMENT
git-svn-id: svn://10.0.0.236/trunk@20659 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 05:58:28 +00:00
sfraser%netscape.com
971ead2abc Cause the caret to become visible in the presentation shell when instantiating an editor.
git-svn-id: svn://10.0.0.236/trunk@20658 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 04:48:09 +00:00
sfraser%netscape.com
17e456ea85 Added RefreshMethod, and tweaked code for the UNIX no-blinking case.
git-svn-id: svn://10.0.0.236/trunk@20657 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 04:47:45 +00:00
sfraser%netscape.com
75c235687c Ensure the caret is refreshed after the text frame containing it is redrawn
git-svn-id: svn://10.0.0.236/trunk@20656 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 04:46:47 +00:00
sfraser%netscape.com
1e8e639c11 Add an accessor for the caret, RefreshCaret, and a couple of other private caret methods in nsPresShell.
git-svn-id: svn://10.0.0.236/trunk@20655 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 04:45:44 +00:00
sfraser%netscape.com
d659384669 Remove dependency on nscoord.h; return caret width in pixels, and turn off blinking on UNIX
git-svn-id: svn://10.0.0.236/trunk@20654 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 04:44:23 +00:00
mcmullen%netscape.com
dcacbb662c Init the refcount.
git-svn-id: svn://10.0.0.236/trunk@20653 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 04:01:34 +00:00
mcmullen%netscape.com
f9f7004a97 Added nsIRegistry.h
git-svn-id: svn://10.0.0.236/trunk@20647 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 03:47:00 +00:00
peterl%netscape.com
b61049136e resurecting until UNIX build autogenerate problem is fixed
git-svn-id: svn://10.0.0.236/trunk@20645 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 03:39:50 +00:00
peterl%netscape.com
af486b5054 backed out previous change
git-svn-id: svn://10.0.0.236/trunk@20644 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 03:38:48 +00:00
blizzard%redhat.com
5b32b51a2e Apply patch for crosshairs cursor. Fixes one crash on test9. Patch from Tomi Leppikangas <Tomi.Leppikangas@funet.fi>
git-svn-id: svn://10.0.0.236/trunk@20643 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 03:26:04 +00:00
peterl%netscape.com
6b2453b0c2 ignore autogenerated files
git-svn-id: svn://10.0.0.236/trunk@20642 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 03:22:41 +00:00
peterl%netscape.com
c709649a66 Removed nsHTMLTags.* since it is autogenerated
Changed case of html tag table


git-svn-id: svn://10.0.0.236/trunk@20641 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 03:21:55 +00:00
talisman%anamorphic.com
db13e8ca08 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@20640 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 03:06:22 +00:00
putterman%netscape.com
6727dbd122 Fixes some bugs including one that made folders show up twice.
git-svn-id: svn://10.0.0.236/trunk@20638 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 02:45:22 +00:00
bienvenu%netscape.com
51c321c788 remove stubs, add db lib
git-svn-id: svn://10.0.0.236/trunk@20637 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 01:17:26 +00:00
bienvenu%netscape.com
381f3f2afe add call to tell parser stream to start binding
git-svn-id: svn://10.0.0.236/trunk@20636 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 01:16:15 +00:00
bienvenu%netscape.com
d5b00c7f14 change name of mailbox parser, hook up mail db
git-svn-id: svn://10.0.0.236/trunk@20635 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 01:14:33 +00:00
bienvenu%netscape.com
7f33a240cf add nsParseMailbox
git-svn-id: svn://10.0.0.236/trunk@20634 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 01:13:24 +00:00
bienvenu%netscape.com
5f17b1f282 add set summary valid method and use nsLocalSummaryFileSpec
git-svn-id: svn://10.0.0.236/trunk@20633 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 01:10:26 +00:00
bienvenu%netscape.com
0dd664d933 change name of embedded handler routine
git-svn-id: svn://10.0.0.236/trunk@20632 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 01:09:37 +00:00
mcmullen%netscape.com
222d35ba2a First Checked In.
git-svn-id: svn://10.0.0.236/trunk@20630 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 00:58:54 +00:00
chuang%netscape.com
4deef56157 Change title
git-svn-id: svn://10.0.0.236/trunk@20629 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 00:09:26 +00:00
mcmullen%netscape.com
0b87bbb08b First Checked In.
git-svn-id: svn://10.0.0.236/trunk@20628 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 23:53:07 +00:00
mscott%netscape.com
081ff74fbc Add method for retrieving an nsFilePath for the mailbox.
git-svn-id: svn://10.0.0.236/trunk@20627 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 22:40:47 +00:00
mscott%netscape.com
d5d6d3b84d Add accessor for retrieving an nsFilePath for the mailbox.
git-svn-id: svn://10.0.0.236/trunk@20626 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 22:38:58 +00:00
putterman%netscape.com
21f221f840 Removed typedef of urlstruct. It's already defined in ntypes.h
git-svn-id: svn://10.0.0.236/trunk@20625 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 22:30:11 +00:00
rods%netscape.com
9d11223055 Added fixed poistioning
git-svn-id: svn://10.0.0.236/trunk@20624 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 22:30:00 +00:00
putterman%netscape.com
0bf563a085 Added nsFolderEvent cid. Removed dependency on messenger dll. This dll
already has a factory that creates its own appcore.  Added self-registration.


git-svn-id: svn://10.0.0.236/trunk@20623 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 22:28:26 +00:00
bienvenu%netscape.com
43c6c57418 add export of nsLocalFolderSummarySpec
git-svn-id: svn://10.0.0.236/trunk@20621 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 21:38:36 +00:00
slamm%netscape.com
d6921ac2f2 Really get rid of ignored builds.
git-svn-id: svn://10.0.0.236/trunk@20620 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 21:31:03 +00:00
slamm%netscape.com
1e47576a02 Clean-up presentation. Remove ignored builds for list.
git-svn-id: svn://10.0.0.236/trunk@20619 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 21:29:53 +00:00
briano%netscape.com
268f937a1f Automated update
git-svn-id: svn://10.0.0.236/trunk@20618 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 21:00:37 +00:00
akkana%netscape.com
edb5d64de3 Fixing cata's Linux build bustage
git-svn-id: svn://10.0.0.236/trunk@20617 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 20:45:26 +00:00
terry%netscape.com
4728578919 Updates to NGLayout -- added descriptions, other changes too.
git-svn-id: svn://10.0.0.236/trunk@20616 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 20:20:53 +00:00
kipp%netscape.com
56889e9bc1 Use dont_AddRef on calls that increment the addref
git-svn-id: svn://10.0.0.236/trunk@20615 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 20:13:47 +00:00
cata%netscape.com
64a273f287 ISO2022JP to Unicode converter adedd.
git-svn-id: svn://10.0.0.236/trunk@20614 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 19:50:47 +00:00
cata%netscape.com
a89c076bfc ISO2022JP to Unicode added.
git-svn-id: svn://10.0.0.236/trunk@20613 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 19:46:02 +00:00
ebina%netscape.com
d4d1fa58e8 First round of file additions to support pluggable converters
git-svn-id: svn://10.0.0.236/trunk@20612 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 19:45:25 +00:00
cata%netscape.com
3db467e6f6 Shared converter data moved here.
git-svn-id: svn://10.0.0.236/trunk@20611 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 19:44:33 +00:00
cata%netscape.com
bb2e253937 Shared converter data moved to nsUCVJA2Dll.cpp
git-svn-id: svn://10.0.0.236/trunk@20610 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 19:43:43 +00:00
larryh%netscape.com
f047e295b9 add profiling capability for win32
git-svn-id: svn://10.0.0.236/trunk@20609 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 19:36:35 +00:00
buster%netscape.com
bd7d899204 changed deleteSelection back to not use the range
git-svn-id: svn://10.0.0.236/trunk@20608 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 19:36:18 +00:00
cata%netscape.com
ed1eaba00f Created.
git-svn-id: svn://10.0.0.236/trunk@20607 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 19:35:59 +00:00
larryh%netscape.com
376b050ee9 BugSplat #341273
git-svn-id: svn://10.0.0.236/trunk@20606 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 19:33:54 +00:00
cata%netscape.com
33b9e85352 Small bugfixes, optimizations and docs.
git-svn-id: svn://10.0.0.236/trunk@20605 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 19:27:31 +00:00
cata%netscape.com
eeaa4aa122 More doc added and changed.
git-svn-id: svn://10.0.0.236/trunk@20604 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 19:24:08 +00:00
pierre%netscape.com
c2c82c36e6 Made the ChildWindow destructor virtual
git-svn-id: svn://10.0.0.236/trunk@20602 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 19:15:32 +00:00
pierre%netscape.com
99ffcc7501 Fixed more problems with nsCOMPtrs
git-svn-id: svn://10.0.0.236/trunk@20601 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 19:15:03 +00:00
pierre%netscape.com
ed1a2a6f11 Fixed leak of the BrowserWindow in WebCrawler / Added nsViewerApp::CloseWindow()
git-svn-id: svn://10.0.0.236/trunk@20600 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 19:11:24 +00:00
terry%netscape.com
b99446c33e Give a useful error message if no pages found.
git-svn-id: svn://10.0.0.236/trunk@20599 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 19:08:39 +00:00
terry%netscape.com
9859213e7d Was ignoring "/" -- the main web page!
git-svn-id: svn://10.0.0.236/trunk@20598 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 19:08:06 +00:00
putterman%netscape.com
008255eed9 removing const from functions dealing with Init();
git-svn-id: svn://10.0.0.236/trunk@20597 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 19:03:08 +00:00
putterman%netscape.com
11a0501087 removing const from Init();
git-svn-id: svn://10.0.0.236/trunk@20596 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 19:02:18 +00:00
rods%netscape.com
076ccff595 compare build error fixed
git-svn-id: svn://10.0.0.236/trunk@20595 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:58:39 +00:00
bienvenu%netscape.com
30af4ede8c get rid of use of GetMozillaStatusFlags
git-svn-id: svn://10.0.0.236/trunk@20592 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:56:34 +00:00
wtc%netscape.com
24f5a3d9ca Make sure the redirected standard I/O fd's are blocking so that
libc's stdio.h functions can work.


git-svn-id: svn://10.0.0.236/trunk@20591 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:48:42 +00:00
wtc%netscape.com
8b848ea6ad In the Win32 implementation of PR_CreatePipe, mark the pipe endpoints
as inheritable.  (We probably should create them as non-inheritable.)


git-svn-id: svn://10.0.0.236/trunk@20590 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:47:18 +00:00
wtc%netscape.com
61a13359fc Redid the NT implementation of PR_NewTCPSocketPair so that neither socket
is associated with the I/O completion port.


git-svn-id: svn://10.0.0.236/trunk@20589 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:46:07 +00:00
wtc%netscape.com
b973f5ac69 Noted that the SetHandleInformation function is not implemented on Win95.
git-svn-id: svn://10.0.0.236/trunk@20588 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:43:52 +00:00
wtc%netscape.com
a262748d1c Minor improvements.
git-svn-id: svn://10.0.0.236/trunk@20587 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:41:52 +00:00
wtc%netscape.com
47c513fc7a Completely rewrote the test.
git-svn-id: svn://10.0.0.236/trunk@20586 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:41:36 +00:00
troy%netscape.com
176116b148 Fixed some errors related to switch to using nsCOMPtr
git-svn-id: svn://10.0.0.236/trunk@20585 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:41:26 +00:00
larryh%netscape.com
fe6eb6d858 make reader-writer locks
git-svn-id: svn://10.0.0.236/trunk@20584 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:40:42 +00:00
larryh%netscape.com
e63575051f Set version
git-svn-id: svn://10.0.0.236/trunk@20583 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:39:17 +00:00
kipp%netscape.com
2e10d1c4d8 Eliminate some linux compiler warnings
git-svn-id: svn://10.0.0.236/trunk@20582 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:24:53 +00:00
nhotta%netscape.com
7ce1632cc7 nsILocale integrarion.
git-svn-id: svn://10.0.0.236/trunk@20581 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:24:45 +00:00
nhotta%netscape.com
ea0d14982e nsILocale integration.
git-svn-id: svn://10.0.0.236/trunk@20580 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:23:54 +00:00
troy%netscape.com
1cb01c351a API change for pres shell
git-svn-id: svn://10.0.0.236/trunk@20579 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:22:08 +00:00
kipp%netscape.com
dfeb9b176c Build nsCaret
git-svn-id: svn://10.0.0.236/trunk@20578 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:21:29 +00:00
troy%netscape.com
477db97893 Fixed build bustage
git-svn-id: svn://10.0.0.236/trunk@20577 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:18:34 +00:00
pinkerton%netscape.com
0f0937d520 fixes for changes to nsIPresShell api's
git-svn-id: svn://10.0.0.236/trunk@20576 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:18:01 +00:00
terry%netscape.com
9e0a5b8dda Oops; last change caused all data to be charted as zeros.
git-svn-id: svn://10.0.0.236/trunk@20575 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:15:10 +00:00
troy%netscape.com
04d445235f Fixed some compile errors using nsCOMPtr
git-svn-id: svn://10.0.0.236/trunk@20574 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:15:02 +00:00
terry%netscape.com
a8d532bb79 Remove clutter by stripping years off of labels.
git-svn-id: svn://10.0.0.236/trunk@20573 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:12:18 +00:00
buster%netscape.com
34595f93fb changed DeleteSelection back to using nsIDOMRange directly.
git-svn-id: svn://10.0.0.236/trunk@20572 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:09:38 +00:00
buster%netscape.com
8d6a3ab755 removed renamed modules
git-svn-id: svn://10.0.0.236/trunk@20571 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 17:49:19 +00:00
kipp%netscape.com
9b917419dc COMized nsIPresShell and nsIPresContext
git-svn-id: svn://10.0.0.236/trunk@20570 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 17:45:58 +00:00
dcone%netscape.com
f15564054f First Checked In.
git-svn-id: svn://10.0.0.236/trunk@20569 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 17:39:49 +00:00
dcone%netscape.com
9970519fc4 added a manifest for Layout/html/table
git-svn-id: svn://10.0.0.236/trunk@20568 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 17:36:28 +00:00
troy%netscape.com
432a586840 Factored out the code that checked for anchors within the current document so
that "back" and "forward" used it, too


git-svn-id: svn://10.0.0.236/trunk@20567 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 17:32:17 +00:00
pinkerton%netscape.com
4a976707f8 remove trailing ';' on CID decl because it causes empty declaration warnings.
git-svn-id: svn://10.0.0.236/trunk@20566 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 17:32:01 +00:00
dcone%netscape.com
3d922201ed Renamed editor.cpp to nsEditor.cpp
and added nsTextEditor.cpp


git-svn-id: svn://10.0.0.236/trunk@20565 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 17:29:19 +00:00
terry%netscape.com
c9ddf3d724 Generate simple web page from database.
git-svn-id: svn://10.0.0.236/trunk@20564 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 17:27:15 +00:00
buster%netscape.com
d9511b5a50 using nsRegistry to get an nsITextEditor now.
git-svn-id: svn://10.0.0.236/trunk@20563 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 17:23:14 +00:00
buster%netscape.com
6d04acb923 * the viewer test app now instantiates an nsITextEditor via nsRepository for "Editor mode"
* the TxnMgr is invoked by the editor via nsRepository
* editor.h|cpp have been renamed nsEditor.h|cpp for consistency
* editorInterfaces.h|cpp have been renamed nsEditorEventListeners.c|hpp
* added nsITextEditor.h, nsTextEditor.h|cpp.  The text editor is a placeholder for the rules unique to text
editing.  It invokes the nsIEditor to do core editing operations.
* reworked nsIEditor and related interfaces as per emerging design.
* nsEditor::BeginTransaction and EndTransaction call nsTransactionManager::BeginBatch and EndBatch.


git-svn-id: svn://10.0.0.236/trunk@20562 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 17:18:58 +00:00
larryh%netscape.com
34ccb6c231 add reader-writer locks
git-svn-id: svn://10.0.0.236/trunk@20561 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 17:18:46 +00:00
buster%netscape.com
b00e86e289 splitting core editing from text editing
git-svn-id: svn://10.0.0.236/trunk@20560 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 17:18:04 +00:00
kipp%netscape.com
d7a75e4fba Removed some warnings
git-svn-id: svn://10.0.0.236/trunk@20559 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 17:14:26 +00:00
kipp%netscape.com
c931d836eb Added IID static method
git-svn-id: svn://10.0.0.236/trunk@20558 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 17:13:30 +00:00
kin%netscape.com
307fbf07da Removed all references to ServiceManager, we now rely on nsRepository directly.
git-svn-id: svn://10.0.0.236/trunk@20557 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 16:57:55 +00:00
kin%netscape.com
c2906b67bb Added NSRegisterSelf() and NSUnregisterSelf().
git-svn-id: svn://10.0.0.236/trunk@20556 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 16:56:04 +00:00
dcone%netscape.com
a49bf084ba fixed clipping, added ellipse and arc support
git-svn-id: svn://10.0.0.236/trunk@20555 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 16:12:15 +00:00
rods%netscape.com
55638075e8 Added some debug statment to the JavaScript
git-svn-id: svn://10.0.0.236/trunk@20554 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 15:57:23 +00:00
rods%netscape.com
4a805d6b49 Fixed loading of commands and toolbars now that we don't have nested windows
Removed UpdateButtons method


git-svn-id: svn://10.0.0.236/trunk@20553 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 15:56:54 +00:00
terry%netscape.com
da69d50760 Wasn't clearing out hash table after flushing its contents to the db.
git-svn-id: svn://10.0.0.236/trunk@20552 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 15:02:18 +00:00
terry%netscape.com
8c0b3b8851 Generate web page statistics.
git-svn-id: svn://10.0.0.236/trunk@20551 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 14:45:59 +00:00
pierre%netscape.com
667b1de51f Fixed the window-doesn't-close problem (backed out the nsCOMPtr conversions)
git-svn-id: svn://10.0.0.236/trunk@20550 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 11:47:25 +00:00
jfrancis%netscape.com
6da5abec3e divorce from nsIEnumerator
git-svn-id: svn://10.0.0.236/trunk@20549 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 08:20:40 +00:00
jfrancis%netscape.com
34af7a4608 backing out attempted fix of enumerator interface
git-svn-id: svn://10.0.0.236/trunk@20548 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 08:17:55 +00:00
peterl%netscape.com
9edc411146 fixed atom ref counting bug
git-svn-id: svn://10.0.0.236/trunk@20547 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 08:16:00 +00:00
peterl%netscape.com
e3cecd642e cleanups
git-svn-id: svn://10.0.0.236/trunk@20546 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 08:15:17 +00:00
peterl%netscape.com
30fa15edad xml cleanup
git-svn-id: svn://10.0.0.236/trunk@20545 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 08:13:45 +00:00
jfrancis%netscape.com
3640b78b2d scattered NS_IMETHOD liberally through interface
git-svn-id: svn://10.0.0.236/trunk@20544 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 07:01:06 +00:00
peterl%netscape.com
32d9feec85 fixed moz extension atoms
git-svn-id: svn://10.0.0.236/trunk@20543 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 06:21:34 +00:00
peterl%netscape.com
38427deaa9 changed all html atoms to lower case
git-svn-id: svn://10.0.0.236/trunk@20542 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 06:19:07 +00:00
peterl%netscape.com
32592fa6e1 changed all html tags to lower case
git-svn-id: svn://10.0.0.236/trunk@20541 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 06:17:06 +00:00
jband%netscape.com
7881284620 NOT YET PART Of SEAMONKEY - in the middle of adding support for converting more data types, changes to deal with changes to xpt_struct.h
git-svn-id: svn://10.0.0.236/trunk@20540 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 06:15:06 +00:00
blizzard%redhat.com
f8c7ce833e make resizing go.
git-svn-id: svn://10.0.0.236/trunk@20539 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 06:07:24 +00:00
jfrancis%netscape.com
501710cba1 adding nsIContentIterator.h
git-svn-id: svn://10.0.0.236/trunk@20538 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 06:00:06 +00:00
pierre%netscape.com
0cc94dceb2 GetHints() returns NS_RENDERING_HINT_FAST_8BIT_TEXT
git-svn-id: svn://10.0.0.236/trunk@20537 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 05:56:56 +00:00
briano%netscape.com
3e6fcb9dca Automated update
git-svn-id: svn://10.0.0.236/trunk@20534 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 05:45:37 +00:00
jfrancis%netscape.com
c1996b47bc File Removed.
git-svn-id: svn://10.0.0.236/trunk@20533 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 05:43:51 +00:00
troy%netscape.com
ec6abf170e Changed LoadURL() to look at the destination anchor and see if it's an element
within the current document. If so, it calls the pres shell's GoToAnchor()
function


git-svn-id: svn://10.0.0.236/trunk@20532 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 05:43:46 +00:00
troy%netscape.com
946499d8d7 Added GoToAnchor()
git-svn-id: svn://10.0.0.236/trunk@20531 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 05:39:33 +00:00
mscott%netscape.com
176b389e10 Build the tests directory...
git-svn-id: svn://10.0.0.236/trunk@20530 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 05:34:29 +00:00
mscott%netscape.com
1c7064c0af Add mailnews\local\tests\mailbox to list of mailnews directories to build makefiles for...
git-svn-id: svn://10.0.0.236/trunk@20529 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 05:32:17 +00:00
grail%cafebabe.org
061b634e4a Corrected access modifier.
git-svn-id: svn://10.0.0.236/trunk@20528 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 05:29:42 +00:00
jfrancis%netscape.com
31383c4410 XPCOMified the content iterator; fixed some bugs in DeleteRange()
git-svn-id: svn://10.0.0.236/trunk@20527 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 05:28:46 +00:00
jfrancis%netscape.com
ba034ddb21 XPCOMified nsContentIterator; added it to layout factory CreateInstance code
git-svn-id: svn://10.0.0.236/trunk@20526 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 05:28:12 +00:00
mscott%netscape.com
c7844ac086 Build mailbox protocol and mailbox url classes...
git-svn-id: svn://10.0.0.236/trunk@20525 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 05:27:36 +00:00
mscott%netscape.com
598d78aca8 Export nsIMailboxUrl.h
git-svn-id: svn://10.0.0.236/trunk@20524 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 05:27:04 +00:00
mscott%netscape.com
5dbaac9c50 makefile for building mailbox test stuff
git-svn-id: svn://10.0.0.236/trunk@20523 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 05:26:42 +00:00
mscott%netscape.com
859ff0ab5d Build mailbox test directory
git-svn-id: svn://10.0.0.236/trunk@20522 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 05:26:21 +00:00
evaughan%netscape.com
e0f9f5f8e2 Made the HTML input button gfx rendered and in the netscape look and feel. Minus rounded borders
that CSS doesn't currently support.


git-svn-id: svn://10.0.0.236/trunk@20521 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 05:20:55 +00:00
mscott%netscape.com
1b6258684f Added some comments about how this test app works...
git-svn-id: svn://10.0.0.236/trunk@20520 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 05:07:59 +00:00
waldemar%netscape.com
979a08812c Added getter, setter, with, default arguments, and renamed declarations to definitions
git-svn-id: svn://10.0.0.236/trunk@20519 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 04:59:19 +00:00
waldemar%netscape.com
e38564c283 Added option to turn off line breaks within a tag
git-svn-id: svn://10.0.0.236/trunk@20518 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 04:57:49 +00:00
mscott%netscape.com
e87813e07f Build the mailboxTest harness....
git-svn-id: svn://10.0.0.236/trunk@20517 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 04:49:04 +00:00
mscott%netscape.com
191b4e299a Test harness for mailbox urls.
git-svn-id: svn://10.0.0.236/trunk@20516 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 04:48:46 +00:00
mscott%netscape.com
e17e8659cb A stub implementation of the mailbox parser used to test parsing mail folder mailbox urls...
git-svn-id: svn://10.0.0.236/trunk@20515 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 04:48:31 +00:00
mscott%netscape.com
d1686af672 Build new mailbox protocol stuff...
git-svn-id: svn://10.0.0.236/trunk@20514 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 04:47:33 +00:00
mscott%netscape.com
05bd425eba First check in of the mailbox protocol module.
git-svn-id: svn://10.0.0.236/trunk@20513 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 04:46:51 +00:00
mscott%netscape.com
8c2a0f6b41 Implementation of nsIMailboxUrl interface
git-svn-id: svn://10.0.0.236/trunk@20512 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 04:46:24 +00:00
mscott%netscape.com
2e448ce46e Export nsIMailboxurl.h
git-svn-id: svn://10.0.0.236/trunk@20511 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 04:44:13 +00:00
mscott%netscape.com
983b5ddcd9 Interface for mailbox urls...
git-svn-id: svn://10.0.0.236/trunk@20510 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 04:43:46 +00:00
jfrancis%netscape.com
dcd6eb01ea added contentIterator cid
git-svn-id: svn://10.0.0.236/trunk@20509 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 04:42:14 +00:00
jfrancis%netscape.com
abf14ae01a fixing iid collision with simon
git-svn-id: svn://10.0.0.236/trunk@20508 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 04:39:21 +00:00
jfrancis%netscape.com
4e78b8f143 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@20507 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 04:36:18 +00:00
jfrancis%netscape.com
2b152865b3 grabbed a couple id's for contentIterator iid and cid
git-svn-id: svn://10.0.0.236/trunk@20506 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 04:34:36 +00:00
jfrancis%netscape.com
0527883d33 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@20505 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 04:28:29 +00:00
troy%netscape.com
3c4807983d Fixed a ref counting problem and added a cast so we're pointing at the
object and not the interface in function Equals()


git-svn-id: svn://10.0.0.236/trunk@20504 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 04:26:43 +00:00
rickg%netscape.com
ef0f4a25f7 reset top 100 pages
git-svn-id: svn://10.0.0.236/trunk@20503 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 03:00:38 +00:00
briano%netscape.com
d8cf6d28ef Automated update
git-svn-id: svn://10.0.0.236/trunk@20502 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 02:31:28 +00:00
slamm%netscape.com
9dd5f88a76 Add -Wall only if $CC and $CXX pass test
git-svn-id: svn://10.0.0.236/trunk@20500 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 02:22:25 +00:00
bienvenu%netscape.com
e584b6a5a1 test mailbox parser code
git-svn-id: svn://10.0.0.236/trunk@20499 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 02:00:08 +00:00
bienvenu%netscape.com
3f40b55e0c get test mailbox parser linking
git-svn-id: svn://10.0.0.236/trunk@20498 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 01:59:16 +00:00
bienvenu%netscape.com
dcd5aa9928 replace PR_ASSERT with NS_ASSERTION
git-svn-id: svn://10.0.0.236/trunk@20497 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 01:58:10 +00:00
slamm%netscape.com
cc020a6b86 Make pedantic an option until it can actually pass.
git-svn-id: svn://10.0.0.236/trunk@20495 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 01:53:54 +00:00
slamm%netscape.com
9325b614fe Clean up a temp file.
git-svn-id: svn://10.0.0.236/trunk@20494 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 01:46:18 +00:00
briano%netscape.com
f52cc1e74c Automated update
git-svn-id: svn://10.0.0.236/trunk@20493 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 01:45:35 +00:00
kipp%netscape.com
b66f5435a9 Disabled -pedantic support until it's fully tested!
git-svn-id: svn://10.0.0.236/trunk@20492 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 01:42:51 +00:00
slamm%netscape.com
754e790b4e Clean up CFLAGS. Move some items off CFLAGS and onto DEFINES.
git-svn-id: svn://10.0.0.236/trunk@20491 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 01:40:34 +00:00
hyatt%netscape.com
d5ba4ac966 Changes to the table frame construction code to fix breakage in the tree view.
git-svn-id: svn://10.0.0.236/trunk@20490 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 01:35:37 +00:00
briano%netscape.com
51076e2e13 Automated update
git-svn-id: svn://10.0.0.236/trunk@20489 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 01:32:08 +00:00
briano%netscape.com
3dcba141ec Can't use -Wall if we're not using gcc....
git-svn-id: svn://10.0.0.236/trunk@20488 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 01:30:50 +00:00
alecf%netscape.com
63f06d275e use built-in rules to build idlc compiler
git-svn-id: svn://10.0.0.236/trunk@20487 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 01:21:31 +00:00
alecf%netscape.com
fb75799b42 update windows makefile
git-svn-id: svn://10.0.0.236/trunk@20486 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 01:11:59 +00:00
alecf%netscape.com
8218669c3d fix XPIDL output
git-svn-id: svn://10.0.0.236/trunk@20485 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 01:05:30 +00:00
alecf%netscape.com
f2378893c8 add new nsMessengerFactory to instantiate the messenger AppCore
git-svn-id: svn://10.0.0.236/trunk@20484 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 01:01:56 +00:00
briano%netscape.com
3f2dbb314c Automated update
git-svn-id: svn://10.0.0.236/trunk@20483 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 01:00:35 +00:00
wtc%netscape.com
b493ea8e99 Added hash lock counts to collect statistics on how often each lock is
used.


git-svn-id: svn://10.0.0.236/trunk@20482 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 00:59:52 +00:00
slamm%netscape.com
f1cab8f326 Only write 'config-defs.h' if it has changed. Add -Wall and -pedantic to CFLAGS if they are supported by $(CC). Clean up test for -include flag.
git-svn-id: svn://10.0.0.236/trunk@20481 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 00:56:35 +00:00
sfraser%netscape.com
b1bfc6b9cf Fix after akkana's changes: nsISelection -> nsIDOMSelection
git-svn-id: svn://10.0.0.236/trunk@20480 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 00:55:46 +00:00
beard%netscape.com
c2c951e7f8 Fixed += operator, which would only work if you had a file or folder called "G'day" in the input directory.
git-svn-id: svn://10.0.0.236/trunk@20479 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 00:48:35 +00:00
sfraser%netscape.com
9b636c9328 Fix selection bustage, which was a post-merge error on my part.
git-svn-id: svn://10.0.0.236/trunk@20478 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 00:27:44 +00:00
sfraser%netscape.com
ced8ef4d71 Fixing build bustage
git-svn-id: svn://10.0.0.236/trunk@20477 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 00:11:25 +00:00
sfraser%netscape.com
b4a259e54f #ifdef tbe blue selection triangles in until the caret code is turned on
git-svn-id: svn://10.0.0.236/trunk@20476 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 00:05:19 +00:00
chuang%netscape.com
5087b40527 Open a separate 3 pane Mail window using Javascrip
git-svn-id: svn://10.0.0.236/trunk@20475 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 00:05:13 +00:00
pierre%netscape.com
c3570833a5 added webshell/embed/mac/RaptorShell.mcp
git-svn-id: svn://10.0.0.236/trunk@20474 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 00:04:45 +00:00
sfraser%netscape.com
7b5c0a5490 Add code to show a caret (#ifdeffed out for now)
git-svn-id: svn://10.0.0.236/trunk@20473 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 00:02:56 +00:00
sfraser%netscape.com
0e66d5506a Add two new methods needed for caret support (and other things): GetPointFromOffset, to get frame-relative coordinates of a given content offset, and GetChildFrameContainingOffset, to find the child frame that really contains the given content offset
git-svn-id: svn://10.0.0.236/trunk@20472 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 00:02:31 +00:00
pierre%netscape.com
dd28e872ad First Checked In.
git-svn-id: svn://10.0.0.236/trunk@20471 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 00:00:20 +00:00
sfraser%netscape.com
1d05d66559 Add support for selection listener interfaces
git-svn-id: svn://10.0.0.236/trunk@20470 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:58:46 +00:00
sfraser%netscape.com
cadc7286e4 Export nsCaretProperties.h
git-svn-id: svn://10.0.0.236/trunk@20469 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:57:54 +00:00
sfraser%netscape.com
175269d933 Added nsICaret and nsIDOMSelectionListener to exports
git-svn-id: svn://10.0.0.236/trunk@20468 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:56:11 +00:00
sfraser%netscape.com
1186101405 Add nsCaret.cpp
git-svn-id: svn://10.0.0.236/trunk@20467 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:52:06 +00:00
sfraser%netscape.com
9845bce011 Added nsCaretPropertiesMac.cpp
git-svn-id: svn://10.0.0.236/trunk@20466 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:51:45 +00:00
pierre%netscape.com
bc1f73cd9e Fixed GetClipRegion/SetClipRegion to work with the actual region instead of its bounding box
git-svn-id: svn://10.0.0.236/trunk@20465 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:51:15 +00:00
pierre%netscape.com
0a55bab557 Added SetNativeRegion() + fixed 2 small bugs
git-svn-id: svn://10.0.0.236/trunk@20464 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:50:12 +00:00
sfraser%netscape.com
8b520832b9 Add nsICaret and nsIDOMSelectionListener.h
git-svn-id: svn://10.0.0.236/trunk@20463 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:50:04 +00:00
sfraser%netscape.com
cdd9b46762 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@20462 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:49:08 +00:00
sfraser%netscape.com
5087b9b097 Add nsCaretProperties.h
git-svn-id: svn://10.0.0.236/trunk@20461 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:48:25 +00:00
sfraser%netscape.com
37112bc046 Un-macro the release for ease of debugging
git-svn-id: svn://10.0.0.236/trunk@20460 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:46:59 +00:00
sfraser%netscape.com
d694ab972f Reserve a couple of IIDs for caret
git-svn-id: svn://10.0.0.236/trunk@20459 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:46:02 +00:00
briano%netscape.com
dcb6bd5973 Automated update
git-svn-id: svn://10.0.0.236/trunk@20458 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:15:44 +00:00
akkana%netscape.com
0ebe0a4652 Rename nsISelection to nsIFrameSelection
git-svn-id: svn://10.0.0.236/trunk@20457 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:12:28 +00:00
hyatt%netscape.com
a18676255d Changes to RDF elements to support the XUL node API.
git-svn-id: svn://10.0.0.236/trunk@20456 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:11:36 +00:00
hyatt%netscape.com
1c79aff237 Adding the XUL Node auto-generated file (from the IDL).
git-svn-id: svn://10.0.0.236/trunk@20455 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:10:33 +00:00
akkana%netscape.com
f48015fd94 Renaming nsISelection to nsIFrameSelection.
Here is the old log from nsISelection (since CVS doesn't allow renames):
> revision 1.9
> date: 1999/02/02 00:23:35;  author: mjudge%netscape.com;  state: Exp;  lines: +2 -1
> keyboard navigation of selection.  adding API for nsIFrame. fixing nsFrame and nstextframe to reflect the implementations of the nsIFrame API.  nsRangeList implements the handlekeyevent now.
> ----------------------------
> revision 1.8
> date: 1999/01/29 18:57:51;  author: akkana%netscape.com;  state: Exp;  lines: +6 -0
> Implement a new interface, nsIDOMSelection, intended to become the
> external interface for selection (to be IDL-ified later).
>
> Fix some editor bugs:
> - Advance the cursor on text insert (so text is inserted in the right order)
> - Make DeleteSelection in the editor call the actual selection
> - Make DeleteSelection update the frames' notion of the selection
> ----------------------------
> revision 1.7
> date: 1999/01/25 01:42:32;  author: mjudge%netscape.com;  state: Exp;  lines: +3 -4
> Focus tracker needs to send the tracker to the implementation of selection so that it can update the tracker as to which frame(s) should be considered the focus frames ect.  This is not yet working fully.  Everything I am checking in will stay, I simply have a decision to make as to exactly what to do next.  RangeList also had some modifications to better selection
> ----------------------------
> revision 1.6
> date: 1999/01/22 18:58:09;  author: mjudge%netscape.com;  state: Exp;  lines: +6 -0
> chagnes for selection to work
> ----------------------------
> revision 1.5
> date: 1999/01/18 22:57:08;  author: mjudge%netscape.com;  state: Exp;  lines: +1 -1
> Files for selection across frames.
> ----------------------------
> revision 1.4
> date: 1998/12/14 18:34:09;  author: mjudge%netscape.com;  state: Exp;  lines: +13 -1
> adding in selection
> ----------------------------
> revision 1.3
> date: 1998/12/08 18:25:37;  author: mjudge%netscape.com;  state: Exp;  lines: +9 -32
> changes to selection
> ----------------------------
> revision 1.2
> date: 1998/05/01 05:55:11;  author: rpotts;  state: Exp;  lines: +1 -1
> nslayout.h is *all* lower case
> ----------------------------
> revision 1.1
> date: 1998/04/30 19:15:05;  author: rods;  state: Exp;
> initial


git-svn-id: svn://10.0.0.236/trunk@20454 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:10:20 +00:00
hyatt%netscape.com
2490c245af COmmitting the idl for the XUlNode.
git-svn-id: svn://10.0.0.236/trunk@20453 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:10:09 +00:00
hyatt%netscape.com
2172a75d87 Removing some interfaces.
git-svn-id: svn://10.0.0.236/trunk@20452 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:09:41 +00:00
hyatt%netscape.com
2ffd018374 SHuffling around of interfaces.
git-svn-id: svn://10.0.0.236/trunk@20451 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:08:52 +00:00
karnaze%netscape.com
244cccb5d1 table related frames don't create frames for children that are invalid (e.g. map, body, etc.)
git-svn-id: svn://10.0.0.236/trunk@20449 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:08:28 +00:00
alecf%netscape.com
dd0604d5eb forgot to substitute MOZ_XTERM_UPDATE
git-svn-id: svn://10.0.0.236/trunk@20448 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:08:26 +00:00
troy%netscape.com
16ef48adcd Partial fix for bug #644. We still re-load the document un-necessarily, but
at least now we move to the anchor


git-svn-id: svn://10.0.0.236/trunk@20447 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:08:04 +00:00
ramiro%netscape.com
5467c1838d C++ comment in c file.
git-svn-id: svn://10.0.0.236/trunk@20445 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:03:25 +00:00
rhp%netscape.com
225f0584da Updated the way to access the web shell of interest.
git-svn-id: svn://10.0.0.236/trunk@20444 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:02:51 +00:00
dougt%netscape.com
f8c051689b removing extra semicolons so that the mac build does not complain.
git-svn-id: svn://10.0.0.236/trunk@20443 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 20:51:37 +00:00
wtc%netscape.com
2ade6c86f9 Bugsplat bug #342631: a better implementation of the atomic routines
for HP-UX 11.  Use a set of locks to reduce lock contention.  Thanks
to Rick Swift <swift@npec.netscape.com> for contributing this code.


git-svn-id: svn://10.0.0.236/trunk@20442 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 20:06:31 +00:00
dougt%netscape.com
ddaccc1f26 Removed Rods Spears changes to this file.
git-svn-id: svn://10.0.0.236/trunk@20441 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 20:05:34 +00:00
rhp%netscape.com
fbee0b5524 Added changes to get a hold of the webshell.
git-svn-id: svn://10.0.0.236/trunk@20440 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 19:56:40 +00:00
pinkerton%netscape.com
2a24ef0296 Dont export or build toolbar or tree stuff.
git-svn-id: svn://10.0.0.236/trunk@20439 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 19:20:35 +00:00
rods%netscape.com
a1c6abd840 Removed the PasswordUsername method.
git-svn-id: svn://10.0.0.236/trunk@20438 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 19:14:28 +00:00
rhp%netscape.com
4232c39a18 Adding windows makefiles
git-svn-id: svn://10.0.0.236/trunk@20437 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 19:11:07 +00:00
rods%netscape.com
7b4aad86e1 Added a comment
git-svn-id: svn://10.0.0.236/trunk@20436 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 18:43:03 +00:00
rods%netscape.com
6fb34e8453 Fixed mail demo so it works
git-svn-id: svn://10.0.0.236/trunk@20435 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 18:42:46 +00:00
rods%netscape.com
cbf3244393 Added some more debugging
git-svn-id: svn://10.0.0.236/trunk@20434 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 18:42:09 +00:00
rhp%netscape.com
9e9dae4511 Makefile updates
git-svn-id: svn://10.0.0.236/trunk@20433 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 18:36:41 +00:00
rods%netscape.com
616d38e01a Commented out the rollover code that sets the class to a pseudo-class
git-svn-id: svn://10.0.0.236/trunk@20432 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 18:36:40 +00:00
rhp%netscape.com
4aa9574ffe Removed the NET_RegisterContentTypeHandler call from the test app.
git-svn-id: svn://10.0.0.236/trunk@20431 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 18:35:45 +00:00
pinkerton%netscape.com
b049d85cf0 Reexport nsIToolbarItem (for throbber).
git-svn-id: svn://10.0.0.236/trunk@20430 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 18:30:04 +00:00
rhp%netscape.com
3d953cbb83 Added NET_RegisterContentTypeConverter into the factory autoregistration
code so we don't have to hack viewer, etc... anymore to do this.


git-svn-id: svn://10.0.0.236/trunk@20429 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 18:29:24 +00:00
pinkerton%netscape.com
c50f8d3acf reexport nsIToolbarItem because the throbber needs it (this needs to be removed).
git-svn-id: svn://10.0.0.236/trunk@20428 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 18:29:05 +00:00
kmcclusk%netscape.com
6e1121c2d9 Added reset, submit, button, and file input types to test_pr sample.
git-svn-id: svn://10.0.0.236/trunk@20427 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 18:28:41 +00:00
kmcclusk%netscape.com
ab05faab56 Added additional style rules+properties for INPUT elements for printing and gfx-rendering.
git-svn-id: svn://10.0.0.236/trunk@20426 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 18:27:38 +00:00
terry%netscape.com
ad3e9eec3f Removed duplicate entries.
git-svn-id: svn://10.0.0.236/trunk@20424 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 18:24:52 +00:00
pinkerton%netscape.com
b2ff2f5475 Don't build or export the tree/toolbar stuff since they aren't widgets anymore
git-svn-id: svn://10.0.0.236/trunk@20423 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 18:08:25 +00:00
bienvenu%netscape.com
b1f31a9e30 get local folder stuff to linking point
git-svn-id: svn://10.0.0.236/trunk@20422 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 18:06:08 +00:00
pinkerton%netscape.com
3148db617e don't export tree or toolbar stuff.
git-svn-id: svn://10.0.0.236/trunk@20421 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 17:58:17 +00:00
pinkerton%netscape.com
466262b0fd Removing tree and toolbar widgets from being created, as they are now frames.
git-svn-id: svn://10.0.0.236/trunk@20420 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 17:58:07 +00:00
pinkerton%netscape.com
ba7bcd62b9 remove toolbars and tree widget registry, as they are no longer widgets.
git-svn-id: svn://10.0.0.236/trunk@20419 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 17:51:56 +00:00
rods%netscape.com
bd05ec34b5 Moved toolbar images from dead xpviewer directory to appcores/xul/resources
git-svn-id: svn://10.0.0.236/trunk@20418 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 17:17:56 +00:00
pinkerton%netscape.com
489dcad781 Remove toolbar/tree demo code (which was commented out).
git-svn-id: svn://10.0.0.236/trunk@20417 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 16:48:13 +00:00
rods%netscape.com
75e870bf80 Removed XULCOmmandCID
git-svn-id: svn://10.0.0.236/trunk@20416 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 16:14:43 +00:00
rods%netscape.com
f3715745e2 Fixed up toolbar.xml so Back and Forward work
Added BrowserInitPage.html for easy testing of browser features


git-svn-id: svn://10.0.0.236/trunk@20415 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 16:01:56 +00:00
rods%netscape.com
bdf9731aad Fixed a few things, added APP_DEBUG for turning on and off debugging
git-svn-id: svn://10.0.0.236/trunk@20414 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 15:57:08 +00:00
troy%netscape.com
fcbf19b87f API changes for nsIPresContext ResolveStyleContextFor and ResolvePseudoStyleContextFor
git-svn-id: svn://10.0.0.236/trunk@20413 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 15:56:23 +00:00
troy%netscape.com
46adb79a84 Changed to using nsCOMPtr
git-svn-id: svn://10.0.0.236/trunk@20412 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 15:54:13 +00:00
troy%netscape.com
982bcc6574 Changed ResolveStyleContextFor and ResolvePseudoStyleContextFor to use pointer
arguments instead of references for OUT parameters


git-svn-id: svn://10.0.0.236/trunk@20411 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 15:53:26 +00:00
rods%netscape.com
fd9c02553e Removed the commented out XULCommandCID
git-svn-id: svn://10.0.0.236/trunk@20410 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 15:20:42 +00:00
dcone%netscape.com
8f0051e5da added nsXULCommand.cpp to project
git-svn-id: svn://10.0.0.236/trunk@20409 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 15:18:54 +00:00
rods%netscape.com
90bade3f9e Added XULCommand back in fixed commands
git-svn-id: svn://10.0.0.236/trunk@20408 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 15:14:34 +00:00
rods%netscape.com
879bcd3dbe Moved XULCommand back to xpfe/appshell
git-svn-id: svn://10.0.0.236/trunk@20407 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 15:13:29 +00:00
dcone%netscape.com
1570ae2e1e Took out nsXULCommand.cpp
git-svn-id: svn://10.0.0.236/trunk@20406 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 15:13:20 +00:00
grail%cafebabe.org
7dd61549ae Patches to make sure everything is correctly typed and good.
git-svn-id: svn://10.0.0.236/trunk@20405 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 11:07:55 +00:00
briano%netscape.com
183367f869 Automated update
git-svn-id: svn://10.0.0.236/trunk@20404 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 09:32:01 +00:00
briano%netscape.com
2a6670788d Automated update
git-svn-id: svn://10.0.0.236/trunk@20403 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 09:19:28 +00:00
briano%netscape.com
9e740fac46 Automated update
git-svn-id: svn://10.0.0.236/trunk@20402 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 07:45:35 +00:00
alecf%netscape.com
375c80910b add new mail/news, js, and xpfe Makefiles (js and xpfe/AppCore/idl aren't active yet)
git-svn-id: svn://10.0.0.236/trunk@20401 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 07:32:54 +00:00
alecf%netscape.com
64a99cbcc4 ignore generated files
git-svn-id: svn://10.0.0.236/trunk@20400 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 07:31:53 +00:00
alecf%netscape.com
a2778fad2f add Unix makefiles
git-svn-id: svn://10.0.0.236/trunk@20399 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 07:29:55 +00:00
alecf%netscape.com
7d3efd1ae3 add makefile so we can export the IDL files
git-svn-id: svn://10.0.0.236/trunk@20398 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 07:29:02 +00:00
alecf%netscape.com
1ef2b77848 add db to list now that it's in the configure.in script
git-svn-id: svn://10.0.0.236/trunk@20397 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 07:28:08 +00:00
alecf%netscape.com
bcc7ef2082 update libraries because RDF now depends on layout (which has a zillion other dependancies)
git-svn-id: svn://10.0.0.236/trunk@20396 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 07:27:39 +00:00
alecf%netscape.com
a704f3bb96 get rid of duplicate NET_SACat definition
git-svn-id: svn://10.0.0.236/trunk@20395 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 07:27:19 +00:00
bienvenu%netscape.com
63236dfa91 start getting mailbox parsing going
git-svn-id: svn://10.0.0.236/trunk@20394 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 07:10:24 +00:00
bienvenu%netscape.com
468ac41b66 changes for getting local mail folder parsing to work
git-svn-id: svn://10.0.0.236/trunk@20393 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 07:09:26 +00:00
bienvenu%netscape.com
b1d4970f0e add error for not a mail folder
git-svn-id: svn://10.0.0.236/trunk@20392 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 07:09:05 +00:00
alecf%netscape.com
c24d3c37c3 add glue code for GetNewMail()
git-svn-id: svn://10.0.0.236/trunk@20391 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 07:02:06 +00:00
alecf%netscape.com
0081d86569 more and more fixes for unix
git-svn-id: svn://10.0.0.236/trunk@20390 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 06:53:55 +00:00
alecf%netscape.com
065bc208b3 ignore Makefile
git-svn-id: svn://10.0.0.236/trunk@20389 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 06:51:42 +00:00
peterl%netscape.com
742ab46863 added :-moz-viewport
git-svn-id: svn://10.0.0.236/trunk@20388 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 06:48:51 +00:00
alecf%netscape.com
d001b2a986 more fixes to make this compile on unix
git-svn-id: svn://10.0.0.236/trunk@20387 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 06:47:01 +00:00
peterl%netscape.com
d024afd811 made class values case sensitive
git-svn-id: svn://10.0.0.236/trunk@20386 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 06:43:14 +00:00
peterl%netscape.com
484307c6dc handle case sensitivity in attribute selector values here
git-svn-id: svn://10.0.0.236/trunk@20385 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 06:42:49 +00:00
peterl%netscape.com
e64bbf889e fixed bug while tokenizing ints at end of input stream
git-svn-id: svn://10.0.0.236/trunk@20384 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 06:42:02 +00:00
peterl%netscape.com
b5c996e95b made class selectors case sensitive
moved case-insensitive support for attribute values to style sheet


git-svn-id: svn://10.0.0.236/trunk@20383 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 06:41:21 +00:00
peterl%netscape.com
e6e9460541 make viewport frame use a viewport pseudo tag
connected doc root frame's style context to parent frame's style context


git-svn-id: svn://10.0.0.236/trunk@20382 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 06:40:13 +00:00
alecf%netscape.com
79e1e729a1 use new NSPR types and functions
git-svn-id: svn://10.0.0.236/trunk@20381 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 06:39:09 +00:00
peterl%netscape.com
d77f11eff2 added viewport pseudo element tag
git-svn-id: svn://10.0.0.236/trunk@20380 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 06:39:07 +00:00
alecf%netscape.com
4be3a056c9 minor makefile/cvs fixes to make stuff build on Unix
git-svn-id: svn://10.0.0.236/trunk@20379 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 06:37:17 +00:00
alecf%netscape.com
6c61a1d979 add support for creating new appcore
git-svn-id: svn://10.0.0.236/trunk@20378 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 06:27:27 +00:00
alecf%netscape.com
1b36cf1517 include the new header file so our factory method is done correctly
git-svn-id: svn://10.0.0.236/trunk@20377 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 06:26:09 +00:00
alecf%netscape.com
a7eb073f7f fix some warnings and add a new header file which does object construction
git-svn-id: svn://10.0.0.236/trunk@20376 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 06:25:16 +00:00
alecf%netscape.com
681521266d export the private header file
git-svn-id: svn://10.0.0.236/trunk@20375 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 06:23:58 +00:00
karnaze%netscape.com
2bae921097 tests collapsing rows, row groups, cols, col groups
git-svn-id: svn://10.0.0.236/trunk@20374 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 06:23:43 +00:00
sfraser%netscape.com
10824c470f That last checkin should have read: fix a bug in CompressWhitespace that caused the string length to be set incorrectly, when Trim shortened the string.
git-svn-id: svn://10.0.0.236/trunk@20373 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 06:23:29 +00:00
karnaze%netscape.com
6ccd350a1d collapsing rows, row groups, cols, col groups
git-svn-id: svn://10.0.0.236/trunk@20372 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 06:22:33 +00:00
sfraser%netscape.com
9e2845f5e9 Fix a bug in
git-svn-id: svn://10.0.0.236/trunk@20371 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 06:22:03 +00:00
waterson%netscape.com
37a0fec61a Add parser utils.
git-svn-id: svn://10.0.0.236/trunk@20370 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 06:06:57 +00:00
alecf%netscape.com
457f7b1e94 first checkin of Unix makefiles for UI stuff
git-svn-id: svn://10.0.0.236/trunk@20369 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 05:36:50 +00:00
alecf%netscape.com
feafd5eb60 finish implementing nsMsgAppCore
git-svn-id: svn://10.0.0.236/trunk@20368 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 05:35:20 +00:00
alecf%netscape.com
5339627bca and now it compiles on Unix. Whoo hoo!
git-svn-id: svn://10.0.0.236/trunk@20367 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 05:23:48 +00:00
alecf%netscape.com
f754194d31 first checkin for Messenger AppCore
git-svn-id: svn://10.0.0.236/trunk@20366 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 05:16:05 +00:00
alecf%netscape.com
dbc2872088 export nsIAllocator on Unix for XPConnect
git-svn-id: svn://10.0.0.236/trunk@20365 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 04:41:08 +00:00
sfraser%netscape.com
73c7b11b00 Added an assert in GetWidth, which fires if you try to measure width on a longer string than you really have. (May be triggered by selection code.)
git-svn-id: svn://10.0.0.236/trunk@20364 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 04:37:41 +00:00
sfraser%netscape.com
4d3a7a38f1 Temporary key handling code, so that basic navigation keys work.
git-svn-id: svn://10.0.0.236/trunk@20363 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 04:36:39 +00:00
waterson%netscape.com
96756c14d9 Added nsRDFParserUtils.cpp to Unix build.
git-svn-id: svn://10.0.0.236/trunk@20362 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 04:20:44 +00:00
alecf%netscape.com
36a6b55866 fix for AIX compiler bustage
git-svn-id: svn://10.0.0.236/trunk@20361 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 04:13:50 +00:00
waterson%netscape.com
3ab78a2fec Doh! Forgot to make two of the methods static.
git-svn-id: svn://10.0.0.236/trunk@20360 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 04:10:36 +00:00
waterson%netscape.com
d1f266d3fa Added nsRDFParserUtils.cpp.
git-svn-id: svn://10.0.0.236/trunk@20359 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 04:06:02 +00:00
waterson%netscape.com
7a5bd2f430 Added some routines for use with parsing RDF/XML and XUL.
git-svn-id: svn://10.0.0.236/trunk@20358 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 04:05:41 +00:00
briano%netscape.com
100fa1c227 Automated update
git-svn-id: svn://10.0.0.236/trunk@20357 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 04:00:36 +00:00
mscott%netscape.com
dbf2a0eef6 Add local/tests/pop3 to list of mailnews directories...
git-svn-id: svn://10.0.0.236/trunk@20356 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 03:58:22 +00:00
mscott%netscape.com
83aaaa04ba Replaces old Makefile.in. We now want to build pop3 directory...
git-svn-id: svn://10.0.0.236/trunk@20355 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 03:57:53 +00:00
mscott%netscape.com
3e4860116c Adding to build new directory...
git-svn-id: svn://10.0.0.236/trunk@20354 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 03:56:36 +00:00
troy%netscape.com
a0c49af128 Fix for bug #3089
git-svn-id: svn://10.0.0.236/trunk@20353 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 03:56:00 +00:00
mscott%netscape.com
091da21cf4 moved into new subdirectory....
git-svn-id: svn://10.0.0.236/trunk@20352 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 03:33:04 +00:00
mscott%netscape.com
ef5749914b Build pop3 subdirectory...
git-svn-id: svn://10.0.0.236/trunk@20351 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 03:32:20 +00:00
mscott%netscape.com
a0a263475e This has been moved into a tests/pop3 subdirectory...
git-svn-id: svn://10.0.0.236/trunk@20349 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 03:31:14 +00:00
mscott%netscape.com
d3952da2d6 use of sockstub protocol to implement a socket connection for a url is now BLIND to the protocol. So let the protocol use its original scheme when building urls. The transport layer will now worry about chaning the scheme to sockstub when appropriate....
git-svn-id: svn://10.0.0.236/trunk@20348 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 03:10:28 +00:00
mscott%netscape.com
7eca6494db Remove assertion that is no longer valid...
git-svn-id: svn://10.0.0.236/trunk@20347 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 03:07:24 +00:00
spence%netscape.com
bcfa0713ea updated to use mozilla/base from nsFileStream
git-svn-id: svn://10.0.0.236/trunk@20346 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 03:07:05 +00:00
mscott%netscape.com
88333318d6 Remove in-appropriate assertion...the rules have changed...
git-svn-id: svn://10.0.0.236/trunk@20345 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 03:03:51 +00:00
mscott%netscape.com
36c56bfc85 Add the ability to open a file based socket. (Part of the nsITransport) code....
git-svn-id: svn://10.0.0.236/trunk@20343 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 02:59:53 +00:00
mscott%netscape.com
45da5a7fd0 Added code to make a file based socket transport. nsSocketTransport can now open a file or a network based socket.
When opening a url through a transport, convert the application url scheme to either file or 'sockstub' based on the type
of socket connection.


git-svn-id: svn://10.0.0.236/trunk@20342 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 02:56:58 +00:00
kipp%netscape.com
c0eabe2017 Removed some warnings; made the resource noise a one-shot
git-svn-id: svn://10.0.0.236/trunk@20341 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 02:53:38 +00:00
ducarroz%netscape.com
6db1abe692 re-added compose to the build
git-svn-id: svn://10.0.0.236/trunk@20340 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 02:38:53 +00:00
ducarroz%netscape.com
d27bb31aa9 Add library raptorbase.lib to the build
git-svn-id: svn://10.0.0.236/trunk@20339 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 02:37:35 +00:00
briano%netscape.com
297f9e16ec Automated update
git-svn-id: svn://10.0.0.236/trunk@20338 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 02:31:28 +00:00
spence%netscape.com
0ed3738afe updated to use mozilla/base nsFileStream
git-svn-id: svn://10.0.0.236/trunk@20336 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 02:25:25 +00:00
kipp%netscape.com
fe7377435f Fixed memory corruption crasher by passing in the correct width/height to the swizzler routine
git-svn-id: svn://10.0.0.236/trunk@20335 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 02:21:48 +00:00
buster%netscape.com
63b56c396b added layout/html/table/public
git-svn-id: svn://10.0.0.236/trunk@20334 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 02:20:31 +00:00
michaelp%netscape.com
fd120dee00 made GetRects() and FreeRects() work. killed ForEachRect().
git-svn-id: svn://10.0.0.236/trunk@20332 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 01:54:01 +00:00
michaelp%netscape.com
9da531cd6b killed ForEachRect().
git-svn-id: svn://10.0.0.236/trunk@20331 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 01:53:42 +00:00
buster%netscape.com
aabfe0f826 tell the build system that "public" dir needs building
git-svn-id: svn://10.0.0.236/trunk@20330 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 01:51:20 +00:00
scc%netscape.com
390cefda5f Activate browser so you get the colorized source
git-svn-id: svn://10.0.0.236/trunk@20329 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 01:35:54 +00:00
scc%netscape.com
218ef805b6 Added |nsresult nsCOMPtr::assignment_error() const;| which returns the error, if any, from the most recent operation (constructor or assignment operator) that implicitly calls |QueryInterface|. This did not increase the size of an |nsCOMPtr|.
git-svn-id: svn://10.0.0.236/trunk@20328 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 01:34:07 +00:00
buster%netscape.com
608179b291 changed table cell getters to be XP_COM-like, with out-params instead of return values.
this is so these getters can be bound to an XPCOM interface, nsITableCellLayout


git-svn-id: svn://10.0.0.236/trunk@20327 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 01:17:19 +00:00
buster%netscape.com
3dbeb7eb3f changed getters to be XP_COM-like, with out-params instead of return values.
this is so these getters can be bound to an XPCOM interface, nsITableCellLayout


git-svn-id: svn://10.0.0.236/trunk@20326 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 01:16:28 +00:00
kmcclusk%netscape.com
4f668b7081 Fixed border rendering during printing for Select and text, and text areas.
Implemented SetProperty/GetProperty methods for FileControlFrame
Added nsGenericHTMLElement::GetPrimaryFrame check for nsnull for doc return type.
nsHTMLInputElement.cpp replace NS_OK == with  NS_SUCCEEDED in GetValue and SetValue
Added GetName and GetValue utility methods to nsFormControlHelper
modified nsButtonControlFrame::PaintButton to take the label to paint as an extra parameter.
This allows it to be callable from the nsFileControlFrame code to render the button.


git-svn-id: svn://10.0.0.236/trunk@20325 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 01:13:28 +00:00
radha%netscape.com
0b91100f7c Make the throbber button display netcenter in the main page not in the toolbar area
git-svn-id: svn://10.0.0.236/trunk@20324 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 01:13:24 +00:00
ducarroz%netscape.com
6ed5f63bed Add directory build
git-svn-id: svn://10.0.0.236/trunk@20323 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 01:05:18 +00:00
ducarroz%netscape.com
81ed947e44 Initial check in
git-svn-id: svn://10.0.0.236/trunk@20322 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 01:01:47 +00:00
ducarroz%netscape.com
666a630c33 no comment
git-svn-id: svn://10.0.0.236/trunk@20321 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 00:59:19 +00:00
ducarroz%netscape.com
850497c0cd Initial check in
git-svn-id: svn://10.0.0.236/trunk@20320 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 00:54:40 +00:00
pierre%netscape.com
51c9f366be Added checkbox and radiobox size to the LookAndFeel (bug#2923 "Checkboxes don't display ")
git-svn-id: svn://10.0.0.236/trunk@20319 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 00:51:36 +00:00
ducarroz%netscape.com
673b825eb8 no comment
git-svn-id: svn://10.0.0.236/trunk@20318 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 00:49:04 +00:00
wtc%netscape.com
7c0e3e8a42 Added the sockping and sockpong tests.
git-svn-id: svn://10.0.0.236/trunk@20317 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 00:44:06 +00:00
ducarroz%netscape.com
3fed540617 Initial check in
git-svn-id: svn://10.0.0.236/trunk@20316 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 00:43:57 +00:00
wtc%netscape.com
b092c9244f Declare Test_Result as returning void. Changed AF_INET and INADDR_XXX
to PR_AF_INET and PR_INADDR_XXX.


git-svn-id: svn://10.0.0.236/trunk@20315 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 00:43:30 +00:00
nhotta%netscape.com
4eb16d16d7 Changed csid to charset name for MIME header decoding.
git-svn-id: svn://10.0.0.236/trunk@20314 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 00:43:20 +00:00
nhotta%netscape.com
5e7cf504fd Changed csid to charset name, Unicode converter wrapper callable by C code.
git-svn-id: svn://10.0.0.236/trunk@20313 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 00:41:30 +00:00
wtc%netscape.com
ebc409c1ab Changed AF_INET and INADDR_XXX to PR_AF_INET and PR_INADDR_XXX.
git-svn-id: svn://10.0.0.236/trunk@20312 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 00:39:16 +00:00
ducarroz%netscape.com
ad102c9784 no comment
git-svn-id: svn://10.0.0.236/trunk@20311 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 00:38:13 +00:00
nhotta%netscape.com
23ab9042c7 Added an include path for the unicode converter.
git-svn-id: svn://10.0.0.236/trunk@20310 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 00:30:30 +00:00
ducarroz%netscape.com
1e93bb44a7 add export for rosetta_mailnews.h
git-svn-id: svn://10.0.0.236/trunk@20308 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 00:10:48 +00:00
ducarroz%netscape.com
05e69a161e Initial check in
git-svn-id: svn://10.0.0.236/trunk@20307 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 00:06:35 +00:00
sar%netscape.com
31c3b38273 Turn of "modification date caching" so that dependencies are sure to work.
git-svn-id: svn://10.0.0.236/trunk@20306 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 00:04:46 +00:00
law%netscape.com
d385a92372 moz->ns
git-svn-id: svn://10.0.0.236/trunk@20305 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 23:27:09 +00:00
buster%netscape.com
f303703535 added GetLayoutObjectFor for getting a layout object as an nsISupports
while not exposing nsIFrame.


git-svn-id: svn://10.0.0.236/trunk@20304 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 23:21:22 +00:00
chuang%netscape.com
e590ed528d Updated toobar xul
git-svn-id: svn://10.0.0.236/trunk@20303 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 22:59:44 +00:00
erik%netscape.com
87455362bb Re-enabling the string bundle testing code, now that the nsIProperties
bug has been fixed.


git-svn-id: svn://10.0.0.236/trunk@20302 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 22:53:35 +00:00
erik%netscape.com
51d0ad7397 Forgot to say "public" in "class nsPropertiesFactory : nsIFactory".
This caused it to fail on Linux, but not on Windows. Go figure. Sigh.


git-svn-id: svn://10.0.0.236/trunk@20301 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 22:51:01 +00:00
kipp%netscape.com
7193d515a9 Implement support for the spacing array for DrawString; fixed bug - didn't init mDrawStringBuf in ctor
git-svn-id: svn://10.0.0.236/trunk@20300 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 22:23:16 +00:00
terry%netscape.com
d0af8926a5 Updated version string to 2.3 (development)
git-svn-id: svn://10.0.0.236/trunk@20299 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 22:12:03 +00:00
terry%netscape.com
833b4d4d0d Updated version string to 2.2 (shipping)
git-svn-id: svn://10.0.0.236/trunk@20297 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 22:11:52 +00:00
pinkerton%netscape.com
fce42ff00f my bad. green toolbars? who would ever want that?? ;)
git-svn-id: svn://10.0.0.236/trunk@20296 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 22:10:02 +00:00
pinkerton%netscape.com
df3d6278c2 remove the bg-image in the toolbar to get things to suck less on windows.
git-svn-id: svn://10.0.0.236/trunk@20295 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 22:09:00 +00:00
pinkerton%netscape.com
a041ac5c7a add some styles for collapsing toolbars and the throbber.
git-svn-id: svn://10.0.0.236/trunk@20294 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 22:08:28 +00:00
pinkerton%netscape.com
a26fdf4b82 go back to relative positioning for throbber and take out the <A> tag around it so that NetCenter doesn't load in the toolbar frame ;)
git-svn-id: svn://10.0.0.236/trunk@20293 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 22:07:50 +00:00
pinkerton%netscape.com
946c2cc718 add samples 10-12 to mac viewer.
git-svn-id: svn://10.0.0.236/trunk@20292 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 22:04:41 +00:00
despotdaemon%netscape.com
fcdda5c5c1 Pseudo-automatic update of changes made by syd@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@20291 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 21:40:50 +00:00
rhp%netscape.com
abda00a8fc New changes for factory self registration.
git-svn-id: svn://10.0.0.236/trunk@20290 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 21:38:47 +00:00
chuang%netscape.com
8f2154011e Initial 3 pane mail ui files
git-svn-id: svn://10.0.0.236/trunk@20289 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 21:31:01 +00:00
chuang%netscape.com
211d1478d5 Mail toolbar buttons gif files
git-svn-id: svn://10.0.0.236/trunk@20288 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 21:24:55 +00:00
rods%netscape.com
a1e4c2a923 Back and forward did not work for frames, so I put in a temporary fix
git-svn-id: svn://10.0.0.236/trunk@20286 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 20:44:31 +00:00
ducarroz%netscape.com
08c475b210 remove msgcompose.lib
git-svn-id: svn://10.0.0.236/trunk@20285 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 20:10:39 +00:00
hyatt%netscape.com
cb298f94b8 Adding support for tree columns.
git-svn-id: svn://10.0.0.236/trunk@20284 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 19:51:29 +00:00
hyatt%netscape.com
db2d99b076 Changing the way table frames are created so that tree frames can be made
as well.


git-svn-id: svn://10.0.0.236/trunk@20283 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 19:50:50 +00:00
law%netscape.com
f91535f863 Cleaned up i/f, XPCOM-wise
git-svn-id: svn://10.0.0.236/trunk@20282 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 19:47:56 +00:00
wtc%netscape.com
8676f937c5 Added the pipeping, pipepong, and pipeself tests.
git-svn-id: svn://10.0.0.236/trunk@20281 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 19:46:39 +00:00
waterson%netscape.com
fa92838811 Fixed nsISelection bustage.
git-svn-id: svn://10.0.0.236/trunk@20280 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 19:39:29 +00:00
waterson%netscape.com
0889233a65 Changed LocalStore.rdf to sidebar.xul & sidebar.css.
git-svn-id: svn://10.0.0.236/trunk@20279 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 19:17:02 +00:00
waterson%netscape.com
fc005bd21c Initial revision.
git-svn-id: svn://10.0.0.236/trunk@20278 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 19:15:46 +00:00
waterson%netscape.com
9c7104846c Added XP_UNIX filename for bookmarks.
git-svn-id: svn://10.0.0.236/trunk@20277 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 19:13:12 +00:00
waterson%netscape.com
0c1bfe75d8 Take _address_ of mTreeFrame.
git-svn-id: svn://10.0.0.236/trunk@20276 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 19:08:58 +00:00
mjudge%netscape.com
07be1b0f72 removing nsICollection
git-svn-id: svn://10.0.0.236/trunk@20275 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 18:57:54 +00:00
mjudge%netscape.com
2a9e445535 Keyboard navigation, removing nsICollection(not used) adding PeekOffset to have the nsIFrame tell us where to go when moving a character ect. adding nsFrameTraversal to traverse frames, based on nsIEnumerator. mjudge x4661
git-svn-id: svn://10.0.0.236/trunk@20274 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 18:55:25 +00:00
pinkerton%netscape.com
3d14e0916d add Network shlb.
git-svn-id: svn://10.0.0.236/trunk@20273 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 18:48:13 +00:00
pinkerton%netscape.com
5ceb3206bb add the remaining things in this folder to the manifest so I don't have to do this process again.
git-svn-id: svn://10.0.0.236/trunk@20272 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 18:39:31 +00:00
pinkerton%netscape.com
c825e4b301 nsIXULCommand.h doesn't live here anymore.
git-svn-id: svn://10.0.0.236/trunk@20271 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 18:22:30 +00:00
pinkerton%netscape.com
77eb4f3439 Add manifest file for xpfe/appshell/public
git-svn-id: svn://10.0.0.236/trunk@20270 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 18:20:47 +00:00
troy%netscape.com
c6590e6940 Re-ordered DeleteFrame() code to fix a FMR
git-svn-id: svn://10.0.0.236/trunk@20269 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 18:12:24 +00:00
pinkerton%netscape.com
a63203122e export nsIWebShellWindow.h
git-svn-id: svn://10.0.0.236/trunk@20268 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 18:11:37 +00:00
rods%netscape.com
cb04e26922 Added the Mail files again
git-svn-id: svn://10.0.0.236/trunk@20267 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 17:59:39 +00:00
kipp%netscape.com
66875f5837 Use a growable buffer to translate unicode to GdkWChar's instead of mallocing for every draw/measure
git-svn-id: svn://10.0.0.236/trunk@20266 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 17:58:43 +00:00
kipp%netscape.com
e925328b5c Eliminate a compiler warning
git-svn-id: svn://10.0.0.236/trunk@20265 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 17:58:16 +00:00
coop%netscape.com
789a083e10 NOT YET PART OF SEAMONKEY:
* changed type descriptor tag defines into one big enum
* made corresponding changes to xpt_dump


git-svn-id: svn://10.0.0.236/trunk@20264 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 17:44:05 +00:00
rods%netscape.com
fd8d8e3fd8 initial checkin
git-svn-id: svn://10.0.0.236/trunk@20263 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 17:31:17 +00:00
rods%netscape.com
deac8ecb86 Added SetWebShellWindow
git-svn-id: svn://10.0.0.236/trunk@20262 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 16:48:31 +00:00
rods%netscape.com
7485ef4bb4 Added SetWebShellWindow to toolbar core
Made ToolBarCore a StreamObserver and nsINetSupport listener
Commented out status bar code


git-svn-id: svn://10.0.0.236/trunk@20261 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 16:46:47 +00:00
rods%netscape.com
3ab3644d20 Added extra parameeter to CreatetopLevelWindow
git-svn-id: svn://10.0.0.236/trunk@20260 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 16:41:07 +00:00
rods%netscape.com
8a5d0ddf5f Must build appshell dir first
git-svn-id: svn://10.0.0.236/trunk@20259 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 16:39:35 +00:00
rods%netscape.com
baf0aa3a0a must build appshell first
git-svn-id: svn://10.0.0.236/trunk@20258 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 16:39:16 +00:00
rods%netscape.com
960299f551 Added new interface nsIAppShellService
git-svn-id: svn://10.0.0.236/trunk@20257 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 16:38:51 +00:00
kostello%netscape.com
ded383e7e5 Added NS_INIT_REFCNT in the constructors
git-svn-id: svn://10.0.0.236/trunk@20256 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 16:38:10 +00:00
rods%netscape.com
829f95d1e4 It now implements nsIDocumentLoaderObserver
git-svn-id: svn://10.0.0.236/trunk@20255 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 16:32:55 +00:00
rods%netscape.com
8ba2c2c961 Added GetWebShell
git-svn-id: svn://10.0.0.236/trunk@20254 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 16:25:49 +00:00
rods%netscape.com
d52a9494a8 Added GetWebShell method
git-svn-id: svn://10.0.0.236/trunk@20253 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 16:25:11 +00:00
rods%netscape.com
3ff0cf564d Added GetNativeEvent and DispatchNativeEvent, these are neded for future modal dialog support
git-svn-id: svn://10.0.0.236/trunk@20252 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 16:20:29 +00:00
pierre%netscape.com
5e50cc117b Fixed a small bug when resizing very fast
git-svn-id: svn://10.0.0.236/trunk@20251 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 11:42:46 +00:00
pierre%netscape.com
2992df5b5a removed some spurious file access paths
git-svn-id: svn://10.0.0.236/trunk@20250 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 11:00:30 +00:00
pierre%netscape.com
b37c86dc20 backed out ftang's changes from version 1.72
git-svn-id: svn://10.0.0.236/trunk@20249 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 10:24:57 +00:00
hyatt%netscape.com
d408a4413d Fixing the auto-generated JS file since the IDL changed.
git-svn-id: svn://10.0.0.236/trunk@20248 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 10:16:34 +00:00
hyatt%netscape.com
f6d39212e9 Fixing the auto-generated file since the IDL changed.
git-svn-id: svn://10.0.0.236/trunk@20247 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 10:15:47 +00:00
hyatt%netscape.com
e1240ab078 Added a SetBroadcaster method so that I have a convenient way to set the broadcaster
for a given broadcast listener.


git-svn-id: svn://10.0.0.236/trunk@20246 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 10:15:22 +00:00
hyatt%netscape.com
ee4b78af1f The auto-generated file for the XUL broadcast listener.
git-svn-id: svn://10.0.0.236/trunk@20245 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 09:53:39 +00:00
hyatt%netscape.com
0c343f8c51 The auto-generated JS file for the XUL broadcaster.
git-svn-id: svn://10.0.0.236/trunk@20244 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 09:53:19 +00:00
hyatt%netscape.com
8ae908a372 The auto-generated JS file for the XUL command.
git-svn-id: svn://10.0.0.236/trunk@20243 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 09:52:48 +00:00
hyatt%netscape.com
364fdd5a9a The auto-generated header file for the XULCommand idl.
git-svn-id: svn://10.0.0.236/trunk@20242 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 09:50:59 +00:00
hyatt%netscape.com
ddcdca1972 The auto-generated header file for the XULBroadcastListener idl.
git-svn-id: svn://10.0.0.236/trunk@20241 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 09:50:28 +00:00
hyatt%netscape.com
702ce6032c The auto-generated file for the XULBroadcaster IDL.
git-svn-id: svn://10.0.0.236/trunk@20240 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 09:49:50 +00:00
hyatt%netscape.com
e57c5fedba IDL for enhancements to XUL content nodes, namely the ability to invoke
the commands associated with command nodes and the ability to provide
automatic attribute-chaining between a set of broadcasters and broadcast
listeners.


git-svn-id: svn://10.0.0.236/trunk@20239 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 09:48:00 +00:00
pierre%netscape.com
091d8a00a7 Fix a crash when interrupting a page load
git-svn-id: svn://10.0.0.236/trunk@20238 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 09:12:48 +00:00
rickg%netscape.com
a1f45d1784 added a few comment tests
git-svn-id: svn://10.0.0.236/trunk@20237 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 09:11:54 +00:00
rickg%netscape.com
27c01fccd5 added a few comment tests
git-svn-id: svn://10.0.0.236/trunk@20236 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 09:08:35 +00:00
rickg%netscape.com
97898ac00a added a few comment tests
git-svn-id: svn://10.0.0.236/trunk@20235 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 09:07:37 +00:00
peterl%netscape.com
10b169bbbd Improved handling of bad properties
git-svn-id: svn://10.0.0.236/trunk@20234 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 08:37:52 +00:00
peterl%netscape.com
33444d5bfd added append struct value
git-svn-id: svn://10.0.0.236/trunk@20233 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 08:37:28 +00:00
peterl%netscape.com
4bc1a77489 added missing ToString case
git-svn-id: svn://10.0.0.236/trunk@20232 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 08:36:37 +00:00
alecf%netscape.com
3eaef57ed6 fix casting for strict compilers
git-svn-id: svn://10.0.0.236/trunk@20231 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 08:24:04 +00:00
alecf%netscape.com
c833d569c4 cast correctly to avoid confusing strict compilers
git-svn-id: svn://10.0.0.236/trunk@20230 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 08:23:36 +00:00
alecf%netscape.com
8966bc4b40 add a few more string cases to fix compilers who complain about ambiguous overloading
git-svn-id: svn://10.0.0.236/trunk@20229 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 08:22:47 +00:00
sfraser%netscape.com
384b9f6b4e Revert project back to 1.5 (remove cyeh's static lib targets, which broke the optimized build). On instruction from sar.
git-svn-id: svn://10.0.0.236/trunk@20228 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 06:50:04 +00:00
waldemar%netscape.com
f33d1fd371 First complete release
git-svn-id: svn://10.0.0.236/trunk@20227 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 06:42:20 +00:00
waldemar%netscape.com
d524d1607b Reorganized left-side-expression and suppressed unused nonterminal warnings
git-svn-id: svn://10.0.0.236/trunk@20226 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 06:41:43 +00:00
waldemar%netscape.com
b03844fe0f Added :spc
git-svn-id: svn://10.0.0.236/trunk@20225 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 06:40:53 +00:00
waldemar%netscape.com
a3902839d9 Added support for excluding some nonterminals from grammar
git-svn-id: svn://10.0.0.236/trunk@20224 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 06:39:58 +00:00
troy%netscape.com
bd78450e96 Changed GetNextSibling() to use a pointer argument instead of a reference
git-svn-id: svn://10.0.0.236/trunk@20223 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 06:13:38 +00:00
troy%netscape.com
339afcce8a Changed a bunch more nsIFrame member functions to be pointer arguments
instead of references


git-svn-id: svn://10.0.0.236/trunk@20222 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 05:38:18 +00:00
mcafee%netscape.com
d76d572b5a Unix, Win32 now get qsort out of mozilla/lib/xp/xp_qsort.c and mozilla/include/xp_qsort.h. Leaving XP_MAC here until the mac people figure this out, bug 2998 filed to pierre about this.
git-svn-id: svn://10.0.0.236/trunk@20221 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 04:33:45 +00:00
mcafee%netscape.com
37070ed319 Point Unix, Win32 at mozilla/include/xp_qsort
git-svn-id: svn://10.0.0.236/trunk@20220 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 04:29:17 +00:00
mcafee%netscape.com
c5ae175c14 Cleaning this Makefile up; removing dead rules, unused stuff
git-svn-id: svn://10.0.0.236/trunk@20219 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 04:26:53 +00:00
mcafee%netscape.com
6812881a0e removing unused rule
git-svn-id: svn://10.0.0.236/trunk@20218 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 04:23:40 +00:00
mcafee%netscape.com
b17310ba03 Fixing xpcom/reg breakage.
git-svn-id: svn://10.0.0.236/trunk@20217 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 04:19:23 +00:00
jband%netscape.com
03568c1065 NOT YET PART OF SEAMONKEY - prepped the four files for movement to libxpt, centralized/simplified access to services, fixed InterfaceInfoImpl::GetName, removed files I forgot to remove before
git-svn-id: svn://10.0.0.236/trunk@20216 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 04:17:53 +00:00
troy%netscape.com
dbedf1803d Changed GetFrameState() and GetFrameType() to use pointer arguments instead of
references


git-svn-id: svn://10.0.0.236/trunk@20215 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 04:17:06 +00:00
briano%netscape.com
2be995a545 Automated update
git-svn-id: svn://10.0.0.236/trunk@20214 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 04:15:35 +00:00
briano%netscape.com
379e584b92 Another minor tweak for BSD/OS (3.1).
git-svn-id: svn://10.0.0.236/trunk@20213 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 04:05:13 +00:00
troy%netscape.com
3635a7c72c Changed GetAdditionalChildListName() and FirstChild() to use ** instead
of *&


git-svn-id: svn://10.0.0.236/trunk@20212 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 02:25:01 +00:00
michaelp%netscape.com
9699371b8c added GetRects()/FreeRects() to nsIRegion. add GetDrawingSurface() to
nsIRenderingContext.


git-svn-id: svn://10.0.0.236/trunk@20211 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 02:15:47 +00:00
briano%netscape.com
dd19db0171 Automated update
git-svn-id: svn://10.0.0.236/trunk@20210 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 02:15:36 +00:00
briano%netscape.com
b2795bfed8 Added a feeble first attempt at handling BSDI BSD/OS.
git-svn-id: svn://10.0.0.236/trunk@20209 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 02:14:35 +00:00
dp%netscape.com
fbd9ebf114 Adding libreg as xpcom depends on it
git-svn-id: svn://10.0.0.236/trunk@20208 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 02:01:50 +00:00
akkana%netscape.com
fa04adcb99 Comment out ostream code on Linux for now
git-svn-id: svn://10.0.0.236/trunk@20207 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 01:55:42 +00:00
mcafee%netscape.com
0e9be6ddc6 More portable Makefile, and this one builds
git-svn-id: svn://10.0.0.236/trunk@20206 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 01:50:29 +00:00
troy%netscape.com
2af2ec249b Changed GetParent() to use ** instead of *&
git-svn-id: svn://10.0.0.236/trunk@20205 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 01:36:30 +00:00
mcafee%netscape.com
72c48ee8e7 Fixing windows breakage
git-svn-id: svn://10.0.0.236/trunk@20204 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 01:34:45 +00:00
mcafee%netscape.com
235cb9eb66 Wrapping tests up in ENABLE_TESTS
git-svn-id: svn://10.0.0.236/trunk@20203 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 01:21:39 +00:00
mscott%netscape.com
095504a872 Fix build breakage....for some reason it suddennly started having problems with LINEBREAK. I added a defintion here...although
it is also defined in nsMsgLinebuffer.cpp....seems like we want to find a generic place for this.


git-svn-id: svn://10.0.0.236/trunk@20202 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 01:16:37 +00:00
mcafee%netscape.com
0cc6721116 Wrapping tests in ENABLE_TESTS
git-svn-id: svn://10.0.0.236/trunk@20201 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 01:01:07 +00:00
mcafee%netscape.com
2fa35a3162 More portable way of writing this Makefile.
git-svn-id: svn://10.0.0.236/trunk@20200 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 00:49:34 +00:00
troy%netscape.com
8934624982 Changed some nsIFrame member functions to use ** instead of *& for OUT
paremeters


git-svn-id: svn://10.0.0.236/trunk@20199 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 00:42:56 +00:00
buster%netscape.com
4ed9a862df initial checkin of public table layout interfaces
git-svn-id: svn://10.0.0.236/trunk@20198 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 00:38:01 +00:00
michaelp%netscape.com
a2bd5d7922 fleshed out rect enumeration method.
git-svn-id: svn://10.0.0.236/trunk@20197 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 00:35:04 +00:00
ftang%netscape.com
f21bf31eb0 back up the #ifndef XP_UNIX
git-svn-id: svn://10.0.0.236/trunk@20196 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 00:35:02 +00:00
mcafee%netscape.com
96a55c36a5 un-hardcoding SOLARIS
git-svn-id: svn://10.0.0.236/trunk@20195 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 00:13:25 +00:00
waterson%netscape.com
ba3e4b0f20 Added bookmarks.html to the install.
git-svn-id: svn://10.0.0.236/trunk@20194 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 00:09:29 +00:00
alecf%netscape.com
0ae6479a1e fix dependancies for static libraries which build up shared libraries
git-svn-id: svn://10.0.0.236/trunk@20193 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 00:07:01 +00:00
akkana%netscape.com
625d626ffc Change stream ifdefs to be easier to follow; include debug code for Linux DoCopy(); comment out a bunch of lines that caused warnings
git-svn-id: svn://10.0.0.236/trunk@20192 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 00:06:19 +00:00
cyeh%netscape.com
fcd65c543a add static lib targets for source files.
git-svn-id: svn://10.0.0.236/trunk@20191 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 00:04:05 +00:00
briano%netscape.com
9a1606dbb2 Automated update
git-svn-id: svn://10.0.0.236/trunk@20190 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 00:00:50 +00:00
ftang%netscape.com
2996818b97 check in some changes
git-svn-id: svn://10.0.0.236/trunk@20189 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 23:57:14 +00:00
ftang%netscape.com
fa441ace42 fix xpcom code
git-svn-id: svn://10.0.0.236/trunk@20188 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 23:56:05 +00:00
ftang%netscape.com
4736a601af check in the implementation of General Category code
git-svn-id: svn://10.0.0.236/trunk@20187 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 23:52:36 +00:00
akkana%netscape.com
f8413c4ccd Separate gprof option from debug
git-svn-id: svn://10.0.0.236/trunk@20186 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 23:51:54 +00:00
ftang%netscape.com
8b5c24895c first check in
git-svn-id: svn://10.0.0.236/trunk@20185 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 23:51:43 +00:00
ftang%netscape.com
7088cd1bf8 make small changes
git-svn-id: svn://10.0.0.236/trunk@20184 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 23:51:02 +00:00
ftang%netscape.com
f2e4f73f72 reduce table size
git-svn-id: svn://10.0.0.236/trunk@20183 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 23:49:30 +00:00
mscott%netscape.com
9aa3de4341 Add compose/tests/smtp and compose/tests/compose to list of mail news directories.
git-svn-id: svn://10.0.0.236/trunk@20182 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 23:49:20 +00:00
ftang%netscape.com
f449c5a84e reduce the table size
git-svn-id: svn://10.0.0.236/trunk@20181 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 23:48:56 +00:00
briano%netscape.com
96d268d75c Automated update
git-svn-id: svn://10.0.0.236/trunk@20180 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 23:32:00 +00:00
dp%netscape.com
d4c5628835 Adding libreg
git-svn-id: svn://10.0.0.236/trunk@20179 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 23:29:48 +00:00
slamm%netscape.com
2860db776d Shorten the compile line. Add test and support for preprocessor '-include' flag
git-svn-id: svn://10.0.0.236/trunk@20178 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 23:24:12 +00:00
dp%netscape.com
faf9dec2f3 CFLAGS->DEFINES
git-svn-id: svn://10.0.0.236/trunk@20177 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 22:48:00 +00:00
dp%netscape.com
27d0742fde Adding libreg
git-svn-id: svn://10.0.0.236/trunk@20176 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 22:47:21 +00:00
mscott%netscape.com
7edacf7a1d Export nsSmtpProtocol.h.
git-svn-id: svn://10.0.0.236/trunk@20175 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 21:39:29 +00:00
mscott%netscape.com
9cf2df2097 Remove nsMsgCompFields.h from the export list...
git-svn-id: svn://10.0.0.236/trunk@20174 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 21:39:00 +00:00
dp%netscape.com
96174e85fa Commenting CreateInstance2().
git-svn-id: svn://10.0.0.236/trunk@20173 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 21:32:13 +00:00
erik%netscape.com
7fd758d256 disable this string bundle test until I figure out why Unix viewer crashes
git-svn-id: svn://10.0.0.236/trunk@20172 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 21:28:27 +00:00
dp%netscape.com
79ea35270e Removing wrong delete.
git-svn-id: svn://10.0.0.236/trunk@20171 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 21:21:30 +00:00
mscott%netscape.com
355b4331a7 Running SMTP urls should use a brand new transport and a brand new protocol instance for each url....
git-svn-id: svn://10.0.0.236/trunk@20170 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 21:19:09 +00:00
mscott%netscape.com
a6fedb424b Add some cleanup code to the protocol destructor....
git-svn-id: svn://10.0.0.236/trunk@20169 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 21:17:34 +00:00
dp%netscape.com
d1401ae1e7 Commenting FACTORY2
git-svn-id: svn://10.0.0.236/trunk@20168 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 21:06:34 +00:00
beard%netscape.com
95a77014e6 Removed an absolute path from optimized build's access paths. This could break the build.
git-svn-id: svn://10.0.0.236/trunk@20167 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 20:40:10 +00:00
dp%netscape.com
2dec274052 Major repository upgrade to use a presistent regitry. We use libreg/ directly (NR_*() functions) for now.
git-svn-id: svn://10.0.0.236/trunk@20166 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 20:31:24 +00:00
dp%netscape.com
c5216bcf50 Added new constructor that takes lastmodtime and size
git-svn-id: svn://10.0.0.236/trunk@20165 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 20:30:34 +00:00
dp%netscape.com
b2fdbf4cb4 variable id changes + commenting CreateInstance2()
git-svn-id: svn://10.0.0.236/trunk@20164 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 20:29:46 +00:00
dp%netscape.com
e205358e25 Hierarchy change for filemodifieddata and size
git-svn-id: svn://10.0.0.236/trunk@20163 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 20:28:54 +00:00
terry%netscape.com
676b7edbaf Figure out the secure URL in an apache-friendly manner.
git-svn-id: svn://10.0.0.236/trunk@20162 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 20:13:15 +00:00
alecf%netscape.com
9c60acb6ce update to new NSPR types, and make it build on Unix
git-svn-id: svn://10.0.0.236/trunk@20161 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 20:08:35 +00:00
erik%netscape.com
dc7eed33bc fixing the build bustage.
git-svn-id: svn://10.0.0.236/trunk@20160 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 20:01:44 +00:00
briano%netscape.com
36886026e8 Automated update
git-svn-id: svn://10.0.0.236/trunk@20159 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 19:45:41 +00:00
akkana%netscape.com
096e767f95 Add --enable-gprof flag to add -pg flag
git-svn-id: svn://10.0.0.236/trunk@20158 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 19:32:04 +00:00
erik%netscape.com
b2af9e1427 adding some string bundle testing code
git-svn-id: svn://10.0.0.236/trunk@20157 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 19:29:03 +00:00
erik%netscape.com
027b873ef5 adding viewer.properties to build for testing string bundle stuff
git-svn-id: svn://10.0.0.236/trunk@20156 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 19:27:04 +00:00
michaelp%netscape.com
2bd34cf543 added xregion.h (formerly known as region.h in the old xfe).
added support for enumerating over the rects of an XRegion.


git-svn-id: svn://10.0.0.236/trunk@20155 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 19:22:33 +00:00
erik%netscape.com
4d2b17f530 adding viewer.properties to build for testing string bundle stuff
git-svn-id: svn://10.0.0.236/trunk@20154 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 19:21:02 +00:00
terry%netscape.com
65c348f115 Last change wasn't working if grabbing multiple trees.
git-svn-id: svn://10.0.0.236/trunk@20153 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 19:13:40 +00:00
erik%netscape.com
acbb7712ae A new property file for "viewer", to test the string bundle stuff
git-svn-id: svn://10.0.0.236/trunk@20152 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 19:11:52 +00:00
kmcclusk%netscape.com
d2ec18b325 Added test_gfx to set of test files to export to res\samples
git-svn-id: svn://10.0.0.236/trunk@20151 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 18:41:47 +00:00
terry%netscape.com
e9f9c520c6 Don't put builds into quickparse that we have marked as "ignore".
git-svn-id: svn://10.0.0.236/trunk@20150 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 18:40:56 +00:00
kmcclusk%netscape.com
670fa86718 Added test_gfx.html file to test gfx rendering of form elements.
git-svn-id: svn://10.0.0.236/trunk@20149 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 18:36:04 +00:00
kmcclusk%netscape.com
35f21942b9 Undef'ed NS_GFX_RENDER_FORM_ELEMENTS
git-svn-id: svn://10.0.0.236/trunk@20148 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 18:31:41 +00:00
kmcclusk%netscape.com
15bf313676 Added rule for INPUT[type=radio] to set properties for gfx-rendered radio buttons.
git-svn-id: svn://10.0.0.236/trunk@20147 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 18:29:15 +00:00
kmcclusk%netscape.com
c5a5921a54 Added support to gfx-render radio buttons. Both checkboxes and radio buttons
now use CSS style to get colors for rendering. Checkboxes also use the CSS border rendering
code. Added New utility methods to nsFormControlFrame to PaintCircular backgrounds and
borders. Set compiler directive to gfx-render radiobuttons and checkboxes both for printing
and on-screen display.


git-svn-id: svn://10.0.0.236/trunk@20146 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 18:25:40 +00:00
rods%netscape.com
60ee060f62 Fixed problem with marshalling the window create method
git-svn-id: svn://10.0.0.236/trunk@20145 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 18:20:18 +00:00
ducarroz%netscape.com
c89e5197d3 Remove any reference to compose classes
git-svn-id: svn://10.0.0.236/trunk@20144 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 17:33:29 +00:00
kipp%netscape.com
7f58c1cf8f Whacked away nsBaseIBFrame and BLOCK_IS_INLINE cruft
git-svn-id: svn://10.0.0.236/trunk@20143 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 17:31:33 +00:00
kipp%netscape.com
ab01d56e79 Handle breaking before an anonymous block when the line isn't empty; push/pop inline reflow state so that floaters work properly
git-svn-id: svn://10.0.0.236/trunk@20142 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 17:31:14 +00:00
ftang%netscape.com
61f92897ed first check in
git-svn-id: svn://10.0.0.236/trunk@20141 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 16:04:07 +00:00
ftang%netscape.com
6b79d15f4c first chek in
git-svn-id: svn://10.0.0.236/trunk@20140 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 16:03:03 +00:00
ftang%netscape.com
8e43f2a2e9 check in interface and not working stub
git-svn-id: svn://10.0.0.236/trunk@20139 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 16:01:48 +00:00
ftang%netscape.com
624b1625b9 change ToTitle interface
git-svn-id: svn://10.0.0.236/trunk@20138 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 15:57:48 +00:00
terry%netscape.com
46b275078b Renamed "Rendering" to be "Compositor".
git-svn-id: svn://10.0.0.236/trunk@20137 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 15:48:30 +00:00
terry%netscape.com
371cb2fc61 Added FreeBSD.
git-svn-id: svn://10.0.0.236/trunk@20136 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 15:48:04 +00:00
shaver%netscape.com
f9888f9161 fix #define for generated headers
git-svn-id: svn://10.0.0.236/trunk@20135 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 15:30:31 +00:00
mcafee%netscape.com
5495555f65 Reverting back to 3.4
git-svn-id: svn://10.0.0.236/trunk@20134 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 12:27:07 +00:00
mcafee%netscape.com
09874be8dc Reverting back to 3.7
git-svn-id: svn://10.0.0.236/trunk@20133 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 12:26:27 +00:00
mcafee%netscape.com
18470b68ba reverting back to 3.2
git-svn-id: svn://10.0.0.236/trunk@20132 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 12:23:00 +00:00
mcafee%netscape.com
7b59ba0a02 Reverting back to 3.1
git-svn-id: svn://10.0.0.236/trunk@20131 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 12:18:30 +00:00
mcafee%netscape.com
68ad4de532 Solaris defines BROKEN_QSORT, removing explicit SOLARIS reference
git-svn-id: svn://10.0.0.236/trunk@20130 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 11:26:41 +00:00
mcafee%netscape.com
3e88623c12 Fixing mac bustage: XP_QSORT()
git-svn-id: svn://10.0.0.236/trunk@20129 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 11:22:47 +00:00
mcafee%netscape.com
d914fa40b4 Fixing XP_QSORT() breakage, we're using lib/xp/xp_qsort.cpp version now
git-svn-id: svn://10.0.0.236/trunk@20128 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 08:37:35 +00:00
grail%cafebabe.org
c193c19371 Layouts are now rearranged correctly.
git-svn-id: svn://10.0.0.236/trunk@20127 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 08:28:06 +00:00
mcafee%netscape.com
85a4bf1d8e Yanking XP_QSORT() out (Mac, Solaris) in favor of the version in /lib/xp/xp_qsort.c. Removing dead windows include files. a=pnunn@netscape.com (2998)
git-svn-id: svn://10.0.0.236/trunk@20126 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 08:19:24 +00:00
leaf%mozilla.org
0c9b70f32b Adding the glib/gtk+ updating script. and the directory readme.
git-svn-id: svn://10.0.0.236/trunk@20125 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 08:09:58 +00:00
grail%cafebabe.org
e174d58ed7 Fix minor "bug" in xml description.
git-svn-id: svn://10.0.0.236/trunk@20124 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 08:06:30 +00:00
grail%cafebabe.org
1e9c0a90e0 Build a panel presumably for dialogs and such.
git-svn-id: svn://10.0.0.236/trunk@20123 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 08:06:09 +00:00
grail%cafebabe.org
b2169c29b8 Restructured to accomodate parent class XMLWidgetBuilder.
git-svn-id: svn://10.0.0.236/trunk@20122 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 08:05:42 +00:00
grail%cafebabe.org
cb5423e712 Base object for UI builders from XML descriptions.
git-svn-id: svn://10.0.0.236/trunk@20121 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 08:05:17 +00:00
grail%cafebabe.org
3baae40304 Fixed char values used where bytes should be for switch
statement. Language sanity issues.


git-svn-id: svn://10.0.0.236/trunk@20120 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 08:04:42 +00:00
jband%netscape.com
c7dda3e1f6 NOT YET PART OF SEAMONKEY - now using types based on xpcom/src/libxpt/public/xpt_struct.h. Using nsIAllocator (which has an implementation hacked in in test/TestXPC.cpp - since the real one in xpcom/src is not being registered and used)
git-svn-id: svn://10.0.0.236/trunk@20119 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 07:31:00 +00:00
fur%netscape.com
1ba5cdbaf6 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@20118 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 06:47:12 +00:00
fur%netscape.com
1a22639c79 Make g++ default C++ compiler
git-svn-id: svn://10.0.0.236/trunk@20117 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 06:47:00 +00:00
fur%netscape.com
534006a292 Remove C++ comment in C file
git-svn-id: svn://10.0.0.236/trunk@20116 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 06:46:12 +00:00
fur%netscape.com
310da7ba2f Kill routine that has name conflict w/ libc
git-svn-id: svn://10.0.0.236/trunk@20115 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 05:47:33 +00:00
fur%netscape.com
043794682b Wrong path for Packages binaries
git-svn-id: svn://10.0.0.236/trunk@20114 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 05:46:47 +00:00
troy%netscape.com
90c9d94a64 Added GetFrameType() member function
git-svn-id: svn://10.0.0.236/trunk@20113 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 05:44:13 +00:00
troy%netscape.com
5b4c0b3c70 Fix for bug #2661. Now handles the case where the root-frame has a fixed
height


git-svn-id: svn://10.0.0.236/trunk@20112 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 05:09:39 +00:00
bienvenu%netscape.com
37753945fc put linebreak defines here since I can't put them in nsCRT.h
git-svn-id: svn://10.0.0.236/trunk@20110 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 05:07:21 +00:00
bienvenu%netscape.com
375440882d back out linebreak defines
git-svn-id: svn://10.0.0.236/trunk@20109 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 05:06:35 +00:00
troy%netscape.com
80a11a7ad3 Fixed a silly error I introduced in the previous check-in
git-svn-id: svn://10.0.0.236/trunk@20108 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 05:01:11 +00:00
waterson%netscape.com
292b375a2f Made nsRDFContentUtils routines static members of a class. Made the tree builder more polite about creating cells. Made the tree builder look at the <xul:tree>'s <xul:treecol> elements for column info.
git-svn-id: svn://10.0.0.236/trunk@20107 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 04:59:11 +00:00
bienvenu%netscape.com
0df21a1729 add line buffering class
git-svn-id: svn://10.0.0.236/trunk@20106 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 04:46:12 +00:00
tague%netscape.com
a1e72bba1e Added autoregistration to Windows locale DLL
git-svn-id: svn://10.0.0.236/trunk@20105 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 04:44:23 +00:00
bienvenu%netscape.com
d280b1d9d7 add platform specific linebreak defines
git-svn-id: svn://10.0.0.236/trunk@20104 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 04:43:58 +00:00
tague%netscape.com
45bbaba878 Added XPCOM autoregistration to the Mac version of the locale shared object.
git-svn-id: svn://10.0.0.236/trunk@20103 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 04:31:32 +00:00
troy%netscape.com
c9a7e63cc4 Fixed a problem where absolutely positioned child frames with an 'auto'
offset weren't getting re-positioned during an incremental reflow of the
flowed items


git-svn-id: svn://10.0.0.236/trunk@20102 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 04:31:09 +00:00
warren%netscape.com
3da87a4b64 Moved NS_ERROR_MODULE_MAILNEWS to xpcom/public/nsError.h
git-svn-id: svn://10.0.0.236/trunk@20101 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 04:28:35 +00:00
warren%netscape.com
1ccbf85b35 Added NS_ERROR_MODULE_MAILNEWS
git-svn-id: svn://10.0.0.236/trunk@20100 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 04:28:17 +00:00
warren%netscape.com
3c55c995a0 Changed uses of MsgErr to nsresult. Moved CR LF macros to base/src/nsCRT.h.
git-svn-id: svn://10.0.0.236/trunk@20099 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 04:20:46 +00:00
warren%netscape.com
4f7018f975 Added CR LF defines for general use.
git-svn-id: svn://10.0.0.236/trunk@20098 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 04:19:58 +00:00
troy%netscape.com
d53851dcae Turned off some code until the frame construction code handles the case
where the replaced element that can't be rendered is floated or absolutely
positioned


git-svn-id: svn://10.0.0.236/trunk@20097 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 04:05:21 +00:00
mscott%netscape.com
64bf413f6a Bring first part of the smtp service online. We can now read in a file name and send the message to the SMTP server.
git-svn-id: svn://10.0.0.236/trunk@20096 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 03:51:50 +00:00
mscott%netscape.com
32270a048a Removing from directory as this has been moved to tests\smtp\smtpTest.cpp
git-svn-id: svn://10.0.0.236/trunk@20095 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 03:50:32 +00:00
mscott%netscape.com
75366daa97 Build nsSmtpProtocol.cpp...
git-svn-id: svn://10.0.0.236/trunk@20094 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 03:49:59 +00:00
mscott%netscape.com
6534d0c80b New method to post a file containing a message.
git-svn-id: svn://10.0.0.236/trunk@20093 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 03:49:31 +00:00
mscott%netscape.com
f231a9a4cb Many many changes. Most notably code to correctly parse a file containing an email message, append appropriate CRLFs and transmit the file to the SMTP server.
git-svn-id: svn://10.0.0.236/trunk@20092 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 03:48:56 +00:00
mscott%netscape.com
58d8ef8d01 Small changes. Added support for getting/setting a file name for the file to be posted.
git-svn-id: svn://10.0.0.236/trunk@20091 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 03:46:34 +00:00
warren%netscape.com
86885e81e1 Broke out IMAP stuff.
git-svn-id: svn://10.0.0.236/trunk@20090 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 03:45:02 +00:00
mscott%netscape.com
3174ee1055 Add accessors for getting/setting the file name for the email message to be posted.
git-svn-id: svn://10.0.0.236/trunk@20089 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 03:44:47 +00:00
srinivas%netscape.com
e0a0cd6cc0 Display nspr version info. by default.
git-svn-id: svn://10.0.0.236/trunk@20088 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 03:34:09 +00:00
srinivas%netscape.com
e2b9415d7c Code cleanup.
git-svn-id: svn://10.0.0.236/trunk@20087 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 03:30:29 +00:00
srinivas%netscape.com
269ea070e6 Reduce default thread count.
git-svn-id: svn://10.0.0.236/trunk@20086 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 03:29:40 +00:00
tague%netscape.com
b8067fe39e Added autoregistration to UNIX .so
git-svn-id: svn://10.0.0.236/trunk@20085 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 03:24:34 +00:00
mscott%netscape.com
7d91171fa6 Add values for CRLF....
git-svn-id: svn://10.0.0.236/trunk@20084 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 03:23:10 +00:00
mscott%netscape.com
4ef71a6086 Oops...one of my changes got lost...if you are reading in user data, don't write it into m_userData unless the user
actually entered a value...if you do write in it, we step on the default value which is alredy in m_userData...


git-svn-id: svn://10.0.0.236/trunk@20083 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 03:21:34 +00:00
waterson%netscape.com
7cc4e877a6 Removed tree widget demo: obsolete.
git-svn-id: svn://10.0.0.236/trunk@20082 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 03:17:03 +00:00
waterson%netscape.com
eeb0448b81 Removed RDF crap from nsSetupRegistry and made it automagically work by handling NSRegisterSelf() in rdf.dll
git-svn-id: svn://10.0.0.236/trunk@20081 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 03:16:51 +00:00
waterson%netscape.com
0893400c85 RDFDocument is now XULDocument.
git-svn-id: svn://10.0.0.236/trunk@20080 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 03:16:17 +00:00
waterson%netscape.com
991f41cbc8 Whacked to get RDF/XUL working right, with local content mderged in.
git-svn-id: svn://10.0.0.236/trunk@20079 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 03:15:41 +00:00
waterson%netscape.com
0c1cbba8b5 Moved RDF to after Layout TEMPORARILY while I static link to layout.dll for HTML elements. This'll go away once Vidur comes back from W3C and we figure out how to do this the right way.
git-svn-id: svn://10.0.0.236/trunk@20077 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 03:06:59 +00:00
alecf%netscape.com
9d63499817 Some headers aren't required after all.
reorder some of them and change HEADER_TOTAL to HEADER_LAST for consistency.


git-svn-id: svn://10.0.0.236/trunk@20076 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 02:55:39 +00:00
alecf%netscape.com
4c46192950 terminate posts with "."
move FORCE_PR_LOG above the include for msgCore so that we can log in release builds
remove unnecessary assert
get ready for the next state after we post the message


git-svn-id: svn://10.0.0.236/trunk@20075 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 02:54:44 +00:00
alecf%netscape.com
ed6c90e4cf fix up test harness for posting
git-svn-id: svn://10.0.0.236/trunk@20074 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 02:49:58 +00:00
warren%netscape.com
ea5a4dd249 Fixed to build on Windows.
git-svn-id: svn://10.0.0.236/trunk@20073 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 02:23:39 +00:00
ducarroz%netscape.com
787fd14b47 remove temporary directory compose
git-svn-id: svn://10.0.0.236/trunk@20072 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 02:14:58 +00:00
ducarroz%netscape.com
3dcdee1044 Original file was moved into .\smtp, this is in fact a first check in
git-svn-id: svn://10.0.0.236/trunk@20071 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 01:45:55 +00:00
ducarroz%netscape.com
4b6563df51 Add support for msgCompose & msgCompFields, change library name to compose instance of smtp
git-svn-id: svn://10.0.0.236/trunk@20070 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 01:42:18 +00:00
ducarroz%netscape.com
5b6c9575f2 Add support for msgCompose and msgCompFields
git-svn-id: svn://10.0.0.236/trunk@20069 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 01:40:25 +00:00
ducarroz%netscape.com
4f9ef9b8bd Add support for nsIMsgCompose & nsIMsgCompFields
git-svn-id: svn://10.0.0.236/trunk@20068 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 01:36:14 +00:00
ducarroz%netscape.com
1116648212 Add class id for msgcompose and msgcompfields
git-svn-id: svn://10.0.0.236/trunk@20067 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 01:34:53 +00:00
alecf%netscape.com
a0557c372e Ignore UNIX generated makefiles
git-svn-id: svn://10.0.0.236/trunk@20066 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 01:33:43 +00:00
ducarroz%netscape.com
19710e6cb7 add library compose.lib
git-svn-id: svn://10.0.0.236/trunk@20065 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 01:33:33 +00:00
ducarroz%netscape.com
410a4fb3b2 add directory compose to build process
git-svn-id: svn://10.0.0.236/trunk@20064 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 01:32:15 +00:00
ducarroz%netscape.com
7371a0b20f Initial check in
git-svn-id: svn://10.0.0.236/trunk@20063 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 01:28:32 +00:00
mscott%netscape.com
cc0c80339a Ooops...forgot to check this file in. I changed the arguments for ExtractRFC822Addresses
git-svn-id: svn://10.0.0.236/trunk@20062 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 01:23:34 +00:00
waterson%netscape.com
c042191a3f Exposed NS_CreateHTMLContent() as a temporary hack to get HTML-in-RDF/XUL working. Will re-visit when Vidur comes back.
git-svn-id: svn://10.0.0.236/trunk@20061 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 00:26:50 +00:00
ducarroz%netscape.com
fa79039824 Initial check in
git-svn-id: svn://10.0.0.236/trunk@20060 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 00:15:59 +00:00
troy%netscape.com
0b0f1e128c Fix for bug #3027. Correctly computes 'auto' margin values and allows them
to be negative


git-svn-id: svn://10.0.0.236/trunk@20059 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 00:15:43 +00:00
coop%netscape.com
4c886d1021 NOT YET PART OF SEAMONKEY:
* added function XPT_GetInterfaceIndexByName
* replaced remaining occurences of 'namespace' with 'name_space' to keep C++ happy
* added xpt_dump display for param types (in/out/retval)
* changed xpt_dump handling for wchar_t strings
* use shaver's print_IID function when displaying type descriptors
* removed DoAnnotations (not used)


git-svn-id: svn://10.0.0.236/trunk@20058 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 00:14:38 +00:00
fur%netscape.com
5c43b2b2c8 Gratuitous change to work around bug that appears in egcs 1.0.3
git-svn-id: svn://10.0.0.236/trunk@20056 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 00:08:41 +00:00
ducarroz%netscape.com
d4827fc15b Initial check in
git-svn-id: svn://10.0.0.236/trunk@20055 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 00:08:18 +00:00
pinkerton%netscape.com
74d0854e19 Rewrote reflow to handle collapsed/hidden toolbars correctly (but still not operational because of layout bugs).
git-svn-id: svn://10.0.0.236/trunk@20054 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 00:07:49 +00:00
fur%netscape.com
0924db5b2c Quash egcs warning
git-svn-id: svn://10.0.0.236/trunk@20053 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 00:07:20 +00:00
ducarroz%netscape.com
00f20e06da Initial check in
This file is temporary!


git-svn-id: svn://10.0.0.236/trunk@20052 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 00:05:39 +00:00
fur%netscape.com
c997567b07 Use OBJDIR naming scheme that is the same as NSPR's
git-svn-id: svn://10.0.0.236/trunk@20051 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 00:02:19 +00:00
fur%netscape.com
32a58be443 mkdepend rules now work again
git-svn-id: svn://10.0.0.236/trunk@20050 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 00:01:56 +00:00
fur%netscape.com
d48f035ca7 Don't assume that gcc is C compiler when computing dependencies
git-svn-id: svn://10.0.0.236/trunk@20049 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-09 00:01:02 +00:00
fur%netscape.com
4f0ec63e11 Got rid of problematic -fexceptions flag
git-svn-id: svn://10.0.0.236/trunk@20048 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 23:59:19 +00:00
fur%netscape.com
6303e2d00a Get rid of classpath during header generation. For now, depend on setting of CLASSPATH env variable.
git-svn-id: svn://10.0.0.236/trunk@20047 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 23:58:16 +00:00
fur%netscape.com
f1102dda23 Replaced outdated rules w/ new rules that are identical to NSPR's
git-svn-id: svn://10.0.0.236/trunk@20046 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 23:57:21 +00:00
racham%netscape.com
b49ac588de Widget name conflict resolved
git-svn-id: svn://10.0.0.236/trunk@20045 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 23:18:56 +00:00
alecf%netscape.com
54e5dd6ebc first shot at NNTP Newsgroup Post implementation...still have a few kinks to work out
git-svn-id: svn://10.0.0.236/trunk@20044 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 23:09:26 +00:00
alecf%netscape.com
5de0a0b637 make this newsheader valid for now
git-svn-id: svn://10.0.0.236/trunk@20043 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 23:05:05 +00:00
rods%netscape.com
ce29c66aab Back to 1.1 (sort of)
git-svn-id: svn://10.0.0.236/trunk@20040 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 22:15:08 +00:00
rods%netscape.com
170fe0fc97 Changed IIDs to be unique
git-svn-id: svn://10.0.0.236/trunk@20039 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 22:11:04 +00:00
waterson%netscape.com
29ef8e898c Fix strncmp() routines to handle unsigned integers properly. r=linss, a=sar.
git-svn-id: svn://10.0.0.236/trunk@20037 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 22:01:08 +00:00
jband%netscape.com
ebc5ecdc49 NOT PART OF SEAMONKEY - a bunch of fixes to get it building on win32
git-svn-id: svn://10.0.0.236/trunk@20036 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 21:47:35 +00:00
terry%netscape.com
305a9167c5 Added FreeBSD as a legal op_sys.
git-svn-id: svn://10.0.0.236/trunk@20035 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 21:12:31 +00:00
leaf%mozilla.org
a2f7523c10 mozilla/.cvsignore should get pulled
git-svn-id: svn://10.0.0.236/trunk@20033 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 20:43:24 +00:00
srinivas%netscape.com
24697ab983 Reduce default values of counters.
git-svn-id: svn://10.0.0.236/trunk@20030 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 20:28:30 +00:00
leaf%mozilla.org
fac186c4ad taking out configure (we want it to get updated)
git-svn-id: svn://10.0.0.236/trunk@20029 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 20:28:27 +00:00
srinivas%netscape.com
af87a2f248 Code cleanup.
git-svn-id: svn://10.0.0.236/trunk@20028 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 20:27:02 +00:00
srinivas%netscape.com
e1f581ea95 Build additional tests
git-svn-id: svn://10.0.0.236/trunk@20026 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 20:25:05 +00:00
briano%netscape.com
4fbdc2fc0f Automated update
git-svn-id: svn://10.0.0.236/trunk@20022 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 20:02:38 +00:00
alecf%netscape.com
6368fd01a7 add update-XTERM support to makefile code that enters directory, and update XPIDL rule to use new syntax
git-svn-id: svn://10.0.0.236/trunk@20021 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 19:59:25 +00:00
alecf%netscape.com
66e8dc8d8a add update_xterm_title support to autoconf build
git-svn-id: svn://10.0.0.236/trunk@20020 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 19:57:15 +00:00
cyeh%netscape.com
5342674ca9 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@20019 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 19:56:02 +00:00
alecf%netscape.com
26cc387729 add new mail/news Makefiles to build list
git-svn-id: svn://10.0.0.236/trunk@20018 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 19:55:35 +00:00
shaver%netscape.com
165ac99ba0 move includes outside #ifdef for precompiled-header love, also PR_EXTERN_C
git-svn-id: svn://10.0.0.236/trunk@20017 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 19:48:48 +00:00
cyeh%netscape.com
59b7239e67 adding readme to explain what is in this directory
git-svn-id: svn://10.0.0.236/trunk@20016 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 19:37:56 +00:00
nhotta%netscape.com
48d61a4757 Output data print format change.
git-svn-id: svn://10.0.0.236/trunk@20015 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 19:21:44 +00:00
kipp%netscape.com
5aab0b92f0 Disable auto-registration of dll's for unix for now
git-svn-id: svn://10.0.0.236/trunk@20014 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 19:16:29 +00:00
sar%netscape.com
670211edd8 Initial checkin of test batch files.
git-svn-id: svn://10.0.0.236/trunk@20012 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 19:07:42 +00:00
ftang%netscape.com
801a4fe99f change upper and lower case operation to call unicharutil for the nonASCII case
git-svn-id: svn://10.0.0.236/trunk@20011 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 18:57:21 +00:00
terry%netscape.com
9c8f73a8f0 Patch by Patrick Amiel <amielp@netscape.com> -- spaces in filenames
was confusing some clients.  Made the JavaScript a bit more paranoid.


git-svn-id: svn://10.0.0.236/trunk@20010 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 18:56:24 +00:00
shaver%netscape.com
874949f141 Windows make goop
git-svn-id: svn://10.0.0.236/trunk@20009 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 18:34:54 +00:00
leaf%mozilla.org
cd319ad609 nspr should be getting pulled from the tip.
git-svn-id: svn://10.0.0.236/trunk@20008 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 18:22:36 +00:00
kipp%netscape.com
e5625c0d3e Fixed exit crash by no longer addref'ing the viewer; rewrote regression comparision code; removed filter stuff
git-svn-id: svn://10.0.0.236/trunk@20007 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 17:57:46 +00:00
kipp%netscape.com
eec0c667b8 Removed obsolete -filter argument
git-svn-id: svn://10.0.0.236/trunk@20006 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 17:57:00 +00:00
kipp%netscape.com
ea9460a146 Tweak regression data output
git-svn-id: svn://10.0.0.236/trunk@20005 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 17:56:23 +00:00
kipp%netscape.com
b8038d013a Revamp regression data dumping
git-svn-id: svn://10.0.0.236/trunk@20004 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 17:56:00 +00:00
kipp%netscape.com
ede9d759c2 Implement tree diffing and dumping of regression data
git-svn-id: svn://10.0.0.236/trunk@20003 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 17:55:29 +00:00
kipp%netscape.com
576d6d7c77 Revised API
git-svn-id: svn://10.0.0.236/trunk@20002 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 17:55:08 +00:00
shaver%netscape.com
c58a8bcaff Fixed native handling.
IDL-in-comments works again.
Quell some warnings (now -Wall happy!).


git-svn-id: svn://10.0.0.236/trunk@20001 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 17:47:44 +00:00
kin%netscape.com
da4ee1e1f6 Added test cases for TransactionManager's BeginBatch() and EndBatch() methods.
git-svn-id: svn://10.0.0.236/trunk@20000 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 17:30:30 +00:00
kin%netscape.com
1053817440 Added BeginBatch(), EndBatch(), BeginTransaction() and EndTransaction()
methods.


git-svn-id: svn://10.0.0.236/trunk@19999 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 17:29:43 +00:00
kin%netscape.com
df1d7e2808 Added BeginBatch(), EndBatch(), BeginTransaction() and EndTransaction()
methods. Modified Do() method to use Begin/EndTransaction().


git-svn-id: svn://10.0.0.236/trunk@19998 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 17:28:33 +00:00
kin%netscape.com
028413a836 Changed all occurences of !NS_SUCCEEDED() to NS_FAILED().
git-svn-id: svn://10.0.0.236/trunk@19997 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 17:28:08 +00:00
kin%netscape.com
f349160857 Added GetNumberOfChildren() method. Changed all occurences of !NS_SUCCEEDED()
to NS_FAILED(). Modified GetNumberOfUndoItems() and GetNumberOfRedoItems() to
handle the case where their stack is NULL.


git-svn-id: svn://10.0.0.236/trunk@19996 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 17:27:42 +00:00
dcone%netscape.com
13c504c824 Fixed bug
git-svn-id: svn://10.0.0.236/trunk@19995 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 17:23:59 +00:00
dcone%netscape.com
08e08e24bc Took out an method not used, that broke build
git-svn-id: svn://10.0.0.236/trunk@19994 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 17:13:33 +00:00
dcone%netscape.com
a583239a27 cleanup of nsIImage class. There were routines and methods no longer used or needed.
git-svn-id: svn://10.0.0.236/trunk@19993 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 16:34:56 +00:00
shaver%netscape.com
22f1e69f02 Added XPT_InterfaceDescriptorAddMethods to grow the method table.
Removed unused XPT_ALLOC macro.
Move XPT_SetDataOffset calls into XPT_DoHeader so that the API consumer doesn't
need to know about header sizing and IDE layout guck.
Handle NULL namespaces and interface_directory bits snd idents better.
Made xpt_dump show the the IID for interfaces.


git-svn-id: svn://10.0.0.236/trunk@19992 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 16:30:22 +00:00
mcafee%netscape.com
8dfb112feb Woops, no tests directory here
git-svn-id: svn://10.0.0.236/trunk@19991 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 09:44:22 +00:00
mcafee%netscape.com
71351e6450 Ignore generated files
git-svn-id: svn://10.0.0.236/trunk@19988 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 08:46:17 +00:00
mcafee%netscape.com
03650d4867 ignore genereated files
git-svn-id: svn://10.0.0.236/trunk@19987 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 08:26:34 +00:00
mcafee%netscape.com
69521dd5d3 Adding widget, scribble to tests; these are building on both Linux & Solaris
git-svn-id: svn://10.0.0.236/trunk@19986 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 08:00:53 +00:00
blizzard%redhat.com
d5775fb626 back out akk's commented out menubar call. the looping has been fixed.
git-svn-id: svn://10.0.0.236/trunk@19985 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 03:41:10 +00:00
mscott%netscape.com
2d14ac1d51 Updating with changes for new nsISmtpUrl interface...
git-svn-id: svn://10.0.0.236/trunk@19984 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 01:36:57 +00:00
mscott%netscape.com
8663961bdf More conversion changes from old smtp code to the working in the new world...
git-svn-id: svn://10.0.0.236/trunk@19983 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 01:36:38 +00:00
mscott%netscape.com
2bf496221b Added more interface methods for a message....
git-svn-id: svn://10.0.0.236/trunk@19982 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 01:35:57 +00:00
bienvenu%netscape.com
03a4185f8a add more flag setting stuff, including local mail flag handling
git-svn-id: svn://10.0.0.236/trunk@19981 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 00:46:47 +00:00
bienvenu%netscape.com
80cab90674 add runtime only define
git-svn-id: svn://10.0.0.236/trunk@19980 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 00:45:46 +00:00
troy%netscape.com
703dbaf64b Fix for bug #2993. Made sure that 'offsets' are relative to containing block's
padding edge and not the containing block's border edge


git-svn-id: svn://10.0.0.236/trunk@19979 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 00:32:02 +00:00
mscott%netscape.com
3b7c0794b8 Add the return value to ParseRFC822Addresses. the return value is the number of addresses....
git-svn-id: svn://10.0.0.236/trunk@19978 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 00:16:21 +00:00
bienvenu%netscape.com
75b139baef add local mail folder summary spec
git-svn-id: svn://10.0.0.236/trunk@19977 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 00:13:59 +00:00
bienvenu%netscape.com
1e27a68010 add local folder summary spec class
git-svn-id: svn://10.0.0.236/trunk@19976 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 00:06:41 +00:00
bienvenu%netscape.com
977cf5f42a local folder header strings, e.g., x-mozilla-status
git-svn-id: svn://10.0.0.236/trunk@19975 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-08 00:03:56 +00:00
mcafee%netscape.com
9302e4296a nettest now builds on Solaris
git-svn-id: svn://10.0.0.236/trunk@19974 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 21:55:34 +00:00
peterl%netscape.com
5f1a886f61 selector text notes
git-svn-id: svn://10.0.0.236/trunk@19973 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 21:48:45 +00:00
peterl%netscape.com
9cd5ff0a00 added capturing selector source text (to preserve namespace prefixes)
git-svn-id: svn://10.0.0.236/trunk@19972 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 21:48:27 +00:00
peterl%netscape.com
97c2dbe99d Added token append to string
Improved handling of bad strings
Improved handling of escapes


git-svn-id: svn://10.0.0.236/trunk@19971 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 21:47:48 +00:00
mcafee%netscape.com
98f5c9dd3d Get scribble to build on Solaris
git-svn-id: svn://10.0.0.236/trunk@19970 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 13:12:08 +00:00
mcafee%netscape.com
a36609968c nsIWin32Locale.h is, uh, Win32-only :-)
git-svn-id: svn://10.0.0.236/trunk@19969 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 12:29:31 +00:00
mcafee%netscape.com
de72e24a74 Wrapping tests with ENABLE_TESTS
git-svn-id: svn://10.0.0.236/trunk@19968 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 12:13:23 +00:00
mcafee%netscape.com
0e3b3bacd2 Wrap tests in ENABLE_TESTS ifdef
git-svn-id: svn://10.0.0.236/trunk@19967 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 11:58:29 +00:00
mcafee%netscape.com
0dfafd06f9 Wrap robot in ENABLE_TESTS ifdef
git-svn-id: svn://10.0.0.236/trunk@19966 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 11:53:30 +00:00
mcafee%netscape.com
7837f6d907 Adding robot to unix build
git-svn-id: svn://10.0.0.236/trunk@19965 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 11:38:47 +00:00
mcafee%netscape.com
b9f4f0dd71 Adding nsIDTDDebug.h to unix exports so we can build the robot.
git-svn-id: svn://10.0.0.236/trunk@19964 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 11:36:31 +00:00
mcafee%netscape.com
c38de251b2 Adding tests to Solaris build
git-svn-id: svn://10.0.0.236/trunk@19963 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 10:03:03 +00:00
mcafee%netscape.com
fd744051d3 Two versions of XP_QSORT(), switching Solaris from the libimg version to the xp version
git-svn-id: svn://10.0.0.236/trunk@19962 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 09:30:51 +00:00
mcafee%netscape.com
548958d0f3 Solaris isn't building yet, backing this out
git-svn-id: svn://10.0.0.236/trunk@19960 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 03:45:42 +00:00
grail%cafebabe.org
e50f5c55aa Patch from Edwin Woudt to start transition to Java 2 as well as
language sanity.


git-svn-id: svn://10.0.0.236/trunk@19959 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 03:37:37 +00:00
grail%cafebabe.org
93491aafd4 Patch from Joel York to fill in missing details on OS/2 setup.
git-svn-id: svn://10.0.0.236/trunk@19958 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 03:36:19 +00:00
blizzard%redhat.com
14d845a06b looping fixes. resizing still not 100% but we're getting there.
git-svn-id: svn://10.0.0.236/trunk@19957 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 03:03:07 +00:00
briano%netscape.com
2cece923b1 Automated update
git-svn-id: svn://10.0.0.236/trunk@19956 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 02:15:35 +00:00
mcafee%netscape.com
9f4aa852a8 Sigh, Solaris not building
git-svn-id: svn://10.0.0.236/trunk@19955 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 02:13:25 +00:00
mscott%netscape.com
5e4c2de737 Add mailnews/compose directories...
git-svn-id: svn://10.0.0.236/trunk@19954 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 02:08:00 +00:00
mscott%netscape.com
e59ca19d8c First checked in.
git-svn-id: svn://10.0.0.236/trunk@19953 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 02:07:22 +00:00
mscott%netscape.com
2731cf4703 First time checked in.
git-svn-id: svn://10.0.0.236/trunk@19952 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 02:06:59 +00:00
mscott%netscape.com
f00a108a93 First check in...
git-svn-id: svn://10.0.0.236/trunk@19951 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 02:05:53 +00:00
mscott%netscape.com
083a1cde2e Initialize a variable....
git-svn-id: svn://10.0.0.236/trunk@19950 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 02:05:28 +00:00
mscott%netscape.com
0469b21d36 First checked in.
git-svn-id: svn://10.0.0.236/trunk@19949 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 01:50:40 +00:00
mscott%netscape.com
4be77da55a First checked. Formations of a new smtp protocol class.
git-svn-id: svn://10.0.0.236/trunk@19948 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 01:48:57 +00:00
mscott%netscape.com
2800b91dc1 Implementation of nsISmtpUrl.
git-svn-id: svn://10.0.0.236/trunk@19947 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 01:48:11 +00:00
mscott%netscape.com
5f581cabad First pass at an SmtpUrl interface...still need to add acessors for post data....
git-svn-id: svn://10.0.0.236/trunk@19946 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 01:46:20 +00:00
mscott%netscape.com
33c5a1f11e Include "msgCore.h" at the top of the source file to utilize pre-compiled headers...
git-svn-id: svn://10.0.0.236/trunk@19945 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 01:19:48 +00:00
mscott%netscape.com
f10ef42ade Include "msgCore.h" as the first file in every source file to utilize precompiled headers...
git-svn-id: svn://10.0.0.236/trunk@19944 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 01:16:26 +00:00
mscott%netscape.com
acee8de036 Include msgCore.h as first include file for use as a precompiled header...
git-svn-id: svn://10.0.0.236/trunk@19943 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 01:11:39 +00:00
mcafee%netscape.com
ee6caf9c4b Adding tests to match Win32
git-svn-id: svn://10.0.0.236/trunk@19942 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 00:54:52 +00:00
mcafee%netscape.com
be7d2cb72a Brief comment about fullcircle
git-svn-id: svn://10.0.0.236/trunk@19941 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 00:40:41 +00:00
mcafee%netscape.com
d9884cfb5d Adding tests to build to match Win32
git-svn-id: svn://10.0.0.236/trunk@19940 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 00:20:29 +00:00
mcafee%netscape.com
f05142f51e fe_GetConfigDir() is stubbed out in prefs now
git-svn-id: svn://10.0.0.236/trunk@19939 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-07 00:17:55 +00:00
dp%netscape.com
c8ec2db41a library no longer a member of FactoryEntry. Removed windows specific code for operating on windows registry.
git-svn-id: svn://10.0.0.236/trunk@19938 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 23:45:19 +00:00
dp%netscape.com
461f88eff7 Beauty is the essence of life
git-svn-id: svn://10.0.0.236/trunk@19937 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 23:23:58 +00:00
dp%netscape.com
65123fba41 PRTime is 64 bit. Cant use ==. Using LL_EQ macro.
git-svn-id: svn://10.0.0.236/trunk@19936 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 21:24:52 +00:00
dp%netscape.com
fd364b15d8 satisfy mac compiler
git-svn-id: svn://10.0.0.236/trunk@19935 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 21:19:11 +00:00
dp%netscape.com
b27aa3660d Fixing ptr==int comparisons to satify linux compilers
git-svn-id: svn://10.0.0.236/trunk@19934 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 20:53:42 +00:00
dp%netscape.com
ae5ca54d8e Auto registration of xpcom components
git-svn-id: svn://10.0.0.236/trunk@19933 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 20:43:10 +00:00
dp%netscape.com
e32442b816 Auto registration of xpcom components.
git-svn-id: svn://10.0.0.236/trunk@19932 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 20:39:40 +00:00
dp%netscape.com
0f4ca4981d Fixing warnings on order of default initialization
git-svn-id: svn://10.0.0.236/trunk@19931 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 20:27:16 +00:00
dp%netscape.com
098fef3119 Adding default pathlist
git-svn-id: svn://10.0.0.236/trunk@19930 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 20:26:15 +00:00
pavlov%pavlov.net
af90d9f892 file widget works for the most part
git-svn-id: svn://10.0.0.236/trunk@19929 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 19:38:30 +00:00
pavlov%pavlov.net
9bda7493f4 remove the nsWidget * cast on the nsFileWidget
git-svn-id: svn://10.0.0.236/trunk@19928 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 19:22:25 +00:00
pavlov%pavlov.net
794ecdd8fe file selector work. almost working.
git-svn-id: svn://10.0.0.236/trunk@19927 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 19:21:33 +00:00
wtc%netscape.com
c8fd58e07d Fixed compilation problems on AIX 4.3. Test the macro SF_CLOSE to
determine whether an AIX revision has send_file().  Thanks to
Waqar Malik <waqar@netscape.com> for the bug report and fix.


git-svn-id: svn://10.0.0.236/trunk@19926 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 17:30:50 +00:00
wtc%netscape.com
decc73730c Added struct declarations to eliminate compiler warnings from
<arpa/inet.h> on AIX 4.3.  Thanks to Waqar Malik <waqar@netscpe.com>
for the bug report.


git-svn-id: svn://10.0.0.236/trunk@19925 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 17:25:17 +00:00
troy%netscape.com
fae2e7b855 Fixed ContentRemoved() to also remove the shell's mapping from absolutely
positioned element to its placeholder


git-svn-id: svn://10.0.0.236/trunk@19924 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 17:10:42 +00:00
mcafee%netscape.com
eccd9eace8 Adding tests to match Win32
git-svn-id: svn://10.0.0.236/trunk@19923 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 11:50:14 +00:00
mcafee%netscape.com
6f5c751027 Adding TestID.cpp, removing unused rules, more portable link line
git-svn-id: svn://10.0.0.236/trunk@19922 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 08:19:16 +00:00
mcafee%netscape.com
adda7082d8 Adding purify cruft to GARBAGE rule.
git-svn-id: svn://10.0.0.236/trunk@19921 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 06:37:35 +00:00
rods%netscape.com
2e186fb37f fixed error checking for command creation.
git-svn-id: svn://10.0.0.236/trunk@19920 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 06:09:53 +00:00
troy%netscape.com
07105200e3 Fixed a bad #ifdef
git-svn-id: svn://10.0.0.236/trunk@19919 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 04:26:30 +00:00
troy%netscape.com
3e41dda406 Cleaned the code up a bit
git-svn-id: svn://10.0.0.236/trunk@19918 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 04:24:47 +00:00
warren%netscape.com
fd25983668 Added assertion
git-svn-id: svn://10.0.0.236/trunk@19917 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 04:22:43 +00:00
warren%netscape.com
2090593d55 Added strtok implementation.
git-svn-id: svn://10.0.0.236/trunk@19916 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 04:18:15 +00:00
warren%netscape.com
9890008f83 Fixed unsigned problems.
git-svn-id: svn://10.0.0.236/trunk@19915 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 04:02:02 +00:00
warren%netscape.com
432b43d3c3 Added nsVoidKey and nsISupportsKey.
git-svn-id: svn://10.0.0.236/trunk@19914 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 04:01:23 +00:00
warren%netscape.com
be8fdbef0a Fixed unsigned problems.
git-svn-id: svn://10.0.0.236/trunk@19913 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 03:56:36 +00:00
warren%netscape.com
d37dfeba8b Added strncmp, made lengths be unsigned.
git-svn-id: svn://10.0.0.236/trunk@19912 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 03:56:17 +00:00
troy%netscape.com
960b794184 Created ConstructAlternateImageFrame() function from some existing code,
and changed it to use the "src" attribute if there is no "alt" or "title"
values to use


git-svn-id: svn://10.0.0.236/trunk@19911 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 03:45:11 +00:00
troy%netscape.com
4a04416d1c #ifdef CantRenderReplacedElement() to be _WIN32 for the time being until
the Mac problems with the thread event queue are straightened out


git-svn-id: svn://10.0.0.236/trunk@19910 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 03:41:14 +00:00
pavlov%pavlov.net
ff73238817 remove some unused code
git-svn-id: svn://10.0.0.236/trunk@19909 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 03:40:50 +00:00
pavlov%pavlov.net
3575e43cac -Wall cleanups
git-svn-id: svn://10.0.0.236/trunk@19908 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 03:39:24 +00:00
alecf%netscape.com
96524babfc minor fixes to make unix keep building
git-svn-id: svn://10.0.0.236/trunk@19907 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 03:37:12 +00:00
mscott%netscape.com
f5436a0d35 Remove db from list of directories being built on Linux. If we add this back,
we need to modify configure.in and add mailnews/db to its list of directories. I'm not
sure if db builds on linux yet. I'll add it back if it does...


git-svn-id: svn://10.0.0.236/trunk@19906 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 03:30:46 +00:00
waldemar%netscape.com
7e4a822ff3 File Removed.
git-svn-id: svn://10.0.0.236/trunk@19905 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 03:25:19 +00:00
waldemar%netscape.com
30665c837b First Checked In.
git-svn-id: svn://10.0.0.236/trunk@19904 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 03:21:09 +00:00
waldemar%netscape.com
a6e63c58b6 Removed spaces from file names
git-svn-id: svn://10.0.0.236/trunk@19903 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 03:20:35 +00:00
alecf%netscape.com
c8ab09f607 update to new NSPR types & utility routines
git-svn-id: svn://10.0.0.236/trunk@19902 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 02:55:39 +00:00
alecf%netscape.com
ca69d7706b *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@19901 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 02:54:46 +00:00
alecf%netscape.com
707faa1da0 add .cvsignore files
git-svn-id: svn://10.0.0.236/trunk@19900 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 02:49:32 +00:00
alecf%netscape.com
27adb1a3dd use new NSPR types
git-svn-id: svn://10.0.0.236/trunk@19899 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 02:49:08 +00:00
warren%netscape.com
5146b63c51 How did this ever compile?
git-svn-id: svn://10.0.0.236/trunk@19898 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 02:15:47 +00:00
warren%netscape.com
99ec85dde6 More cleanup of XPPtrArray. Factored nsMsgFolder, adding nsMsgLocalMailFolder.
git-svn-id: svn://10.0.0.236/trunk@19897 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 02:11:54 +00:00
joki%netscape.com
3ef9d11dac Checking in null check and assertion to handle the crashing on imagemap part of the Mac regression.
git-svn-id: svn://10.0.0.236/trunk@19896 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 02:07:49 +00:00
mscott%netscape.com
1a79a31591 fixed build problem; m_fileCounter undefined
git-svn-id: svn://10.0.0.236/trunk@19895 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 02:04:41 +00:00
robinf%netscape.com
6444d665e0 text changes based on ISP feedback on user interface
git-svn-id: svn://10.0.0.236/trunk@19894 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 02:01:01 +00:00
despotdaemon%netscape.com
d93105b689 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@19893 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 01:53:00 +00:00
jefft%netscape.com
619c557bb8 fixed linux build problem
git-svn-id: svn://10.0.0.236/trunk@19892 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 01:33:37 +00:00
mscott%netscape.com
5384d38dfb Remove nsMsgRDFFolder.cpp
git-svn-id: svn://10.0.0.236/trunk@19891 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 01:05:02 +00:00
mscott%netscape.com
0a23f60a70 Removing from the build...
git-svn-id: svn://10.0.0.236/trunk@19890 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 01:01:50 +00:00
putterman%netscape.com
1acdae2e33 Makes Folder Data Source work with new nsIMsgFolder.
git-svn-id: svn://10.0.0.236/trunk@19889 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 00:37:40 +00:00
putterman%netscape.com
2e6b068ca6 Makes Folder Data Source work with new nsIMsgFolder.
git-svn-id: svn://10.0.0.236/trunk@19888 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 00:30:44 +00:00
akkana%netscape.com
1035a9e102 Temporarily turn off menus until gtk code gets fixed; Approved by sar
git-svn-id: svn://10.0.0.236/trunk@19887 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 23:22:05 +00:00
morse%netscape.com
2fce3738a3 config.mak
git-svn-id: svn://10.0.0.236/trunk@19886 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 22:59:02 +00:00
nhotta%netscape.com
78ef4bb1e9 Added Japanese (Shift_JIS) specific support.
git-svn-id: svn://10.0.0.236/trunk@19885 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 22:51:38 +00:00
briano%netscape.com
790d1b5169 Automated update
git-svn-id: svn://10.0.0.236/trunk@19884 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 22:45:42 +00:00
jefft%netscape.com
357c97f16c added mailnews/local/tests/Makefile
git-svn-id: svn://10.0.0.236/trunk@19883 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 22:32:48 +00:00
dougt%netscape.com
dabf25f006 removing char* errormsgs and now using err code return values.
added FinishInstall().


git-svn-id: svn://10.0.0.236/trunk@19882 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 22:27:08 +00:00
dougt%netscape.com
f83ebd9b11 Removing char* errormsg. and replacing it with a error code return
value.


git-svn-id: svn://10.0.0.236/trunk@19881 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 22:25:35 +00:00
kmcclusk%netscape.com
cb1e2e6d1b undefined NS_GFX_RENDER_FORM_ELEMENTS
git-svn-id: svn://10.0.0.236/trunk@19880 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 22:22:40 +00:00
kmcclusk%netscape.com
f33772358f Added INPUT[type=checkbox] rule + properties to ua.css to set style info
for gfx-rendered checkboxes.


git-svn-id: svn://10.0.0.236/trunk@19879 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 22:19:52 +00:00
kmcclusk%netscape.com
703c2a790c Adjusted checkbox gfx-rendering code to make better looking checkboxes
Created nsFormControlHelper::GetBool and nsFormControlHelper::GetBoolString
utility methods for converting strings into booleans and vice versa.
Modified nsCheckboxControlFrame, nsRadioControlFrame, and nsSelectControlFrame
to use these helpers.


git-svn-id: svn://10.0.0.236/trunk@19878 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 22:15:35 +00:00
nhotta%netscape.com
e3095ab052 Collation key implementation for Macintosh.
git-svn-id: svn://10.0.0.236/trunk@19877 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 22:10:39 +00:00
morse%netscape.com
235d8d73b9 removed single-signon dependency on lo_ele.h and MWContext
git-svn-id: svn://10.0.0.236/trunk@19876 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 22:05:59 +00:00
morse%netscape.com
b1d1113f0c removed dependency on lo_ele.h and MWContext
git-svn-id: svn://10.0.0.236/trunk@19875 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 22:02:04 +00:00
bienvenu%netscape.com
5dd3e36558 use correct db class, nsMsgKeyArray, and PRBool
git-svn-id: svn://10.0.0.236/trunk@19874 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 21:15:18 +00:00
erik%netscape.com
5bbb86970a Switched nsIStringBundle to service manager model. Cleaner now.
git-svn-id: svn://10.0.0.236/trunk@19873 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 21:11:25 +00:00
erik%netscape.com
e8c30ece41 Changed over to the service model. Seems cleaner now.
git-svn-id: svn://10.0.0.236/trunk@19872 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 21:10:04 +00:00
erik%netscape.com
6c9f7e2e5a Moved nsPropertiesFactory constructor from .h to .cpp file
git-svn-id: svn://10.0.0.236/trunk@19871 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 21:06:07 +00:00
alecf%netscape.com
61b2630cc5 fix unix mail/news Makefiles to actually build correctly
git-svn-id: svn://10.0.0.236/trunk@19870 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 20:15:54 +00:00
vidur%netscape.com
f9ff75cbe9 id and class changing tests
git-svn-id: svn://10.0.0.236/trunk@19869 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 19:56:29 +00:00
vidur%netscape.com
37fc0ea58e Hooked up style hint for id, class and dir
git-svn-id: svn://10.0.0.236/trunk@19868 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 19:55:56 +00:00
kmcclusk%netscape.com
0a666c164e Disabled gfx-rendering of form controls.
git-svn-id: svn://10.0.0.236/trunk@19867 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 19:51:27 +00:00
kmcclusk%netscape.com
6a11fc957f Added code to gfx-render checkboxes using CSS style.
Removed commented out code in nsFormControlFrame and nsFormControlHelper


git-svn-id: svn://10.0.0.236/trunk@19866 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 19:48:18 +00:00
pinkerton%netscape.com
1ae4f4ea6d Fixing bustage.
git-svn-id: svn://10.0.0.236/trunk@19865 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 19:38:09 +00:00
despotdaemon%netscape.com
9b655989a1 Pseudo-automatic update of changes made by cyeh@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@19864 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 18:56:23 +00:00
pavlov%pavlov.net
673efb8f58 fix invalidate async problem that michaelp reported.
git-svn-id: svn://10.0.0.236/trunk@19863 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 18:54:43 +00:00
mscott%netscape.com
207d783b47 change You have got mail! ==> Ya'll got mail!
git-svn-id: svn://10.0.0.236/trunk@19862 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 18:53:33 +00:00
dp%netscape.com
6641553dc3 Fixed mRefCnt not being initialized
git-svn-id: svn://10.0.0.236/trunk@19861 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 18:50:08 +00:00
troy%netscape.com
155dd50f2c Added CantRenderReplacedElement() to nsIPresShell and changed the image frame
code to use it


git-svn-id: svn://10.0.0.236/trunk@19860 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 18:25:29 +00:00
troy%netscape.com
c54078e092 Changed CantRenderReplacedElement() to use the value of the TITLE attribute
if there's no "alt" text specified


git-svn-id: svn://10.0.0.236/trunk@19859 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 18:24:48 +00:00
pinkerton%netscape.com
4a13e77213 Fixed DOM and Netlib dependency for saari.
git-svn-id: svn://10.0.0.236/trunk@19858 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 17:34:20 +00:00
jefft%netscape.com
e0764fbe5f check valid return pointer from strtok()
git-svn-id: svn://10.0.0.236/trunk@19856 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 16:27:26 +00:00
saari%netscape.com
f3262603cb added network and netlib
git-svn-id: svn://10.0.0.236/trunk@19855 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 15:45:51 +00:00
saari%netscape.com
3329ac2c69 added DOM dependence
git-svn-id: svn://10.0.0.236/trunk@19854 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 15:01:33 +00:00
saari%netscape.com
37debbfead added netlib back
I don't know which is right, network or netlib


git-svn-id: svn://10.0.0.236/trunk@19853 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 14:34:44 +00:00
saari%netscape.com
0ef5cf2e12 added netlib back to LINCS
I don't know which is right, network or netlib


git-svn-id: svn://10.0.0.236/trunk@19852 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 14:10:59 +00:00
saari%netscape.com
600a352270 changed requires netlib to network
git-svn-id: svn://10.0.0.236/trunk@19851 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 13:58:45 +00:00
saari%netscape.com
be13e2553b trying to fix syntax error
git-svn-id: svn://10.0.0.236/trunk@19850 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 12:32:04 +00:00
saari%netscape.com
0b1b289d13 trying to fix syntax error
git-svn-id: svn://10.0.0.236/trunk@19849 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 11:45:38 +00:00
saari%netscape.com
4db6bc8ecf add netlib dependency
git-svn-id: svn://10.0.0.236/trunk@19848 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 10:54:29 +00:00
saari%netscape.com
43cbebaa93 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@19847 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 10:31:54 +00:00
saari%netscape.com
f94727893d File Removed.
git-svn-id: svn://10.0.0.236/trunk@19846 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 09:38:51 +00:00
saari%netscape.com
97decb4428 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@19845 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 09:38:16 +00:00
mcafee%netscape.com
d5f5758b23 Moving to mozilla/widget. -- saari
git-svn-id: svn://10.0.0.236/trunk@19844 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 09:02:03 +00:00
mcafee%netscape.com
d18af846d8 moving to mozilla/widget -- saari
git-svn-id: svn://10.0.0.236/trunk@19843 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 09:01:06 +00:00
saari%netscape.com
08cd384dd1 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@19842 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 08:52:55 +00:00
saari%netscape.com
d4910aea39 moving nsIXULCommand.h, nsXULCommand.h, and nsXULCommand.cpp to widget dll from appshell
git-svn-id: svn://10.0.0.236/trunk@19841 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 08:52:39 +00:00
pavlov%pavlov.net
4d14b4476f ...menus...
git-svn-id: svn://10.0.0.236/trunk@19840 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 08:17:42 +00:00
pavlov%pavlov.net
8e9391d518 more menu stuff
git-svn-id: svn://10.0.0.236/trunk@19839 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 08:15:36 +00:00
pavlov%pavlov.net
940daaaf96 make menus work with new menu code
git-svn-id: svn://10.0.0.236/trunk@19838 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 08:13:36 +00:00
pavlov%pavlov.net
926a21f7f7 and they said, "let there be toolbars"
git-svn-id: svn://10.0.0.236/trunk@19837 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 08:10:08 +00:00
alecf%netscape.com
f68df94d2d add newlines at the end of these files
(to play nice with some compilers)


git-svn-id: svn://10.0.0.236/trunk@19836 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 08:04:27 +00:00
beard%netscape.com
effd6d2e42 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@19835 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 07:58:30 +00:00
alecf%netscape.com
bc7c2b9b7f update test app to use new posting
git-svn-id: svn://10.0.0.236/trunk@19834 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 07:50:57 +00:00
alecf%netscape.com
47264dd52f add support for posting messages
Not complete - the nsINNTPNewsgroupPost is not completely finished (it doesn't assemble the message)


git-svn-id: svn://10.0.0.236/trunk@19833 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 07:50:40 +00:00
alecf%netscape.com
a63820f27d finish implementing nsINNTPNewsgroupPost, and fix factory function
git-svn-id: svn://10.0.0.236/trunk@19832 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 07:49:28 +00:00
jefft%netscape.com
05bc18c52a minor clean up
git-svn-id: svn://10.0.0.236/trunk@19831 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 07:34:45 +00:00
jefft%netscape.com
c00e82384c comment out NS_ASSERTION in SetHostPort(); this is a temporary fix
git-svn-id: svn://10.0.0.236/trunk@19830 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 07:21:06 +00:00
jefft%netscape.com
b0360066ce fixed infinit loop problem if popstate.dat does not exist
git-svn-id: svn://10.0.0.236/trunk@19829 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 07:11:30 +00:00
warren%netscape.com
fd9de297e7 Ported XPPtrArray (and MSG_FolderArray) to use nsVoidArray and nsISupportsArray.
git-svn-id: svn://10.0.0.236/trunk@19828 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 07:02:51 +00:00
wtc%netscape.com
eb5213b27e Implemented file descriptor inheritance for NT.
Modified files: _winnt.h, prfile.c, prio.c, prsocket.c, ntio.c,
w32poll.c, and prinit.c.


git-svn-id: svn://10.0.0.236/trunk@19827 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 06:45:06 +00:00
alecf%netscape.com
a2c3ea44b6 first shot implementation of nsNNTPNewsgroupPost
git-svn-id: svn://10.0.0.236/trunk@19826 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 06:12:44 +00:00
jband%netscape.com
6a4a932864 NOT YET PART OF SEAMONKEY - removed bogus wrappers, turned runtime methods into wrapper methods, added special interface for wrappedjs methods, fixed spelling, changed return types from nsresult to NS_IMETHODIMP, trimmed extra space (just to pad the difs :)
git-svn-id: svn://10.0.0.236/trunk@19825 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 06:08:09 +00:00
dp%netscape.com
f12ac43387 Fixing mRefCnt not being initialized for nsPropertiesFactory
git-svn-id: svn://10.0.0.236/trunk@19824 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 06:05:51 +00:00
troy%netscape.com
a59b46020d Made sure computedOffsets is initialized to all zeros for the root frame
git-svn-id: svn://10.0.0.236/trunk@19823 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 05:51:12 +00:00
alecf%netscape.com
524c734e45 minor warnings cleanup
git-svn-id: svn://10.0.0.236/trunk@19822 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 05:43:53 +00:00
alecf%netscape.com
749e23241c new NewsgroupPost interface
git-svn-id: svn://10.0.0.236/trunk@19821 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 05:43:21 +00:00
alecf%netscape.com
7ab45e8daf minor warnings fixes
git-svn-id: svn://10.0.0.236/trunk@19820 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 05:42:27 +00:00
alecf%netscape.com
e83ea7fda9 fix slight typo in macro
git-svn-id: svn://10.0.0.236/trunk@19819 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 05:33:53 +00:00
alecf%netscape.com
d16efc8370 minor warnings fixes
git-svn-id: svn://10.0.0.236/trunk@19818 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 05:25:55 +00:00
racham%netscape.com
0e7d8e3aa7 Added code to convert forward slash to back slash in program arguments
git-svn-id: svn://10.0.0.236/trunk@19817 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 04:05:43 +00:00
racham%netscape.com
b85c0d84be Readme file for CCK Wizard application
git-svn-id: svn://10.0.0.236/trunk@19816 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 04:03:22 +00:00
peterl%netscape.com
79c749bdc4 added assertion for switching style contexts during reflow
git-svn-id: svn://10.0.0.236/trunk@19815 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 03:58:27 +00:00
peterl%netscape.com
7a173709f0 moved frame construction code to its own class
git-svn-id: svn://10.0.0.236/trunk@19814 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 03:57:49 +00:00
peterl%netscape.com
9839e83089 added files: mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp
git-svn-id: svn://10.0.0.236/trunk@19813 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 03:56:41 +00:00
peterl%netscape.com
f64a7d8528 added include & class definitions to make include safe
git-svn-id: svn://10.0.0.236/trunk@19812 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 03:55:55 +00:00
peterl%netscape.com
ce44fc9536 moved frame construction code from HTML style sheet
git-svn-id: svn://10.0.0.236/trunk@19811 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 03:55:18 +00:00
talisman%anamorphic.com
316974af35 Got addressbook building without errors, but it still needs alot of work to be fully functional.
git-svn-id: svn://10.0.0.236/trunk@19810 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 03:46:34 +00:00
talisman%anamorphic.com
0a2523b2dd Added checking for OS name to determine where to create the mail directory and folders.
git-svn-id: svn://10.0.0.236/trunk@19809 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 03:45:34 +00:00
racham%netscape.com
e3787c4fad Modified browsedir to browsefile
git-svn-id: svn://10.0.0.236/trunk@19808 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 03:22:50 +00:00
saari%netscape.com
95ede7bfcf and this should fix linux....
git-svn-id: svn://10.0.0.236/trunk@19807 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 03:09:42 +00:00
saari%netscape.com
df991e65d8 fixing the right makefile this time
git-svn-id: svn://10.0.0.236/trunk@19806 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 03:09:07 +00:00
warren%netscape.com
ab0e727795 Added nsIMsg and nsMsg impl. Changed counts to be unsigned.
git-svn-id: svn://10.0.0.236/trunk@19805 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 03:08:00 +00:00
saari%netscape.com
f51ad105fd oops, changed wrong file
git-svn-id: svn://10.0.0.236/trunk@19804 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 03:07:42 +00:00
saari%netscape.com
84d3ab5fed fixed horkage, exporting nsIXULCommand.h
git-svn-id: svn://10.0.0.236/trunk@19803 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 03:06:08 +00:00
bienvenu%netscape.com
b8ea1126db add a couple msg db error codes
git-svn-id: svn://10.0.0.236/trunk@19802 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 03:03:50 +00:00
bienvenu%netscape.com
e3f81512df start hooking up header deletion
git-svn-id: svn://10.0.0.236/trunk@19801 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 03:03:10 +00:00
mscott%netscape.com
487a77d691 Ref count the event sink after we create it....
git-svn-id: svn://10.0.0.236/trunk@19800 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 02:57:19 +00:00
mscott%netscape.com
acd55b7659 Initialize pop3 sink's ref count value...
git-svn-id: svn://10.0.0.236/trunk@19799 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 02:56:40 +00:00
bienvenu%netscape.com
899eba5aeb call the class nsNewsSet for now
git-svn-id: svn://10.0.0.236/trunk@19798 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 02:43:16 +00:00
bienvenu%netscape.com
d0ba8eb254 add news rc handling class
git-svn-id: svn://10.0.0.236/trunk@19797 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 02:32:41 +00:00
saari%netscape.com
3bd3d1f844 merged changes with gtk version that changed under me
git-svn-id: svn://10.0.0.236/trunk@19796 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 02:31:02 +00:00
saari%netscape.com
be65de08fd Merged new changes with the gtk version that changed under me
git-svn-id: svn://10.0.0.236/trunk@19795 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 02:30:30 +00:00
saari%netscape.com
7b70d92069 mozilla/widget/src/xpwidgets/nsBaseWidget.cpp
- included "nsIMenuListener.h"
- destructor releases mMenuListener
- AddMenuListener Releases a previously held nsMenuListener (nsMenuBar) before AddRefing the passed in one

mozilla/widget/public/nsIMenuItem.h
- included "nsIXULCommand.h"
- added SetXULCommand(nsIXULCommand*) which sets the XUL command for the menu item

mozilla/widget/src/mac/nsMenuItem.cpp
mozilla/widget/src/gtk/nsMenuItem.cpp
mozilla/widget/src/motif/nsMenuItem.cpp
mozilla/widget/src/windows/nsMenuItem.cpp
- QueryInterface supports nsIMenuListener interface.
- MenuSelected calls DoCommand on XULCommand (mac only right now)
- Added SetXULCommand() to set the nsXULCommand for this menuitem

mozilla/widget/src/mac/nsMenuItem.h
mozilla/widget/src/gtk/nsMenuItem.h
mozilla/widget/src/motif/nsMenuItem.h
mozilla/widget/src/windows/nsMenuItem.h
- nsMenuItem inherits from nsIMenuListener
- Added SetXULCommand() method


git-svn-id: svn://10.0.0.236/trunk@19794 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 02:19:46 +00:00
saari%netscape.com
7f477fb28c First Checked In.
git-svn-id: svn://10.0.0.236/trunk@19793 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 02:17:40 +00:00
putterman%netscape.com
09741f04db nsMsgFolder is a resource again.
git-svn-id: svn://10.0.0.236/trunk@19792 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 01:58:36 +00:00
troy%netscape.com
1879dde6a2 Removed #include of header files that weren't actually needed
git-svn-id: svn://10.0.0.236/trunk@19791 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 01:54:58 +00:00
racham%netscape.com
d122428a22 adding Nlogo to list of images
git-svn-id: svn://10.0.0.236/trunk@19790 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 01:40:17 +00:00
alecf%netscape.com
dc7ba35e40 Update macros to include string type, and add documentation/example
git-svn-id: svn://10.0.0.236/trunk@19789 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 01:39:12 +00:00
jefft%netscape.com
3978244fb9 calling nsITransport->Open() instead of nsITransport->LoadURL()
git-svn-id: svn://10.0.0.236/trunk@19788 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 01:36:24 +00:00
racham%netscape.com
2b8a08c9b5 Adding license statement to the folder
git-svn-id: svn://10.0.0.236/trunk@19787 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 01:31:29 +00:00
warren%netscape.com
b3e0416c95 Added nsRDFResource -- basic resource implementation to subclass.
git-svn-id: svn://10.0.0.236/trunk@19786 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 01:29:27 +00:00
warren%netscape.com
56d2ac6876 Fixed return type.
git-svn-id: svn://10.0.0.236/trunk@19785 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 01:27:59 +00:00
racham%netscape.com
f58ecefe9c Removing Netscape logo
git-svn-id: svn://10.0.0.236/trunk@19784 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 01:23:34 +00:00
mscott%netscape.com
083638a290 When interrupting a url, query for the nsINetlibURL interface and not the nsIProtocolConnection interface. The http url only supports the first interface and not the later. Both interfaces have the same method though...we could probably scrap nsIProtocolConnection....
git-svn-id: svn://10.0.0.236/trunk@19783 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 01:12:41 +00:00
racham%netscape.com
945421d42b Resolved path issues
git-svn-id: svn://10.0.0.236/trunk@19782 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 01:02:27 +00:00
mscott%netscape.com
e6ec89614f Use new open call on the transport instead of LoadUrl....
git-svn-id: svn://10.0.0.236/trunk@19781 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 00:51:28 +00:00
nhotta%netscape.com
9aa1113404 Added uconv for the include path.
git-svn-id: svn://10.0.0.236/trunk@19780 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 00:36:45 +00:00
waterson%netscape.com
dcf2c6f2e5 Never used.
git-svn-id: svn://10.0.0.236/trunk@19779 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 00:30:09 +00:00
pinkerton%netscape.com
60b3be1f25 make dstr virtual because it has virtual methods.
git-svn-id: svn://10.0.0.236/trunk@19778 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 00:27:48 +00:00
pinkerton%netscape.com
00718839e9 make dstr virtual because the classes have virtual methods.
git-svn-id: svn://10.0.0.236/trunk@19777 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 00:24:57 +00:00
dougt%netscape.com
56c4488d91 makefile.win - first checkin
git-svn-id: svn://10.0.0.236/trunk@19776 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 00:24:34 +00:00
pinkerton%netscape.com
01482d75cd changes to factory stuff, which is all #ifdef'd out right now.
git-svn-id: svn://10.0.0.236/trunk@19775 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 00:18:47 +00:00
dougt%netscape.com
12f4dc268d First checkin of xpinstall into seamonkey
git-svn-id: svn://10.0.0.236/trunk@19774 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 00:15:30 +00:00
dougt%netscape.com
4976522161 First checkin of our IDLs (these are for the idlc in dom/tools)
git-svn-id: svn://10.0.0.236/trunk@19773 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 00:13:34 +00:00
slamm%netscape.com
597f34602d Add a comment.
git-svn-id: svn://10.0.0.236/trunk@19772 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 00:12:51 +00:00
dougt%netscape.com
b51b0d7c27 First checkin of our interface and IIDs
git-svn-id: svn://10.0.0.236/trunk@19771 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 00:12:29 +00:00
slamm%netscape.com
9f17430e7d Use MOZ_ prefix for new autoconf macros.
git-svn-id: svn://10.0.0.236/trunk@19770 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 00:10:25 +00:00
dougt%netscape.com
880faef485 First checkin of our glorious makefile for windows
git-svn-id: svn://10.0.0.236/trunk@19769 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 00:09:47 +00:00
pinkerton%netscape.com
1951c45fdc Adding nsThrobberGlue.cpp to build.
git-svn-id: svn://10.0.0.236/trunk@19768 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 00:08:47 +00:00
mscott%netscape.com
4da4d679ba Get rid of m_isSocketOpen variable. Rely on new transport Open method to determine if
the transport needs opened. Release some more interfaces when we go away...


git-svn-id: svn://10.0.0.236/trunk@19767 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 23:52:04 +00:00
mscott%netscape.com
d24bd9dd79 open transport functionality.
git-svn-id: svn://10.0.0.236/trunk@19766 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 23:51:02 +00:00
mscott%netscape.com
1f71ff8d50 support the open inteface. Add ability to close a socket without closing the transport.
cleaned up the destructor to release some interfaces it wasn't releasing before..


git-svn-id: svn://10.0.0.236/trunk@19765 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 23:50:37 +00:00
pinkerton%netscape.com
ab292e4f1f Add GUID's for throbber glue and factory.
git-svn-id: svn://10.0.0.236/trunk@19764 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 23:38:20 +00:00
amusil%netscape.com
412eeea36e Fixed bugs with the stream as file implementation.
git-svn-id: svn://10.0.0.236/trunk@19763 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 23:37:20 +00:00
vidur%netscape.com
88bfa91fc7 implemented nsHTMLDocument::GetElementsByName
git-svn-id: svn://10.0.0.236/trunk@19762 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 23:23:07 +00:00
nhotta%netscape.com
ee73733d3d Changed to use strxfrm for a key generation.
git-svn-id: svn://10.0.0.236/trunk@19761 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 23:23:04 +00:00
nhotta%netscape.com
b14fdd35be Moved NS_IMPL_IDS define to XP code.
git-svn-id: svn://10.0.0.236/trunk@19760 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 23:20:55 +00:00
waterson%netscape.com
8d39c56892 Fixed comments that were referring to monitors.
git-svn-id: svn://10.0.0.236/trunk@19759 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 23:20:30 +00:00
nhotta%netscape.com
f6e2a8018e Added UnicodeToChar to nsCollation class.
git-svn-id: svn://10.0.0.236/trunk@19758 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 23:17:37 +00:00
slamm%netscape.com
b4619d97c0 Fix a typo.
git-svn-id: svn://10.0.0.236/trunk@19757 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 23:14:56 +00:00
pinkerton%netscape.com
5e9608e856 adding nsThrobberGlue.cpp
git-svn-id: svn://10.0.0.236/trunk@19756 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 23:12:41 +00:00
pinkerton%netscape.com
805c0c11fe add nsThrobberGlue.cpp
git-svn-id: svn://10.0.0.236/trunk@19755 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 23:12:24 +00:00
harishd%netscape.com
4e8378e763 Made HR tags more stylable
git-svn-id: svn://10.0.0.236/trunk@19754 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 23:10:21 +00:00
pinkerton%netscape.com
30c6b13d46 Fix linkage on win32
git-svn-id: svn://10.0.0.236/trunk@19753 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 23:08:54 +00:00
harishd%netscape.com
bf5c14847f Added property "border: 1px -moz-bg-inset"
to HR


git-svn-id: svn://10.0.0.236/trunk@19752 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 23:08:39 +00:00
slamm%netscape.com
c94584a65c Fix typo.
git-svn-id: svn://10.0.0.236/trunk@19751 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 23:07:51 +00:00
pavlov%pavlov.net
d255662ca7 Create() doesn't need to add the menu items anymore
git-svn-id: svn://10.0.0.236/trunk@19750 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 23:04:40 +00:00
mscott%netscape.com
085c38b8da Only replace m_userData in the prompt call if the user entered some legitimate data...otherwise we risk stepping on our default
value.


git-svn-id: svn://10.0.0.236/trunk@19749 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 23:04:07 +00:00
briano%netscape.com
62f6105055 Automated update
git-svn-id: svn://10.0.0.236/trunk@19748 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 23:00:43 +00:00
radha%netscape.com
48bf15ab91 Add xpfe/AppCores/xul/Makefile.in.
git-svn-id: svn://10.0.0.236/trunk@19747 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 22:59:26 +00:00
leaf%mozilla.org
f7228ec994 fixes MozillaControl.dll build (reports are that the code is broken, but i leave
that in someone else's hands)


git-svn-id: svn://10.0.0.236/trunk@19746 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 22:59:06 +00:00
pinkerton%netscape.com
0313ed9738 removed an obsolete comment and added some hints to rod for when he hooks things up.
git-svn-id: svn://10.0.0.236/trunk@19745 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 22:58:04 +00:00
cyeh%netscape.com
e9e59c0d21 there isn't an underscore in the FullCircle initialization call.
git-svn-id: svn://10.0.0.236/trunk@19744 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 22:57:13 +00:00
leaf%mozilla.org
b009dc03b9 changing test for NULL in EXPORTS list, some installations of nt barf on defined($NULL)
git-svn-id: svn://10.0.0.236/trunk@19743 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 22:56:58 +00:00
pinkerton%netscape.com
721630353d First Checked In.
git-svn-id: svn://10.0.0.236/trunk@19742 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 22:55:45 +00:00
racham%netscape.com
82e2a967df Modified editor field name.
git-svn-id: svn://10.0.0.236/trunk@19741 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 22:53:15 +00:00
slamm%netscape.com
478c828145 Add support for file-based options, 'myconfig.sh'.
git-svn-id: svn://10.0.0.236/trunk@19740 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 22:52:56 +00:00
jefft%netscape.com
017f957fd9 initial coding
git-svn-id: svn://10.0.0.236/trunk@19739 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 22:42:01 +00:00
jefft%netscape.com
47f15d590e Initial coding
git-svn-id: svn://10.0.0.236/trunk@19738 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 22:41:24 +00:00
jefft%netscape.com
e91f284c07 added Pop3 protocol implementation
git-svn-id: svn://10.0.0.236/trunk@19737 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 22:29:33 +00:00
jefft%netscape.com
1e09258230 added nsIPop3Sink.h & nsIPop3URL.h
git-svn-id: svn://10.0.0.236/trunk@19736 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 22:25:04 +00:00
jefft%netscape.com
13ab6269f3 added tests directory
git-svn-id: svn://10.0.0.236/trunk@19735 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 22:12:53 +00:00
mscott%netscape.com
9ccfea39c4 Remove dependency on mime.lib because we don't need it just yet...
git-svn-id: svn://10.0.0.236/trunk@19734 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 21:02:06 +00:00
terry%netscape.com
ec57ec873f Added descriptions for CCK components.
git-svn-id: svn://10.0.0.236/trunk@19733 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 20:53:44 +00:00
racham%netscape.com
84520b1e14 Removed demo dll dependency
git-svn-id: svn://10.0.0.236/trunk@19732 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 20:24:31 +00:00
jband%netscape.com
3dfae5bbcc fixed enum
git-svn-id: svn://10.0.0.236/trunk@19731 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 20:05:55 +00:00
mscott%netscape.com
66bab5f6e3 SetupUrl should return a value...this fixes build problem on windows...
git-svn-id: svn://10.0.0.236/trunk@19730 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 19:44:31 +00:00
terry%netscape.com
74ee817188 Added i18n and l10n descriptions.
git-svn-id: svn://10.0.0.236/trunk@19729 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 19:27:41 +00:00
mcmullen%netscape.com
4a957a219e Improved the readline() comment, as it was not quite clear.
git-svn-id: svn://10.0.0.236/trunk@19728 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 19:25:59 +00:00
peterl%netscape.com
5972d1e077 added -moz-bg-inset & -moz-bg-outset keywords
git-svn-id: svn://10.0.0.236/trunk@19727 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 19:18:01 +00:00
pavlov%pavlov.net
398c6180db redo the entire region handling in nsRenderingContext -- not quite finished
git-svn-id: svn://10.0.0.236/trunk@19726 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 19:17:40 +00:00
pinkerton%netscape.com
6ccfd64676 using clause doesn't work on linux. commenting out
git-svn-id: svn://10.0.0.236/trunk@19725 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 19:15:57 +00:00
radha%netscape.com
36f7e20539 dd xul to the dirs list
git-svn-id: svn://10.0.0.236/trunk@19724 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 19:08:56 +00:00
putterman%netscape.com
1da5e3d647 Make sure refcount for nsMsgMailFolder is correct.
git-svn-id: svn://10.0.0.236/trunk@19723 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 19:07:47 +00:00
radha%netscape.com
80eeefb723 Enable AppCores work in unix
git-svn-id: svn://10.0.0.236/trunk@19722 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 19:06:33 +00:00
vidur%netscape.com
0d1e317729 Missing init refcnt
git-svn-id: svn://10.0.0.236/trunk@19721 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 19:06:11 +00:00
radha%netscape.com
893cbad07f Initial checkin
git-svn-id: svn://10.0.0.236/trunk@19720 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 19:06:01 +00:00
pavlov%pavlov.net
643dadcdd9 fix big endian image stuff
git-svn-id: svn://10.0.0.236/trunk@19719 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 18:57:54 +00:00
pinkerton%netscape.com
5d5cae5864 modifying to use nsCOMPtr.
git-svn-id: svn://10.0.0.236/trunk@19718 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 18:40:43 +00:00
pollmann%netscape.com
1b75d96c5b Bug 1190: Typo.
git-svn-id: svn://10.0.0.236/trunk@19717 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 18:37:03 +00:00
pinkerton%netscape.com
abe537bdde fix warning about hiding inherited virtual function MoveTo
git-svn-id: svn://10.0.0.236/trunk@19716 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 18:30:20 +00:00
pinkerton%netscape.com
e6d847b909 add IID
git-svn-id: svn://10.0.0.236/trunk@19715 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 18:29:36 +00:00
cyeh%netscape.com
945bcf681b enabling FullCircle in the AppShell. Placed it in the Initialize() call.
There's some question if we could move this call earlier in the execution.


git-svn-id: svn://10.0.0.236/trunk@19714 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 18:17:02 +00:00
jband%netscape.com
b2fd1329a0 NOT YET PART OF SEAMONKEY - minimal tests of nsIXPCScriptable working
git-svn-id: svn://10.0.0.236/trunk@19713 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 18:15:08 +00:00
putterman%netscape.com
d2915d16d3 Added changes to use new RDF resource and nsIMsgMailFolder.
git-svn-id: svn://10.0.0.236/trunk@19712 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 17:57:06 +00:00
putterman%netscape.com
74d39bb1c3 Added RDF Resource for nsMsgFolder and added nsMsgMailFolder.
git-svn-id: svn://10.0.0.236/trunk@19711 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 17:56:08 +00:00
putterman%netscape.com
2b5363b7aa Added new RDF Resource for MsgFolder and added MailMsgFolder.
git-svn-id: svn://10.0.0.236/trunk@19710 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 17:54:04 +00:00
kin%netscape.com
11e411188f Made nsTransactionReleaseFunctor destructor virtual.
git-svn-id: svn://10.0.0.236/trunk@19709 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 17:40:35 +00:00
kin%netscape.com
ca24c529bd Modified Redo() method to allow for mTransaction being NULL.
git-svn-id: svn://10.0.0.236/trunk@19708 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 17:39:21 +00:00
kin%netscape.com
ad82769079 Fixed regression introduced by the renaming of nsDeque::Pop()
to nsDeque::PopFront().


git-svn-id: svn://10.0.0.236/trunk@19707 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 17:36:24 +00:00
bienvenu%netscape.com
806d734feb more work on reading and writing db folder info
git-svn-id: svn://10.0.0.236/trunk@19706 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 17:35:26 +00:00
kin%netscape.com
d395298e0c Added calls to nsServiceManager::ShutdownService() to get the tests working
again.  Fixed some compiler warnings.


git-svn-id: svn://10.0.0.236/trunk@19705 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 17:35:04 +00:00
terry%netscape.com
f46a950880 Added a page which describes all the components in a product.
git-svn-id: svn://10.0.0.236/trunk@19704 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 17:13:52 +00:00
troy%netscape.com
1fa43367bb Work-in-progress for replaced elements that can't be rendered
git-svn-id: svn://10.0.0.236/trunk@19703 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 17:03:46 +00:00
ftang%netscape.com
f75d1182a7 implement ASCII only ToTitle until word breaker ready. Put optimization for NOCASE_CHAR in place, replace test with macro to make it more readable,
git-svn-id: svn://10.0.0.236/trunk@19702 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 16:59:03 +00:00
kipp%netscape.com
5f78913337 Use file i/o for now to read regression data
git-svn-id: svn://10.0.0.236/trunk@19701 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 16:31:43 +00:00
kipp%netscape.com
7a9d406987 Added a hack until rick lets us set the DTD we want to use when parsing
git-svn-id: svn://10.0.0.236/trunk@19700 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 16:31:02 +00:00
kipp%netscape.com
e60a1e46d7 nuked
git-svn-id: svn://10.0.0.236/trunk@19699 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 16:29:25 +00:00
kipp%netscape.com
3036e8de9b tweak so font-lock in emacs works better
git-svn-id: svn://10.0.0.236/trunk@19698 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 16:28:36 +00:00
kipp%netscape.com
e499b1961f Use nsIHTMLContent attribute api's to avoid attribute changed notification during document loads
git-svn-id: svn://10.0.0.236/trunk@19697 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 16:28:16 +00:00
kipp%netscape.com
01519f58e2 Avoid crashing when no frame is found during attribute change notifications
git-svn-id: svn://10.0.0.236/trunk@19696 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 16:27:38 +00:00
kipp%netscape.com
5bebf0d77c Renamed RemoveFrame to RemoveAFrame to reduce compiler warnings
git-svn-id: svn://10.0.0.236/trunk@19695 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 16:27:18 +00:00
kipp%netscape.com
35bd6ce005 Make dtor virtual to quite down compilers
git-svn-id: svn://10.0.0.236/trunk@19694 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 16:26:42 +00:00
kipp%netscape.com
379ca7eb4c Implement ReadFrameRegressionData
git-svn-id: svn://10.0.0.236/trunk@19693 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 16:26:19 +00:00
kipp%netscape.com
1d6003277f Added temporary method until sync i/o works
git-svn-id: svn://10.0.0.236/trunk@19692 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 16:26:01 +00:00
terry%netscape.com
f754335315 Fix up MailNews components.
git-svn-id: svn://10.0.0.236/trunk@19691 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 16:09:45 +00:00
ftang%netscape.com
eac34daff7 add several intl componment into nsSetupRegistry
git-svn-id: svn://10.0.0.236/trunk@19690 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 15:55:58 +00:00
dcone%netscape.com
364c12bc93 Fixed typo
git-svn-id: svn://10.0.0.236/trunk@19689 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 15:54:34 +00:00
wtc%netscape.com
67291a1077 Removed unused variable warnings by the Macintosh compiler. The patch
is contributed by Kathleen Brade <brade@netscape.com>.


git-svn-id: svn://10.0.0.236/trunk@19688 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 15:53:49 +00:00
terry%netscape.com
c205e2c04f Removed "Javascript Debugger".
git-svn-id: svn://10.0.0.236/trunk@19687 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 15:31:51 +00:00
dcone%netscape.com
9a6a29a0d6 Added image support to the postscript
git-svn-id: svn://10.0.0.236/trunk@19686 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 15:17:42 +00:00
waterson%netscape.com
ab4eb80a11 Add to Win32 build and include class decls for lame Win32 compiler.
git-svn-id: svn://10.0.0.236/trunk@19685 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 11:28:44 +00:00
waterson%netscape.com
573ba69ecb Added mozilla:layout:html:document:src to manifest dirs.
git-svn-id: svn://10.0.0.236/trunk@19684 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 11:16:57 +00:00
saari%netscape.com
3988762858 Updating the unix's widget factories for the menu changes
git-svn-id: svn://10.0.0.236/trunk@19683 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 11:16:40 +00:00
waterson%netscape.com
bfed4e7c20 Initial revision.
git-svn-id: svn://10.0.0.236/trunk@19682 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 11:14:19 +00:00
mcafee%netscape.com
bd4ca2a390 Adding newline at end of file.
git-svn-id: svn://10.0.0.236/trunk@19681 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 11:00:41 +00:00
waterson%netscape.com
4142754bd1 Added the XULBuilder CID.
git-svn-id: svn://10.0.0.236/trunk@19680 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 10:56:30 +00:00
waterson%netscape.com
a07fcab347 Added an #ifdef-ed out hard dependency on layout. So I can remember how to do HTML-in-XUL.
git-svn-id: svn://10.0.0.236/trunk@19679 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 10:55:09 +00:00
waterson%netscape.com
6b92d49bdd Fixed missing NS_INIT_REFCNT() bug.
git-svn-id: svn://10.0.0.236/trunk@19678 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 10:54:18 +00:00
waterson%netscape.com
9a912de0e1 First cut at a real implementation. HTML-in-XUL is #ifdef-ed out pending some workable interface for constructing HTML tags.
git-svn-id: svn://10.0.0.236/trunk@19677 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 10:53:22 +00:00
waterson%netscape.com
7cfbf3a67b Made shared static services where possible.
git-svn-id: svn://10.0.0.236/trunk@19676 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 10:52:35 +00:00
waterson%netscape.com
b2cf1d8151 Added nsIHTMLContentContainer interface, made SplitProperty() more clever. Fits and starts toward getting HTML-in-XUL-in-RDF working.
git-svn-id: svn://10.0.0.236/trunk@19675 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 10:50:50 +00:00
saari%netscape.com
80267e4ba2 fixed Win32 widget factory
git-svn-id: svn://10.0.0.236/trunk@19674 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 10:49:00 +00:00
mcafee%netscape.com
cb161038ce moving fe_GetConfigDir() to modules/libpref/src/unix/unixpref.c.
git-svn-id: svn://10.0.0.236/trunk@19673 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 10:46:08 +00:00
waterson%netscape.com
b391703d98 Buncha stuff to clean up implementation and make sure that a good RDF graph was getting created from the XUL.
git-svn-id: svn://10.0.0.236/trunk@19672 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 10:44:53 +00:00
mcafee%netscape.com
5d3d453ac9 Adding AppCores directory to build
git-svn-id: svn://10.0.0.236/trunk@19671 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 10:43:19 +00:00
waterson%netscape.com
8692499e59 First stab at making this threadsafe. Still need to refcount the Assertion struct.
git-svn-id: svn://10.0.0.236/trunk@19670 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 10:42:21 +00:00
mcafee%netscape.com
710fcc50d3 removing unused parts of this makefile.
git-svn-id: svn://10.0.0.236/trunk@19669 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 10:41:48 +00:00
mcafee%netscape.com
df6c9ce263 Adding forward declaration for nsIStyleContext to try and fix windows bustage
git-svn-id: svn://10.0.0.236/trunk@19668 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 10:40:42 +00:00
saari%netscape.com
0d4e9108ca Trying to fix windows. Removing nsProgressMeter.cpp (added earlier today) from the windows build.
git-svn-id: svn://10.0.0.236/trunk@19667 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 09:35:21 +00:00
mcafee%netscape.com
d31e7abbb9 Adding nsProgressMeterFrame.cpp to the build
git-svn-id: svn://10.0.0.236/trunk@19666 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 09:22:46 +00:00
briano%netscape.com
70532e1168 Automated update
git-svn-id: svn://10.0.0.236/trunk@19665 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 09:18:12 +00:00
mcafee%netscape.com
8b7bd111f2 Adding xpfe/AppCores
git-svn-id: svn://10.0.0.236/trunk@19664 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 09:17:41 +00:00
talisman%anamorphic.com
cd164e97a2 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@19663 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 07:49:11 +00:00
saari%netscape.com
c535541682 made nsISupports inheritance more explicit
git-svn-id: svn://10.0.0.236/trunk@19662 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 07:29:18 +00:00
saari%netscape.com
dd4e2d038c nsMenu inherits from nsIMenuListener
git-svn-id: svn://10.0.0.236/trunk@19661 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 07:25:39 +00:00
saari%netscape.com
3b2bec70bf exporting nsIXULCommand.h from mozilla/xpfe/appshell/public on the Mac because it will be needed by widget.shlb soon.
This is probably the wrong thing to do, but Windows is exporting it too. The right thing to do is move nsIXULCommand.h and nsXULCommand.h along with nsXULCommand.cpp somewhere other than appshell.


git-svn-id: svn://10.0.0.236/trunk@19660 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 06:28:36 +00:00
saari%netscape.com
6162d39233 kMenuBarIID should have been kIMenuBarIID
git-svn-id: svn://10.0.0.236/trunk@19659 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 06:19:45 +00:00
saari%netscape.com
45da16b306 added the fix I made for Mac
git-svn-id: svn://10.0.0.236/trunk@19658 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 05:12:22 +00:00
racham%netscape.com
4e4edd0356 Modified variable names
git-svn-id: svn://10.0.0.236/trunk@19657 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 04:31:39 +00:00
racham%netscape.com
5cbea0f1ec Modified variable names.
git-svn-id: svn://10.0.0.236/trunk@19656 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 04:27:59 +00:00
alecf%netscape.com
00ff5052ca more fixes to allow for Message posting (not there yet...)
git-svn-id: svn://10.0.0.236/trunk@19655 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 04:27:10 +00:00
alecf%netscape.com
e2f5596ea3 add new accessor for message member
git-svn-id: svn://10.0.0.236/trunk@19654 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 04:26:29 +00:00
alecf%netscape.com
9e24003c5f minor fixes to prevent dereferencing NULL pointers
git-svn-id: svn://10.0.0.236/trunk@19653 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 04:26:03 +00:00
saari%netscape.com
6f65f2d4a4 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@19652 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 04:04:44 +00:00
saari%netscape.com
ce012b2b13 fixing another lame error
git-svn-id: svn://10.0.0.236/trunk@19651 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 04:03:22 +00:00
troy%netscape.com
1233cd2b49 Added PARAM {display:none}
git-svn-id: svn://10.0.0.236/trunk@19650 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 03:47:01 +00:00
saari%netscape.com
1f7957bbc7 fixed lame syntax error
git-svn-id: svn://10.0.0.236/trunk@19649 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 03:44:43 +00:00
saari%netscape.com
b90594694b fixes
git-svn-id: svn://10.0.0.236/trunk@19648 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 03:37:55 +00:00
coop%netscape.com
f612d438db NOT YET PART OF SEAMONKEY:
* added support for non-verbose mode as default for typelib dumper.


git-svn-id: svn://10.0.0.236/trunk@19647 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 03:16:07 +00:00
saari%netscape.com
8ff2b3b1c1 ...minimizing damage...
git-svn-id: svn://10.0.0.236/trunk@19646 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 03:01:05 +00:00
vidur%netscape.com
6699b1d614 Implemented miscellaneous document properties
git-svn-id: svn://10.0.0.236/trunk@19645 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 02:58:02 +00:00
saari%netscape.com
fc04cf4c17 ...fixing breakage...
git-svn-id: svn://10.0.0.236/trunk@19644 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 02:54:56 +00:00
saari%netscape.com
60324c45d1 fixing build
git-svn-id: svn://10.0.0.236/trunk@19643 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 02:48:43 +00:00
saari%netscape.com
18455df1c3 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@19642 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 02:46:19 +00:00
saari%netscape.com
6fdc3ffa9b windows, gtk, motif corrections for nsIMenuListener.h change
git-svn-id: svn://10.0.0.236/trunk@19641 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 02:46:17 +00:00
saari%netscape.com
ba3bb11729 ... this file should be happy with the nsIMenuListener change now...
git-svn-id: svn://10.0.0.236/trunk@19640 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 02:42:07 +00:00
saari%netscape.com
e30a6edff3 fixing build one chunk at a time
git-svn-id: svn://10.0.0.236/trunk@19639 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 02:38:13 +00:00
mscott%netscape.com
1526cec953 Small stuff..fixed some windows build breakages by returning a value in SetupUrl and PostData...
git-svn-id: svn://10.0.0.236/trunk@19638 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 02:36:57 +00:00
saari%netscape.com
b2c830690b more hurried checkins.
windows, gtk, motif versions to follow


git-svn-id: svn://10.0.0.236/trunk@19637 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 02:32:01 +00:00
saari%netscape.com
68aa1c80e5 On the road to fixing build breakage. More checkins to follow
git-svn-id: svn://10.0.0.236/trunk@19636 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 02:27:58 +00:00
vidur%netscape.com
ca60bedc58 Implemented nsHTMLDocument::SetBody
git-svn-id: svn://10.0.0.236/trunk@19635 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 02:16:11 +00:00
saari%netscape.com
b0dcd370b5 mozilla/widget/src/mac/nsMenu.cpp
- define kIMenuIID
- QueryInterface supports nsIMenuListener 
- implements MenuSelected() which does event dispatch  (on mac only for this checkin)

mozilla/widget/src/mac/nsMenu.h
- include "nsIMenuListener.h"
- nsMenu inherits from nsIMenuListener
- keep an internal array of menuitems (on mac only for this checkin)


git-svn-id: svn://10.0.0.236/trunk@19634 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 02:13:25 +00:00
hyatt%netscape.com
76dd281f0d Started laying the foundation for keyboard navigation.
git-svn-id: svn://10.0.0.236/trunk@19633 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 02:10:25 +00:00
nhotta%netscape.com
3c1a4df051 Integration of the case conversion interface.
git-svn-id: svn://10.0.0.236/trunk@19632 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 02:02:49 +00:00
saari%netscape.com
f7a4362c56 added nsProgressMeterFrame.cpp to layout.mcp for Eric
git-svn-id: svn://10.0.0.236/trunk@19631 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 01:56:44 +00:00
nhotta%netscape.com
22b9fa451c Integration of the case conversion interface.
git-svn-id: svn://10.0.0.236/trunk@19630 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 01:40:58 +00:00
hyatt%netscape.com
33b3b49288 Fix to CTRL-based multiple selection.
git-svn-id: svn://10.0.0.236/trunk@19629 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 01:39:38 +00:00
nhotta%netscape.com
98bb5b3314 RegisterFactory for case conversion interface.
git-svn-id: svn://10.0.0.236/trunk@19628 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 01:39:11 +00:00
nhotta%netscape.com
e59d48cff3 Additional include paths.
git-svn-id: svn://10.0.0.236/trunk@19627 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 01:37:46 +00:00
evaughan%netscape.com
9891fe14e6 Added the XUL progress meter widget.
git-svn-id: svn://10.0.0.236/trunk@19626 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 01:34:15 +00:00
alecf%netscape.com
2c76c26721 move URL setup to a common function
change scanf -> fgets
initial skeleton for posting


git-svn-id: svn://10.0.0.236/trunk@19625 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 01:11:25 +00:00
akkana%netscape.com
29ca4c23bc Fix memory leak: use nsCOMPtr for frame selection everywhere
git-svn-id: svn://10.0.0.236/trunk@19624 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 01:00:34 +00:00
nisheeth%netscape.com
5df9635701 Added ReconstructFramesOnAttributeChange() to the HTML stylesheet
that gets called when a content object's attribute change requires
its frames to get recreated.


git-svn-id: svn://10.0.0.236/trunk@19623 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 00:53:08 +00:00
waterson%netscape.com
75a123b2ee Added TestAutoLock.cpp
git-svn-id: svn://10.0.0.236/trunk@19622 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 00:48:09 +00:00
amusil%netscape.com
079c005617 Added caps and OJI projects to the build
git-svn-id: svn://10.0.0.236/trunk@19621 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 00:44:34 +00:00
waterson%netscape.com
c5c06de4da Added TestAutoLock.
git-svn-id: svn://10.0.0.236/trunk@19620 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 00:44:17 +00:00
troy%netscape.com
b7ecf11083 Fix for bug #2867. Removed the questionable logic I added previously.
git-svn-id: svn://10.0.0.236/trunk@19619 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 00:43:49 +00:00
waterson%netscape.com
19cc41ca68 Initial revision.
git-svn-id: svn://10.0.0.236/trunk@19618 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 00:40:22 +00:00
waterson%netscape.com
79ee413eec Added headers that nsAutoLock needs.
git-svn-id: svn://10.0.0.236/trunk@19617 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 00:39:49 +00:00
tague%netscape.com
56cf68426e Added Windows specific locale interfaces and implementation
git-svn-id: svn://10.0.0.236/trunk@19616 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 00:33:44 +00:00
coop%netscape.com
4787cd5e13 NOT YET PART OF SEAMONKEY:
* add command-line flag for verbose mode, which will soon not be the default
* now outputs to stdout
* added output for int64, uint64, and wchar


git-svn-id: svn://10.0.0.236/trunk@19615 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 00:31:59 +00:00
hyatt%netscape.com
f43ae4b0c5 Altered the tree structure so that the treerow tag is now obsolete.
git-svn-id: svn://10.0.0.236/trunk@19614 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 00:28:25 +00:00
hyatt%netscape.com
5ab6658ab9 Changed the tree frame construction code.
git-svn-id: svn://10.0.0.236/trunk@19613 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 00:28:05 +00:00
waterson%netscape.com
c4aee0da62 Added operator new() and operator delete() to ensure that nobody tries to create one of these beasts on the free store.
git-svn-id: svn://10.0.0.236/trunk@19612 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 00:25:56 +00:00
akkana%netscape.com
d85b082391 Fix typein
git-svn-id: svn://10.0.0.236/trunk@19611 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 00:19:30 +00:00
amusil%netscape.com
c160aeabf3 Added oji, liveconnect, and caps shared libs to the registry for Mac
git-svn-id: svn://10.0.0.236/trunk@19610 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 00:19:13 +00:00
amusil%netscape.com
6eda94e535 Added oji, liveconnect and caps shared libs to the registry.
git-svn-id: svn://10.0.0.236/trunk@19609 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 00:18:22 +00:00
pinkerton%netscape.com
7e4963637d Check for a valid rendering context before we actually start drawing. Use a new stack-based class for saving rendering context state. Hopefully, it won't live here forever, but will be ok for everyone to use.
git-svn-id: svn://10.0.0.236/trunk@19608 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 00:10:28 +00:00
amusil%netscape.com
f34c34a981 Corrected error in the use of CIIDs and IIDs
git-svn-id: svn://10.0.0.236/trunk@19607 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 00:03:18 +00:00
racham%netscape.com
007b84bbfd Commented out the Install builder related code
git-svn-id: svn://10.0.0.236/trunk@19606 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-04 00:01:38 +00:00
shaver%netscape.com
20f0db9efd New back-end switching for whiter teeth and fresher breath.
De-const-ipate in params.  (Maybe strings should still be const?  I await the
outcome of The Great String Debate.)


git-svn-id: svn://10.0.0.236/trunk@19605 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 23:55:33 +00:00
karnaze%netscape.com
f728c86270 work in progress for table visibility=collapse
git-svn-id: svn://10.0.0.236/trunk@19604 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 23:54:32 +00:00
racham%netscape.com
63994c899a WizardMachine project file
git-svn-id: svn://10.0.0.236/trunk@19603 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 23:50:03 +00:00
racham%netscape.com
ae979782da Thread to run progress dialog
git-svn-id: svn://10.0.0.236/trunk@19602 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 23:45:50 +00:00
racham%netscape.com
90bdf55344 ProgressDialogThread header file
git-svn-id: svn://10.0.0.236/trunk@19601 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 23:45:10 +00:00
nhotta%netscape.com
2fbb1fb4e3 Unicode converter integration.
git-svn-id: svn://10.0.0.236/trunk@19600 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 23:44:36 +00:00
racham%netscape.com
c5978ee653 Progress dialog source file
git-svn-id: svn://10.0.0.236/trunk@19599 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 23:37:04 +00:00
racham%netscape.com
c38f24f3ea Progress dialog header file
git-svn-id: svn://10.0.0.236/trunk@19598 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 23:36:18 +00:00
terry%netscape.com
179ced1243 Added i18n and l10n components.
git-svn-id: svn://10.0.0.236/trunk@19597 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 23:19:21 +00:00
rods%netscape.com
871c405242 Change the SendMail to use a convience function to get the script context
git-svn-id: svn://10.0.0.236/trunk@19596 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 23:16:13 +00:00
rods%netscape.com
f22ae68dd3 Added HTML name space to the
git-svn-id: svn://10.0.0.236/trunk@19595 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 23:07:22 +00:00
brade%netscape.com
b83bfcbe59 remove extra ';' character which causes many warnings on Macintosh compiler
git-svn-id: svn://10.0.0.236/trunk@19594 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 23:00:01 +00:00
brade%netscape.com
84e66af259 add #ifndef XP_MAC around some other platforms pragma (invalid with current Macintosh tools); this will reduce warnings on Macintosh compiler
git-svn-id: svn://10.0.0.236/trunk@19593 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 22:58:49 +00:00
brade%netscape.com
e6668b4d31 remove extra comma to remove warnings on Macintosh compiler
git-svn-id: svn://10.0.0.236/trunk@19592 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 22:57:36 +00:00
brade%netscape.com
1f196c9975 remove extra comma to reduce warnings on Macintosh compiler
git-svn-id: svn://10.0.0.236/trunk@19591 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 22:57:04 +00:00
kmcclusk%netscape.com
48eb596de2 Renamed GetSize(PRInt32* aSize) to GetSizeFromContent to remove conflict with
nsFrame GetSize(nsSize& aSize).
Added check for null mWidget in nsFormControlFrame::HandleEvent


git-svn-id: svn://10.0.0.236/trunk@19590 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 22:56:50 +00:00
waterson%netscape.com
1251e59880 Added nsAutoLock.h to the exports.
git-svn-id: svn://10.0.0.236/trunk@19589 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 22:44:30 +00:00
waterson%netscape.com
5f6247537d Initial revision.
git-svn-id: svn://10.0.0.236/trunk@19588 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 22:44:14 +00:00
alecf%netscape.com
21ab169b68 turn off NETLIB_THREAD for now since it's making us use 100% of the CPU and may be causing a PR_ASSERT(0) in netlib
git-svn-id: svn://10.0.0.236/trunk@19587 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 22:40:45 +00:00
hyatt%netscape.com
3bc78537e4 Fixing a bug on Windows where CTRL, SHIFT, and ALT states were not being
set properly on mouse events.


git-svn-id: svn://10.0.0.236/trunk@19586 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 22:36:34 +00:00
hyatt%netscape.com
9134079406 Implemented multiple selection (using SHIFT and CTRL) in the tree view.
git-svn-id: svn://10.0.0.236/trunk@19585 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 22:35:30 +00:00
hyatt%netscape.com
c05663e5e2 Made the table member variables protected so that the tree widget can
access them.


git-svn-id: svn://10.0.0.236/trunk@19584 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 22:35:03 +00:00
ftang%netscape.com
f5ead3cd95 make strres part of the mac build
git-svn-id: svn://10.0.0.236/trunk@19583 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 22:29:47 +00:00
shaver%netscape.com
24c5daca8b (NOT YET PART OF SEAMONKEY)
Update to use 16-bit IDE indices (one-based) instead of header-pool offsets.
Removed debugging cruft.
Added prototypes to get rid of warnings.
Fix many dumb mistakes WRT allocation and index checking.


git-svn-id: svn://10.0.0.236/trunk@19582 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 21:37:25 +00:00
pinkerton%netscape.com
6f6b9113b2 add nsHashtable::Reset to exports.
git-svn-id: svn://10.0.0.236/trunk@19581 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 21:23:36 +00:00
pinkerton%netscape.com
c96dd9f540 fix optimized inclusion of dom.shlb (extra space at end of filename). Approved for checkin while tree closed by donm.
git-svn-id: svn://10.0.0.236/trunk@19580 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 21:12:48 +00:00
racham%netscape.com
52bbc59b7a A Sample NCI file
git-svn-id: svn://10.0.0.236/trunk@19579 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 21:07:27 +00:00
racham%netscape.com
04d75799be Account Setup Bitmap
git-svn-id: svn://10.0.0.236/trunk@19578 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 21:02:10 +00:00
racham%netscape.com
66937619db Splash Screen Bitmap
git-svn-id: svn://10.0.0.236/trunk@19577 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 21:00:43 +00:00
racham%netscape.com
3508578f08 Shell Bitmap
git-svn-id: svn://10.0.0.236/trunk@19576 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:59:08 +00:00
racham%netscape.com
a5014bac8a Netscape logo bitmap
git-svn-id: svn://10.0.0.236/trunk@19575 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:56:32 +00:00
racham%netscape.com
300670690c Small animation logo bitmap
git-svn-id: svn://10.0.0.236/trunk@19574 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:55:02 +00:00
racham%netscape.com
51d1cbe590 Large animation logo bitmap
git-svn-id: svn://10.0.0.236/trunk@19573 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:54:25 +00:00
racham%netscape.com
9aefa78dcf Installation bitmap
git-svn-id: svn://10.0.0.236/trunk@19572 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:52:55 +00:00
racham%netscape.com
23d0d3db3e Home button customization bitmap
git-svn-id: svn://10.0.0.236/trunk@19571 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:50:23 +00:00
racham%netscape.com
d7bec35ca1 Help menu bitmap
git-svn-id: svn://10.0.0.236/trunk@19570 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:49:05 +00:00
racham%netscape.com
507d2da35b Bookmark bitmap
git-svn-id: svn://10.0.0.236/trunk@19569 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:48:25 +00:00
racham%netscape.com
0d9cf334b3 CD Shell custom installation guide button example
git-svn-id: svn://10.0.0.236/trunk@19568 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:46:23 +00:00
racham%netscape.com
13fddb6878 CD shell below title text customization example
git-svn-id: svn://10.0.0.236/trunk@19567 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:45:42 +00:00
racham%netscape.com
bcaa3d5f38 CD Shell title bar text customizaiton example
git-svn-id: svn://10.0.0.236/trunk@19566 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:44:50 +00:00
racham%netscape.com
98ade06c5b CD Shell custom background bitmap example
git-svn-id: svn://10.0.0.236/trunk@19565 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:43:59 +00:00
racham%netscape.com
d50a34f2fd logo customization graphic example
git-svn-id: svn://10.0.0.236/trunk@19564 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:42:51 +00:00
racham%netscape.com
d8bb0d8931 company name customization graphic example
git-svn-id: svn://10.0.0.236/trunk@19563 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:40:54 +00:00
racham%netscape.com
dddd29e31e tech support customization graphic example
git-svn-id: svn://10.0.0.236/trunk@19562 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:39:37 +00:00
racham%netscape.com
8e4dd72da3 acctSetup background bitmap example
git-svn-id: svn://10.0.0.236/trunk@19561 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:37:21 +00:00
racham%netscape.com
eb1e6bf0e7 Start menu customization example
git-svn-id: svn://10.0.0.236/trunk@19560 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:34:41 +00:00
racham%netscape.com
42499e9b83 Start menu customization graphic example
git-svn-id: svn://10.0.0.236/trunk@19559 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:32:36 +00:00
racham%netscape.com
6a035fcddd Splash screen customization graphic example
git-svn-id: svn://10.0.0.236/trunk@19558 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:31:52 +00:00
racham%netscape.com
690b22651d Small animation customization graphic example
git-svn-id: svn://10.0.0.236/trunk@19557 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:29:45 +00:00
racham%netscape.com
80407d0f85 CD Shell custom installation guide button example
git-svn-id: svn://10.0.0.236/trunk@19556 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:28:05 +00:00
racham%netscape.com
20c3192308 CD shell below title text customization example
git-svn-id: svn://10.0.0.236/trunk@19555 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:26:15 +00:00
racham%netscape.com
7596fd3263 CD Shell title bar text customizaiton example
git-svn-id: svn://10.0.0.236/trunk@19554 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:19:39 +00:00
racham%netscape.com
472fb332e1 CD Shell custom background bitmap example
git-svn-id: svn://10.0.0.236/trunk@19553 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:18:24 +00:00
racham%netscape.com
5c218817b7 logo customization graphic example
git-svn-id: svn://10.0.0.236/trunk@19552 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:16:23 +00:00
racham%netscape.com
1c552d6363 large animation customization graphic example
git-svn-id: svn://10.0.0.236/trunk@19551 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:13:51 +00:00
amusil%netscape.com
cb866264fe Made into shared lib
git-svn-id: svn://10.0.0.236/trunk@19550 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:13:10 +00:00
racham%netscape.com
ec7f04f5af installation screen text customization graphic example
git-svn-id: svn://10.0.0.236/trunk@19549 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:12:41 +00:00
amusil%netscape.com
f32aa4dbc4 Converted oji to build as a shared lib
git-svn-id: svn://10.0.0.236/trunk@19548 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:11:08 +00:00
racham%netscape.com
0a8c73f0d4 home button customization graphic example
git-svn-id: svn://10.0.0.236/trunk@19547 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:10:24 +00:00
racham%netscape.com
0b2e2bfba2 help customization graphic example
git-svn-id: svn://10.0.0.236/trunk@19546 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:08:02 +00:00
racham%netscape.com
c94ad1b7db bookmarks customization graphic example
git-svn-id: svn://10.0.0.236/trunk@19545 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:07:17 +00:00
racham%netscape.com
267eedb001 company name customization graphic example
git-svn-id: svn://10.0.0.236/trunk@19544 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:05:58 +00:00
amusil%netscape.com
97776ae093 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@19543 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:04:48 +00:00
racham%netscape.com
956c5cc6d3 tech support customization graphic example
git-svn-id: svn://10.0.0.236/trunk@19542 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:04:35 +00:00
racham%netscape.com
112e8ce552 Account Setup background graphic
git-svn-id: svn://10.0.0.236/trunk@19541 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 20:00:14 +00:00
vidur%netscape.com
d4278a7540 out-of-line document.write
git-svn-id: svn://10.0.0.236/trunk@19540 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 19:47:53 +00:00
vidur%netscape.com
60d83beb96 improved write test
git-svn-id: svn://10.0.0.236/trunk@19539 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 19:39:53 +00:00
vidur%netscape.com
acd10c909d Added additional key argument to string parsing routine
git-svn-id: svn://10.0.0.236/trunk@19538 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 19:38:39 +00:00
vidur%netscape.com
1349b5dad4 Added additional key argument to string parsing routine. Improved Reset handling for document to include style sets and frame construction. Modified root frame construction. Got out-of-line document.write to work
git-svn-id: svn://10.0.0.236/trunk@19537 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 19:38:16 +00:00
vidur%netscape.com
19818eaa54 Added temporary handling for about: URLs in HTTP url code
git-svn-id: svn://10.0.0.236/trunk@19536 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 19:36:24 +00:00
vidur%netscape.com
258ebe22f8 Added handling for about:blank
git-svn-id: svn://10.0.0.236/trunk@19535 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 19:35:57 +00:00
vidur%netscape.com
d772b13a57 Added a Reset method to nsHashtable
git-svn-id: svn://10.0.0.236/trunk@19534 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 19:35:11 +00:00
nhotta%netscape.com
46890c5cbc RegisterFactory for unicode converter.
git-svn-id: svn://10.0.0.236/trunk@19533 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 19:29:50 +00:00
nhotta%netscape.com
9411c96bdb Date time format Macintosh implementation.
git-svn-id: svn://10.0.0.236/trunk@19532 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 19:28:38 +00:00
karnaze%netscape.com
be7acaf4cc bug 1827
git-svn-id: svn://10.0.0.236/trunk@19531 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 19:26:29 +00:00
pavlov%pavlov.net
ddacee16d3 clean up menu code, et al.
git-svn-id: svn://10.0.0.236/trunk@19530 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 19:18:31 +00:00
pavlov%pavlov.net
dca0459b34 some work on SetClipRectInPixels and some warnings cleanups
git-svn-id: svn://10.0.0.236/trunk@19529 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 19:17:46 +00:00
pinkerton%netscape.com
d7fc61cd9f make linkage match source file.
git-svn-id: svn://10.0.0.236/trunk@19528 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 19:14:48 +00:00
kipp%netscape.com
2f31f19df9 Use ReflowDirty reflow commands; fixed reflow status when dealing with breaking child frames
git-svn-id: svn://10.0.0.236/trunk@19527 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 19:12:02 +00:00
kipp%netscape.com
2f00dc90ae Added List method
git-svn-id: svn://10.0.0.236/trunk@19526 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 19:10:26 +00:00
kipp%netscape.com
3a37b73eab Removed a couple of warnings
git-svn-id: svn://10.0.0.236/trunk@19525 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 19:10:03 +00:00
kipp%netscape.com
cf3bd77d9a Removed some unused variables
git-svn-id: svn://10.0.0.236/trunk@19524 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 19:09:37 +00:00
kipp%netscape.com
a601a24765 Fixup absolute positioning by temporarily generating old style reflow commands when the list-name is not null; temporarily use FrameAppended instead of ReflowDirty for append operations
git-svn-id: svn://10.0.0.236/trunk@19523 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 19:09:24 +00:00
kipp%netscape.com
3ac487b083 Added ReflowDirty reflow command
git-svn-id: svn://10.0.0.236/trunk@19522 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 19:08:07 +00:00
terry%netscape.com
158674028d Whoops; removed test data.
git-svn-id: svn://10.0.0.236/trunk@19521 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 19:01:20 +00:00
terry%netscape.com
9b03fc96d8 Allow components to have a default qacontact.
git-svn-id: svn://10.0.0.236/trunk@19520 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 19:00:13 +00:00
kmcclusk%netscape.com
15091c910a Moved ForceDrawFrame from nsComboboxControlFrame to nsFormControlHelper
Removed commented out code in nsFormControlHelper.h.
Modified nsCheckboxControlFrame and nsRadioControlFrame to use ForceDrawFrame
when gfx-rendered.


git-svn-id: svn://10.0.0.236/trunk@19519 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:55:37 +00:00
cata%netscape.com
94c1fefbf7 Hacky Unicode converters implementation replaced with the real xpcom thing.
git-svn-id: svn://10.0.0.236/trunk@19518 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:55:10 +00:00
cata%netscape.com
8f39f603ba Added dependency on Unicode Converters.
git-svn-id: svn://10.0.0.236/trunk@19517 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:52:21 +00:00
racham%netscape.com
ee22698539 Checklist page
git-svn-id: svn://10.0.0.236/trunk@19516 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:50:07 +00:00
dp%netscape.com
4b61fe58b7 Fixing linux orange tree.
git-svn-id: svn://10.0.0.236/trunk@19515 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:49:04 +00:00
racham%netscape.com
dbfc00c76b Finish page
git-svn-id: svn://10.0.0.236/trunk@19514 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:48:20 +00:00
racham%netscape.com
89939dd7cf Installer customizations
git-svn-id: svn://10.0.0.236/trunk@19513 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:46:23 +00:00
racham%netscape.com
00b7524089 Start Menu customizations
git-svn-id: svn://10.0.0.236/trunk@19512 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:44:48 +00:00
racham%netscape.com
1a83a8188e User Agent Information
git-svn-id: svn://10.0.0.236/trunk@19511 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:43:59 +00:00
racham%netscape.com
278d9ea66b Home Page customizations
git-svn-id: svn://10.0.0.236/trunk@19510 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:42:58 +00:00
pinkerton%netscape.com
3871597854 fix up right justification by setting width on absolute positioned frame.
git-svn-id: svn://10.0.0.236/trunk@19509 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:42:05 +00:00
racham%netscape.com
5563943e5f Customizations main page
git-svn-id: svn://10.0.0.236/trunk@19508 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:41:25 +00:00
racham%netscape.com
e6a648cfbb cck Main Page
git-svn-id: svn://10.0.0.236/trunk@19507 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:40:11 +00:00
racham%netscape.com
8d39996f66 Installer Customizations
git-svn-id: svn://10.0.0.236/trunk@19506 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:38:42 +00:00
racham%netscape.com
258092bcc8 Account Setup Customizations
git-svn-id: svn://10.0.0.236/trunk@19505 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:37:43 +00:00
racham%netscape.com
a51dd18872 CD Shell customizations
git-svn-id: svn://10.0.0.236/trunk@19504 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:36:18 +00:00
racham%netscape.com
c1fb9ff172 Animation customizations
git-svn-id: svn://10.0.0.236/trunk@19503 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:34:54 +00:00
racham%netscape.com
e26583188c Branding main page
git-svn-id: svn://10.0.0.236/trunk@19502 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:32:11 +00:00
briano%netscape.com
24be925378 Automated update
git-svn-id: svn://10.0.0.236/trunk@19501 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:30:44 +00:00
racham%netscape.com
5e8db0c547 iniFile for AccountSetup customizations
git-svn-id: svn://10.0.0.236/trunk@19500 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:30:36 +00:00
pinkerton%netscape.com
2f78fa6120 add mac to the appcore ifdef's.
git-svn-id: svn://10.0.0.236/trunk@19499 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:24:26 +00:00
dcone%netscape.com
07f0f22025 Rewrote postscript stuff into a nsPostScriptObj class
git-svn-id: svn://10.0.0.236/trunk@19498 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:21:33 +00:00
pinkerton%netscape.com
6664310c68 turn off "use mod date caching" for dep build.
git-svn-id: svn://10.0.0.236/trunk@19497 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:16:19 +00:00
erik%netscape.com
1c6fa36f87 Added mozilla/intl/strres Makefiles to Unix build.
git-svn-id: svn://10.0.0.236/trunk@19496 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:16:03 +00:00
pinkerton%netscape.com
cb6bce4173 export all the methods for Mac using NS_EXPORT.
git-svn-id: svn://10.0.0.236/trunk@19495 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:15:01 +00:00
erik%netscape.com
6889802b50 Added strres to Unix build.
git-svn-id: svn://10.0.0.236/trunk@19494 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:14:48 +00:00
pinkerton%netscape.com
cdf3de1d74 Add some manifest files to dom for appCore. Add AppCore.mcp to build process. Export some html/xml/css files to res used by AppCore.
git-svn-id: svn://10.0.0.236/trunk@19493 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:14:31 +00:00
erik%netscape.com
d70c988f51 Unix Makefile for this directory.
git-svn-id: svn://10.0.0.236/trunk@19492 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:14:04 +00:00
pinkerton%netscape.com
0253b1eaae fix typo.
git-svn-id: svn://10.0.0.236/trunk@19491 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:13:31 +00:00
erik%netscape.com
e8cfa7c5f6 Added PropertiesTest.cpp to Unix build.
git-svn-id: svn://10.0.0.236/trunk@19490 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:13:30 +00:00
erik%netscape.com
d9299c4bc3 Added nsBaseDLL.cpp and nsProperties.cpp to Unix build.
git-svn-id: svn://10.0.0.236/trunk@19489 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:12:59 +00:00
erik%netscape.com
0633ab1c2c Added nsIProperties.h to Unix build.
git-svn-id: svn://10.0.0.236/trunk@19488 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:12:24 +00:00
erik%netscape.com
fcf0688ef4 Fixed compiler warning on Linux.
git-svn-id: svn://10.0.0.236/trunk@19487 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:11:45 +00:00
pinkerton%netscape.com
b210c96897 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@19486 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:08:53 +00:00
erik%netscape.com
67b0db3421 Fixed compiler warnings on Linux, and added code for LockFactory.
git-svn-id: svn://10.0.0.236/trunk@19485 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:08:03 +00:00
ftang%netscape.com
470dc11aeb stop building gendata. it is obsoleted
git-svn-id: svn://10.0.0.236/trunk@19484 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 18:00:03 +00:00
terry%netscape.com
6a859655b7 Allow resetting a target milestone back to null.
git-svn-id: svn://10.0.0.236/trunk@19483 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:56:56 +00:00
erik%netscape.com
1e8dc1e3ef Adding strres again. This time it should be OK, since intl is built after
base in mozilla/nglayout.mak. (And I tried a build from scratch.)


git-svn-id: svn://10.0.0.236/trunk@19482 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:55:52 +00:00
ftang%netscape.com
7f2b8d7b47 stop building gendat
git-svn-id: svn://10.0.0.236/trunk@19481 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:54:51 +00:00
pinkerton%netscape.com
385307e652 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@19480 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:54:05 +00:00
racham%netscape.com
988b3249e7 auto generated aps file
git-svn-id: svn://10.0.0.236/trunk@19479 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:48:29 +00:00
racham%netscape.com
11e28ad143 Class wizard information file
git-svn-id: svn://10.0.0.236/trunk@19478 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:46:11 +00:00
racham%netscape.com
99bd896fa0 WizardMachine project file
git-svn-id: svn://10.0.0.236/trunk@19477 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:44:47 +00:00
ftang%netscape.com
c628c8cd1b change implementation to Imp2 so it don't depend on MTT and faster, smaller
git-svn-id: svn://10.0.0.236/trunk@19476 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:44:05 +00:00
ftang%netscape.com
8ed02f441f change implementation to Imp2 so it is faster and smaller and do not depend on MTT
git-svn-id: svn://10.0.0.236/trunk@19475 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:43:38 +00:00
racham%netscape.com
d3645a1bfe Automatically generated ncb file
git-svn-id: svn://10.0.0.236/trunk@19474 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:39:40 +00:00
racham%netscape.com
3a36261f69 bitmap file
git-svn-id: svn://10.0.0.236/trunk@19473 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:36:08 +00:00
kipp%netscape.com
ebe82f4efa Eliminate duplicate mRefCnt since base class declares one...
git-svn-id: svn://10.0.0.236/trunk@19472 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:35:52 +00:00
rods%netscape.com
948bd64f89 Added installing of gifs to makefile
git-svn-id: svn://10.0.0.236/trunk@19471 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:35:15 +00:00
racham%netscape.com
1f1446c5c0 Icon File
git-svn-id: svn://10.0.0.236/trunk@19470 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:34:52 +00:00
rods%netscape.com
50f9a9a376 Rename gifs and am checking them in.
git-svn-id: svn://10.0.0.236/trunk@19469 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:34:31 +00:00
terry%netscape.com
f2d7b0374e Allow queries for null target milestone, and allow reseting a target
milestone back to null.


git-svn-id: svn://10.0.0.236/trunk@19468 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:32:52 +00:00
racham%netscape.com
83a10ea91b Auto generated rc file
git-svn-id: svn://10.0.0.236/trunk@19466 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:30:55 +00:00
kmcclusk%netscape.com
8614dc57ef Added support to allow form elements to be either GFX-rendered or use widgets.
Work in progress for getting check boxes and radio buttons gfx-rendered.


git-svn-id: svn://10.0.0.236/trunk@19465 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:25:25 +00:00
racham%netscape.com
7c65187c2c UI resource file for the WizardMachine
git-svn-id: svn://10.0.0.236/trunk@19464 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:17:27 +00:00
troy%netscape.com
8d123f458f Added two new sample tests
git-svn-id: svn://10.0.0.236/trunk@19463 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:16:11 +00:00
racham%netscape.com
9960aaa2c8 Connecting file between driver code and UI
git-svn-id: svn://10.0.0.236/trunk@19462 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:12:26 +00:00
racham%netscape.com
99a0e147a7 Automatically generated resource header file
git-svn-id: svn://10.0.0.236/trunk@19461 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:10:25 +00:00
racham%netscape.com
57a8f70d4a Source file for collecting new NCI file name
git-svn-id: svn://10.0.0.236/trunk@19460 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:07:43 +00:00
troy%netscape.com
9d48623d92 Added some more test files
git-svn-id: svn://10.0.0.236/trunk@19458 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:05:48 +00:00
troy%netscape.com
92718fbc7a Initial check-in
git-svn-id: svn://10.0.0.236/trunk@19457 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:03:05 +00:00
racham%netscape.com
1b883a7490 NewDialog header file
git-svn-id: svn://10.0.0.236/trunk@19456 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:02:51 +00:00
troy%netscape.com
9e1cfc5c91 Improvements to fixed positioning
git-svn-id: svn://10.0.0.236/trunk@19455 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 17:01:51 +00:00
racham%netscape.com
f4e5ac31fd Create context sensitive dialog popup
git-svn-id: svn://10.0.0.236/trunk@19454 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 16:58:48 +00:00
racham%netscape.com
889cd2c4ee NewConfigDialog header file
git-svn-id: svn://10.0.0.236/trunk@19453 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 16:56:17 +00:00
rods%netscape.com
fa993668ad Added AppCores to build
git-svn-id: svn://10.0.0.236/trunk@19451 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 16:52:14 +00:00
racham%netscape.com
89ebff9f1d Root property sheet source file
git-svn-id: svn://10.0.0.236/trunk@19450 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 16:51:07 +00:00
rods%netscape.com
454c2668e4 Added appcores stuff just for Windows, working on Mac and Linux
git-svn-id: svn://10.0.0.236/trunk@19449 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 16:50:05 +00:00
racham%netscape.com
9efc8f2d20 File that provides UI services for Wizard
git-svn-id: svn://10.0.0.236/trunk@19448 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 16:49:10 +00:00
rods%netscape.com
ccd26fd185 Fixed up some debug
git-svn-id: svn://10.0.0.236/trunk@19447 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 16:48:55 +00:00
rods%netscape.com
08232e396c Added appcores
git-svn-id: svn://10.0.0.236/trunk@19446 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 16:48:20 +00:00
rods%netscape.com
01c436eec4 Added Debug statements
git-svn-id: svn://10.0.0.236/trunk@19445 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 16:47:16 +00:00
racham%netscape.com
5ff860d1ed WizardMachine User Interface headers
git-svn-id: svn://10.0.0.236/trunk@19444 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 16:47:01 +00:00
racham%netscape.com
027be789af WizardMachine Dialog interface header file
git-svn-id: svn://10.0.0.236/trunk@19443 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 16:45:07 +00:00
terry%netscape.com
2f19536421 Allow queries for null target milestone, and allow reseting a target
milestone back to null.


git-svn-id: svn://10.0.0.236/trunk@19442 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 16:43:05 +00:00
racham%netscape.com
98a28c9e2a Wizardmachine Driver Core code enabling navigationa and other services
git-svn-id: svn://10.0.0.236/trunk@19441 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 16:39:50 +00:00
racham%netscape.com
a205f6095c Wizardmachine Driver header file
git-svn-id: svn://10.0.0.236/trunk@19440 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 16:38:33 +00:00
racham%netscape.com
8617faa87d Standard AFX file
git-svn-id: svn://10.0.0.236/trunk@19439 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 16:36:27 +00:00
racham%netscape.com
7a086b6be2 Standard AFX headers
git-svn-id: svn://10.0.0.236/trunk@19438 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 16:35:58 +00:00
racham%netscape.com
50eff29c49 Navigation Status text file
git-svn-id: svn://10.0.0.236/trunk@19437 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 16:34:56 +00:00
racham%netscape.com
f8676b45aa Root property sheet header file
git-svn-id: svn://10.0.0.236/trunk@19436 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 16:34:01 +00:00
racham%netscape.com
38dc406a7a Navigation Status text related header file
git-svn-id: svn://10.0.0.236/trunk@19435 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 16:32:08 +00:00
racham%netscape.com
5ae447c613 This file serves as a template for creating new NCI files
git-svn-id: svn://10.0.0.236/trunk@19434 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 16:30:59 +00:00
rods%netscape.com
0cd8e589cd Moved the Mail XUL files to their own directory
git-svn-id: svn://10.0.0.236/trunk@19433 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 16:29:54 +00:00
pinkerton%netscape.com
46181410db use nsCOMPtr
git-svn-id: svn://10.0.0.236/trunk@19432 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 16:19:09 +00:00
rods%netscape.com
69f1a7cd81 Moved files from AppCores to public and src directories
git-svn-id: svn://10.0.0.236/trunk@19431 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 15:54:07 +00:00
dp%netscape.com
d5470d4135 adding ns prefix to private classes namespace
git-svn-id: svn://10.0.0.236/trunk@19430 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 15:39:13 +00:00
ftang%netscape.com
6c2994b241 fix mac warning. delete , from enum
git-svn-id: svn://10.0.0.236/trunk@19427 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 09:02:54 +00:00
ftang%netscape.com
f20f741178 make the table static instead of extern
git-svn-id: svn://10.0.0.236/trunk@19426 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 08:52:22 +00:00
ftang%netscape.com
c748d4c465 Fix extern and static problem
git-svn-id: svn://10.0.0.236/trunk@19425 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 08:51:56 +00:00
ftang%netscape.com
25cc8d7a58 add the second implementation to replace the MTT implementation. the casetable.h is build by ../tools/gencasetable.pl on window with [Dec 29 22:05:00 1998] version (2.1.8) of UnicodeData-Latest.txt file
git-svn-id: svn://10.0.0.236/trunk@19424 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 08:44:02 +00:00
ftang%netscape.com
c223c01e28 add gencasetable.pl which used to generate mozilla/intl/unicharutil/src/casetable.h from UnicodeData-Latest.txt
git-svn-id: svn://10.0.0.236/trunk@19423 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 08:38:39 +00:00
dp%netscape.com
353a25c88b landing XPCOM_19990201_BRANCH
git-svn-id: svn://10.0.0.236/trunk@19422 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 07:03:17 +00:00
dp%netscape.com
6682fb1f77 Landing XPCOM_19990201_BRANCH to the tip.
git-svn-id: svn://10.0.0.236/trunk@19421 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 06:58:44 +00:00
pierre%netscape.com
2da2a6b0be Fixed build bustage
git-svn-id: svn://10.0.0.236/trunk@19419 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 06:08:39 +00:00
leaf%mozilla.org
dff8540b44 fixing the makefile so that nsSetupRegistry.cpp will compile...
I have no idea why we aren't compiling the original nsSetupRegistry to begin
with...


git-svn-id: svn://10.0.0.236/trunk@19418 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 05:35:37 +00:00
troy%netscape.com
3ced68e7e0 Re-ordered the call to SetPosition(0) for the horizontal scrollbar,
because the way it was caused the scrollbar to be enabled when it should
be disabled...


git-svn-id: svn://10.0.0.236/trunk@19417 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 05:03:04 +00:00
racham%netscape.com
3a77323683 ImageDialog Header file
git-svn-id: svn://10.0.0.236/trunk@19416 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 04:41:54 +00:00
racham%netscape.com
85b58cc95c File that brings up a dialog loaded with a given image
git-svn-id: svn://10.0.0.236/trunk@19415 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 04:41:04 +00:00
racham%netscape.com
f9e9448302 CChooseFolderDialog.h
git-svn-id: svn://10.0.0.236/trunk@19414 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 04:39:04 +00:00
racham%netscape.com
19f31fcbcc File that brings folder dialog for browse and select
git-svn-id: svn://10.0.0.236/trunk@19413 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 04:38:29 +00:00
troy%netscape.com
79891cd010 Switched to using nsIScrollableView::GetScrollbarVisibility() to tell
whether the vertical scrollbar is currently showing


git-svn-id: svn://10.0.0.236/trunk@19412 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 04:30:57 +00:00
briano%netscape.com
fe2a1595ea Automated update
git-svn-id: svn://10.0.0.236/trunk@19411 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 04:30:33 +00:00
kipp%netscape.com
8b20cf85fe init refcnt
git-svn-id: svn://10.0.0.236/trunk@19410 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 04:25:40 +00:00
troy%netscape.com
832f79717f Added GetScrollbarVisibility()
git-svn-id: svn://10.0.0.236/trunk@19409 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 04:25:31 +00:00
kipp%netscape.com
0274bad32b Declare nsISupports methods instead of using NS_DECL_ISUPPORTS so that we don't have a dup mRefCnt
git-svn-id: svn://10.0.0.236/trunk@19408 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 04:25:20 +00:00
kipp%netscape.com
7ff0256293 Fixed solaris shared library problems
git-svn-id: svn://10.0.0.236/trunk@19407 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 04:24:36 +00:00
michaelp%netscape.com
9548d7fa85 work in progress for new compositor. not currently enabled, so it won't
affect anyone else. killed Paint() method of scrolling view since it
no longer does anything useful. made view manager destructor protected to
eliminate gcc warnings.


git-svn-id: svn://10.0.0.236/trunk@19406 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 04:12:21 +00:00
mcmullen%netscape.com
49dab3ddd5 Don't pass "this" to a member class if the member class is going to Addref, and we haven't called NS_INIT_REFCNT first.
git-svn-id: svn://10.0.0.236/trunk@19405 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 03:24:54 +00:00
mcmullen%netscape.com
b2c0217a0d Put NS_INIT_REFCNT in all constructors, it says. So I moved this call out of the Initialize() method, and into the constructor. And lo! the assert went away. Magic.
git-svn-id: svn://10.0.0.236/trunk@19404 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 03:13:53 +00:00
peterl%netscape.com
9cce639e0f added missing semicolons
git-svn-id: svn://10.0.0.236/trunk@19403 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 03:10:29 +00:00
peterl%netscape.com
6bb837e2c4 improvements to parsing @import, HTML comments and identifiers
git-svn-id: svn://10.0.0.236/trunk@19402 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 02:59:51 +00:00
hyatt%netscape.com
815fec0d73 Adding the XUL content sink and XUL data source files to the project.
git-svn-id: svn://10.0.0.236/trunk@19401 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 02:59:47 +00:00
peterl%netscape.com
caaefbe34c Fixed windows build bustage
git-svn-id: svn://10.0.0.236/trunk@19400 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 02:53:25 +00:00
hyatt%netscape.com
8958bcd8cf Implementation of the XUL content sink.
git-svn-id: svn://10.0.0.236/trunk@19399 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 02:49:30 +00:00
hyatt%netscape.com
2ffd2f09f2 Implementation of the XUL content sink. Modifications to the RDF document
to teach it about XUL.


git-svn-id: svn://10.0.0.236/trunk@19398 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 02:48:55 +00:00
hyatt%netscape.com
b46cc4ba4e Implementation of the XUL content sink. Addition of new files.
git-svn-id: svn://10.0.0.236/trunk@19397 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 02:48:27 +00:00
hyatt%netscape.com
d6a5085f59 Implementation of the XUL content sink. Added the capability to parse XUL files.
git-svn-id: svn://10.0.0.236/trunk@19396 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 02:47:06 +00:00
terry%netscape.com
0361354890 Added support for URLs that describe the milestones for various projects.
git-svn-id: svn://10.0.0.236/trunk@19395 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 02:46:51 +00:00
hyatt%netscape.com
1a87d7d7dd Implementation of the XUL content sink. Adding text/xul as a new MIME type.
git-svn-id: svn://10.0.0.236/trunk@19394 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 02:46:05 +00:00
hyatt%netscape.com
8c6bdeb1ec Implementation of the XUL content sink. Modifications to enable the instantiation
of the XUL data source and the XUL content sink classes.


git-svn-id: svn://10.0.0.236/trunk@19393 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 02:44:15 +00:00
hyatt%netscape.com
7713fd6b6f Implementing the XUL content sink. Teaching the document loader that it
can instantiate files of type "text/xul" using RDF.


git-svn-id: svn://10.0.0.236/trunk@19392 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 02:43:32 +00:00
nhotta%netscape.com
d76f273118 Fixed typo, windows headers were included.
git-svn-id: svn://10.0.0.236/trunk@19391 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 02:22:12 +00:00
akkana%netscape.com
c65c79999a Bug fixes for Collapse() and Extend().
Now single-character deletion works much better.


git-svn-id: svn://10.0.0.236/trunk@19390 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 02:13:15 +00:00
pierre%netscape.com
4b0b77a0c9 #2600 "Live window resizing can be too slow"
git-svn-id: svn://10.0.0.236/trunk@19389 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 02:05:57 +00:00
pierre%netscape.com
c9a9695069 #2815 "Password text field shows contents in clear-text"
git-svn-id: svn://10.0.0.236/trunk@19388 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 02:05:31 +00:00
pierre%netscape.com
b08e800049 #2816 "[PP] Mac doesn't handle NS_MOUSE_LEFT_DOUBLECLICK event" and #2692 "Window focus problems"
git-svn-id: svn://10.0.0.236/trunk@19387 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 02:04:41 +00:00
pierre%netscape.com
321e169adc don't move or resize windows that belong to embedding apps
git-svn-id: svn://10.0.0.236/trunk@19386 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 02:04:15 +00:00
ftang%netscape.com
3dcda91510 calling nsSetupRegistry for mac. Need to try UNIX and Window before turn out the #ifdef XP_MAC
git-svn-id: svn://10.0.0.236/trunk@19385 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 01:50:15 +00:00
ftang%netscape.com
ee38fcff5b add project file for it.
git-svn-id: svn://10.0.0.236/trunk@19384 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 01:46:10 +00:00
ftang%netscape.com
16cfb5cf86 add nsProperties.cpp and nsBaseDLL.cpp
git-svn-id: svn://10.0.0.236/trunk@19383 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 01:42:53 +00:00
nhotta%netscape.com
6194e95652 nsILocale integration and date time format Mac implementation.
git-svn-id: svn://10.0.0.236/trunk@19382 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 01:36:06 +00:00
nhotta%netscape.com
6db73b0c2f nsILocale integration.
git-svn-id: svn://10.0.0.236/trunk@19381 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 01:35:11 +00:00
troy%netscape.com
cb24b1f1fe Fixed it to so the root-frame isn't considered a containing block, and
changed SetRect() so it only resizes the child frame larger if its 'height'
is set to 'auto'


git-svn-id: svn://10.0.0.236/trunk@19380 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 01:31:09 +00:00
bienvenu%netscape.com
e20e8e5984 add access to a few more mdb objects
git-svn-id: svn://10.0.0.236/trunk@19377 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 00:44:41 +00:00
bienvenu%netscape.com
12ec3a1363 add notifications, messageHdrStruct stuff
git-svn-id: svn://10.0.0.236/trunk@19376 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 00:44:13 +00:00
bienvenu%netscape.com
01c604354d interface for receiving db change notifications
git-svn-id: svn://10.0.0.236/trunk@19375 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 00:42:39 +00:00
terry%netscape.com
3684b77c63 Oops; fixed typo.
git-svn-id: svn://10.0.0.236/trunk@19374 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 00:34:03 +00:00
terry%netscape.com
1b02f0725a Renamed "Editing Interfaces" to be "Editor".
git-svn-id: svn://10.0.0.236/trunk@19373 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 00:31:48 +00:00
mscott%netscape.com
79356ae82f newsgroup call to GetName is no longer a const method so the nsINNTPNewsgroup passed into the article list can't be const either....
performing clean up on the interface and implementation to fix this...


git-svn-id: svn://10.0.0.236/trunk@19372 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 00:19:55 +00:00
cltbld%netscape.com
6d1d7ec1c1 backing out changes made against a closed tree
git-svn-id: svn://10.0.0.236/trunk@19371 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 23:50:52 +00:00
hyatt%netscape.com
06e22f12e4 Added XUL as a MIME type.
git-svn-id: svn://10.0.0.236/trunk@19370 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 23:34:01 +00:00
briano%netscape.com
4d5db2152f Automated update
git-svn-id: svn://10.0.0.236/trunk@19369 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 23:15:37 +00:00
kipp%netscape.com
f89af1a7e9 latest
git-svn-id: svn://10.0.0.236/trunk@19368 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 23:06:56 +00:00
karnaze%netscape.com
4e7fb0aec6 fixed bug 1827
git-svn-id: svn://10.0.0.236/trunk@19367 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 22:53:42 +00:00
saari%netscape.com
3fc6324194 Check for null before calling through it... this should fix the windows crashing bug with menus.
git-svn-id: svn://10.0.0.236/trunk@19364 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 19:53:58 +00:00
kipp%netscape.com
7fc8c43a91 nuked
git-svn-id: svn://10.0.0.236/trunk@19363 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 19:39:06 +00:00
alecf%netscape.com
9afca0ed2a enter mailnews directory when --enable-mailnews switch is thrown
ONLY AFFECTS MAIL/NEWS BUILD.


git-svn-id: svn://10.0.0.236/trunk@19362 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 19:34:49 +00:00
michaelp%netscape.com
fb53d28fc5 removed SingleSignon from modular netlib (until it no longer relies on old school
objects).


git-svn-id: svn://10.0.0.236/trunk@19361 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 19:29:04 +00:00
rods%netscape.com
26ba65da07 Commented out some lines to make it work better.
git-svn-id: svn://10.0.0.236/trunk@19360 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 19:28:52 +00:00
michaelp%netscape.com
af4c5fbd21 addef typedefs to help remove layers dependencies.
git-svn-id: svn://10.0.0.236/trunk@19359 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 19:28:04 +00:00
michaelp%netscape.com
1c1dcf2f12 kill related links and single signon (for now).
git-svn-id: svn://10.0.0.236/trunk@19358 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 19:26:42 +00:00
rods%netscape.com
c573d2cb71 Initial checkin
git-svn-id: svn://10.0.0.236/trunk@19357 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 19:24:07 +00:00
kipp%netscape.com
1802c20620 Disabled tests
git-svn-id: svn://10.0.0.236/trunk@19356 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 19:03:51 +00:00
kipp%netscape.com
4937d5428b Hid some more layers stuff
git-svn-id: svn://10.0.0.236/trunk@19355 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 18:56:12 +00:00
kipp%netscape.com
9550ddb630 More layer stuff removed
git-svn-id: svn://10.0.0.236/trunk@19354 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 18:52:05 +00:00
rods%netscape.com
beddf1b292 Initial checkin
git-svn-id: svn://10.0.0.236/trunk@19353 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 18:37:20 +00:00
kipp%netscape.com
58cccc3007 Found another XP_Rect to hide
git-svn-id: svn://10.0.0.236/trunk@19352 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 18:32:01 +00:00
kipp%netscape.com
4b03faa1f0 Removed nav-java from the build
git-svn-id: svn://10.0.0.236/trunk@19351 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 18:01:34 +00:00
kipp%netscape.com
6dec70fa04 Removed XP_Rect references
git-svn-id: svn://10.0.0.236/trunk@19350 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:51:09 +00:00
briano%netscape.com
3c1f2845cf Automated update
git-svn-id: svn://10.0.0.236/trunk@19349 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:45:37 +00:00
kipp%netscape.com
a4dfd75157 Don't pull liblayer any more
git-svn-id: svn://10.0.0.236/trunk@19348 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:45:14 +00:00
kipp%netscape.com
7b8f33117c Make sure program is built before installing it
git-svn-id: svn://10.0.0.236/trunk@19347 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:42:10 +00:00
kipp%netscape.com
916537dfc0 Made abort abort on unix
git-svn-id: svn://10.0.0.236/trunk@19346 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:41:54 +00:00
kipp%netscape.com
4d86812d65 Added a pre-condition to help find uninitialized refcnts
git-svn-id: svn://10.0.0.236/trunk@19345 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:41:29 +00:00
kipp%netscape.com
b12e89b24d Disabled a not-yet-implemented assert
git-svn-id: svn://10.0.0.236/trunk@19344 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:41:05 +00:00
kipp%netscape.com
b640a2b8c0 Build library more carefully
git-svn-id: svn://10.0.0.236/trunk@19343 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:40:37 +00:00
kipp%netscape.com
885e33e28f Use SIMPLE_PROGRAMS instead of custom rules
git-svn-id: svn://10.0.0.236/trunk@19342 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:40:28 +00:00
kipp%netscape.com
277242d161 Added in malloc-wrap support
git-svn-id: svn://10.0.0.236/trunk@19341 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:39:51 +00:00
kipp%netscape.com
9107865e01 Added in some more MKSHLIB variables
git-svn-id: svn://10.0.0.236/trunk@19340 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:39:37 +00:00
kipp%netscape.com
f1f818e7b2 Removed cruft from the build
git-svn-id: svn://10.0.0.236/trunk@19339 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:39:01 +00:00
kipp%netscape.com
0b66f57ffd Added --enable-wrap-malloc,--with-malloc; removed liblayer cruft; better handling for debug builds and compiler warnings
git-svn-id: svn://10.0.0.236/trunk@19338 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:38:11 +00:00
kipp%netscape.com
547ec63ddd Cleaned up linkage of the viewer
git-svn-id: svn://10.0.0.236/trunk@19337 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:37:19 +00:00
kipp%netscape.com
149c69bfab Removed call to RL_Init
git-svn-id: svn://10.0.0.236/trunk@19336 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:36:46 +00:00
kipp%netscape.com
c7cea5143a Stop building related links junk
git-svn-id: svn://10.0.0.236/trunk@19335 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:36:31 +00:00
kipp%netscape.com
ca135be1b8 Removed layers usage
git-svn-id: svn://10.0.0.236/trunk@19334 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:35:30 +00:00
kipp%netscape.com
237db9ae1f Removed layers references
git-svn-id: svn://10.0.0.236/trunk@19333 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:34:46 +00:00
kipp%netscape.com
4f6f070c86 Removed layers header file
git-svn-id: svn://10.0.0.236/trunk@19332 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:34:10 +00:00
kipp%netscape.com
f246e3117a Wrapped up debugging noise in a ifdef; implemented 4th remove-frame case; fixed a bug in the 5th remove-frame case
git-svn-id: svn://10.0.0.236/trunk@19331 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:32:09 +00:00
kipp%netscape.com
7fcad9f549 Changed value of mozAnonymousBlock atom to match ua.css until a css working group issue is resolved
git-svn-id: svn://10.0.0.236/trunk@19330 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:31:36 +00:00
kipp%netscape.com
6641976fe2 Changed base-ib-frame to implement AppendFrames/InsertFrames/RemoveFrame directly; changed args to DoRemoveFrame; updated the anonymous block to have a slightly different method set to manipulate its children
git-svn-id: svn://10.0.0.236/trunk@19329 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:31:09 +00:00
kipp%netscape.com
85096b6ed2 noise
git-svn-id: svn://10.0.0.236/trunk@19328 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:30:10 +00:00
kipp%netscape.com
193de92ed8 Flushed out test set
git-svn-id: svn://10.0.0.236/trunk@19327 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:29:54 +00:00
pinkerton%netscape.com
95d4a15403 Fix solaris bustage by including headers instead of using forward class decl's for nsCOMPtr'd interfaces in a header file.
git-svn-id: svn://10.0.0.236/trunk@19326 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:09:44 +00:00
pinkerton%netscape.com
24479f8d35 right justify throbber, probably incorrectly, but it looks better ;)
git-svn-id: svn://10.0.0.236/trunk@19325 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 17:02:51 +00:00
pinkerton%netscape.com
a668e85215 add html namespace prefix per peterl's change to namespace rules.
git-svn-id: svn://10.0.0.236/trunk@19324 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 16:43:07 +00:00
terry%netscape.com
6cbdf7e1f3 Don't draw any more than 20 date ticks.
git-svn-id: svn://10.0.0.236/trunk@19323 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 15:03:52 +00:00
mcafee%netscape.com
76b836910f Taking tests back out, heh, are we having fun yet?
git-svn-id: svn://10.0.0.236/trunk@19322 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 09:36:54 +00:00
mcafee%netscape.com
b615a240fb Fix linux bustage, thanks to waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@19321 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 09:08:43 +00:00
waterson%netscape.com
ffe5330693 Added code to release individual assertion elements when the data source is destroyed: this should close some major leakage.
git-svn-id: svn://10.0.0.236/trunk@19320 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 08:06:38 +00:00
alecf%netscape.com
91f5fd0864 unix should support netlib on another thread too.
git-svn-id: svn://10.0.0.236/trunk@19319 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 07:59:20 +00:00
alecf%netscape.com
3f8f8174e9 implement generic Netlib main loop for non-PC platforms
git-svn-id: svn://10.0.0.236/trunk@19318 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 07:58:39 +00:00
alecf%netscape.com
5d76377adf make this thread safer by addreffing it before storing the variable
Also check pURL before dereferencing


git-svn-id: svn://10.0.0.236/trunk@19317 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 07:57:56 +00:00
law%netscape.com
e012c791a4 Fixed off-by-one bug in Next()
git-svn-id: svn://10.0.0.236/trunk@19316 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 07:43:23 +00:00
law%netscape.com
a0c9344277 Enhanced test program to display values
git-svn-id: svn://10.0.0.236/trunk@19315 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 07:41:16 +00:00
waterson%netscape.com
4b222256c0 Fixed bug with refcounting of XUL atoms.
git-svn-id: svn://10.0.0.236/trunk@19314 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 07:38:03 +00:00
mcafee%netscape.com
7ee6a57d1a Ok, trying to build tests again
git-svn-id: svn://10.0.0.236/trunk@19313 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 07:36:04 +00:00
mcafee%netscape.com
7440ed82c0 Force third install pass so we can build tests, weird dependencies crop up if we do libs & install at the same time. Thanks to kipp@netscape.com for the idea for this fix.
git-svn-id: svn://10.0.0.236/trunk@19312 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 07:34:20 +00:00
mcafee%netscape.com
cb97dd5de6 Ignore generated binaries.
git-svn-id: svn://10.0.0.236/trunk@19311 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 07:31:58 +00:00
mcafee%netscape.com
dd964b43c8 Ignore generated Makefiles
git-svn-id: svn://10.0.0.236/trunk@19310 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 07:31:27 +00:00
waterson%netscape.com
77936fd6a9 Forgot to NS_INIT_REFCNT().
git-svn-id: svn://10.0.0.236/trunk@19308 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 07:09:48 +00:00
waterson%netscape.com
0712c2788d Fixed some refcounting bugs.
git-svn-id: svn://10.0.0.236/trunk@19307 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 07:07:32 +00:00
waterson%netscape.com
c8c059d33e Fixed some refcounting and initialization bugs.
git-svn-id: svn://10.0.0.236/trunk@19306 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 07:06:56 +00:00
waterson%netscape.com
3b381afeb1 Fixed a pile of refcounting bugs.
git-svn-id: svn://10.0.0.236/trunk@19305 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 07:06:06 +00:00
waterson%netscape.com
1623d393fc Fixed an off-by-one error in the dtor.
git-svn-id: svn://10.0.0.236/trunk@19304 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 07:05:52 +00:00
mcafee%netscape.com
0023fc15ec Ignore generated SimpleTypeLib, PrimitiveTestexecutables
git-svn-id: svn://10.0.0.236/trunk@19303 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 06:20:46 +00:00
mcafee%netscape.com
fb32eba0f8 Ignore generated xpt_dump executable
git-svn-id: svn://10.0.0.236/trunk@19302 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 06:19:50 +00:00
mcafee%netscape.com
b1a0eb3163 Ignore generated localfile executable
git-svn-id: svn://10.0.0.236/trunk@19301 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 06:18:53 +00:00
mcafee%netscape.com
b19eee5b4b Ignore generated nettest executable
git-svn-id: svn://10.0.0.236/trunk@19300 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 06:17:14 +00:00
mcafee%netscape.com
b055d2520d Ignore generated jscpucfg, jsautocfg.h files
git-svn-id: svn://10.0.0.236/trunk@19299 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 06:15:27 +00:00
mcafee%netscape.com
d5a8d19eb1 Ignore genereated Makefile
git-svn-id: svn://10.0.0.236/trunk@19298 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 06:13:16 +00:00
mcafee%netscape.com
dc7a687c9d Ignore generated Makefiles
git-svn-id: svn://10.0.0.236/trunk@19297 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 06:11:26 +00:00
mcafee%netscape.com
647eb1d958 Better attempt at linking on Linux
git-svn-id: svn://10.0.0.236/trunk@19296 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 05:59:00 +00:00
mcafee%netscape.com
d2b59b1bfa This is closer to building on Linux, still not there
git-svn-id: svn://10.0.0.236/trunk@19295 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 05:44:41 +00:00
mcafee%netscape.com
401de7180c widget test now builds on Linux
git-svn-id: svn://10.0.0.236/trunk@19294 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 05:42:37 +00:00
mcafee%netscape.com
41ecacbee9 scribble now builds on Linux
git-svn-id: svn://10.0.0.236/trunk@19293 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 05:42:13 +00:00
warren%netscape.com
df698d7c1c Added missing include
git-svn-id: svn://10.0.0.236/trunk@19292 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 05:40:03 +00:00
waterson%netscape.com
3e18f440b4 Moved nsXULAtoms::AddrefAtoms() and ReleaseAtoms() to the style sheet's ctor and dtor, as per Peter Linss suggestion.
git-svn-id: svn://10.0.0.236/trunk@19291 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 05:39:57 +00:00
warren%netscape.com
605e70727b Made objs build into objdir.
git-svn-id: svn://10.0.0.236/trunk@19290 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 05:39:41 +00:00
bienvenu%netscape.com
3e325f9930 add api's to convert back and forth between yarn and ints and strings
git-svn-id: svn://10.0.0.236/trunk@19289 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 05:09:34 +00:00
troy%netscape.com
cfc04998c0 Implemented fixed position tables
git-svn-id: svn://10.0.0.236/trunk@19288 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 04:28:55 +00:00
mcafee%netscape.com
2ffa9f9553 Yanking tests until dependency problem is fixed.
git-svn-id: svn://10.0.0.236/trunk@19287 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 04:25:03 +00:00
alecf%netscape.com
3ef07d3bdc rename MOZ_MAIL_NEWS macro to OLD_MOZ_MAIL_NEWS so that we can build the whole client with MOZ_MAIL_NEWS turned on.
git-svn-id: svn://10.0.0.236/trunk@19286 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 04:14:03 +00:00
alecf%netscape.com
0c07a9e0b5 rename old MOZ_MAIL_NEWS macro to OLD_MOZ_MAIL_NEWS so that we can turn on MOZ_MAIL_NEWS flag to build the whole client
git-svn-id: svn://10.0.0.236/trunk@19285 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 04:13:24 +00:00
mcafee%netscape.com
e056d8845f Dependency problem, pulling tests out to fix breakage
git-svn-id: svn://10.0.0.236/trunk@19284 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 03:59:34 +00:00
mcafee%netscape.com
a2cae97390 TestCSSParser, TestCSSPropertyLookup, and TestCSSScanner now build on Linux
git-svn-id: svn://10.0.0.236/trunk@19283 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 03:40:30 +00:00
mcafee%netscape.com
ee072a8d45 TestSpaceManager now builds on Linux
git-svn-id: svn://10.0.0.236/trunk@19282 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 03:31:44 +00:00
mcafee%netscape.com
7df195b4a9 I can't find nscoord.h, yanking this for Linux
git-svn-id: svn://10.0.0.236/trunk@19281 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 03:30:38 +00:00
peterl%netscape.com
f7bd2c0d45 fixed bug handling multiple namespace declarations in one tag
git-svn-id: svn://10.0.0.236/trunk@19280 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 03:24:56 +00:00
peterl%netscape.com
dda3c38f63 made visible an int instead of bool
git-svn-id: svn://10.0.0.236/trunk@19279 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 03:24:23 +00:00
peterl%netscape.com
8593007767 removed default html namespace prefix
git-svn-id: svn://10.0.0.236/trunk@19278 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 03:23:36 +00:00
mcafee%netscape.com
c62da8b2cb htmlrobot test now builds on Linux
git-svn-id: svn://10.0.0.236/trunk@19277 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 03:21:01 +00:00
mcafee%netscape.com
8e813bd41d First checkin for unix
git-svn-id: svn://10.0.0.236/trunk@19276 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 03:18:44 +00:00
mcafee%netscape.com
a59efb63f6 Adding License
git-svn-id: svn://10.0.0.236/trunk@19275 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 03:16:52 +00:00
mcafee%netscape.com
135dbd204b TestAtoms, TestCRT, CvtURL now build on Linux, removing unused REQUIRES line
git-svn-id: svn://10.0.0.236/trunk@19274 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 03:16:07 +00:00
mcafee%netscape.com
aaea1a6f10 Moving fe_GetConfigDir() to prefs.
git-svn-id: svn://10.0.0.236/trunk@19273 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 03:12:36 +00:00
mscott%netscape.com
01b182a941 Fix a bug in my ReadLine implementation where I wasn't properly killing off CRLFs before returning the line. Added code which writes article contents to a file as RFC-822. Now we just need a hook into the viewer app to display the file and we can display articles in HTML. Yeah!.
git-svn-id: svn://10.0.0.236/trunk@19272 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 03:09:50 +00:00
mcafee%netscape.com
d33a6174ce Moving XP_ReBuffer() and XP_Trace() from xp_stubs.c to xp_stub.c, sorry I didn't see the original stub file. Retiring xp_stubs.c.
git-svn-id: svn://10.0.0.236/trunk@19271 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 03:08:03 +00:00
mscott%netscape.com
900fbb5b81 Cast away constness for newsgroup interface for testing purposes...If we need to do this in the real news host, we'll change the news host interface such that the newsgroup passed in is not const..
git-svn-id: svn://10.0.0.236/trunk@19270 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 03:05:39 +00:00
mscott%netscape.com
66ff7d6ede Changed file name.
git-svn-id: svn://10.0.0.236/trunk@19269 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 02:50:46 +00:00
beard%netscape.com
c26752a8aa added files: mozilla/base/src/nsArena.cpp
git-svn-id: svn://10.0.0.236/trunk@19268 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 02:46:00 +00:00
leaf%mozilla.org
09c884c8aa readding file for mscott
git-svn-id: svn://10.0.0.236/trunk@19267 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 02:33:32 +00:00
sfraser%netscape.com
2a038800f6 Add method to nsIDOMSelection to get focus and anchor nodes and offsets, and implemenations for these in nsRangeList.cpp
git-svn-id: svn://10.0.0.236/trunk@19266 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 02:13:09 +00:00
mcafee%netscape.com
04932fcd30 Ignore generated binaries
git-svn-id: svn://10.0.0.236/trunk@19265 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 01:52:35 +00:00
mcafee%netscape.com
419fe98bf5 Ignore generated binaries
git-svn-id: svn://10.0.0.236/trunk@19264 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 01:47:19 +00:00
rhp%netscape.com
366dbd219b Changes for XPCOM interface.
git-svn-id: svn://10.0.0.236/trunk@19263 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 01:46:54 +00:00
rhp%netscape.com
982b3ff51a changes for xpcom interface
git-svn-id: svn://10.0.0.236/trunk@19262 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 01:46:02 +00:00
rhp%netscape.com
cf0eb7b62e updates for bulid changes
git-svn-id: svn://10.0.0.236/trunk@19261 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 01:45:35 +00:00
kipp%netscape.com
fd697cbe2a Added a missing init of the refcnt
git-svn-id: svn://10.0.0.236/trunk@19260 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 01:32:09 +00:00
coop%netscape.com
974dbf9b53 NOT YET PART OF SEAMONKEY:
* fixed header pointer assignment problem
* removed useless defines
* added correct level of indirection for sub-structs of header


git-svn-id: svn://10.0.0.236/trunk@19259 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 01:26:36 +00:00
rhp%netscape.com
9a46a4c943 New changes for XP-COM interface for Content Type handler
plugins.


git-svn-id: svn://10.0.0.236/trunk@19258 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 01:21:14 +00:00
mjudge%netscape.com
aa9093858b scoping incorrect for for loops on vc5.0 didnt catch this. nasty habbit of mine.
git-svn-id: svn://10.0.0.236/trunk@19257 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 01:18:41 +00:00
mjudge%netscape.com
1e15924c47 commas trailing on enum illegal even if vc50 says its ok
git-svn-id: svn://10.0.0.236/trunk@19256 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 01:16:57 +00:00
rhp%netscape.com
811c8829eb Update test for accessing XP-COM interface.
git-svn-id: svn://10.0.0.236/trunk@19255 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 01:11:42 +00:00
rhp%netscape.com
19d72edc18 New files for accessing XP-COM interface for libmime internals
git-svn-id: svn://10.0.0.236/trunk@19254 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 01:10:00 +00:00
rhp%netscape.com
50650d1c8c Changes to access XP-COM interface.
git-svn-id: svn://10.0.0.236/trunk@19253 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 01:09:05 +00:00
rhp%netscape.com
06bff9b9a8 Accessing internal object system via XP-COM.
git-svn-id: svn://10.0.0.236/trunk@19252 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 01:08:13 +00:00
mcafee%netscape.com
ae52a34706 Ignore generated Makefile
git-svn-id: svn://10.0.0.236/trunk@19251 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 01:03:32 +00:00
bienvenu%netscape.com
80a9fb0776 start adding message headers to db
git-svn-id: svn://10.0.0.236/trunk@19250 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 00:53:19 +00:00
bienvenu%netscape.com
f5878ed8e4 start using row methods
git-svn-id: svn://10.0.0.236/trunk@19249 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 00:52:17 +00:00
mcmullen%netscape.com
b746e6d1ee Write recent errors file to log file ALWAYS, so that the log file contains warnings, too. Get MacPerl to call WaitNextEvent() while doing manifest, so that you can get other work done during this lengthy process.
git-svn-id: svn://10.0.0.236/trunk@19248 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 00:51:09 +00:00
waterson%netscape.com
8634509e0c Initial revision.
git-svn-id: svn://10.0.0.236/trunk@19247 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 00:43:56 +00:00
mjudge%netscape.com
1b0340eba8 keyboard navigation of selection. adding API for nsIFrame. fixing nsFrame and nstextframe to reflect the implementations of the nsIFrame API. nsRangeList implements the handlekeyevent now.
git-svn-id: svn://10.0.0.236/trunk@19246 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 00:23:40 +00:00
alecf%netscape.com
650287af74 update nsIMsgFolder to reflect new XPIDL compiler output
git-svn-id: svn://10.0.0.236/trunk@19245 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 00:20:21 +00:00
alecf%netscape.com
d5819916cd first attempt at using PL_ProcessEventQueue as the Unix main loop
git-svn-id: svn://10.0.0.236/trunk@19244 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 00:19:40 +00:00
alecf%netscape.com
e4c4c9d8ea update to reflect new XPIDL generated API
git-svn-id: svn://10.0.0.236/trunk@19243 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 00:18:11 +00:00
alecf%netscape.com
cbaa5243df fix case error so that we include the right file
git-svn-id: svn://10.0.0.236/trunk@19242 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 00:16:50 +00:00
briano%netscape.com
3e6b9cfd1e Automated update
git-svn-id: svn://10.0.0.236/trunk@19241 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 00:16:20 +00:00
alecf%netscape.com
939ab6d0cd update header files with output from new XPIDL compiler
git-svn-id: svn://10.0.0.236/trunk@19240 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 00:15:54 +00:00
alecf%netscape.com
936d8ad703 build local folders in Unix build
git-svn-id: svn://10.0.0.236/trunk@19239 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 00:13:52 +00:00
alecf%netscape.com
b69286f58e don't check in Makefile
git-svn-id: svn://10.0.0.236/trunk@19238 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 00:13:17 +00:00
wtc%netscape.com
18342c47bf Bugsplat bug #340658: implemented a version of the atomic routines
for the pthreads version that doesn't require NSPR to be initialized.


git-svn-id: svn://10.0.0.236/trunk@19234 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-02 00:08:25 +00:00
nhotta%netscape.com
f1674f9cf6 Changed the class name from WinFactory to UnixFactory.
git-svn-id: svn://10.0.0.236/trunk@19233 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 23:56:54 +00:00
davidm%netscape.com
9999c1cab2 2439 [PP] Links are not underlined correctly
git-svn-id: svn://10.0.0.236/trunk@19232 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 23:50:25 +00:00
kmcclusk%netscape.com
ca814679f8 TextAreas now initialize their content area using default text specified in
the HTML File.


git-svn-id: svn://10.0.0.236/trunk@19231 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 23:49:21 +00:00
nhotta%netscape.com
c7a22ef7de Changed out string to nsString.
git-svn-id: svn://10.0.0.236/trunk@19229 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 23:40:02 +00:00
nhotta%netscape.com
d0bdba0970 Changed for nsIDateTimeFormat interface.
git-svn-id: svn://10.0.0.236/trunk@19228 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 23:33:13 +00:00
wtc%netscape.com
f9d634c294 Pthreads version doesn't need _MD_StartInterrupts().
Modified files: prinit.c and ptmisc.c.


git-svn-id: svn://10.0.0.236/trunk@19227 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 23:25:44 +00:00
wtc%netscape.com
b06d843c95 Commented out the sigwait() call for BSDI. BSD/OS 3.1 does not have
the sigwait() function.


git-svn-id: svn://10.0.0.236/trunk@19226 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 23:24:58 +00:00
joki%netscape.com
b0a2e83b0f Modifying window.closed to check existence to webshell, not document
git-svn-id: svn://10.0.0.236/trunk@19225 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 23:21:58 +00:00
waterson%netscape.com
9625211c9b Modified style sheet to have appropriate XUL tree styles.
git-svn-id: svn://10.0.0.236/trunk@19224 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 23:11:31 +00:00
kmcclusk%netscape.com
1d86b393e9 Modified nsTextControlFrame::Paint to correctly paint the contents of a
multi-line text area.


git-svn-id: svn://10.0.0.236/trunk@19223 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 23:09:06 +00:00
waterson%netscape.com
35b37a84cb Force an nsXULAtoms::AddrefAtoms to ensure that the XUL atoms and namespace are created in the layout DLL before trying to refer to them. (a=hyatt%netscape.com)
git-svn-id: svn://10.0.0.236/trunk@19222 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 23:06:49 +00:00
terry%netscape.com
70f16066f3 Stop sending mail to tinderbox.seawood.org; it seems no longer to be
in business.


git-svn-id: svn://10.0.0.236/trunk@19218 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 22:50:55 +00:00
terry%netscape.com
b45ff08c16 Make page auto-reload every fifteen minutes.
git-svn-id: svn://10.0.0.236/trunk@19216 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 22:46:51 +00:00
joki%netscape.com
f85ee98763 Modifying view event flow to always start processing from top view, not enter at children
git-svn-id: svn://10.0.0.236/trunk@19215 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 22:45:59 +00:00
dp%netscape.com
31a11f15b7 Dll Hash table
git-svn-id: svn://10.0.0.236/trunk@19212 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 22:41:22 +00:00
dp%netscape.com
81140e2096 Dll abstraction
git-svn-id: svn://10.0.0.236/trunk@19211 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 22:40:48 +00:00
waterson%netscape.com
ce83955a74 Renamed Init() to SetContentModelBuidler().
git-svn-id: svn://10.0.0.236/trunk@19210 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 22:35:17 +00:00
waterson%netscape.com
e17a2e3b4f Content model builder is now specified by XML processing instruction. Modified code to handle new XUL tree widget content model (based on table code). Added CID fields to all the interfaces so that nsCOMPtr will work. Juggled some of the content model builder stuff around in an attempt to make things a bit saner.
git-svn-id: svn://10.0.0.236/trunk@19209 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 22:34:51 +00:00
ftang%netscape.com
be5365a85d turn on ATSUI and use it in the case of non-ASCII characters so we can start testing Japanese pages such as http://home.netscape.com/ja
git-svn-id: svn://10.0.0.236/trunk@19208 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 22:32:40 +00:00
waterson%netscape.com
ec955224ea Content model builder CID now specified by XML processing instruction.
git-svn-id: svn://10.0.0.236/trunk@19207 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 22:30:42 +00:00
mscott%netscape.com
ca27edb003 Build tests directory as part of the news build....
git-svn-id: svn://10.0.0.236/trunk@19206 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 22:20:37 +00:00
mscott%netscape.com
3737c2cea4 Add ReadNewsRC test to nntp test suite...
git-svn-id: svn://10.0.0.236/trunk@19205 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 22:19:55 +00:00
mscott%netscape.com
a897eb02c6 Added some code for supporting readnewsrc stuff...
git-svn-id: svn://10.0.0.236/trunk@19204 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 22:19:11 +00:00
mscott%netscape.com
dd71b22d20 Removing extra printf....
git-svn-id: svn://10.0.0.236/trunk@19203 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 22:18:52 +00:00
dp%netscape.com
ed1703e7ca Dynamic Component Registration
git-svn-id: svn://10.0.0.236/trunk@19202 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 22:17:58 +00:00
mscott%netscape.com
b51c2b461b Use new name for mailnews library..msgcore.
git-svn-id: svn://10.0.0.236/trunk@19201 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 22:11:19 +00:00
beard%netscape.com
db78d2ea89 removed files: mozilla/build/mac/test/test1.cpp
git-svn-id: svn://10.0.0.236/trunk@19198 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 21:51:01 +00:00
cyeh%netscape.com
98f422ca3b added files: mozilla/build/mac/test/test2.cpp
git-svn-id: svn://10.0.0.236/trunk@19197 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 21:24:59 +00:00
terry%netscape.com
87c3c0147a NSPR bugs now go to srinivas@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@19196 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 21:06:26 +00:00
kipp%netscape.com
d64a49c1df Checked in a probable fix to the windoze build
git-svn-id: svn://10.0.0.236/trunk@19195 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 20:56:47 +00:00
erik%netscape.com
64d873eedf removing strres again, coz it apparently doesn't work for others. sigh...
git-svn-id: svn://10.0.0.236/trunk@19194 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 20:48:28 +00:00
wtc%netscape.com
22930c0928 In _PR_InitThreads, call pthread_init to explicitly initialize the
pthread subsystem on BSD/OS because pthread_self() fails to initialize
pthreads implicitly.  This patch is contributed by Bert Driehuis
<bert_driehuis@nl.compuware.com>.


git-svn-id: svn://10.0.0.236/trunk@19193 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 20:01:36 +00:00
wtc%netscape.com
a425bde170 Added a missing PR_htons call. Thanks to Bert Driehuis
<bert_driehuis@nl.compuware.com> for the bug report and fix.


git-svn-id: svn://10.0.0.236/trunk@19192 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 19:56:49 +00:00
wtc%netscape.com
d381cc106d Changed /usr/tmp/ to /tmp/. BSD/OS does not have /usr/tmp/.
Thanks to Bert Driehuis <bert_driehuis@nl.compuware.com> for the fix.


git-svn-id: svn://10.0.0.236/trunk@19191 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 19:55:48 +00:00
wtc%netscape.com
92220dd477 Run the default test program 'cvar -c 2000" if no command-line
arguments are given.


git-svn-id: svn://10.0.0.236/trunk@19190 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 19:26:56 +00:00
erik%netscape.com
b9c5d267b1 added strres to build again, now that raptorbase.lib dependency is solved
git-svn-id: svn://10.0.0.236/trunk@19189 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 19:24:05 +00:00
erik%netscape.com
3baa7920d4 commented out the REQUIRES line to get around dependency problem with
raptorbase.lib when building strres.dll


git-svn-id: svn://10.0.0.236/trunk@19188 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 19:23:34 +00:00
wtc%netscape.com
ee128013bb In primpl.h, moved the definitions of macros _PR_MD_INIT_LOCKS and
_PR_MD_START_INTERRUPTS from the common section to the classic nspr
section.  These macros are not used in the pthreads version.
Modified files: primpl.h, _pth.h, and ptsynch.c.


git-svn-id: svn://10.0.0.236/trunk@19187 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 19:20:05 +00:00
kipp%netscape.com
4e2026137a Fixed invocation bug that mac compiler caught
git-svn-id: svn://10.0.0.236/trunk@19186 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 19:08:30 +00:00
kmcclusk%netscape.com
1b772da460 Moved GetPrimaryFrame to nsGenericHTMLElement.
Modifed nsHTMLTextAreaElement to go through it's frame to set and get values


git-svn-id: svn://10.0.0.236/trunk@19185 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 18:44:59 +00:00
troy%netscape.com
98f969bf7a Made sure that fixed positioned elements gets a widget
git-svn-id: svn://10.0.0.236/trunk@19184 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 18:36:23 +00:00
ftang%netscape.com
4d3133bdbb integrate unicode converter into scanner and make the default charset = iso-8859-1
git-svn-id: svn://10.0.0.236/trunk@19183 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 18:23:31 +00:00
pinkerton%netscape.com
1e0b972df8 renamed nsDOMWindowList.cpp for kipp
git-svn-id: svn://10.0.0.236/trunk@19182 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 18:18:51 +00:00
kipp%netscape.com
e24ccd1b45 Use dom-window-list instead of obsolete nsFrameList
git-svn-id: svn://10.0.0.236/trunk@19181 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 18:14:20 +00:00
troy%netscape.com
65ea939186 Fixed it so scrollable BLOCK elements can be fixed positioned
git-svn-id: svn://10.0.0.236/trunk@19180 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 18:09:57 +00:00
kipp%netscape.com
402b6ec1bc Removed a dead variable and a dead include
git-svn-id: svn://10.0.0.236/trunk@19179 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 18:04:34 +00:00
kipp%netscape.com
d107e8051d new
git-svn-id: svn://10.0.0.236/trunk@19178 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 17:37:11 +00:00
kipp%netscape.com
13492021b8 Fixed pseudo style atom value
git-svn-id: svn://10.0.0.236/trunk@19177 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 17:34:31 +00:00
kipp%netscape.com
9419e22aa4 Added anonymous block style rule
git-svn-id: svn://10.0.0.236/trunk@19176 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 17:34:16 +00:00
kipp%netscape.com
9a7378369c Implement TreatFrameAsBlock
git-svn-id: svn://10.0.0.236/trunk@19175 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 17:32:49 +00:00
kipp%netscape.com
a0b7918004 Added another TreatFrameAsBlock method
git-svn-id: svn://10.0.0.236/trunk@19174 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 17:32:33 +00:00
kipp%netscape.com
0a6cd2c879 Updated a comment
git-svn-id: svn://10.0.0.236/trunk@19173 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 17:32:19 +00:00
kipp%netscape.com
8f2fcbc3a4 Minor bug fixing; reworked PullFrame; added VerifyParent
git-svn-id: svn://10.0.0.236/trunk@19172 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 17:32:05 +00:00
kipp%netscape.com
26fdda6dbd Added some comments :-)
git-svn-id: svn://10.0.0.236/trunk@19171 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 17:31:37 +00:00
kipp%netscape.com
cf5063c014 Removed ReplaceFrame
git-svn-id: svn://10.0.0.236/trunk@19170 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 17:31:21 +00:00
kipp%netscape.com
84f3dca4a1 Removed ReplaceFrame; tweaked frame updates impls
git-svn-id: svn://10.0.0.236/trunk@19169 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 17:31:10 +00:00
kipp%netscape.com
00ad4c7a11 Fixed up debug output
git-svn-id: svn://10.0.0.236/trunk@19168 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 17:29:58 +00:00
kipp%netscape.com
1802215d17 Implement anonymous block frame code; fixup base class InsertNewFrames to support multiple frame insertion
git-svn-id: svn://10.0.0.236/trunk@19167 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 17:29:37 +00:00
kipp%netscape.com
0fdc9e7968 Renamed InsertNewFrame->s; defined nsAnonymousBlock class
git-svn-id: svn://10.0.0.236/trunk@19166 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 17:28:39 +00:00
kipp%netscape.com
18145e4022 Rewritten to use an anon. block frame to manage block children
git-svn-id: svn://10.0.0.236/trunk@19165 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 17:27:56 +00:00
kipp%netscape.com
21d86e6a91 Cleaned up comments; removed ReplaceFrame from the API
git-svn-id: svn://10.0.0.236/trunk@19164 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 17:25:30 +00:00
kipp%netscape.com
9448a26899 Switch to using renamed source file
git-svn-id: svn://10.0.0.236/trunk@19163 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 17:17:11 +00:00
kipp%netscape.com
f80cb9fa1c new
git-svn-id: svn://10.0.0.236/trunk@19162 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 17:16:17 +00:00
troy%netscape.com
97891adcdc Fixed logic that determines whether there's currently a visible vertical
scrollbar


git-svn-id: svn://10.0.0.236/trunk@19161 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 16:32:54 +00:00
guha%netscape.com
2ec8c99af4 open directory related stuff
git-svn-id: svn://10.0.0.236/trunk@19158 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 16:32:37 +00:00
rhp%netscape.com
97751ac24a Changes for nsISupports implementation
git-svn-id: svn://10.0.0.236/trunk@19157 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 16:26:42 +00:00
rhp%netscape.com
944561658d Update for nsISupports.
git-svn-id: svn://10.0.0.236/trunk@19156 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 16:24:15 +00:00
dcone%netscape.com
becdf77adc Added the Transparency for the GIF.
git-svn-id: svn://10.0.0.236/trunk@19155 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 15:38:31 +00:00
mcafee%netscape.com
8a4d2c923f Moving ValidateDocData() to mozilla/network/util/mkbuf.c for all platforms
git-svn-id: svn://10.0.0.236/trunk@19154 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 12:45:49 +00:00
mcafee%netscape.com
9618cf9f73 Moving ValidateDocData() stub to mozilla/network/util/mkbuf.c
git-svn-id: svn://10.0.0.236/trunk@19153 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 12:36:46 +00:00
mcafee%netscape.com
56c03db38d ValidateDocData() isn't implemented anywhere, the only usage is in this file and there's 8 stubs in the tree to get around the undefine. Moving the stub to this file in lieu of yanking it; will remove other stubs from viewer, apprunner, etc.
git-svn-id: svn://10.0.0.236/trunk@19152 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 12:33:19 +00:00
mcafee%netscape.com
d2ab8961fb Adding license; moved XP_Rebuffer() and XP_Trace() stubs to lib/xp/xp_stubs.c
git-svn-id: svn://10.0.0.236/trunk@19151 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 11:06:22 +00:00
mcafee%netscape.com
b6adda0c36 Adding stubs for XP_ReBuffer() and XP_Trace() so we don't keep copying stubs around the tree; both viewer and apprunner had their own versions of this
git-svn-id: svn://10.0.0.236/trunk@19150 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 11:03:45 +00:00
mcafee%netscape.com
426d480a11 Un-inlined CTagList::Contains() to fix Mac & Linux bustage.
git-svn-id: svn://10.0.0.236/trunk@19149 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 09:49:36 +00:00
rickg%netscape.com
f253a6fb30 changed pointcom to pointcast
git-svn-id: svn://10.0.0.236/trunk@19148 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 06:33:22 +00:00
rickg%netscape.com
b04efd48dc fixed deficiency in table
git-svn-id: svn://10.0.0.236/trunk@19147 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 06:31:30 +00:00
briano%netscape.com
64d0c89c72 Automated update
git-svn-id: svn://10.0.0.236/trunk@19146 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 06:30:39 +00:00
briano%netscape.com
77e79d58e6 Fixed a typo that was preventing our shared libs from being loaded on NetBSD (bugzilla #2811). Thanks to gduzan@acm.org for pointing it out.
git-svn-id: svn://10.0.0.236/trunk@19145 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 06:19:08 +00:00
tague%netscape.com
42ec731119 Added intl:locale and intl:unicharutil to build.
git-svn-id: svn://10.0.0.236/trunk@19144 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 04:41:18 +00:00
tague%netscape.com
50ba5df259 Modified LocaleSelfTest to look for it's components in NSLOCALE_DLL on the Mac. (This mirrors the other builds.)
git-svn-id: svn://10.0.0.236/trunk@19143 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 04:37:47 +00:00
tague%netscape.com
181faf3bd7 Updated MANIFEST file. Removed leading # characters.
git-svn-id: svn://10.0.0.236/trunk@19142 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 04:36:52 +00:00
tague%netscape.com
acdf911ecc Added nsILocale and nsILocaleFactory to the Mac build.
git-svn-id: svn://10.0.0.236/trunk@19141 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 04:35:53 +00:00
tague%netscape.com
b381e908c8 Changed Mac build to mirror the Windows and Unix builds. Put the definition of nsLocaleMacFactory into a header file.
git-svn-id: svn://10.0.0.236/trunk@19140 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 04:35:21 +00:00
tague%netscape.com
925034f981 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@19139 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 04:32:55 +00:00
tague%netscape.com
c8ae23014e Renamed targets from unicharutil*.shlib to unicharutil*.shlb.
git-svn-id: svn://10.0.0.236/trunk@19138 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 04:31:37 +00:00
rickg%netscape.com
4b6b00ac86 mondo improvements to DTD
git-svn-id: svn://10.0.0.236/trunk@19137 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 04:24:37 +00:00
bienvenu%netscape.com
3a39ddc0f6 make a few methods public for compiling purposes
git-svn-id: svn://10.0.0.236/trunk@19136 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 03:03:58 +00:00
bienvenu%netscape.com
2bc8f51851 add a couple error defines for db opening
git-svn-id: svn://10.0.0.236/trunk@19135 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 03:03:10 +00:00
bienvenu%netscape.com
3af53581db add (temporarily?) types for sorting and views
git-svn-id: svn://10.0.0.236/trunk@19134 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 02:59:06 +00:00
bienvenu%netscape.com
d015b67976 initial entry into cvs
git-svn-id: svn://10.0.0.236/trunk@19133 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 02:56:27 +00:00
bienvenu%netscape.com
ea0acaeb35 start hooking up mdb calls
git-svn-id: svn://10.0.0.236/trunk@19132 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 02:55:32 +00:00
srinivas%netscape.com
04c3551b99 Add support for creating bound threads. Bug 338607.
git-svn-id: svn://10.0.0.236/trunk@19131 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 00:41:51 +00:00
briano%netscape.com
df811fb275 Automated update
git-svn-id: svn://10.0.0.236/trunk@19130 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 22:00:32 +00:00
mcafee%netscape.com
d7f29bdcb2 Adding htmlparser/tests
git-svn-id: svn://10.0.0.236/trunk@19129 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 21:59:59 +00:00
mcafee%netscape.com
216603b4f9 First checkin for Linux
git-svn-id: svn://10.0.0.236/trunk@19128 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 21:55:47 +00:00
mcafee%netscape.com
2ff2fbf5d7 Get this test to build on Linux
git-svn-id: svn://10.0.0.236/trunk@19127 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 21:51:44 +00:00
mcafee%netscape.com
f180303d1c Fixing compiler error on Linux
git-svn-id: svn://10.0.0.236/trunk@19126 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 21:41:50 +00:00
mcafee%netscape.com
51ebcfae81 Removing unused REQUIRES line
git-svn-id: svn://10.0.0.236/trunk@19125 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 20:14:35 +00:00
troy%netscape.com
781dc0721c Removed some merge conflicts that someone must have accidentally checked in
git-svn-id: svn://10.0.0.236/trunk@19124 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 19:50:52 +00:00
troy%netscape.com
211b9e9e06 Changed Reflow() to make sure the desired-size members of the reflow metrics
struct are set in the case where there is no child frame


git-svn-id: svn://10.0.0.236/trunk@19123 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 18:46:22 +00:00
troy%netscape.com
a02386ecfe Fix for bug #2748. Reset the scroll-position to 0 when the scrollbar
is no longer needed


git-svn-id: svn://10.0.0.236/trunk@19122 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 18:42:13 +00:00
jwz%mozilla.org
932ac26445 more of the above -- for the ?raw=1 link in
http://cvs-mirror.mozilla.org/webtools/lxr/source/build/mac/client.mac/Client.Mac%20READ%20ME


git-svn-id: svn://10.0.0.236/trunk@19121 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 11:18:32 +00:00
jwz%mozilla.org
5a1c144232 changed `fileref' to do URL quoting, so that (for example)
http://cvs-mirror.mozilla.org/webtools/lxr/source/build/mac/client.mac/
links "Client.Mac READ ME" to
".../client.mac/Client.Mac%20READ%20ME" instead of
".../client.mac/Client.Mac READ ME"


git-svn-id: svn://10.0.0.236/trunk@19120 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 10:52:32 +00:00
mcafee%netscape.com
249dbc3f77 removing unused REQUIRES line
git-svn-id: svn://10.0.0.236/trunk@19119 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 10:13:55 +00:00
mcafee%netscape.com
81f5bef64b Removing unnecessary rules
git-svn-id: svn://10.0.0.236/trunk@19118 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 10:06:38 +00:00
mcafee%netscape.com
69a43fa2f3 Removing unnecessary rules, cleaning this up a bit
git-svn-id: svn://10.0.0.236/trunk@19117 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 09:39:09 +00:00
mscott%netscape.com
a789f70484 Removed nsMsgKeyPtrArray because it doesn't buid on linux (it depends on unsigned key array which isn't building on linux yet...)
git-svn-id: svn://10.0.0.236/trunk@19116 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 08:23:37 +00:00
mscott%netscape.com
57b368b683 More changes for the test harness to build on Linux....
git-svn-id: svn://10.0.0.236/trunk@19115 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 08:20:41 +00:00
mscott%netscape.com
4fb36ff503 define fe_configTemp to build on linux...comment out mime calls for now.
git-svn-id: svn://10.0.0.236/trunk@19114 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 08:18:02 +00:00
mscott%netscape.com
0c2d63e0ac Implement init call in order to link...
git-svn-id: svn://10.0.0.236/trunk@19113 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 08:13:37 +00:00
mscott%netscape.com
28aa049ef4 Remove reference to static delete operator
git-svn-id: svn://10.0.0.236/trunk@19112 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 08:10:30 +00:00
mscott%netscape.com
fba15c8b5c Build nsMsgPtrArray correctly. Remove flag preventing this library from being linked with others.
git-svn-id: svn://10.0.0.236/trunk@19111 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 07:53:21 +00:00
mscott%netscape.com
347d62dac2 Remove delete operator...
git-svn-id: svn://10.0.0.236/trunk@19110 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 07:48:59 +00:00
mscott%netscape.com
11f34a8a99 removing delete operator....next time the file is generated from its .idl equivalent, this would have
been removed.


git-svn-id: svn://10.0.0.236/trunk@19109 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 07:48:34 +00:00
mscott%netscape.com
8b491be57d get rid of XP_TO_UPPER and use nsCRT equivalents...get rid of NET_Unescape/Escape and use nsEscape.h equivalents...
git-svn-id: svn://10.0.0.236/trunk@19108 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 07:43:52 +00:00
mscott%netscape.com
7fd861cb1e Export some header files for the test harness..
git-svn-id: svn://10.0.0.236/trunk@19107 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 07:29:47 +00:00
mscott%netscape.com
9b9a44bb59 Build the nntpTest application.
git-svn-id: svn://10.0.0.236/trunk@19106 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 07:03:13 +00:00
mscott%netscape.com
859118e1e7 Nntp test harness and associated stub files....
git-svn-id: svn://10.0.0.236/trunk@19105 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 07:02:24 +00:00
mscott%netscape.com
1bbcfffa12 Export nsINntpUrl.h
git-svn-id: svn://10.0.0.236/trunk@19104 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 07:01:11 +00:00
mscott%netscape.com
834b70d5a4 Build nsINntpUrl.cpp lh
git-svn-id: svn://10.0.0.236/trunk@19103 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 07:00:14 +00:00
mscott%netscape.com
c57d3140d2 Use correct key for implementing Isupports...
git-svn-id: svn://10.0.0.236/trunk@19102 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 06:53:34 +00:00
mscott%netscape.com
11f0eed269 Export nsNntpUrl.h
git-svn-id: svn://10.0.0.236/trunk@19101 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 06:41:41 +00:00
mscott%netscape.com
9599105569 Declare the "factory" generator for newsgoup lists as an extern so I can implement it in my test code...
git-svn-id: svn://10.0.0.236/trunk@19100 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 06:40:13 +00:00
mscott%netscape.com
e569f50828 Extra code that came about from my test code. Cleaned up how we load a URL. When processing the state, if we don't have an input stream and the current state is a "response" state then kick out and pause for read. Also cleared up some #ifdef UNREADY_CODE. Incorporated new code added to nsINntpUrl.
git-svn-id: svn://10.0.0.236/trunk@19099 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 06:39:23 +00:00
mscott%netscape.com
e999a4d03d Implement ISupports for this class...
git-svn-id: svn://10.0.0.236/trunk@19098 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 06:37:17 +00:00
mscott%netscape.com
3fa6083a4b Added some extra debug code and declared the creation method as an extern so I can use it in my debug code...
git-svn-id: svn://10.0.0.236/trunk@19097 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 06:36:26 +00:00
mscott%netscape.com
4b5eccd041 Temporarily hiding link errors using very large #ifdefs....
git-svn-id: svn://10.0.0.236/trunk@19096 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 06:35:13 +00:00
mscott%netscape.com
47ea1b3168 Creating a news host requires a host and port....
git-svn-id: svn://10.0.0.236/trunk@19095 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 06:34:01 +00:00
mscott%netscape.com
7ba49b2604 Remove state flag debug information from header file and into nsNNTPProtocol.cpp....
git-svn-id: svn://10.0.0.236/trunk@19094 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 06:33:25 +00:00
mscott%netscape.com
7bd437338f Url implementations of nsINntpUrl.h for news...
git-svn-id: svn://10.0.0.236/trunk@19093 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 06:32:49 +00:00
mscott%netscape.com
bdbcec5a14 Export and build a heck of a lot more stuff...
git-svn-id: svn://10.0.0.236/trunk@19092 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 06:31:42 +00:00
mscott%netscape.com
249a6de092 Removing the delete operator from the interface. The IDL compiler will no longer generate these. So the next time the header files
were generated, the calls would have been removed anyway....


git-svn-id: svn://10.0.0.236/trunk@19091 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 06:30:32 +00:00
fur%netscape.com
c977b554c1 Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@19090 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 06:00:48 +00:00
troy%netscape.com
408d68e175 Fix for bug# 2780: changed root-frame and scroll-frame code to take into
account mCombinedArea


git-svn-id: svn://10.0.0.236/trunk@19089 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 05:12:02 +00:00
troy%netscape.com
c2c56781d3 Changed ReflowFixedFrame() to take the computed left and top margin into
account when placing the child


git-svn-id: svn://10.0.0.236/trunk@19088 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 05:09:29 +00:00
sfraser%netscape.com
8014626c2a First Checked In.
git-svn-id: svn://10.0.0.236/trunk@19087 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 00:27:56 +00:00
troy%netscape.com
def03bf7d8 Added code to force an absolutely positioned child that ignored its
computed height to be the correct height


git-svn-id: svn://10.0.0.236/trunk@19086 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 18:12:38 +00:00
troy%netscape.com
27d304bd81 Added code to make sure that a fixed child frame ends up with the correct height
evebn if it disregards the computed height value


git-svn-id: svn://10.0.0.236/trunk@19085 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 17:39:29 +00:00
ftang%netscape.com
e66c5bc47e add Charset Converter Manager and converters
git-svn-id: svn://10.0.0.236/trunk@19084 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 17:00:54 +00:00
ftang%netscape.com
d218178e48 export converter's cid header files into dist
git-svn-id: svn://10.0.0.236/trunk@19083 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 16:59:17 +00:00
ftang%netscape.com
44b879f5f9 add -I uconv
git-svn-id: svn://10.0.0.236/trunk@19082 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 16:52:29 +00:00
ftang%netscape.com
39294e692f add -I for uconv
git-svn-id: svn://10.0.0.236/trunk@19081 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 16:50:56 +00:00
karnaze%netscape.com
6ff27d1704 Made table frame construction flexible enough to allow arbitrary content to be mapped
to arbitrary table related display types.


git-svn-id: svn://10.0.0.236/trunk@19080 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 15:52:19 +00:00
peterl%netscape.com
4e782b81d6 fixed multi-link header delimiter (comma not semicolon)
fixed uninitialized blocking variable in header link code
fixed error return code for style sheet linking


git-svn-id: svn://10.0.0.236/trunk@19079 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 06:24:09 +00:00
peterl%netscape.com
5519426ab4 fixed namespace
git-svn-id: svn://10.0.0.236/trunk@19078 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 06:22:39 +00:00
peterl%netscape.com
07059872ed accept namespace none for attributes
git-svn-id: svn://10.0.0.236/trunk@19077 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 06:21:08 +00:00
peterl%netscape.com
ee35562351 made attribute accessors respect unknown namespace for getters (wildcard)
git-svn-id: svn://10.0.0.236/trunk@19076 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 06:20:39 +00:00
peterl%netscape.com
8ac1169f7d Added operator=(nsAutoString) for autostring
git-svn-id: svn://10.0.0.236/trunk@19075 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 06:19:52 +00:00
sar%netscape.com
c14e26a9fe fixing build breakage.
git-svn-id: svn://10.0.0.236/trunk@19074 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 03:53:39 +00:00
erik%netscape.com
da632d4a64 removing strres from build until I sort out the raptorbase.lib problem
git-svn-id: svn://10.0.0.236/trunk@19072 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 01:40:48 +00:00
waldemar%netscape.com
521fe96ab9 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@19071 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 01:19:00 +00:00
briano%netscape.com
1c93f033dd Automated update
git-svn-id: svn://10.0.0.236/trunk@19070 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 01:15:31 +00:00
leaf%mozilla.org
66bb35d84e making client.mak build apprunner by default. Probably should be replaced by
a more sophisticated rule.


git-svn-id: svn://10.0.0.236/trunk@19069 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 01:12:59 +00:00
coop%netscape.com
6e4af8f9ef NOT YET PART OF SEAMONKEY:
* added directory libxpt/tools which currently only contains the typelib dumper
* removed dump code from tests dir
* added/modified appropriate Makefiles and configure scripts


git-svn-id: svn://10.0.0.236/trunk@19068 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 01:10:01 +00:00
akkana%netscape.com
98b2973669 Rename an ifdef
git-svn-id: svn://10.0.0.236/trunk@19067 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 01:05:39 +00:00
troy%netscape.com
16f36b3214 Fixed leak of nsIHTMLDocument interface in GetImageMap()
git-svn-id: svn://10.0.0.236/trunk@19066 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 01:04:35 +00:00
coop%netscape.com
c59da5af63 NOT YET PART OF SEAMONKEY:
* committing fixes for shaver
* header pointer is now set XPT_DoHeader
* fixed assertion error in CHECK_COUNT macro


git-svn-id: svn://10.0.0.236/trunk@19065 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 01:03:54 +00:00
akkana%netscape.com
b589837c36 Add IsCollapsed; add collapsed case to DeleteFromDocument
git-svn-id: svn://10.0.0.236/trunk@19064 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 01:02:44 +00:00
pollmann%netscape.com
59abb71e8d Bug 2716, 2792, 1190, 1750: Wired up selected, defaultSelected, and selectedIndex.
git-svn-id: svn://10.0.0.236/trunk@19063 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 01:02:28 +00:00
pollmann%netscape.com
ade8d4eb9b Bug 2788: Crash on leaving page where js references named options.
git-svn-id: svn://10.0.0.236/trunk@19062 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 00:53:53 +00:00
pollmann%netscape.com
fa6a076134 Bug 2787: Crash on js accessing option index out of range.
git-svn-id: svn://10.0.0.236/trunk@19061 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 00:51:10 +00:00
pollmann%netscape.com
f4497fe28c Initializing res.
git-svn-id: svn://10.0.0.236/trunk@19060 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 00:41:41 +00:00
mcmullen%netscape.com
5fd97d3fa6 Hooked up menus to commands (just like toolbar buttons) converted to nsCOMPtr everywhere.
git-svn-id: svn://10.0.0.236/trunk@19059 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 00:39:25 +00:00
terry%netscape.com
8438f797d6 Had an operating system mispelled.
git-svn-id: svn://10.0.0.236/trunk@19058 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 00:38:09 +00:00
troy%netscape.com
fdb78f4840 Changed TriggerLink() to release its reference to the nsILinkHandler interface,
and I changed HandleEvent() to make nsIURL interface returned by the call to
GetDocumentURL() is released


git-svn-id: svn://10.0.0.236/trunk@19057 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 00:34:06 +00:00
erik%netscape.com
b4d51fcaf1 changed locale argument from nsString to nsILocale
git-svn-id: svn://10.0.0.236/trunk@19056 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 00:29:33 +00:00
erik%netscape.com
99b03d485a added strres to list of directories to build
git-svn-id: svn://10.0.0.236/trunk@19055 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 00:28:10 +00:00
erik%netscape.com
53e4f83029 added locale to include list (for nsILocale)
git-svn-id: svn://10.0.0.236/trunk@19054 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 00:27:18 +00:00
erik%netscape.com
262cc9fee9 added locale directory to include list (for nsILocale)
git-svn-id: svn://10.0.0.236/trunk@19053 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 00:26:48 +00:00
erik%netscape.com
2235f77acb added Windows makefile for this directory so that build goes down into
subdirectories automatically


git-svn-id: svn://10.0.0.236/trunk@19052 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 00:25:34 +00:00
pavlov%pavlov.net
7caf3a0d8d make the underline a bit closer
git-svn-id: svn://10.0.0.236/trunk@19051 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 00:25:26 +00:00
pavlov%pavlov.net
56363996dc make comboboxen look correct
git-svn-id: svn://10.0.0.236/trunk@19050 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-30 00:24:34 +00:00
rhp%netscape.com
53474f0052 Changes to add another xpcom interface for modular libmime.
git-svn-id: svn://10.0.0.236/trunk@19049 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 23:32:35 +00:00
rhp%netscape.com
3a74534d1e XPCOM bridges for C interfaces into libmime
git-svn-id: svn://10.0.0.236/trunk@19048 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 23:29:03 +00:00
rhp%netscape.com
fcde2067d7 updates for new xp-com inteface.
git-svn-id: svn://10.0.0.236/trunk@19047 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 22:59:09 +00:00
troy%netscape.com
6fe92d260e Removed an "extra" NS_RELEASE of "map" which was causing double-frees. Permission
from Sarah to check in while the tree's closed


git-svn-id: svn://10.0.0.236/trunk@19046 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 22:38:48 +00:00
rhp%netscape.com
ae831eebbd Adding new interface file to makefile.
git-svn-id: svn://10.0.0.236/trunk@19045 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 22:10:04 +00:00
terry%netscape.com
9eaca4775c Some installations of perl seem very picky about their regexps.
git-svn-id: svn://10.0.0.236/trunk@19044 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 22:07:09 +00:00
rhp%netscape.com
db82d4760a Quick init fix.
git-svn-id: svn://10.0.0.236/trunk@19043 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 21:57:51 +00:00
rhp%netscape.com
8cc4137107 Adding a new XP-COM interface to libmime.
git-svn-id: svn://10.0.0.236/trunk@19042 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 21:37:14 +00:00
rhp%netscape.com
70678e51c5 This is a new interface for libmime to allow content type plugins
to access the class system within libmime.


git-svn-id: svn://10.0.0.236/trunk@19041 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 21:32:01 +00:00
cltbld%netscape.com
4beb425ccc backing out xpfe since I don't know why it's not working
git-svn-id: svn://10.0.0.236/trunk@19040 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 21:18:45 +00:00
terry%netscape.com
a0a9b67f0b Get rid of sar's "#" hack on the stocks; it no longer seems to work.
git-svn-id: svn://10.0.0.236/trunk@19039 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 20:56:23 +00:00
slamm%netscape.com
a71f1d8139 On second thought, the recursive rules aren't needed because the Makefiles will get updated as needed for any target.
git-svn-id: svn://10.0.0.236/trunk@19038 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 20:45:39 +00:00
despotdaemon%netscape.com
5a6a640ccf Pseudo-automatic update of changes made by varada@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@19037 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 20:33:34 +00:00
akkana%netscape.com
e21ae440a2 Fixing my build horkage ... forgot this file. Very sorry!
git-svn-id: svn://10.0.0.236/trunk@19036 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 20:08:38 +00:00
slamm%netscape.com
d2451ab377 Add recursive rule, 'makefiles', to update Makefiles when their Makefile.in's are more recent.
git-svn-id: svn://10.0.0.236/trunk@19035 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 20:00:50 +00:00
sar%netscape.com
04b9e26796 add xpfe
git-svn-id: svn://10.0.0.236/trunk@19034 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 20:00:07 +00:00
beard%netscape.com
30174b3861 added files: mozilla/build/mac/test/test1.cpp, removed files: mozilla/build/mac/test/test2.cpp
git-svn-id: svn://10.0.0.236/trunk@19033 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 19:54:46 +00:00
beard%netscape.com
842c76a7d8 added files: mozilla/base/src/nsArena.cpp, removed files: mozilla/build/mac/test/test1.cpp
git-svn-id: svn://10.0.0.236/trunk@19032 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 19:32:41 +00:00
beard%netscape.com
71d7ab5672 added files: mozilla/base/src/nsArena.cpp, mozilla/build/mac/test/test2.cpp
git-svn-id: svn://10.0.0.236/trunk@19031 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 19:30:54 +00:00
beard%netscape.com
c6098dc024 added files: mozilla/build/mac/test/test2.cpp
git-svn-id: svn://10.0.0.236/trunk@19030 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 19:20:23 +00:00
akkana%netscape.com
52b18e6064 Implement a new interface, nsIDOMSelection, intended to become the
external interface for selection (to be IDL-ified later).

Fix some editor bugs:
- Advance the cursor on text insert (so text is inserted in the right order)
- Make DeleteSelection in the editor call the actual selection
- Make DeleteSelection update the frames' notion of the selection


git-svn-id: svn://10.0.0.236/trunk@19029 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 18:57:56 +00:00
buster%netscape.com
d954257870 fixed a nasty bug where some incremental reflow cases of a table with collapsing borders would crash.
One example of the crash is changing the style of a cell via DOM.
Also fixed an error in the API of nsTableColFrame


git-svn-id: svn://10.0.0.236/trunk@19028 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 18:49:32 +00:00
slamm%netscape.com
76ddf94cce Add a target to update a Makefile when its Makefile.in changes.
git-svn-id: svn://10.0.0.236/trunk@19027 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 18:35:35 +00:00
ftang%netscape.com
03f9f9fb23 add file
git-svn-id: svn://10.0.0.236/trunk@19026 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 18:26:09 +00:00
ftang%netscape.com
291017d32e First Checked In.
git-svn-id: svn://10.0.0.236/trunk@19025 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 18:24:54 +00:00
ftang%netscape.com
2432b6feec move kLatin1ToUnicodeCID from nsConverterCID.h to nsUCvLatinCID.h
git-svn-id: svn://10.0.0.236/trunk@19024 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 18:13:32 +00:00
ftang%netscape.com
57dd64effc fix EXPORT problem
git-svn-id: svn://10.0.0.236/trunk@19023 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 18:12:16 +00:00
ftang%netscape.com
6b057a5a6f first check in
git-svn-id: svn://10.0.0.236/trunk@19022 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 18:11:33 +00:00
ftang%netscape.com
7b7a4a7272 fix export
git-svn-id: svn://10.0.0.236/trunk@19021 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 18:11:00 +00:00
ftang%netscape.com
339d983050 limit ToUCS2 only have effect in U+0080 to U+009F range so it won't mess up non Latin 1 characters
git-svn-id: svn://10.0.0.236/trunk@19020 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 18:08:36 +00:00
ftang%netscape.com
dc85c6215a fix non-ASCII font face cannot be found problem
git-svn-id: svn://10.0.0.236/trunk@19019 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 18:06:42 +00:00
dcone%netscape.com
23010dac73 Fixed the font information, added some postscript drawing routines.
git-svn-id: svn://10.0.0.236/trunk@19018 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 17:00:46 +00:00
rhp%netscape.com
cd9ff1227d More cleanup for modular libmime.
git-svn-id: svn://10.0.0.236/trunk@19017 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 16:48:29 +00:00
rhp%netscape.com
24382e5d23 More redefining of code for modular libmime.
git-svn-id: svn://10.0.0.236/trunk@19016 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 16:24:21 +00:00
rhp%netscape.com
5d0515728a Reorganizing code for modular libmime.
git-svn-id: svn://10.0.0.236/trunk@19015 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 16:22:28 +00:00
rhp%netscape.com
305bc175bb Reorganizing code for modular mime.
git-svn-id: svn://10.0.0.236/trunk@19014 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 16:15:46 +00:00
mcafee%netscape.com
f96eb40bf7 Better include line, alternative to Elliot Lee's patch in mozilla.patches
git-svn-id: svn://10.0.0.236/trunk@19013 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 09:46:50 +00:00
beard%netscape.com
0bf18bbb3f added files: mozilla/base/src/nsArena.cpp, mozilla/build/mac/test/test1.cpp
git-svn-id: svn://10.0.0.236/trunk@19012 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 07:51:42 +00:00
beard%netscape.com
83553be199 added files: mozilla/build/mac/test/test2.cpp, removed files: mozilla/build/mac/test/test1.cpp
git-svn-id: svn://10.0.0.236/trunk@19011 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 07:48:13 +00:00
beard%netscape.com
309940c73a removed files: mozilla/build/mac/test/test2.cpp
git-svn-id: svn://10.0.0.236/trunk@19010 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 07:47:43 +00:00
beard%netscape.com
60234ccd69 added files: mozilla/build/mac/test/test2.cpp
git-svn-id: svn://10.0.0.236/trunk@19009 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 07:45:27 +00:00
beard%netscape.com
cdc04e7950 removed files: mozilla/build/mac/test/test2.cpp
git-svn-id: svn://10.0.0.236/trunk@19008 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 07:43:47 +00:00
beard%netscape.com
8387c638d1 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@19007 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 07:42:41 +00:00
grail%cafebabe.org
c2d6d384ac Patch from Edwin Wouldt to compensate for NT's losing handling of head
tag. Awaiting Sun to address the issue.


git-svn-id: svn://10.0.0.236/trunk@19006 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 06:42:41 +00:00
sfraser%netscape.com
fa0681c866 Reverting my previous change, to export all globals again. Exporting by #pragma exposes a compiler bug in the Pro 4 compilers that causes nsString not to be exported. When we upgrade the tools, this project should again export by #pragama.
git-svn-id: svn://10.0.0.236/trunk@19005 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 06:32:45 +00:00
troy%netscape.com
c7ebcef4d4 Fixed memory leak of MAP content object in OpenMap()
git-svn-id: svn://10.0.0.236/trunk@19004 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 06:13:55 +00:00
troy%netscape.com
ef9d8902e3 Fixed memory leak of a nsRadioControlGroup object
git-svn-id: svn://10.0.0.236/trunk@19003 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 06:01:15 +00:00
troy%netscape.com
18a51edf87 Fixed memory leak of AREA content object in ProcessAREATag()
git-svn-id: svn://10.0.0.236/trunk@19002 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 05:37:45 +00:00
tague%netscape.com
3a76a700a6 Changed DEPTH to topsrcdir so that we build under autoconf
git-svn-id: svn://10.0.0.236/trunk@19001 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 05:29:43 +00:00
fur%netscape.com
ea8ad29eb1 Fixed VerifyError and RuntimeError messages to be less dire. Also, don't exit
the program if an error occurs since it will be propagated to a Java caller as
an exception.


git-svn-id: svn://10.0.0.236/trunk@19000 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 05:23:06 +00:00
fur%netscape.com
38a75aef05 The -sys command-line option is now default behavior. You can disable System
class initialization with the new -nosystem option).


git-svn-id: svn://10.0.0.236/trunk@18999 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 05:21:48 +00:00
fur%netscape.com
988e7f0910 Really this time: temporarily hard-coded y.tab.[ch] into build, instead of
generating them


git-svn-id: svn://10.0.0.236/trunk@18998 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 05:20:25 +00:00
fur%netscape.com
22ed156185 Was incorrectly reporting classfile corruption when file was actually not found.
git-svn-id: svn://10.0.0.236/trunk@18997 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 05:09:46 +00:00
troy%netscape.com
1e954a0eb9 Fixed a couple of memory leaks
git-svn-id: svn://10.0.0.236/trunk@18996 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 05:05:02 +00:00
troy%netscape.com
2737ca110b Fix for bug #2743. Improved the logic which predicts whether a vertical scrollbar
is needed


git-svn-id: svn://10.0.0.236/trunk@18995 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 04:29:10 +00:00
sfraser%netscape.com
af38e451ca First Checked In.
git-svn-id: svn://10.0.0.236/trunk@18994 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 04:17:15 +00:00
briano%netscape.com
ed972f200e Automated update
git-svn-id: svn://10.0.0.236/trunk@18993 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 04:15:35 +00:00
tague%netscape.com
472f8e89e0 Added directory to mozilla/intl/locale
git-svn-id: svn://10.0.0.236/trunk@18992 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 04:10:23 +00:00
tague%netscape.com
34f869e5a6 Added nsILocale, nsILocaleFactory, nsICollation to the UNIX build
git-svn-id: svn://10.0.0.236/trunk@18991 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 04:09:40 +00:00
sfraser%netscape.com
7e9317d62f removed files: mozilla/build/mac/test2.cpp
git-svn-id: svn://10.0.0.236/trunk@18990 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 03:52:52 +00:00
sfraser%netscape.com
41e60bda96 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@18989 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 03:51:32 +00:00
bienvenu%netscape.com
5496f01530 add msgFlags types
git-svn-id: svn://10.0.0.236/trunk@18988 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 03:10:49 +00:00
bienvenu%netscape.com
180ab14492 add key and uint32 collections classes
git-svn-id: svn://10.0.0.236/trunk@18987 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 03:09:55 +00:00
bienvenu%netscape.com
f65c64acc8 remove unneeded win16 code
git-svn-id: svn://10.0.0.236/trunk@18986 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 03:08:57 +00:00
beard%netscape.com
c5aae001d3 added files: mozilla/build/mac/test/test1.cpp
git-svn-id: svn://10.0.0.236/trunk@18985 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 03:08:09 +00:00
bienvenu%netscape.com
40540c9906 make a couple methods public for compilation purposes
git-svn-id: svn://10.0.0.236/trunk@18984 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 03:06:13 +00:00
beard%netscape.com
9db8626bec added files: mozilla/build/mac/test/test1.cpp
git-svn-id: svn://10.0.0.236/trunk@18983 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 03:05:51 +00:00
bienvenu%netscape.com
0b5c1fde5d add new interfaces for opening and closing dbs
git-svn-id: svn://10.0.0.236/trunk@18982 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 03:05:30 +00:00
beard%netscape.com
49cf8002b0 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@18981 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 02:55:06 +00:00
sfraser%netscape.com
2ba26ff77e Changed to export by #pragma, instead of exporting all globals. This required adding prefix files to #define _IMPL_NS_BASE
git-svn-id: svn://10.0.0.236/trunk@18980 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 02:21:55 +00:00
sfraser%netscape.com
4ae550620f Export the repeater class with NS_BASE
git-svn-id: svn://10.0.0.236/trunk@18979 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 02:21:13 +00:00
sfraser%netscape.com
eea05f7032 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@18978 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 02:20:48 +00:00
sfraser%netscape.com
427aeef7f4 Fix a typo (== -> =)
git-svn-id: svn://10.0.0.236/trunk@18977 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 02:10:17 +00:00
pinkerton%netscape.com
b8528da324 Don't hardcode twip size.
git-svn-id: svn://10.0.0.236/trunk@18976 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 02:01:16 +00:00
davidm%netscape.com
6f46994948 The prefixes were switched which is not a good thing
git-svn-id: svn://10.0.0.236/trunk@18974 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 01:34:58 +00:00
guha%netscape.com
239252e24c hacking namespace related things
git-svn-id: svn://10.0.0.236/trunk@18973 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 01:33:38 +00:00
ftang%netscape.com
f3a612144b add MANIFEST
git-svn-id: svn://10.0.0.236/trunk@18972 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 01:09:05 +00:00
hyatt%netscape.com
446bf56c98 Using the attribute selector instead.
git-svn-id: svn://10.0.0.236/trunk@18971 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 00:58:01 +00:00
guha%netscape.com
7dbeeb5ef9 more fixes
git-svn-id: svn://10.0.0.236/trunk@18970 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 00:49:35 +00:00
waterson%netscape.com
b59f150b13 Added nsRDFXULBuilder.cpp; this is not currently in the build.
git-svn-id: svn://10.0.0.236/trunk@18969 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 00:41:42 +00:00
pinkerton%netscape.com
e3a59ff1a2 Grippies now handle rollover and respect css styles.
git-svn-id: svn://10.0.0.236/trunk@18968 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 23:58:18 +00:00
pinkerton%netscape.com
79ad23cedf added psuedo-styles for grippies.
git-svn-id: svn://10.0.0.236/trunk@18967 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 23:57:36 +00:00
jfrancis%netscape.com
373d464054 fixed implementation of IsDone()
git-svn-id: svn://10.0.0.236/trunk@18966 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 23:55:53 +00:00
jfrancis%netscape.com
9170fd690c strstream -> strstream.h to satify sunos
git-svn-id: svn://10.0.0.236/trunk@18965 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 23:44:41 +00:00
guha%netscape.com
18d9ecdf4d prototype serialized hash table
git-svn-id: svn://10.0.0.236/trunk@18964 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 23:39:16 +00:00
tague%netscape.com
a4f6a739c5 Checked in nsILocale, nsILocaleFactory. Added all the build dependencites in mozilla/intl as well.
git-svn-id: svn://10.0.0.236/trunk@18963 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 23:27:55 +00:00
joki%netscape.com
726f3f8782 Adding history and screen files to mac project
git-svn-id: svn://10.0.0.236/trunk@18962 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 23:26:31 +00:00
joki%netscape.com
5d1ef109ba Removing nsILinkHandler enum types from dependencies, fixing event handler bugs
git-svn-id: svn://10.0.0.236/trunk@18961 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 23:14:36 +00:00
joki%netscape.com
42ac3bd5b6 Adding new history interface method onto webshell, removing enums types from linkhandler
git-svn-id: svn://10.0.0.236/trunk@18960 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 23:13:48 +00:00
joki%netscape.com
e580c2846e Adding changes to DOM window object to allow window.screen and window.history
git-svn-id: svn://10.0.0.236/trunk@18959 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 23:12:54 +00:00
rhp%netscape.com
dffd10acd1 Documenting some changes
git-svn-id: svn://10.0.0.236/trunk@18958 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 23:09:54 +00:00
jfrancis%netscape.com
eb70f6669f changed DoCopy() to use stringstream on mac instead of ostrstream. ostrstream is broken on mac - also ostrstream is deprecated and we may want to move to stringstream on all platforms eventually. Greg and I couldn't get stringstream to work on windows so for now DoCopy() has ifdef'd code for each platform.
git-svn-id: svn://10.0.0.236/trunk@18957 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 22:58:52 +00:00
michaelp%netscape.com
36e4ee9653 corner view now paints correctly again.
git-svn-id: svn://10.0.0.236/trunk@18956 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 22:37:16 +00:00
despotdaemon%netscape.com
243f50cdbe Pseudo-automatic update of changes made by luigilira@aol.com.
git-svn-id: svn://10.0.0.236/trunk@18955 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 22:34:00 +00:00
joki%netscape.com
cd5bf676bb Adding new files for window.history, window.screen
git-svn-id: svn://10.0.0.236/trunk@18954 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 22:24:29 +00:00
joki%netscape.com
ef7d2685b5 Adding new header files for window.history and window.screen
git-svn-id: svn://10.0.0.236/trunk@18953 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 22:21:46 +00:00
joki%netscape.com
fbd30c39f0 Updated DOM idl files including new idl for window.screen and window.history
git-svn-id: svn://10.0.0.236/trunk@18952 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 22:20:01 +00:00
rhp%netscape.com
6f35ba2164 More XP-COM factory changes.
git-svn-id: svn://10.0.0.236/trunk@18951 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 22:13:03 +00:00
mscott%netscape.com
a43ebb6483 Build nsMsgPtrArray and nsMsgGroupRecord.
git-svn-id: svn://10.0.0.236/trunk@18950 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 22:12:50 +00:00
rhp%netscape.com
7d6bfdff63 More test updates.
git-svn-id: svn://10.0.0.236/trunk@18949 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 22:10:50 +00:00
kmcclusk%netscape.com
733b961ac8 Modified GetText to take extra paramater to indicate whether it should return
the current text value or the initial text value


git-svn-id: svn://10.0.0.236/trunk@18948 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 21:58:01 +00:00
mscott%netscape.com
66724a85ba removing from repository so I can rename it to nsINntpUrl.h.
git-svn-id: svn://10.0.0.236/trunk@18947 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 21:31:59 +00:00
rhp%netscape.com
7ddaabe3a7 Adding makefile.win to repository.
git-svn-id: svn://10.0.0.236/trunk@18946 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 21:29:58 +00:00
rhp%netscape.com
2312878c11 Adding an XP-COM test for libmime.
git-svn-id: svn://10.0.0.236/trunk@18945 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 21:28:02 +00:00
rhp%netscape.com
ef7ce67487 Changes for XP-COM interface.
git-svn-id: svn://10.0.0.236/trunk@18944 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 21:09:41 +00:00
rhp%netscape.com
9832004ca6 Changes for the XP-COM interface of libmime.
git-svn-id: svn://10.0.0.236/trunk@18943 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 21:09:22 +00:00
rhp%netscape.com
e80f9ad023 XP-COM changes for libmime.
git-svn-id: svn://10.0.0.236/trunk@18942 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 21:07:41 +00:00
rhp%netscape.com
814597b3de Updates for XP-COM interface.
git-svn-id: svn://10.0.0.236/trunk@18941 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 20:59:40 +00:00
rhp%netscape.com
be22922918 Updating the build process
git-svn-id: svn://10.0.0.236/trunk@18940 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 20:58:43 +00:00
petitta%netscape.com
4ba8e33bb7 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@18939 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 20:51:13 +00:00
petitta%netscape.com
9bef1f22ae Changed $pull{all} = 1; to $pull{all} = 0;
git-svn-id: svn://10.0.0.236/trunk@18938 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 20:43:50 +00:00
petitta%netscape.com
1b6dcf5018 deleted autoupdt.h
git-svn-id: svn://10.0.0.236/trunk@18937 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 20:00:34 +00:00
petitta%netscape.com
1f0f18e8c2 removed FlushAllocator.h(obsolete)
git-svn-id: svn://10.0.0.236/trunk@18936 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 19:57:21 +00:00
bienvenu%netscape.com
890af5afbd collection classes for mailnews
git-svn-id: svn://10.0.0.236/trunk@18935 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 19:54:58 +00:00
buster%netscape.com
9d27388bf5 fixed some UMR's due to mRefCnt being uninitialized. This fixes some memory leaks.
git-svn-id: svn://10.0.0.236/trunk@18934 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 19:45:23 +00:00
kmcclusk%netscape.com
10133bbe45 Added return type to fix build bustage
git-svn-id: svn://10.0.0.236/trunk@18933 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 19:29:15 +00:00
terry%netscape.com
f1fc4db8d7 Move CC and qa-assigned-to info from Bugsplat bugs to Bugzilla.
git-svn-id: svn://10.0.0.236/trunk@18932 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 19:20:01 +00:00
buster%netscape.com
956232ee80 put in crude support for aggregating type-ins across selection changes.
this needs to get beefed up to handle offsets within elements, which we'll
do as soon as selection is set properly following an insertion.


git-svn-id: svn://10.0.0.236/trunk@18931 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 19:00:14 +00:00
kmcclusk%netscape.com
94fed2f8e2 Modified nsHTMLInputElement text fields to go through nsTextControlFrame
for SetValue and GetValue


git-svn-id: svn://10.0.0.236/trunk@18930 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 18:58:11 +00:00
petitta%netscape.com
900fabe064 Changed $pull{all} = 0; to $pull{all} = 1;
git-svn-id: svn://10.0.0.236/trunk@18929 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 18:04:19 +00:00
pinkerton%netscape.com
3dad9bdc84 add IID for use with nsCOMPtr.
git-svn-id: svn://10.0.0.236/trunk@18928 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 17:59:37 +00:00
rhp%netscape.com
3110f31278 Reorganizing for XP-COM interface
git-svn-id: svn://10.0.0.236/trunk@18927 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 17:25:40 +00:00
rhp%netscape.com
b4b9fafa12 Reorganizing for XP-COM factory
git-svn-id: svn://10.0.0.236/trunk@18926 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 17:24:51 +00:00
buster%netscape.com
f2aea9aa2d fixed a minor problem with merging type-in transactions.
git-svn-id: svn://10.0.0.236/trunk@18925 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 17:19:24 +00:00
troy%netscape.com
b34a14698c More work-in-progress for fixed positioning
git-svn-id: svn://10.0.0.236/trunk@18924 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 17:14:13 +00:00
troy%netscape.com
05ab551aaa Changed clip-view to clip sibling windows
git-svn-id: svn://10.0.0.236/trunk@18923 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 17:07:21 +00:00
buster%netscape.com
0986087710 fixed a minor bug where shortcut keys were being declared as "handled" even if
Ctrl wasn't pressed, so you couldn't type in the character.


git-svn-id: svn://10.0.0.236/trunk@18922 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 17:06:42 +00:00
troy%netscape.com
a8162e1fc7 Added 'clipSiblings' to nsWidgetInitData struct
git-svn-id: svn://10.0.0.236/trunk@18921 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 17:06:39 +00:00
brade%netscape.com
84902e3275 File Removed.
git-svn-id: svn://10.0.0.236/trunk@18920 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 17:01:19 +00:00
pinkerton%netscape.com
a06fe2c0dd comment out section that doesn't compile to fix bustage.
git-svn-id: svn://10.0.0.236/trunk@18919 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 16:43:07 +00:00
pinkerton%netscape.com
61a3b41d8e comment out routine that doesn't compile to fix bustage.
git-svn-id: svn://10.0.0.236/trunk@18918 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 16:42:47 +00:00
fur%netscape.com
082458bdf4 Temporarily hard-coded y.tab.[ch] into build, instead of generating them.
git-svn-id: svn://10.0.0.236/trunk@18917 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 08:22:55 +00:00
fur%netscape.com
d33e9bb674 Temporarily checking in y.tab.c and y.tab.h because of yacc/bison problems.
git-svn-id: svn://10.0.0.236/trunk@18916 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 08:21:57 +00:00
buster%netscape.com
ea9a76f945 changed nsIEditor to enable undo separately from Init
work in progress API changes to nsIEditor and nsEditor


git-svn-id: svn://10.0.0.236/trunk@18914 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 06:02:53 +00:00
buster%netscape.com
7e335082e8 changed nsIEditor to enable undo separately from Init
git-svn-id: svn://10.0.0.236/trunk@18913 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 06:02:13 +00:00
coop%netscape.com
49a193f463 NOT YET PART OF SEAMONKEY:
* added macros for checking bitflag values
* dump code is complete, minus actually reading from disk.


git-svn-id: svn://10.0.0.236/trunk@18912 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 06:01:56 +00:00
michaelp%netscape.com
1d91508c07 fixed build bustage.
git-svn-id: svn://10.0.0.236/trunk@18911 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 05:46:05 +00:00
shaver%netscape.com
6aec39bd43 private delete isn't the mind-bendingly fun stuff we thought it would be (for scc)
git-svn-id: svn://10.0.0.236/trunk@18910 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 05:38:14 +00:00
bienvenu%netscape.com
8d014ff76f use NSPR types
git-svn-id: svn://10.0.0.236/trunk@18909 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 05:35:33 +00:00
bienvenu%netscape.com
24361e37cd start implementing open routines
git-svn-id: svn://10.0.0.236/trunk@18908 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 05:33:55 +00:00
bienvenu%netscape.com
296b63f0bb more db api's
git-svn-id: svn://10.0.0.236/trunk@18907 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 05:32:58 +00:00
bienvenu%netscape.com
c07154c16f turn off src directory for now
git-svn-id: svn://10.0.0.236/trunk@18906 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 05:11:21 +00:00
michaelp%netscape.com
af3e54fb9b modified for DrawString() API changes.
git-svn-id: svn://10.0.0.236/trunk@18905 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 05:06:06 +00:00
michaelp%netscape.com
492510dc1d modified for new DrawString() API.
git-svn-id: svn://10.0.0.236/trunk@18904 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 05:05:14 +00:00
michaelp%netscape.com
8b6acf11bf fixed bug where CreateWidget() was called twice for the ClipView and zero
times for the CornerView.


git-svn-id: svn://10.0.0.236/trunk@18903 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 05:04:43 +00:00
michaelp%netscape.com
2b18562cef modified for new DrawString()/GetWidth() APIs.
git-svn-id: svn://10.0.0.236/trunk@18902 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 05:03:58 +00:00
michaelp%netscape.com
8767c19e77 removed aWidth from DrawString(). added aFontID to DrawString() and GetWidth().
git-svn-id: svn://10.0.0.236/trunk@18901 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 05:03:05 +00:00
briano%netscape.com
c84a6e8537 Automated update
git-svn-id: svn://10.0.0.236/trunk@18900 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 05:00:35 +00:00
ramiro%netscape.com
ef89ea408e Make it possible to determine the DLL_SUFFIX in code.
git-svn-id: svn://10.0.0.236/trunk@18899 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 04:51:23 +00:00
mscott%netscape.com
69eb9f161b Link with sockstuburl
git-svn-id: svn://10.0.0.236/trunk@18898 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 04:11:44 +00:00
hshaw%netscape.com
9c1144dc6e Conditionally compile PrefChangedFunc typedef (which temporarily needs to defined in two header files) so DEC compiler is happy
git-svn-id: svn://10.0.0.236/trunk@18897 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 03:51:22 +00:00
wtc%netscape.com
950647ee49 This file is no longer necessary.
git-svn-id: svn://10.0.0.236/trunk@18896 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 03:41:08 +00:00
law%netscape.com
fc6b608300 new mozIRegistry interface
git-svn-id: svn://10.0.0.236/trunk@18895 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 03:36:37 +00:00
law%netscape.com
d031c90460 new registry tools
git-svn-id: svn://10.0.0.236/trunk@18894 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 03:33:49 +00:00
wtc%netscape.com
395cdccbc3 Bugsplat bug #340124: increase the default thread stack size to 64K
on IRIX, to be consistent with the other platforms.


git-svn-id: svn://10.0.0.236/trunk@18893 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 03:20:29 +00:00
alecf%netscape.com
d3d84733cc implement the full nsISupports interface
git-svn-id: svn://10.0.0.236/trunk@18892 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 03:20:17 +00:00
mscott%netscape.com
803e0c410c Add sockstuburl to list of libraries we link against for the apprunner.
git-svn-id: svn://10.0.0.236/trunk@18891 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 03:11:31 +00:00
mscott%netscape.com
5fe263329f *sigh* I checked in the same change twice...(added sockstuburl twice) removing one of the ocurrences...
git-svn-id: svn://10.0.0.236/trunk@18890 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 02:34:50 +00:00
pinkerton%netscape.com
739ca68f58 fix win32 compiler errors (can't do (nsnull != foop) where foop is a nsCOMPtr, which is fine by me) and fix command hookup code to actually work for multiple toolbars. I dunno what I was smoking with the last checkin.
git-svn-id: svn://10.0.0.236/trunk@18889 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 02:26:27 +00:00
mscott%netscape.com
64766df633 The real check in to build with sockstub
CVSi ----------------------------------------------------------------------


git-svn-id: svn://10.0.0.236/trunk@18888 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 02:23:01 +00:00
mscott%netscape.com
1d259e42d0 Link with sockstub url directory
git-svn-id: svn://10.0.0.236/trunk@18887 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 02:12:09 +00:00
mscott%netscape.com
9f35477262 requires sockstub
git-svn-id: svn://10.0.0.236/trunk@18886 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 02:00:56 +00:00
mscott%netscape.com
4a15ef3410 Link with sockstuburl library.
git-svn-id: svn://10.0.0.236/trunk@18885 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:59:52 +00:00
mscott%netscape.com
89ffbef934 Initialize sockstub protocol when starting up the netlib thread.
git-svn-id: svn://10.0.0.236/trunk@18884 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:57:58 +00:00
mscott%netscape.com
f92f31446c Add socket transport support to the nsINetService interface.
git-svn-id: svn://10.0.0.236/trunk@18883 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:57:30 +00:00
mscott%netscape.com
9f84532f3d Add support for transport interface.
git-svn-id: svn://10.0.0.236/trunk@18882 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:56:50 +00:00
mscott%netscape.com
cfa3919dd6 Register sockstub protocol.
git-svn-id: svn://10.0.0.236/trunk@18881 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:56:20 +00:00
mscott%netscape.com
95ce9ec627 Build nsSocketTransport.
git-svn-id: svn://10.0.0.236/trunk@18880 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:55:40 +00:00
shaver%netscape.com
468ba6a0cf fix header.data_pool writing
git-svn-id: svn://10.0.0.236/trunk@18879 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:55:24 +00:00
mscott%netscape.com
35b1cacfc2 parse url should look for sock stub urls...
git-svn-id: svn://10.0.0.236/trunk@18878 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:55:13 +00:00
mscott%netscape.com
25fb517e11 Build nsTransportSocket
git-svn-id: svn://10.0.0.236/trunk@18877 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:54:04 +00:00
ducarroz%netscape.com
daf3b10e15 added nsSocketTransport to group module
git-svn-id: svn://10.0.0.236/trunk@18876 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:50:51 +00:00
ducarroz%netscape.com
292c4c2b71 Added nsSocketTransport.h
git-svn-id: svn://10.0.0.236/trunk@18875 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:50:36 +00:00
pavlov%pavlov.net
994e74cae7 more gtk1.1.14isms
git-svn-id: svn://10.0.0.236/trunk@18874 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:42:49 +00:00
pinkerton%netscape.com
ad0b74d152 make the toolbar area taller to account for 2 toolbars.
git-svn-id: svn://10.0.0.236/trunk@18873 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:34:45 +00:00
pinkerton%netscape.com
05ab3bc006 add a 2nd toolbar
git-svn-id: svn://10.0.0.236/trunk@18872 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:34:30 +00:00
pinkerton%netscape.com
e86bfb00bf now hookup commands to multiple toolbars and fix compiler warnings.
git-svn-id: svn://10.0.0.236/trunk@18871 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:30:38 +00:00
putterman%netscape.com
dd74f3be20 Added flag functions.
git-svn-id: svn://10.0.0.236/trunk@18870 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:23:40 +00:00
mscott%netscape.com
6508012101 Fix typo in Makefile.
git-svn-id: svn://10.0.0.236/trunk@18869 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:22:37 +00:00
mscott%netscape.com
e1011d65aa Properly export public sockstub functions for Linux....
git-svn-id: svn://10.0.0.236/trunk@18868 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:21:44 +00:00
putterman%netscape.com
7b005bc2cf Adding local directory to build
git-svn-id: svn://10.0.0.236/trunk@18867 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:20:24 +00:00
briano%netscape.com
a571f02ae9 Added the pre-built configure script to the SeaMonkey and MozillaSourceUnix modules.
git-svn-id: svn://10.0.0.236/trunk@18866 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:20:20 +00:00
putterman%netscape.com
323df73f79 Adding folder data source to tree.
git-svn-id: svn://10.0.0.236/trunk@18865 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:18:36 +00:00
amusil%netscape.com
9b3f9f9d23 Updated test case with new Stream and Service Manager APIs
git-svn-id: svn://10.0.0.236/trunk@18864 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:18:23 +00:00
putterman%netscape.com
33ef11a21c Adding folder datasource to the build.
git-svn-id: svn://10.0.0.236/trunk@18863 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:16:36 +00:00
putterman%netscape.com
fc8d25213f Adding to the build
git-svn-id: svn://10.0.0.236/trunk@18862 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:14:54 +00:00
alecf%netscape.com
ca6d8ba520 slight change to the way nsINNTPNewsgroupLists are used - NewsgroupLists are contained by folders, so we don't create them.
git-svn-id: svn://10.0.0.236/trunk@18861 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:11:45 +00:00
slamm%netscape.com
368b06d0cc Get it linking.
git-svn-id: svn://10.0.0.236/trunk@18860 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:06:30 +00:00
slamm%netscape.com
b8e55de858 Get link a little closer to reality.
git-svn-id: svn://10.0.0.236/trunk@18859 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 01:01:32 +00:00
slamm%netscape.com
6ba9a4981b CPP_PROG_LINK is now set in rules.mk so it is not needed here.
git-svn-id: svn://10.0.0.236/trunk@18858 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:59:52 +00:00
slamm%netscape.com
2aeb98c903 Move CPP_PROG_LINK define from config.mk to rules.mk. This allows config.mk to be included in a Makefile before CPPSRCS is defined (i.e. Having CPP_PROG_LINK in config.mk caused an unnecessary dependency.)
git-svn-id: svn://10.0.0.236/trunk@18857 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:59:03 +00:00
alecf%netscape.com
3d715677e9 add nsProxyEvent to the Unix build
git-svn-id: svn://10.0.0.236/trunk@18856 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:48:25 +00:00
kmcclusk%netscape.com
133311baf8 Call GetDefaultValue instead of GetCurrentValue in GetChecked when the aGetInitialValue
flag is set to TRUE.


git-svn-id: svn://10.0.0.236/trunk@18855 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:43:49 +00:00
kmcclusk%netscape.com
bf6927a2a4 Added check for null nsFormControlFrame in GetChecked. This should fix the Mac
when viewing www.netscape.com


git-svn-id: svn://10.0.0.236/trunk@18854 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:36:43 +00:00
alecf%netscape.com
abd33d952d include nsProxyEvent in Windows build
git-svn-id: svn://10.0.0.236/trunk@18853 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:33:42 +00:00
alecf%netscape.com
8eb9c566cd export nsProxyEvent.h
git-svn-id: svn://10.0.0.236/trunk@18852 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:32:42 +00:00
mscott%netscape.com
f84e544410 Use NS_BASE when defining the nsEscape functions.
git-svn-id: svn://10.0.0.236/trunk@18851 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:32:34 +00:00
mscott%netscape.com
83e78717d9 Build nsEscape
git-svn-id: svn://10.0.0.236/trunk@18850 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:31:58 +00:00
harishd%netscape.com
7d19d006e0 Changing the variable aElementColor to aBorderColor in Painborder(),
PaintBorderEdge(), DrawSide(), and MakeBevelColor().
The computed colors for all the  border style should be based on
the actual 'border-side-color' not the element's color after all.


git-svn-id: svn://10.0.0.236/trunk@18849 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:31:47 +00:00
mscott%netscape.com
5f305456c1 use NS_BASE when declaring the nsEscape functions so they get exported.
git-svn-id: svn://10.0.0.236/trunk@18848 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:30:57 +00:00
mscott%netscape.com
9174999138 Export nsEscape.h
git-svn-id: svn://10.0.0.236/trunk@18847 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:30:12 +00:00
harishd%netscape.com
64256b2b61 Changing the variable aElementColor to aBorderColor.
The computed colors for all the  border style should be based on
the actual 'border-side-color' not the element's color after all.


git-svn-id: svn://10.0.0.236/trunk@18846 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:29:54 +00:00
harishd%netscape.com
b4aa285938 Changing the varible name aElementColor to aBordercolor.
The computed colors for all the  border style should be based on
the actual 'border-side-color' not the element's color after all.
CSS2 Spec. was wrong.


git-svn-id: svn://10.0.0.236/trunk@18845 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:29:00 +00:00
wtc%netscape.com
13cf4874d5 Minor editing.
git-svn-id: svn://10.0.0.236/trunk@18844 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:27:20 +00:00
wtc%netscape.com
67dce0cfb1 changed value of TOO_LONG to 5000
git-svn-id: svn://10.0.0.236/trunk@18843 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:26:30 +00:00
nhotta%netscape.com
2649b2980f Added test cases for date time format.
git-svn-id: svn://10.0.0.236/trunk@18842 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:26:04 +00:00
nhotta%netscape.com
6ba2c43dce Changed to call WinAPI for date time format.
git-svn-id: svn://10.0.0.236/trunk@18840 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:24:18 +00:00
pavlov%pavlov.net
2e0179c943 make things rock with gtk 1.1.14
git-svn-id: svn://10.0.0.236/trunk@18839 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:22:29 +00:00
nhotta%netscape.com
1aefdcf63f Modified data and time format selectors.
git-svn-id: svn://10.0.0.236/trunk@18838 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:21:48 +00:00
pinkerton%netscape.com
a3df910d26 backing out my last backout: toolbox and xul namespace changes.
git-svn-id: svn://10.0.0.236/trunk@18837 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:21:33 +00:00
slamm%netscape.com
174d1b2ffd Simplify the script. Make it work when objects are not in the source tree. Make it work on Solaris too.
git-svn-id: svn://10.0.0.236/trunk@18836 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:21:32 +00:00
jfrancis%netscape.com
f69fdb1aec rewriting timer code yet again - made it an intrusive list.
git-svn-id: svn://10.0.0.236/trunk@18835 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:21:16 +00:00
pinkerton%netscape.com
4859c3f41a fix the dom dredging code to handle the presense of a xul namespace in the xml file and clean up things with nsCOMPtr.
git-svn-id: svn://10.0.0.236/trunk@18834 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:21:12 +00:00
pinkerton%netscape.com
345b57f041 use nsCOMPtr to refcnt the interface pointers we use.
git-svn-id: svn://10.0.0.236/trunk@18833 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:20:42 +00:00
wtc%netscape.com
c724a8ef4b Checked in second batch of BeOS port patches contributed by
Matthew Zahorik <maz@albany.net>.


git-svn-id: svn://10.0.0.236/trunk@18832 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:19:40 +00:00
terry%netscape.com
fa6900cdad Added LXR; fixed owner of Mozbot.
git-svn-id: svn://10.0.0.236/trunk@18830 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 00:04:28 +00:00
terry%netscape.com
2e89af4b08 Include the new fields in email notifications.
git-svn-id: svn://10.0.0.236/trunk@18829 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-27 23:53:27 +00:00
terry%netscape.com
f43350eb49 Fixed bug 2311 -- searching for status_whiteboard wasn't working.
git-svn-id: svn://10.0.0.236/trunk@18828 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-27 23:13:16 +00:00
6898 changed files with 6084 additions and 1670301 deletions

View File

@@ -1,40 +0,0 @@
Please be apprised of the following Legal Notices:
A) The U.S. District Court for the Eastern District of Virginia has
ruled that the Netscape Navigator code does not infringe Wang's U.S.
Patent No. 4,751,669 ("the '669 Patent") because: 1) HTML is not
Videotex as defined by the '669 patent; 2) web servers are not central
suppliers; and 3) Navigator does not "connect," as defined by the '669
Patent, to web servers on the Internet. Wang may appeal this decision to
the Federal Circuit. Wang contended that its Patent disclosing a
"Videotext" system, is infringed by the following functionality in the
Netscape Navigator code: 1) the animated logo and status line indicators
--See Claims 1,8 and 9; 2) the "File Save As" function --See Claims
23-27; 3) Bookmarks and Rename Bookmarks in the Properties window --See
Claims 20-22; 4) storing HTML, GIF, and JPEG files and adding filename
extensions --See Claim 38
B) Intermind owns pending U.S. patent applications on communications
systems which employ metadata ("channel objects") to define a control
structure for information transfer. The Netscape code does not infringe
as released; however, modifications which utilize channel objects as
described by Intermind should be considered carefully. The following is
a statement from Intermind: "Intermind's claims fundamentally involve
the use of a control structure to automate communications. ...The
essence of Intermind's top claim is that two devices sender and
receiver have persistent storage, communicate over a network,
and exchange a control structure including metadata which describes: 1)
what information is to be updated, 2) when to update this information,
and 3) how to transfer the updated information. In addition, at least
the receiving device must be able to process the metadata in order to
perform the update determination and transfer. Any digital
communications system which incorporates all of these elements will be
covered by Intermind's patents." See Intermind.com.
C) Stac, Inc., and its licensing agent Hi/fn, own several patents which
disclose data compression methods implementing an LZS compression
algorithm, including U.S. Patent Nos. 4,701,745 and 5,016, 009 ("the
Stac Patents"). The Netscape Communicator code does not perform
compression. If you modify the Netscape source code to perform
compression, please take notice of the Stac Patents.

View File

@@ -1,421 +0,0 @@
NETSCAPE PUBLIC LICENSE
Version 1.0
----------------
1. Definitions.
1.1. ``Contributor'' means each entity that creates or contributes to
the creation of Modifications.
1.2. ``Contributor Version'' means the combination of the Original
Code, prior Modifications used by a Contributor, and the Modifications
made by that particular Contributor.
1.3. ``Covered Code'' means the Original Code or Modifications or the
combination of the Original Code and Modifications, in each case
including portions thereof.
1.4. ``Electronic Distribution Mechanism'' means a mechanism generally
accepted in the software development community for the electronic
transfer of data.
1.5. ``Executable'' means Covered Code in any form other than Source
Code.
1.6. ``Initial Developer'' means the individual or entity identified as
the Initial Developer in the Source Code notice required by Exhibit A.
1.7. ``Larger Work'' means a work which combines Covered Code or
portions thereof with code not governed by the terms of this License.
1.8. ``License'' means this document.
1.9. ``Modifications'' means any addition to or deletion from the
substance or structure of either the Original Code or any previous
Modifications. When Covered Code is released as a series of files, a
Modification is:
A. Any addition to or deletion from the contents of a file
containing Original Code or previous Modifications.
B. Any new file that contains any part of the Original Code or
previous Modifications.
1.10. ``Original Code'' means Source Code of computer software code
which is described in the Source Code notice required by Exhibit A as
Original Code, and which, at the time of its release under this License
is not already Covered Code governed by this License.
1.11. ``Source Code'' means the preferred form of the Covered Code for
making modifications to it, including all modules it contains, plus any
associated interface definition files, scripts used to control
compilation and installation of an Executable, or a list of source code
differential comparisons against either the Original Code or another
well known, available Covered Code of the Contributor's choice. The
Source Code can be in a compressed or archival form, provided the
appropriate decompression or de-archiving software is widely available
for no charge.
1.12. ``You'' means an individual or a legal entity exercising rights
under, and complying with all of the terms of, this License or a future
version of this License issued under Section 6.1. For legal entities,
``You'' includes any entity which controls, is controlled by, or is
under common control with You. For purposes of this definition,
``control'' means (a) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (b) ownership of fifty percent (50%) or more of the
outstanding shares or beneficial ownership of such entity.
2. Source Code License.
2.1. The Initial Developer Grant.
The Initial Developer hereby grants You a world-wide, royalty-free,
non-exclusive license, subject to third party intellectual property
claims:
(a) to use, reproduce, modify, display, perform, sublicense and
distribute the Original Code (or portions thereof) with or without
Modifications, or as part of a Larger Work; and
(b) under patents now or hereafter owned or controlled by Initial
Developer, to make, have made, use and sell (``Utilize'') the
Original Code (or portions thereof), but solely to the extent that
any such patent is reasonably necessary to enable You to Utilize
the Original Code (or portions thereof) and not to any greater
extent that may be necessary to Utilize further Modifications or
combinations.
2.2. Contributor Grant.
Each Contributor hereby grants You a world-wide, royalty-free,
non-exclusive license, subject to third party intellectual property
claims:
(a) to use, reproduce, modify, display, perform, sublicense and
distribute the Modifications created by such Contributor (or
portions thereof) either on an unmodified basis, with other
Modifications, as Covered Code or as part of a Larger Work; and
(b) under patents now or hereafter owned or controlled by
Contributor, to Utilize the Contributor Version (or portions
thereof), but solely to the extent that any such patent is
reasonably necessary to enable You to Utilize the Contributor
Version (or portions thereof), and not to any greater extent that
may be necessary to Utilize further Modifications or combinations.
3. Distribution Obligations.
3.1. Application of License.
The Modifications which You create or to which You contribute are
governed by the terms of this License, including without limitation
Section 2.2. The Source Code version of Covered Code may be distributed
only under the terms of this License or a future version of this
License released under Section 6.1, and You must include a copy of this
License with every copy of the Source Code You distribute. You may not
offer or impose any terms on any Source Code version that alters or
restricts the applicable version of this License or the recipients'
rights hereunder. However, You may include an additional document
offering the additional rights described in Section 3.5.
3.2. Availability of Source Code.
Any Modification which You create or to which You contribute must be
made available in Source Code form under the terms of this License
either on the same media as an Executable version or via an accepted
Electronic Distribution Mechanism to anyone to whom you made an
Executable version available; and if made available via Electronic
Distribution Mechanism, must remain available for at least twelve (12)
months after the date it initially became available, or at least six
(6) months after a subsequent version of that particular Modification
has been made available to such recipients. You are responsible for
ensuring that the Source Code version remains available even if the
Electronic Distribution Mechanism is maintained by a third party.
3.3. Description of Modifications.
You must cause all Covered Code to which you contribute to contain a
file documenting the changes You made to create that Covered Code and
the date of any change. You must include a prominent statement that the
Modification is derived, directly or indirectly, from Original Code
provided by the Initial Developer and including the name of the Initial
Developer in (a) the Source Code, and (b) in any notice in an
Executable version or related documentation in which You describe the
origin or ownership of the Covered Code.
3.4. Intellectual Property Matters
(a) Third Party Claims.
If You have knowledge that a party claims an intellectual property
right in particular functionality or code (or its utilization
under this License), you must include a text file with the source
code distribution titled ``LEGAL'' which describes the claim and
the party making the claim in sufficient detail that a recipient
will know whom to contact. If you obtain such knowledge after You
make Your Modification available as described in Section 3.2, You
shall promptly modify the LEGAL file in all copies You make
available thereafter and shall take other steps (such as notifying
appropriate mailing lists or newsgroups) reasonably calculated to
inform those who received the Covered Code that new knowledge has
been obtained.
(b) Contributor APIs.
If Your Modification is an application programming interface and
You own or control patents which are reasonably necessary to
implement that API, you must also include this information in the
LEGAL file.
3.5. Required Notices.
You must duplicate the notice in Exhibit A in each file of the Source
Code, and this License in any documentation for the Source Code, where
You describe recipients' rights relating to Covered Code. If You
created one or more Modification(s), You may add your name as a
Contributor to the notice described in Exhibit A. If it is not possible
to put such notice in a particular Source Code file due to its
structure, then you must include such notice in a location (such as a
relevant directory file) where a user would be likely to look for such
a notice. You may choose to offer, and to charge a fee for, warranty,
support, indemnity or liability obligations to one or more recipients
of Covered Code. However, You may do so only on Your own behalf, and
not on behalf of the Initial Developer or any Contributor. You must
make it absolutely clear than any such warranty, support, indemnity or
liability obligation is offered by You alone, and You hereby agree to
indemnify the Initial Developer and every Contributor for any liability
incurred by the Initial Developer or such Contributor as a result of
warranty, support, indemnity or liability terms You offer.
3.6. Distribution of Executable Versions.
You may distribute Covered Code in Executable form only if the
requirements of Section 3.1-3.5 have been met for that Covered Code,
and if You include a notice stating that the Source Code version of the
Covered Code is available under the terms of this License, including a
description of how and where You have fulfilled the obligations of
Section 3.2. The notice must be conspicuously included in any notice in
an Executable version, related documentation or collateral in which You
describe recipients' rights relating to the Covered Code. You may
distribute the Executable version of Covered Code under a license of
Your choice, which may contain terms different from this License,
provided that You are in compliance with the terms of this License and
that the license for the Executable version does not attempt to limit
or alter the recipient's rights in the Source Code version from the
rights set forth in this License. If You distribute the Executable
version under a different license You must make it absolutely clear
that any terms which differ from this License are offered by You alone,
not by the Initial Developer or any Contributor. You hereby agree to
indemnify the Initial Developer and every Contributor for any liability
incurred by the Initial Developer or such Contributor as a result of
any such terms You offer.
3.7. Larger Works.
You may create a Larger Work by combining Covered Code with other code
not governed by the terms of this License and distribute the Larger
Work as a single product. In such a case, You must make sure the
requirements of this License are fulfilled for the Covered Code.
4. Inability to Comply Due to Statute or Regulation.
If it is impossible for You to comply with any of the terms of this
License with respect to some or all of the Covered Code due to statute
or regulation then You must: (a) comply with the terms of this License
to the maximum extent possible; and (b) describe the limitations and
the code they affect. Such description must be included in the LEGAL
file described in Section 3.4 and must be included with all
distributions of the Source Code. Except to the extent prohibited by
statute or regulation, such description must be sufficiently detailed
for a recipient of ordinary skill to be able to understand it.
5. Application of this License.
This License applies to code to which the Initial Developer has
attached the notice in Exhibit A, and to related Covered Code.
6. Versions of the License.
6.1. New Versions.
Netscape Communications Corporation (``Netscape'') may publish revised
and/or new versions of the License from time to time. Each version will
be given a distinguishing version number.
6.2. Effect of New Versions.
Once Covered Code has been published under a particular version of the
License, You may always continue to use it under the terms of that
version. You may also choose to use such Covered Code under the terms
of any subsequent version of the License published by Netscape. No one
other than Netscape has the right to modify the terms applicable to
Covered Code created under this License.
6.3. Derivative Works.
If you create or use a modified version of this License (which you may
only do in order to apply it to code which is not already Covered Code
governed by this License), you must (a) rename Your license so that the
phrases ``Mozilla'', ``MOZILLAPL'', ``MOZPL'', ``Netscape'', ``NPL'' or
any confusingly similar phrase do not appear anywhere in your license
and (b) otherwise make it clear that your version of the license
contains terms which differ from the Mozilla Public License and
Netscape Public License. (Filling in the name of the Initial Developer,
Original Code or Contributor in the notice described in Exhibit A shall
not of themselves be deemed to be modifications of this License.)
7. DISCLAIMER OF WARRANTY.
COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN ``AS IS'' BASIS,
WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF
DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING.
THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE
IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT,
YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE
COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF
ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
8. TERMINATION.
This License and the rights granted hereunder will terminate
automatically if You fail to comply with terms herein and fail to cure
such breach within 30 days of becoming aware of the breach. All
sublicenses to the Covered Code which are properly granted shall
survive any termination of this License. Provisions which, by their
nature, must remain in effect beyond the termination of this License
shall survive.
9. LIMITATION OF LIABILITY.
UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
(INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL THE INITIAL
DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE,
OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO YOU OR ANY OTHER
PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF
GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND
ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE
BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF
LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY
RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW
PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE
EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THAT
EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
10. U.S. GOVERNMENT END USERS.
The Covered Code is a ``commercial item,'' as that term is defined in
48 C.F.R. 2.101 (Oct. 1995), consisting of ``commercial computer
software'' and ``commercial computer software documentation,'' as such
terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48
C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995),
all U.S. Government End Users acquire Covered Code with only those
rights set forth herein.
11. MISCELLANEOUS.
This License represents the complete agreement concerning subject
matter hereof. If any provision of this License is held to be
unenforceable, such provision shall be reformed only to the extent
necessary to make it enforceable. This License shall be governed by
California law provisions (except to the extent applicable law, if any,
provides otherwise), excluding its conflict-of-law provisions. With
respect to disputes in which at least one party is a citizen of, or an
entity chartered or registered to do business in, the United States of
America: (a) unless otherwise agreed in writing, all disputes relating
to this License (excepting any dispute relating to intellectual
property rights) shall be subject to final and binding arbitration,
with the losing party paying all costs of arbitration; (b) any
arbitration relating to this Agreement shall be held in Santa Clara
County, California, under the auspices of JAMS/EndDispute; and (c) any
litigation relating to this Agreement shall be subject to the
jurisdiction of the Federal Courts of the Northern District of
California, with venue lying in Santa Clara County, California, with
the losing party responsible for costs, including without limitation,
court costs and reasonable attorneys fees and expenses. The application
of the United Nations Convention on Contracts for the International
Sale of Goods is expressly excluded. Any law or regulation which
provides that the language of a contract shall be construed against the
drafter shall not apply to this License.
12. RESPONSIBILITY FOR CLAIMS.
Except in cases where another Contributor has failed to comply with
Section 3.4, You are responsible for damages arising, directly or
indirectly, out of Your utilization of rights under this License, based
on the number of copies of Covered Code you made available, the
revenues you received from utilizing such rights, and other relevant
factors. You agree to work with affected parties to distribute
responsibility on an equitable basis.
AMENDMENTS
Additional Terms applicable to the Netscape Public License.
I. Effect.
These additional terms described in this Netscape Public License --
Amendments shall apply to the Mozilla Communicator client code and to
all Covered Code under this License.
II. ``Netscape's Branded Code'' means Covered Code that Netscape
distributes and/or permits others to distribute under one or more
trademark(s) which are controlled by Netscape but which are not
licensed for use under this License.
III. Netscape and logo.
This License does not grant any rights to use the trademark
``Netscape'', the ``Netscape N and horizon'' logo or the Netscape
lighthouse logo, even if such marks are included in the Original Code.
IV. Inability to Comply Due to Contractual Obligation.
Prior to licensing the Original Code under this License, Netscape has
licensed third party code for use in Netscape's Branded Code. To the
extent that Netscape is limited contractually from making such third
party code available under this License, Netscape may choose to
reintegrate such code into Covered Code without being required to
distribute such code in Source Code form, even if such code would
otherwise be considered ``Modifications'' under this License.
V. Use of Modifications and Covered Code by Initial Developer.
V.1. In General.
The obligations of Section 3 apply to Netscape, except to the
extent specified in this Amendment, Section V.2 and V.3.
V.2. Other Products.
Netscape may include Covered Code in products other than the
Netscape's Branded Code which are released by Netscape during the
two (2) years following the release date of the Original Code,
without such additional products becoming subject to the terms of
this License, and may license such additional products on
different terms from those contained in this License.
V.3. Alternative Licensing.
Netscape may license the Source Code of Netscape's Branded Code,
including Modifications incorporated therein, without such
additional products becoming subject to the terms of this License,
and may license such additional products on different terms from
those contained in this License.
VI. Arbitration and Litigation.
Notwithstanding the limitations of Section 11 above, the provisions
regarding arbitration and litigation in Section 11(a), (b) and (c) of
the License shall apply to all disputes relating to this License.
EXHIBIT A.
``The contents of this file are subject to the Netscape Public License
Version 1.0 (the "License"); you may not use this file except in
compliance with the License. You may obtain a copy of the License at
http://www.mozilla.org/NPL/
Software distributed under the License is distributed on an "AS IS"
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
License for the specific language governing rights and limitations
under the License.
The Original Code is Mozilla Communicator client code, released March
31, 1998.
The Initial Developer of the Original Code is Netscape Communications
Corporation. Portions created by Netscape are Copyright (C) 1998
Netscape Communications Corporation. All Rights Reserved.
Contributor(s): ______________________________________.''
[NOTE: The text of this Exhibit A may differ slightly from the text of
the notices in the Source Code files of the Original Code. This is due
to time constraints encountered in simultaneously finalizing the
License and in preparing the Original Code for release. You should use
the text of this Exhibit A rather than the text found in the Original
Code Source Code for Your Modifications.]

View File

@@ -1,96 +0,0 @@
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
#
DEPTH = .
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
# The list of directories that need to be built to build the standalone
# nglayout test program. The order is important.
DIRS = \
config \
dbm \
nsprpub \
$(NULL)
ifndef MOZ_NATIVE_JPEG
DIRS += \
jpeg \
$(NULL)
endif
DIRS += \
modules/libreg \
xpcom \
$(NULL)
ifndef MOZ_NATIVE_ZLIB
DIRS += \
modules/zlib \
$(NULL)
endif
DIRS += \
modules/libutil \
intl \
sun-java \
nav-java \
js \
modules/security/freenav \
modules/libpref \
modules/libimg \
modules/oji \
modules/plugin \
base \
caps \
lib/xp \
lib/libpwcac \
network \
lib/liblayer/include \
htmlparser \
gfx \
dom \
view \
widget \
layout \
rdf \
webshell \
editor \
silentdl
DIRS += xpfe
include $(topsrcdir)/config/config.mk
include $(topsrcdir)/config/rules.mk
real_all: all
real_export: export
real_libs: libs
real_install: install
real_clobber: clobber
real_depend: depend

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -1,443 +0,0 @@
<HEAD>
<TITLE>Building Mozilla on the Macintosh PPC platform</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#0000EE" VLINK="#551A8B">
<P>
<HR>
</P>
<H1>Building Mozilla on the Macintosh PPC platform</H1>
<H2>Daniel Nunes, <A HREF="mailto:leaf@netscape.com"><TT>leaf@netscape.com</TT></A></H2>
<P>v 1.1, 1998-9-29<BR>
updated for the Pro4 IDE</P>
<P>
<HR>
<I>How to build Mozilla on a Macintosh PPC System.</I>
<HR>
</P>
<H2>1. <A HREF="#s1">Introduction</A></H2>
<H2>2. <A HREF="#s2">Building Mozilla</A></H2>
<UL>
<LI><A HREF="#ss2.1">2.1 Get the Code </A></LI>
<LI><A HREF="#ss2.2">2.2 Requirements</A></LI>
<LI><A HREF="#ss2.3">2.3 Set up the Build Environment</A></LI>
<LI><A HREF="#ss2.4">2.4 Build the Lizard </A></LI>
</UL>
<H2>3. <A HREF="#s3"> Common Problems </A></H2>
<H2>4. <A HREF="#s4"> Credits </A></H2>
<P>
<HR>
</P>
<H2><A NAME=s1></A>1. Introduction</H2>
<P>What this document is: A guide to building the Mozilla
application. This includes:</P>
<OL>
<LI>A listing of the development tools you will need to build
Mozilla.</LI>
<LI>A list of environment variables you will need to set before
building.</LI>
</OL>
<P>If you're looking for documentation on developing features or
fixing bugs, the Mozilla <A HREF="http://www.mozilla.org/docs/tplist/tplist.html">Technical
Documents </A> or <A HREF="http://www.mozilla.org/library.html">
Library </A> are probably what you're looking for.</P>
<P>
<HR>
</P>
<H2><A NAME=s2></A>2. Building Mozilla</H2>
<P>&nbsp;</P>
<UL>
<LI>Each of the following subsections describes, or gives
references to descriptions of, the steps necessary to build
Mozilla.
<H2><A NAME="ss2.1"></A>2.1 Get the Code</H2>
<P>&nbsp;</P>
<UL>
<LI>There are two principal ways of getting the code, <A HREF="http://www.mozilla.org/download.html">
ftp</A> and <A HREF="http://www.mozilla.org/cvs.html"> CVS</A>.
CVS will provide the most current code for building, but is
slower than ftp. Ftp drops are generally produced once per
month, and are known to compile.</LI>
</UL>
<P>&nbsp;</P>
<H2><A NAME="ss2.2"></A>2.2 Requirements</H2>
<P>The following need to be installed:</P>
<UL>
<LI>CodeWarrior (CW) Pro4 - obtainable from <A HREF="http://www.metrowerks.com">Metrowerks</A>.
See <A HREF="#s3">Common Sticking Points</A> if you have a
different version. Mozilla will no longer build with anything
earlier.</LI>
<LI>PowerPlant - obtainable from the CodeWarrior CD.</LI>
<LI>MSL - the Metrowerks Standard Library, obtainable from the
CodeWarrior CD</LI>
<LI><A HREF="ftp://ftp.boingo.com//dan/WASTE/waste-13.hqx">WASTE
1.3</A></LI>
<LI><A HREF="http://www.bact.wisc.edu/CWASTEEdit/CWASTEEdit.sit.hqx">CWASTE
1.6.2</A></LI>
<LI><A HREF="ftp://ftp.scripting.com/userland/menuSharingToolkit4.1.sit.hqx">Menu
Sharing Toolkit</A> (from UserLand)</LI>
<LI><A HREF="ftp://ftp.share.com/pub/internet-configuration/ICProgKit1.4.sit">Internet
Config 1.4 SDK</A></LI>
<LI><A HREF="http://www.mooseyard.com/Jens/Software/">AEGizmos
1.4.2</A></LI>
<LI><A HREF="ftp://sunsite.cnlab-switch.ch/software/platform/macos/perl/Mac_Perl_520r4_tool.bin">MacPerl
5 MPW Tool</A></LI>
<LI><A HREF="ftp://sunsite.cnlab-switch.ch/software/platform/macos/perl/Mac_Perl_520r4_appl.bin">MacPerl
5 Application</A></LI>
<LI>The module Mac:AppleEvents:Simple, which should be stored
in your Perl library folder under :Mac:AppleEvents:Simple.pm,
may be downloaded <A HREF="http://www.perl.com/CPAN-local/modules/by-module/Mac/Mac-AppleEvents-Simple-0.10.tgz">here</A>.</LI>
<LI>The module Mac:Apps:Launch, which should be stored in your
Perl library folder under :Mac:Apps:Launch.pm, may be
downloaded <A HREF="http://www.perl.com/CPAN-local/modules/by-module/Mac/Mac-Apps-Launch-1.30.tar.gz">here</A>.</LI>
<LI>MakeStub - MPW (installed with CodeWarrior Heaven option).
If you choose not to install MPW, it is located on the MacOS
Tools CD in "CW Pro 4 Tools:CodeWarrior MPW:MPW:Tools"</LI>
<LI>RunTSScript - in Mozilla source distribution
(mozilla:build:mac:RunTSScript), needs to be installed by
hand</LI>
<LI><A HREF="ftp://dev.apple.com/devworld/Tool_Chest/Core_Mac_OS_Tools/MPW_etc./MPW-GM/MPW/ToolServer.sit.hqx">ToolServer</A>
- or in the CW distribution (CW Pro 4 Tools:Apple Development
Tools:ToolServer 3.4.1.sit). <B>We recommend pulling it off the
CD</B> because it comes with configuration files for
CodeWarrior which you would have to create manually were you to
pull it off the net.</LI>
<LI><A HREF="http://sunsite.cnlab-switch.ch/ftp/software/platform/macos/src/HTML/MPW_C.html">patch
2.1</A></LI>
</UL>
<P>Hardware/OS</P>
<UL>
<LI>To build Navigator, you need a fast PPC Mac. The faster the
better.</LI>
<LI>You will need about 96 MB of physical RAM to "fast link"
the app. You can still fast link if you give your machine 96 MB
of virtual memory, but then the VM hit is large enough to
counteract any improvement. One of our beta testers had a
machine with only 64MB of physical RAM (VM was off) and it ran
out of memory trying to link. Turning VM on got it to link, but
build time increased greatly.</LI>
<LI>Reports from the net indicate that the optimized version
(MozillaPPC) take much less RAM to build than the 96MB we
suggest. If you are running out of memory, try building that
instead of the debug version (the debug symbols require a lot
of RAM come link time).</LI>
<LI>You should be ok with a 400MB disk partition, even when
fully built. This does not include tools like the IDE, just
source.</LI>
<LI>On an HFS+ volume, a full build takes about 110MB. HFS+ is
good, but utilities are sparse.</LI>
</UL>
<P>&nbsp;</P>
<H2><A NAME="ss2.3"></A>2.3 Setup the Build Environment</H2>
<P>&nbsp;</P>
<OL>
<LI>Install CodeWarrior from the CD. While it is large,
installing the "CodeWarrior Heaven" option will guarantee that
you have everything you need. This will give you PowerPlant,
MSL, and MPW. If you choose to install less, proceed at your
own risk.</LI>
<LI>In the Finder, increase the memory partition of the IDE to
15MB (you can get by with 12, if need be).</LI>
<LI>Uncompress the StuffIt Archive for ToolServer. The goal is
to let ToolServer and MPW share the same Tools directory so you
don't need to have multiple versions of tools. Do the
following:
<OL>
<LI>Open ToolServer's Tools folder. There is one file called
"RMetrowerks".</LI>
<LI>Move RMetrowerks to Tools folder of MPW. MPW folder must
be at "Metrowerks:Codewarrior MPW:MPW" if you installed
Codewarrior Heaven.</LI>
<LI>Remove ToolServer's Tools folder.</LI>
<LI>Now create an alias of Tools folder in "CodeWarrior MPW"
and move it to your ToolServer folder. Rename the alias
(probably called "Tools alias") to "Tools"</LI>
<LI><FONT COLOR="#FF0000"><B>IMPORTANT</B></FONT>: Make sure
you only have one instance of ToolServer on your machine. If
the build script finds the wrong one, the correct tools will
not be found and strange things will happen.</LI>
</OL>
</LI>
<LI>After installing the MacPerl MPW Tool distribution (run the
InstallerVISE application), in the "MacPerl &#131;" folder,
there will be an MPW tool named "perl". Install this in MPW's
tools folder.</LI>
<LI>Install the MacPerl Application (run the InstallerVISE
application). You can install this anywhere, but it is
recommended that you install it inside of your CodeWarrior
folder for easy reference. After installation, you will need to
set a preference to enable double-click launch of the perl
scripts. This preference is set by going under the Edit Menu to
Preferences. Click on the "Script" button and hit the radio
button "Run Scripts opened from Finder"</LI>
<LI>Install the "patch" and "MakeStub" Tools in the tools
folder. Note that "MakeStub" is automatically installed by the
"CodeWarrior Heaven" install option.</LI>
<LI>Install RunTSScript (found in the Mozilla source
distribution) in the compilers folder in your build environment
("Metrowerks:Metrowerks Codewarrior:Codewarrior
Plugins:Compilers")</LI>
<LI>Next, after downloading all the 3rd party software
components, drag WASTE, CWASTE, Menu Sharing, Internet Config,
and the AEGizmo folders (just as they are) into the "MacOS
Support" folder in your build environment.</LI>
<LI>Create a folder inside the PowerPlant folder
(Metrowerks:Metrowerks CodeWarrior:MacOS Support:PowerPlant)
called "_Will Be Obsolete" Make sure you include the leading
underscore.</LI>
<LI>Unstuff the obsolete LGA classes (located on the Reference
CD in "CodeWarrior Examples:MacOS Examples:PowerPlant
Examples:Obsolete PP Items:Old GA Classes.sit) and place the
resulting folder into the "_Will Be Obsolete" folder you
created in the previous step.</LI>
<LI>Start ToolServer from within CodeWarrior (or use MPW if you
are brave enough). We're about to patch some files. Make sure
the ToolServer menu is in the CodeWarrior menu bar by turning
on the <A HREF="IDEPrefs.gif">preference</A> under the "Extras"
panel in the IDE Preferences (not the project preferences!).
The menu bar should look like this:
<P><IMG SRC="IDEMenuBar.gif" WIDTH=359 HEIGHT=20 X-CLARIS-USEIMAGEWIDTH X-CLARIS-USEIMAGEHEIGHT ALIGN=bottom></P>
<P>Choose "Start ToolServer" from the ToolServer menu (this is
the icon menu between "Window" and "Help" in the menubar
above). You will now see a window with no close box. This is
your ToolServer Worksheet where you will type (or cut &amp;
paste) the commands for the following steps.</P>
<P>In case you have never used MPW/ToolServer before, the
following is <B>very important</B>. Pressing "return" does not
execute commands like you might think. It just inserts a
newline into the worksheet like a normal text editor. <B>To
actually get ToolServer to execute the command, you must press
"Enter" (lower right of numeric keypad).</B> This executes the
line that the cursor is on, and only that line. If you want to
execute multiple lines at once, select them all and hit
Enter.</P></LI>
<LI>Set the shell variables {IDE} and {Source} to the correct
paths for your build environment. {IDE} is where your
CodeWarrior IDE is located. {Source} is the folder containing
the toplevel "ns" folder of the Mozilla source. Mine look like
this (don't forget to keep the quotes if your path includes
spaces), yours will almost certainly be different
(<FONT COLOR="#FF0000">to punctuate this, the things you need
to change are in red</FONT>).
<PRE>Set IDE "<FONT COLOR="#FF0000">Develop:CW Pro 4:Metrowerks CodeWarrior:</FONT>"
Set Source "<FONT COLOR="#FF0000">Source:FreeSource:</FONT>"</PRE></LI>
<LI>Execute the following lines to patch menusharing.c to allow
it to compile with the new Universal Headers. It references an
obsolete header file (GestaltEqu.h).
<PRE>directory "{IDE}MacOS Support:Menu Sharing Toolkit 4.1:"
patch menusharing.c "{Source}mozilla:lib:mac:patches:menusharing.patch"</PRE></LI>
<LI>You need to patch stat.mac.h to fix a problem in MSL where
lines were omitted.
<PRE>directory "{IDE}Metrowerks Standard Library:MSL C:MSL Mac:Public Includes"
patch stat.mac.h "{Source}mozilla:lib:mac:patches:stat.mac.h.patch"</PRE></LI>
<LI>Congratulations! Now you are ready to build. Once these
steps are done, you don't have to repeat these setups the next
time!</LI>
</OL>
<P>&nbsp;</P>
<H2><A NAME="ss2.4"></A>2.4 Run the build</H2>
<UL>
<LI>In the folder mozilla:build:mac:, there are several Perl
scripts with names of the form BuildMozillaXXX.pl, where XXX is
"Optimized", "Debug", "Tinderbox", et al. Each script builds
the corresponding version of Mozilla. If you configured the
MacPerl application to execute scripts that are opened from the
finder, all you have to do is double click on the appropriate
one; otherwise, launch MacPerl, and run the appropriate script
from the "Run Script..." menu item.
<P>These `configured build' scripts are simple, and you might
want to make your own to force your build to StopForErrors(),
or alternatively DontStopForErrors(), et al. You can set up
certain build-script variables and (soon) compile-time flags.
Compare the supplied scripts to figure out what you might want.
Note that CodeWarriorLib, Moz.pm, and BuildList.pm, are
AppleScript libraries and Perl modules meant to be used by a
`configured build'. Use your favorite POD viewer (Shuck comes
with MacPerl) to view the documentation in the Perl
scripts.</P>
<P>If there were any errors in any of the projects along the
way, the script will stop at that point and the IDE will tell
you the errors. You can fix them and make sure they current
project builds, but to continue the automation, you have to
start from the beginning by double-clicking the script again.
This isn't quite as bad as it sounds because the previous
projects are already built (unless you changed some major
header file). Please note that stopping the script once it has
started is difficult. We are working to address this issue.</P>
<P>After the build is complete, you can find aliases to the
built libraries and the final Mozilla application. Debug builds
are built to Mozilla:dist:client_debug, while optimized builds
are built to Mozilla:dist:client.</P>
<P>Don't worry too much about the numerous warnings generated
during the build. We try our best to get the XP teams to use
real compilers, but alas, they continue to write warning-laden
code. There is also some generated code (Java is one example)
that has a lot of warnings that we can't help either. If you
write any new code, please help us in our quest to get zero
warnings.</P></LI>
</UL>
</LI>
</UL>
<P>
<HR>
</P>
<H2><A NAME=s3></A>3. Common Sticking Points</H2>
<UL>
<LI><B>I only have CodeWarrior Pro3 or Pro2. How do i build with
it?</B>
<UL>
<LI>Currently, the answer is, "You don't." We make use of
several classes in PowerPlant which recently appeared in Pro4.
Time to upgrade, I'm afraid. Don't even try opening the
projects with Pro2 because you will get data loss and have to
throw the project away (it won't even prompt you!)</LI>
</UL>
</LI>
<LI><B>I'm having problems building. MacPerl tells me it can't
fine MemAllocatorStubs</B>
<UL>
<LI>It sounds like your ToolServer environment is not setup
correctly. Make sure you follow the directions to the letter.
You could also be seeing this if you have multiple versions of
ToolServer on your computer and the Finder lauches the wrong
one. This is very common, as the <I>Carbon Dater</I> app from
Apple DTS contains a copy of ToolServer. Either remove all the
other versions of ToolServer or make sure you launch the
appropriate version before you start building.</LI>
</UL>
</LI>
<LI><B>The IDE runs out of memory building jsinterp.c. What do I
do?</B>
<UL>
<LI>We have seen this every now and then, and it only appears
to show up when building optimized (non-debug) builds. You can
normally get around this by building that file by itself
(select it and choose "Compile") and then continuing the make.
We're not sure why this is happening, so if you have any
answers or solutions, please let us know!</LI>
</UL>
</LI>
</UL>
<P>
<HR>
</P>
<H2><A NAME=s4></A>4. Credits</H2>
<UL>
<LI>The majority of this document is taken from the build document
included in the Mozilla source distribution at
README:mozilla:macbuild.htm written by Mike Pinkerton, <A HREF="mailto:pinkerton@netscape.com">
pinkerton@netscape.com</A>.</LI>
</UL>
</BODY>
</HTML>

View File

@@ -1,158 +0,0 @@
<HTML>
<HEAD>
<TITLE>Building Mozilla on unix platforms</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000EE" VLINK="#551A8B"
ALINK="#FF0000">
<HR>
<H1>
Building Mozilla on Unix platforms</H1>
<H2>
Daniel Nunes, <TT><A HREF="mailto:leaf@netscape.com">leaf@netscape.com</A></TT></H2>
v 1.1, June 1998
<P>
<HR><I>How to build Mozilla on a Unix System.</I>
<HR>
<H2>1. <A HREF="#s1">Introduction</A></H2>
<H2>2. <A HREF="#s2">Building Mozilla</A></H2>
<UL>
<LI>
<A HREF="#ss2.1">2.1 Get the Code </A></LI>
<LI>
<A HREF="#ss2.2">2.2 Requirements</A></LI>
<LI>
<A HREF="#ss2.3">2.3 Set up the Build Environment</A></LI>
<LI>
<A HREF="#ss2.4">2.4 Build the Lizard </A></LI>
<LI>
<A HREF="#ss2.5">2.5 Run the Lizard </A></LI>
</UL>
<H2>3. <A HREF="#s3"> Common Problems </A></H2>
<HR>
<H2><A NAME="s1">1. Introduction</A></H2>
<P>
What this document is: A guide to building the Mozilla application.
<BR>
This includes:
<OL>
<LI> A listing of the development tools you will need to build Mozilla. </LI>
<LI> A list of environment variables you will need to set before building. </LI>
</OL>
<P>
If you're looking for documentation on developing features or fixing bugs,
the Mozilla
<A HREF="http://www.mozilla.org/docs/tplist/tplist.html">Technical Documents
</A> or <A HREF="http://www.mozilla.org/library.html"> Library </A>
are probably what you're looking for.
<P>
<HR>
<H2><A NAME="s2">2. Building Mozilla </A></H2>
<P>
<UL>Each of the following subsections describes, or gives references to
descriptions of, the steps necessary to build Mozilla.
</UL>
<H2><A NAME="ss2.1">2.1 Get the Code</A></H2>
<P>
<UL>
There are two principal ways of getting the code,
<A HREF="http://www.mozilla.org/download.html"> ftp</A> and
<A HREF="http://www.mozilla.org/cvs.html"> CVS</A>.
CVS will provide the most current code for building, but is
slower than ftp. Ftp drops are generally produced once per month,
and are known to compile.
</UL>
<P>
<H2><A NAME="ss2.2">2.2 Requirements</A></H2>
<UL>
The following should be installed:
<UL>
<LI>Motif 1.2
<LI>The native C/C++ compiler (or GNU C/C++ compiler 2.7.2 in lieu of the
native compiler)
<LI>GNU make 3.74 or better
<LI>Perl (or, if you have no Perl, then set <CODE>PERL=/bin/echo</CODE>)
</UL>
<P>
Your hardware should be equal to, or better than:
<UL>
32 MB RAM, 128 MB swap (64 MB RAM recommended)
</UL>
</UL>
<P>
<H2><A NAME="ss2.3">2.3 Setup the Build Environment</A></H2>
<P>
<UL>
The following environment variables need to be set:
<CODE>
<PRE>
MOZILLA_CLIENT=1
MOZ_MEDIUM=1
NO_MDUPDATE=1
</PRE>
</CODE>
Optionally, you can set <CODE>BUILD_OPT=1</CODE> if you don't want a debug
build.
<P>
If your Motif libraries are installed in a non-standard place, you can tell
the Mozilla makefiles where to look by setting
<CODE>MOZILLA_MOTIF_SEARCH_PATH</CODE> to point to the directory in which
your Motif installation resides.
<P>
Environment variables are set by the shell, and there are two common ways
of setting them. <BR>
Type <CODE>setenv VARIABLE value</CODE> or <CODE>export VARIABLE=value</CODE>.
<P>
</UL>
<H2><A NAME="ss2.4">2.4 Run the build </A></H2>
<UL>
Change to the directory you copied the source into (for example,
<CODE>cd /builds</CODE>). If this directory was empty before you
installed the source, there should be two directories here:
<CODE>README</CODE> and <CODE>mozilla</CODE>.
<CODE>
<PRE>
cd mozilla
gmake
</PRE>
</CODE>
</UL>
<H2><A NAME="ss2.5">2.5 After the build </A></H2>
<UL>
You may notice that if you try running mozilla-export right after the build,
you'll run into a problem. You need to set <CODE>LD_LIBRARY_PATH</CODE> to
<CODE>
${LD_LIBRARY_PATH}:/PATH_TO_SOURCE/mozilla/dist/Linux2.0.32_x86_OPT.OBJ/bin
</CODE> (where <CODE>PATH_TO_SOURCE</CODE> is the full path to your source
tree) before the dynamically linked binary will run. <BR><BR>
This varies by platform:<br>
<UL>
<LI>On HP-UX, the equivalent environment variable is <CODE>SHLIB_PATH</CODE>.
<LI>On AIX, the equivalent environment variable is <CODE>LIBPATH</CODE>.
</UL>
</UL>
<HR>
<H2><A NAME="s3">3. Common Sticking Points</A></H2>
<LI>My linker dies with this error: undefined reference to `_Xsetlocale'
<UL>If this error occurs, you might have to recompile libX11.so
with the -DX_LOCALE flag (thanks to Scott Lampert,
<A HREF="mailto:fortunato@heavymetal.org">fortunato@heavymetal.org</A>).
</UL>
<HR>
</BODY>
</HTML>

View File

@@ -1,217 +0,0 @@
<HTML>
<HEAD>
<TITLE>Building Mozilla on Microsoft Windows 32-bit platforms</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000EE" VLINK="#551A8B"
ALINK="#FF0000">
<HR>
<H1>
Building Mozilla on Microsoft Windows 32-bit platforms</H1>
<H2>
Daniel Nunes, <TT><A HREF="mailto:leaf@netscape.com">leaf@netscape.com</A></TT>
</H2>
v 1.0, June 1998
<P>
<HR><I>How to build Mozilla on a Microsoft Windows 32-bit System.</I>
<HR>
<H2>1. <A HREF="#s1">Introduction</A></H2>
<H2>2. <A HREF="#s2">Building Mozilla</A></H2>
<UL>
<LI>
<A HREF="#ss2.1">2.1 Get the Code </A></LI>
<LI>
<A HREF="#ss2.2">2.2 Requirements</A></LI>
<LI>
<A HREF="#ss2.3">2.3 Set up the Build Environment</A></LI>
<LI>
<A HREF="#ss2.4">2.4 Build the Lizard </A></LI>
</UL>
<H2>3. <A HREF="#s3"> Common Problems </A></H2>
<HR>
<H2><A NAME="s1">1. Introduction</A></H2>
<P>
What this document is: A guide to building the Mozilla application.
<BR>
This includes:
<OL>
<LI> A listing of the development tools you will need to build Mozilla. </LI>
<LI> A list of environment variables you will need to set before building. </LI>
</OL>
<P>
If you're looking for documentation on developing features or fixing bugs,
the Mozilla
<A HREF="http://www.mozilla.org/docs/tplist/tplist.html">Technical Documents
</A> or <A HREF="http://www.mozilla.org/library.html"> Library </A>
are probably what you're looking for.
<P>
<HR>
<H2><A NAME="s2">2. Building Mozilla </A></H2>
<P>
<UL>Each of the following subsections describes, or gives references to
descriptions of, the steps necessary to build Mozilla.
<H2><A NAME="ss2.1">2.1 Get the Code</A></H2>
<P>
<UL>
There are two principal ways of getting the code,
<A HREF="http://www.mozilla.org/download.html"> ftp</A> and
<A HREF="http://www.mozilla.org/cvs.html"> CVS</A>.
CVS will provide the most current code for building, but is
slower than ftp. Ftp drops are generally produced once per month,
and are known to compile.
</UL>
<P>
<H2><A NAME="ss2.2">2.2 Requirements</A></H2>
<UL>
The following need to be installed:
<UL>
<LI>Microsoft Visual C++ version 4.2 or later
<LI>GNU Tools for Microsoft Windows, located:
<UL>
<LI><A HREF="http://www.cygnus.com/misc/gnu-win32">Cygnus</A></LI>
<LI><A HREF="http://www.gnu.org/order/ftp.html">GNU home page</A></LI>
<LI><A HREF="ftp://prep.ai.mit.edu/pub/gnu">MIT</A></LI>
</UL>
Specifically, you'll need:
<UL><CODE>
cp.exe<BR>
rm.exe<BR>
uname.exe<BR>
</CODE>
</UL>
Netscape has internally modified version of gmake, shmsdos and win32gnu
that we use to get around some problems we were having keeping in sync
with the Unix version of gmake. This version of gmake can be found in the
Windows Build Tools package, which can be ftp'd from
<A HREF="http://www.mozilla.org/download-mozilla.html"> the Mozilla
Download page</A>.
The three files you will need are:
<UL><CODE>
gmake.exe<BR>
shmsdos.exe<BR>
uname.exe<BR>
</CODE>
</UL>
</UL>
<P>
Hardware/OS
<UL>
<LI>Pentium 133 MHz or better</LI>
<LI>64 MB RAM, 128 MB recommended</LI>
<LI>250 MB NTFS or 500 MB FAT disk space</LI>
<LI>NT 4.0 is preferred; NT 3.51 will also work.
</LI>
</UL>
</UL>
<P>
<H2><A NAME="ss2.3">2.3 Setup the Build Environment</A></H2>
<P>
<UL>
The following environment variables need to be set:
<UL>
<CODE>
set MOZ_BITS=32
<BR>
set MOZ_DEBUG=1 (set this only if you want to build a debug build)
<BR>
set MOZ_MEDIUM=1
<BR>
set MOZ_NT=351 (if running NT3.51)
<BR>
set MOZ_OUT=(optional: specifies location of resultant executable)
<BR>
set MOZ_SRC=(top of your tree, for example: set MOZ_SRC=d:\mozilla_source
if this is the directory where you checked or unzipped the source into)
<BR>
set MOZ_TOOLS=(the parent directory of the GNU tools 'bin' directory. The build
looks for MOZ_TOOLS\bin\gmake.exe, so make sure that the gmake.exe from
the Windows Build Tools package resides there.)
<BR>
set NSPR20=1
<BR>
set _MSC_VER=1100 (if you are running VC++ 5.0) or 1200
(if you are running VC++ 6.0)
<BR>
</CODE>
</UL>
<BR>
<P>
</UL>
<H2><A NAME="ss2.4">2.4 Run the build </A></H2>
<UL>
Change to the directory you copied the source into (for example,
<CODE>cd d:\mozilla_source</CODE>). If this directory was empty before you
installed the source, there should be two directories here:
<CODE>README</CODE> and <CODE>mozilla</CODE>.
<CODE>
<PRE>
cd mozilla\config
nmake /f makefile.win
cd ..
nmake /f client.mak
</PRE>
</CODE>
</UL>
</UL>
<HR>
<H2><A NAME="s3">3. Common Sticking Points</A></H2>
<UL>
<LI><B>nmake has a 'fatal error', listing one of the GNU commands and a
hexadecimal return code.</B>
<UL>
This will happen as a result of not having the GNU tools and Windows Build
tools in your path. Add the directories with the appropriate binaries to your
path.
</UL>
</LI>
<LI>
<B>It fails with the message "'.\WIN32' unexpected": </B>
<UL>
You didn't properly
set the environment variables -- you must not include a space at the end
of the set statements (be careful if you are cut'n'pasting).
</UL>
</LI>
<LI>
<B>It fails to build, with directory-related errors: </B>
<UL>
The full path
to the source must not include any spaces. Additionally, the source must
be extracted with an intact directory structure by a utility that understands
long filenames. If in doubt, grab Info-Zip at
<A HREF="ftp://ftp.cdrom.com/pub/infozip">ftp://ftp.cdrom.com/pub/infozip</A>
</UL>
</LI>
<LI>
<B>It fails immediately with the message "Cannot find specified directory":
</B>
<UL>
You didn't properly set the environment variable MOZ_TOOLS;
this needs to be set to the path up to, but not including, the final \bin
directory in the path to the gnu tools. So, the path to the tool executables
is '%MOZ_TOOLS%\bin\<executable>'.
</UL>
</LI>
<LI>
<B>I'm not running a 32-bit windows system, how do i build?</B>
<UL>
Currently, the build process depends on a 32-bit operating system.
Windows NT 4.0 is the recommended windows operating system.
</UL>
</UL>
<HR>
</BODY>
</HTML>

View File

@@ -1,400 +0,0 @@
<HTML>
<HEAD>
<TITLE>Building Mozilla on the Macintosh PPC platform</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000EE" VLINK="#551A8B"
ALINK="#FF0000">
<HR>
<H1>
Building Mozilla on the Macintosh PPC platform</H1>
<H2>
Daniel Nunes, <TT><A HREF="mailto:leaf@netscape.com">leaf@netscape.com</A></TT>
</H2>
v 1.0, June 1998
<P>
<HR><I>How to build Mozilla on a Macintosh PPC System.</I>
<HR>
<H2>1. <A HREF="#s1">Introduction</A></H2>
<H2>2. <A HREF="#s2">Building Mozilla</A></H2>
<UL>
<LI>
<A HREF="#ss2.1">2.1 Get the Code </A></LI>
<LI>
<A HREF="#ss2.2">2.2 Requirements</A></LI>
<LI>
<A HREF="#ss2.3">2.3 Set up the Build Environment</A></LI>
<LI>
<A HREF="#ss2.4">2.4 Build the Lizard </A></LI>
</UL>
<H2>3. <A HREF="#s3"> Common Problems </A></H2>
<H2>4. <A HREF="#s4"> Credits </A></H2>
<HR>
<H2><A NAME="s1">1. Introduction</A></H2>
<P>
What this document is: A guide to building the Mozilla application.
This includes:
<OL>
<LI> A listing of the development tools you will need to build Mozilla. </LI>
<LI> A list of environment variables you will need to set before building. </LI>
</OL>
<P>
If you're looking for documentation on developing features or fixing bugs,
the Mozilla
<A HREF="http://www.mozilla.org/docs/tplist/tplist.html">Technical Documents
</A> or <A HREF="http://www.mozilla.org/library.html"> Library </A>
are probably what you're looking for.
<P>
<HR>
<H2><A NAME="s2">2. Building Mozilla </A></H2>
<P>
<UL>Each of the following subsections describes, or gives references to
descriptions of, the steps necessary to build Mozilla.
<H2><A NAME="ss2.1">2.1 Get the Code</A></H2>
<P>
<UL>
There are two principal ways of getting the code,
<A HREF="http://www.mozilla.org/download.html"> ftp</A> and
<A HREF="http://www.mozilla.org/cvs.html"> CVS</A>.
CVS will provide the most current code for building, but is
slower than ftp (takes longer to download).
</UL>
<P>
<H2><A NAME="ss2.2">2.2 Requirements</A></H2>
The following need to be installed:
<UL>
<LI>CodeWarrior (CW) 2 - obtainable from
<A HREF="http://www.metrowerks.com">Metrowerks</A>.
See <A HREF="#s3">Common Sticking Points</A> if you have a different
version.
</LI>
<LI>PowerPlant 1.8 - obtainable from the CodeWarrior CD.</LI>
<LI>MSL - the Metrowerks Standard Library, obtainable from the
CodeWarrior CD</LI>
<LI><A HREF="ftp://ftp.boingo.com//dan/WASTE/waste-13.hqx">WASTE
1.3</A></LI>
<LI><A HREF="http://www.bact.wisc.edu/CWASTEEdit/CWASTEEdit.sit.hqx">CWASTE
1.6.2</A></LI>
<LI>
<A HREF="ftp://ftp.scripting.com/userland/menuSharingToolkit4.1.sit.hqx">
Menu Sharing Toolkit</A> (from UserLand)</LI>
<LI>
<A HREF="ftp://ftp.digitalalchemy.com/pub/digitalalchemy/mercutio-SDK.sit.bin">
Mercutio 1.5 SDK</A> (only download the SDK, not the entire package, else
the access paths will be wrong)</LI>
<LI>
<A HREF="ftp://ftp.share.com/pub/internet-configuration/ICProgKit1.4.sit">
Internet Config 1.4 SDK</A></LI>
<LI><A HREF="http://www.mooseyard.com/Jens/Software/">AEGizmos
1.4.2</A></LI>
<LI><A HREF="ftp://sunsite.cnlab-switch.ch/software/platform/macos/perl/Mac_Perl_520r4_tool.bin">
MacPerl 5 MPW Tool</A></LI>
<LI>
<A HREF="ftp://sunsite.cnlab-switch.ch/software/platform/macos/perl/Mac_Perl_520r4_appl.bin">MacPerl 5 Application</A></LI>
<LI>MakeStub - MPW (installed with CodeWarrior Heaven option). If
you choose not to install MPW, it is located on the MacOS Tools CD
in "CW Pro 2 Tools:CodeWarrior MPW:MPW:Tools"</LI>
<LI>RunTSScript - in Mozilla source distribution
(mozilla:build:mac:RunTSScript), needs to be installed by hand</LI>
<LI><A HREF="ftp://dev.apple.com/devworld/Tool_Chest/Core_Mac_OS_Tools/MPW_etc./MPW-GM/MPW/ToolServer.sit.hqx">ToolServer</A>
- or in the CW distribution (CW Pro 2 Tools:Apple Development
Tools:ToolServer 3.4.1.sit). <B>We recommend pulling it off the
CD</B> because it comes with configuration files for CodeWarrior
which you would have to create manually were you to pull it off
the net.</LI>
<LI>
<A HREF="http://people.netscape.com/sfraser/software/NewAlias_tool.sit.hqx">
New Alias MPW Tool</A> An MPW tool that creates Finder aliases for files.
</LI>
<LI>StreamEdit MPW Tool - MPW (installed with CodeWarrior Heaven option). If
you choose not to install MPW, it is located on the MacOS Tools CD
in "CW Pro 2 Tools:CodeWarrior MPW:MPW:Tools"</LI>
</LI>
<LI>
<A HREF="ftp://dev.apple.com/devworld/Periodicals/develop/develop25/develop_Issue_25_code/ToolFrontEnd.sit.hqx">ToolFrontEnd</A></LI>
<LI>
<A HREF="http://sunsite.cnlab-switch.ch/ftp/software/platform/macos/src/HTML/MPW_C.html">
patch 2.1</A></LI>
</UL>
<P>
Hardware/OS
<UL>
<LI>To build Navigator, you need a fast PPC Mac. The faster the
better. You can't build with a 68K machine because we have too many
resources, and the build process will crash when trying to generate
resources out of our cross-platform strings. See the discussion below
for a way around this.
</LI>
<LI>You will need about 96 MB of physical RAM to "fast link" the app.
You can still fast link if you give your machine 96 MB of virtual
memory, but then the VM hit is large enough to counteract any
improvement. One of our beta testers had a machine with only 64MB of
physical RAM (VM was off) and it ran out of memory trying to link.
Turning VM on got it to link, but build time increased greatly.
</LI>
<LI>Reports from the net indicate that the optimized version
(MozillaPPC) take much less RAM to build than the 96MB we suggest. If
you are running out of memory, try building that instead of the debug
version (the debug symbols require a lot of RAM come link time).
</LI>
<LI>You should be ok with a 400MB disk partition, even when fully
built. This does not include tools like the IDE, just source.
</LI>
<LI>On an HFS+ volume, a full build takes about 110MB. HFS+ is good,
but utilities are sparse.
</LI>
</UL>
<P>
<H2><A NAME="ss2.3">2.3 Setup the Build Environment</A></H2>
<P>
<OL>
<LI>Install CodeWarrior from the CD. While it is large, installing
the "CodeWarrior Heaven" option will guarantee that you have
everything you need. This will give you PowerPlant, MSL, and MPW.
If you choose to install less, proceed at your own risk.</LI>
<LI>In the Finder, increase the memory partition of the IDE to
15MB (you can get by with 12, if need be).</LI>
<LI>Download ToolFrontEnd. After expanding it, in "ToolFrontEnd
Folder:Drop-Ins" there are three items:
<UL>
<LI><I>#include</I></LI>
<LI><I>ToolFrontEnd</I></LI>
<LI><I>ToolFrontEnd Panel</I></LI>
</UL>
<P>Create a folder named "Include Scanners". Place the file
"#include" into the Include Scanners folder. Move the Include
Scanners folder to the CodeWarrior Plugins folder. Create a folder
named "ToolFrontEnd". Place the files "ToolFrontEnd" and
"ToolFrontEnd Panel" into the ToolFrontEnd folder. Place this
folder in the CodeWarrior Plugins folder.</P></LI>
<LI>Open "ToolFrontEnd Panel" with ResEdit. Change the file type
from <B>'Panl'</B> to <B>'PanL'</B>. Save.</LI>
<LI>Uncompress the StuffIt Archive for ToolServer. The goal is to
let ToolServer and MPW share the same Tools directory so you don't
need to have multiple versions of tools. Do the following:
<OL>
<LI>Open ToolServer's Tools folder. There is one file called
"RMetrowerks". </LI>
<LI>Move RMetrowerks to Tools folder of MPW. MPW folder must be
at "Metrowerks:Codewarrior MPW:MPW" if you installed
Codewarrior Heaven. </LI>
<LI>Remove ToolServer's Tools folder.</LI>
<LI>Now create an alias of Tools folder in "CodeWarrior MPW"
and move it to your ToolServer folder. Rename the alias
(probably called "Tools alias") to "Tools"</LI>
<LI><FONT COLOR="#FF0000"><B>IMPORTANT</B></FONT>: Make sure
you only have one instance of ToolServer on your machine. If
the build script finds the wrong one, the correct tools will
not be found and strange things will happen.</LI>
</OL>
</LI>
<LI>After installing the MacPerl MPW Tool distribution (run the
InstallerVISE application), in the "MacPerl &#131;" folder, there
will be an MPW tool named "perl". Install this in MPW's tools
folder.</LI>
<LI>Install the MacPerl Application (run the
InstallerVISE application). You can install this anywhere, but it is
recommended that you install it inside of your CodeWarrior folder for
easy reference. After installation, you will need to set a preference
to enable double-click launch of the perl scripts. This preference is set
by going under the Edit Menu to Preferences. Click on the "Script" button
and hit the radio button "Run Scripts opened from Finder"</LI>
<LI>Install the "patch", "MakeStub", "NewAlias" and "StreamEdit" Tools in the
tools
folder. Note that "MakeStub" and "StreamEdit" are automatically installed by the
"CodeWarrior Heaven" install option.</LI>
<LI>Install RunTSScript (found in the Mozilla source distribution)
in the compilers folder in your build environment
("Metrowerks:Metrowerks Codewarrior:Codewarrior
Plugins:Compilers")</LI>
<LI>Next, after downloading all the 3rd party software components,
drag WASTE, CWASTE, Menu Sharing, Mercutio, Internet Config, and
the AEGizmo folders (just as they are) into the "MacOS Support"
folder in your build environment.</LI>
<LI>Start ToolServer from within CodeWarrior (or use MPW if you
are brave enough). We're about to patch some files. Make sure the
ToolServer menu is in the CodeWarrior menu bar by turning on the
<A HREF="IDEPrefs.gif">preference</A> under the "Extras" panel in
the IDE Preferences (not the project preferences!). The menu bar
should look like this:
<P><IMG SRC="IDEMenuBar.gif" WIDTH=359 HEIGHT=20 X-CLARIS-USEIMAGEWIDTH X-CLARIS-USEIMAGEHEIGHT ALIGN=bottom></P>
<P>Choose "Start ToolServer" from the ToolServer menu (this is the
icon menu between "Window" and "Help" in the menubar above). You
will now see a window with no close box. This is your ToolServer
Worksheet where you will type (or cut &amp; paste) the commands
for the following steps.</P>
<P>In case you have never used MPW/ToolServer before, the
following is <B>very important</B>. Pressing "return" does not
execute commands like you might think. It just inserts a newline
into the worksheet like a normal text editor. <B>To actually get
ToolServer to execute the command, you must press "Enter" (lower
right of numeric keypad).</B> This executes the line that the
cursor is on, and only that line. If you want to execute multiple
lines at once, select them all and hit Enter.</P></LI>
<LI>Set the shell variables {IDE} and {Source} to the correct
paths for your build environment. {IDE} is where your CodeWarrior
IDE is located. {Source} is the folder containing the toplevel
"ns" folder of the Mozilla source. Mine look like this (don't
forget to keep the quotes if your path includes spaces), yours
will almost certainly be different (<FONT COLOR="#FF0000">to
punctuate this, the things you need to change are in red</FONT>).
<PRE>Set IDE "<FONT COLOR="#FF0000">Develop:Source331 Build Environment:CW Pro 2:Metrowerks CodeWarrior:</FONT>"
Set Source "<FONT COLOR="#FF0000">Source:FreeSource:</FONT>"</PRE>
</LI>
<LI>If you are using CWPro2, execute the following lines to patch
LDropFlag to draw correcly over non-white backgrounds.
<PRE>directory "{IDE}MacOS Support:PowerPlant:_In Progress:_Table Classes:"
patch LDropFlag.cp "{Source}mozilla:lib:mac:patches:LDropFlag.patch"
duplicate -y "{Source}mozilla:lib:mac:patches:DropFlag Icons.rsrc" "{IDE}MacOS Support:PowerPlant:PowerPlant Resources:"</PRE></LI>
<LI>Execute the following lines to patch menusharing.c to allow it
to compile with the new Universal Headers. It references an
obsolete header file (GestaltEqu.h).
<PRE>directory "{IDE}MacOS Support:Menu Sharing Toolkit 4.1:"
patch menusharing.c "{Source}mozilla:lib:mac:patches:menusharing.patch"</PRE></LI>
<LI>If you are using CWPro2 straight off the CD, you need to patch
AppleEvents.r to fix a problem with the Universal Headers (the
definition of the 'aedt' resource was omitted). <B>You do not have
to do this if you have applied the netborne patch to Pro2e
</B> because it has been fixed.
<PRE>directory "{IDE}MacOS Support:Headers:Rez Headers:"
patch AppleEvents.r "{Source}mozilla:lib:mac:patches:AppleEvents.r.patch"</PRE></LI>
<LI>You need to patch stat.mac.h to fix a problem in MSL where
lines were omitted.
<PRE>directory "{IDE}Metrowerks Standard Library:MSL C:MSL Mac:Public Includes"
patch stat.mac.h "{Source}mozilla:lib:mac:patches:stat.mac.h.patch"</PRE></LI>
<LI>Congratulations! Now you are ready to build. Once these steps
are done, you don't have to repeat these setups the next
time!</LI>
</OL>
<P>
<H2><A NAME="ss2.4">2.4 Run the build </A></H2>
<UL>
<P>In the folder mozilla:build:mac:, there are several Perl scripts with
names of the form BuildMozillaXXX.pl, where XXX is "Optimized",
"Debug", "Tinderbox", et al. Each script builds the corresponding
version of Mozilla. If you configured the MacPerl application to
execute scripts that are opened from the finder, all you have to do is
double click on the appropriate one; otherwise, launch MacPerl, and
run the appropriate script from the "Run Script..." menu item.</P>
<P>These `configured build' scripts are simple, and you might want to
make your own to force your build to StopForErrors(), or alternatively
DontStopForErrors(), et al. You can set up certain build-script
variables and (soon) compile-time flags. Compare the supplied scripts
to figure out what you might want. Note that CodeWarriorLib, Moz.pm,
and BuildList.pm, are AppleScript libraries and Perl modules meant to
be used by a `configured build'. Use your favorite POD viewer (Shuck
comes with MacPerl) to view the documentation in the Perl scripts.</P>
<P>If there were any errors in any of the projects along the way, the
script will stop at that point and the IDE will tell you the errors.
You can fix them and make sure they current project builds, but to
continue the automation, you have to start from the beginning by
double-clicking the script again. This isn't quite as bad as it
sounds because the previous projects are already built (unless you
changed some major header file). Please note that stopping the script
once it has started is difficult. We are working to address
this issue.</P>
<P>After the build is complete, you can find aliases to the built libraries
and the final Mozilla application. Debug builds are built to
Mozilla:dist:client_debug, while optimized builds are built to Mozilla:dist:client.
</P>
<P>Don't worry too much about the numerous warnings generated during
the build. We try our best to get the XP teams to use real compilers,
but alas, they continue to write warning-laden code. There is also
some generated code (Java is one example) that has a lot of warnings
that we can't help either. If you write any new code, please help us
in our quest to get zero warnings.</P>
</UL>
</UL>
<HR>
<H2><A NAME="s3">3. Common Sticking Points</A></H2>
<UL>
<LI><B>I have CodeWarrior3, how do i build with it?</B>
<UL> Currently, the answer is, "You don't." Eventually, the distribution
will be modified to allow building using CodeWarrior3, but for now
CodeWarrior2 is the only IDE that is supported.
</UL>
</LI>
</UL>
<HR>
<H2><A NAME="s4">4. Credits</A></H2>
<UL>
The majority of this document is taken from the build document included
in the Mozilla source distribution at README:mozilla:macbuild.htm written
by Mike Pinkerton, <A HREF="mailto:pinkerton@netscape.com">
pinkerton@netscape.com</A>.
</BODY>
</HTML>

View File

@@ -1,163 +0,0 @@
<HTML>
<HEAD>
<TITLE>Building the Mozilla client on unix platforms</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000EE" VLINK="#551A8B"
ALINK="#FF0000">
<HR>
<H1>Building the Mozilla client on Unix platforms</H1>
<H2>
Daniel Nunes, <TT><A HREF="mailto:leaf@mozilla.org">leaf@mozilla.org</A></TT></H2>
v 1.2, 1998-11-02
<P>
<HR><I>How to build Mozilla on a Unix System.</I>
<HR>
<H2>1. <A HREF="#s1">Introduction</A></H2>
<H2>2. <A HREF="#s2">Building Mozilla</A></H2>
<UL>
<LI>
<A HREF="#ss2.1">2.1 Get the Code </A></LI>
<LI>
<A HREF="#ss2.2">2.2 Requirements</A></LI>
<LI>
<A HREF="#ss2.3">2.3 Build the Lizard</A></LI>
<LI>
<A HREF="#ss2.4">2.4 After the Build</A></LI>
</UL>
<H2>3. <A HREF="#s3"> Common Problems </A></H2>
<HR>
<H2><A NAME="s1">1. Introduction</A></H2>
<P>
Perhaps you are interested in building classic Mozilla, before the
fall of the old layout engine, and the rise of the new. If so, the
<B><A HREF="classic-unix.html">Classic Mozilla Build document</A></B>
is what you're looking for.
<P>
<P>
What this document is: A guide to building the Mozilla application.
<BR>
This includes:
<OL>
<LI> A listing of the development tools you will need to build Mozilla. </LI>
<LI> A sample set of commands to build Mozilla using the Autoconf
build system. </LI>
</OL>
<P>
If you're looking for documentation on developing features or fixing bugs,
the Mozilla
<A HREF="../tplist.html">Technical Documents</A> or
<A HREF="../../../library.html"> Library </A>
are probably what you're looking for.
<P>
<HR>
<H2><A NAME="s2">2. Building Mozilla </A></H2>
<P>
<UL>Each of the following subsections describes, or gives references to
descriptions of, the steps necessary to build Mozilla.
</UL>
<UL>
<H2><A NAME="ss2.1">2.1 Get the Code</A></H2>
<P>
<UL>
Eventually, there will be two principal ways of getting the code,
<A HREF="../../../download.html"> ftp</A> and
<A HREF="../../../cvs.html"> CVS</A>.
CVS will provide the most current code for building, but is
slower than ftp. Ftp drops are generally produced once per month,
and are known to compile on some machine, somewhere.
<B>For now</B>, however, you must do the following to obtain the newest
browser source:
<BR>
<CODE>
cvs co mozilla/nglayout.mk<BR>
cd mozilla<BR>
gmake -f nglayout.mk pull_all<BR>
</CODE>
<BR>
This should pull all the right source.
</UL>
<P>
<H2><A NAME="ss2.2">2.2 Requirements</A></H2>
<UL>
The following should be installed:
<UL>
<LI>Motif 1.2
<LI>The native C/C++ compiler (or GNU C/C++ compiler 2.7.2 in lieu of the
native compiler)
<LI>GNU make 3.74 or better
<LI>Perl5
<LI><A HREF="../../../projects/autoconf/">Autconf</A> requirements,
including NSPR.
<LI><CODE>LD_LIBRARY_PATH</CODE> must include the path to the NSPR
shared objects.<BR>
For most people, this means adding <CODE>/usr/local/nspr/lib</CODE>
to <CODE>LD_LIBRARY_PATH</CODE>
(either:
<BR>
<CODE>setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/usr/local/nspr/lib</CODE>
<BR>
or
<BR>
<CODE>export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/nspr/lib</CODE>
.<BR>
If you get an error like "No such variable" then omit the
<CODE>${LD_LIBRARY_PATH}:</CODE> part
)
</UL>
<P>
Your hardware should be equal to, or better than:
<UL>
32 MB RAM, 128 MB swap (64 MB RAM recommended)
</UL>
</UL>
<P>
<H2><A NAME="ss2.3">2.3 Build the Lizard</A></H2>
<P>
<UL>
<CODE>
autoconf<BR>
mkdir obj-`./build/autoconf/config.guess`<BR>
cd obj-`./build/autoconf/config.guess`<BR>
../configure --with-nspr=/usr/local/nspr --enable-toolkit=motif<BR>
gmake depend<BR>
gmake<BR>
</CODE>
</UL>
<H2><A NAME="ss2.4">2.4 After the build </A></H2>
<UL>
<LI> <CODE>cd dist/bin</CODE> and you should see links to the objects you
need to run <CODE>main</CODE>.
<LI>On most unixen LD_LIBRARY_PATH must be set to wherever the necessary
libraries are.
<UL>
<LI>On HP-UX, the equivalent environment variable is <CODE>SHLIB_PATH</CODE>.
<LI>On AIX, the equivalent environment variable is <CODE>LIBPATH</CODE>.
</UL>
</UL>
</UL>
<HR>
<H2><A NAME="s3">3. Common Sticking Points</A></H2>
<LI>I'm sure there are bound to be some. Send
<A HREF="mailto:leaf@mozilla.org"> me</A> mail.
<HR>
</BODY>
</HTML>

View File

@@ -1,209 +0,0 @@
<HTML>
<HEAD>
<TITLE>Building Mozilla on Microsoft Windows 32-bit platforms</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000EE" VLINK="#551A8B"
ALINK="#FF0000">
<HR>
<H1>
Building Mozilla on Microsoft Windows 32-bit platforms</H1>
<H2>
Daniel Nunes, <TT><A HREF="mailto:leaf@netscape.com">leaf@netscape.com</A></TT>
</H2>
v 1.0, June 1998
<P>
<HR><I>How to build Mozilla on a Microsoft Windows 32-bit System.</I>
<HR>
<H2>1. <A HREF="#s1">Introduction</A></H2>
<H2>2. <A HREF="#s2">Building Mozilla</A></H2>
<UL>
<LI>
<A HREF="#ss2.1">2.1 Get the Code </A></LI>
<LI>
<A HREF="#ss2.2">2.2 Requirements</A></LI>
<LI>
<A HREF="#ss2.3">2.3 Set up the Build Environment</A></LI>
<LI>
<A HREF="#ss2.4">2.4 Build the Lizard </A></LI>
</UL>
<H2>3. <A HREF="#s3"> Common Problems </A></H2>
<HR>
<H2><A NAME="s1">1. Introduction</A></H2>
<P>
What this document is: A guide to building the Mozilla application.
<BR>
This includes:
<OL>
<LI> A listing of the development tools you will need to build Mozilla. </LI>
<LI> A list of environment variables you will need to set before building. </LI>
</OL>
<P>
If you're looking for documentation on developing features or fixing bugs,
the Mozilla
<A HREF="http://www.mozilla.org/docs/tplist/tplist.html">Technical Documents
</A> or <A HREF="http://www.mozilla.org/library.html"> Library </A>
are probably what you're looking for.
<P>
<HR>
<H2><A NAME="s2">2. Building Mozilla </A></H2>
<P>
<UL>Each of the following subsections describes, or gives references to
descriptions of, the steps necessary to build Mozilla.
<H2><A NAME="ss2.1">2.1 Get the Code</A></H2>
<P>
<UL>
There are two principal ways of getting the code,
<A HREF="http://www.mozilla.org/download.html"> ftp</A> and
<A HREF="http://www.mozilla.org/cvs.html"> CVS</A>.
CVS will provide the least outdated code for building, but is
slower than ftp.
</UL>
<P>
<H2><A NAME="ss2.2">2.2 Requirements</A></H2>
<UL>
The following need to be installed:
<UL>
<LI>Microsoft Visual C++ version 4.2 or later
<LI>GNU Tools for Microsoft Windows, located:
<UL>
<LI><A HREF="http://www.cygnus.com/misc/gnu-win32">Cygnus</A></LI>
<LI><A HREF="http://www.gnu.org/order/ftp.html">GNU home page</A></LI>
<LI><A HREF="ftp://prep.ai.mit.edu/pub/gnu">MIT</A></LI>
</UL>
Specifically, you'll need:
<UL><CODE>
cp.exe<BR>
rm.exe<BR>
uname.exe<BR>
</CODE>
</UL>
Netscape has internally modified version of gmake, shmsdos and win32gnu
that we use to get around some problems we were having keeping in sync
with the Unix version of gmake. This version of gmake can be found in the
Windows Build Tools package, which can be ftp'd from
<A HREF="http://www.mozilla.org/download-mozilla.html"> the Mozilla
Download page</A>.
The three files you will need are:
<UL><CODE>
gmake.exe<BR>
shmsdos.exe<BR>
uname.exe<BR>
</CODE>
</UL>
</UL>
<P>
Hardware/OS
<UL>
<LI>Pentium 133 MHz or better</LI>
<LI>64 MB RAM, 128 MB recommended</LI>
<LI>250 MB NTFS or 500 MB FAT disk space</LI>
<LI>NT 4.0 is preferred; NT 3.51 will also work.
</LI>
</UL>
</UL>
<P>
<H2><A NAME="ss2.3">2.3 Setup the Build Environment</A></H2>
<P>
<UL>
The following environment variables need to be set:
<UL>
<CODE>
set MOZ_BITS=32
<BR>
set MOZ_DEBUG=1 (set this only if you want to build a debug build)
<BR>
set MOZ_GOLD=1
<BR>
set MOZ_MEDIUM=1
<BR>
set MOZ_NT=351 (if running NT3.51)
<BR>
set MOZ_OUT=(optional: specifies location of resultant executable)
<BR>
set MOZ_SRC=(top of your tree, for example: set MOZ_SRC=d:\mozilla_source
if this is the directory where you checked or unzipped the source into)
<BR>
set MOZ_TOOLS=(location of the bin directory of your GNU tools. The build
looks for MOZ_TOOLS\bin\gmake.exe, so make sure that the gmake.exe from
the Windows Build Tools package resides there.)
<BR>
set NO_SECURITY=1
<BR>
set NSPR20=1
<BR>
set _MSC_VER=1100 (if you are running VC++ 5.0 or higher)
<BR>
</CODE>
</UL>
<BR>
<P>
</UL>
<H2><A NAME="ss2.4">2.4 Run the build </A></H2>
<UL>
Change to the directory you copied the source into (for example,
<CODE>cd d:\mozilla_source</CODE>). If this directory was empty before you
installed the source, there should be two directories here:
<CODE>README</CODE> and <CODE>mozilla</CODE>.
<CODE>
<PRE>
cd mozilla\config
nmake /f makefile.win
cd ..
nmake /f client.mak
</PRE>
</CODE>
</UL>
</UL>
<HR>
<H2><A NAME="s3">3. Common Sticking Points</A></H2>
<UL>
<LI><B>nmake has a 'fatal error', listing one of the GNU commands and a
hexadecimal return code.</B>
<UL>
This will happen as a result of not having the GNU tools and Windows Build
tools in your path. Add the directories with the appropriate binaries to your
path.
</UL>
</LI>
<LI>
<B>It fails with the message "'.\WIN32' unexpected": </B>
<UL>
You didn't properly
set the environment variables -- you must not include a space at the end
of the set statements (be careful if you are cut'n'pasting).
</UL>
</LI>
<LI>
<B>It fails to build, with directory-related errors: </B>
<UL>
The full path
to the source must not include any spaces. Additionally, the source must
be extracted with an intact directory structure by a utility that understands
long filenames. If in doubt, grab Info-Zip at
<A HREF="ftp://ftp.cdrom.com/pub/infozip">ftp://ftp.cdrom.com/pub/infozip</A>
</UL>
</LI>
<LI>
<B>I'm not running a 32-bit windows system, how do i build?</B>
<UL>
Currently, the build process depends on a 32-bit operating system.
Windows NT 4.0 is the recommended windows operating system.
</UL>
</UL>
<HR>
</BODY>
</HTML>

View File

@@ -1,53 +0,0 @@
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Author" CONTENT="Chris Yeh">
<META NAME="GENERATOR" CONTENT="Mozilla/4.05 [en]C-NSCP (WinNT; U) [Netscape]">
<TITLE>Running Mozilla...</TITLE>
</HEAD>
<BODY>
<H2>
<FONT FACE="Arial,Helvetica">Running Mozilla Without Trashing Netscape
Installation</FONT></H2>
This document explains how to run <TT>mozilla.exe</TT> separately from
<TT>netscape.exe</TT> without trashing your regular installation of Netscape
Communicator. This is necessary if, for example, you want to use Communicator's
mail client while you work on Mozilla development.
<BR>
<HR WIDTH="100%">
<OL>
<LI>
Before running <TT>mozilla.exe</TT>, create a new user profile either from
a Netscape 4.0x installation using the "User Profile Manager" shortcut
in the Utilities folder (on Windows) or by using&nbsp; the <TT>-new_account</TT>
option on the command line of either <TT>netscape.exe</TT> or <TT>mozilla.exe</TT>.&nbsp;
We suggest calling the profile "<TT>mozilla</TT>."</LI>
<LI>
Always use that new account when running <TT>mozilla.exe</TT>, and never
run <TT>netscape.exe</TT> using that same account profile.</LI>
</OL>
To make things easier, you can start the application with the user account
on the command line, for example:
<UL><TT>mozilla.exe -P"mozilla"</TT></UL>
This assures that prefs and the cache will not interfere between the two
versions. This will be especially
<BR>important as new prefs are added to the Mozilla product. Note that
you must use quotes around the name and there can be no space between the
"P" and the profile name. Otherwise, the application won't catch the profile
switch, and it will try to load the profile name as the initial URL.
<P>
<HR WIDTH="100%">
<BR>You can copy your <TT>bookmark.htm</TT> file from an existing profile
to your new profile directory if you want to share bookmarks.
<P>After the initial 3/31 release, we will add some code to Mozilla to
prevent running with a profile that is already being used by <TT>netscape.exe</TT>.
<BR>&nbsp;
<HR WIDTH="100%">
<BR><FONT SIZE=-1>Copyright &copy; 1998 <A HREF="http://home.netscape.com/misc/contact_info.html">Netscape
Communications Corporation</A></FONT>
</BODY>
</HTML>

View File

@@ -1,184 +0,0 @@
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=x-mac-roman">
<META NAME="GENERATOR" CONTENT="Mozilla/4.04 [en] (WinNT; I) [Netscape]">
<META NAME="KeyWords" CONTENT="client, source, documentation">
<META NAME="Author" CONTENT="Kipp E.B. Hickman">
<TITLE>NGLayout Windows Build Instructions</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<H2>
<FONT FACE="Arial,Helvetica">NGLayout Windows Build Instructions</FONT></H2>
This document explains how to build NGLayout for the Windows platform.&nbsp;
<HR><B><FONT SIZE=+1>Required Tools:</FONT></B>
<UL>
<LI>
<B>Microsoft Visual C++ version 4.2 or later</B></LI>
<LI>
<B>The same set of tools for building <A HREF="http://www.mozilla.org/docs/tplist/catBuild/winbuild.htm">Mozilla</A></B></LI>
</UL>
<B><FONT SIZE=+1>Setting up:</FONT></B>
<UL>
<LI>
You need a Pentium with at least a 133 MHz processor and at least 250 megs
(NTFS partition) or 500 megs (FAT partition) of hard drive space. You need
to have a minimum of 64 megs of memory in order to build this tree. These
numbers are approximations.</LI>
<LI>
The preferred platform is NT 4.0. NT 3.51 will also work, and Win95 might
work if you're lucky. Maybe.</LI>
<LI>
Install MSVC. If you don't choose to have the MSVC install modify your
environment variables for PATH, INCLUDE, and LIB information, be sure to
run VCVARS32.BAT out of the MSVC bin directory prior to attempting to build.</LI>
<LI>
Download and install GNU tools. Put them in your path.</LI>
<LI>
Install NGLayout source.</LI>
<UL>
<LI>
cd &lt;your-source-area></LI>
<LI>
unzip -o -q win-19980415.zip</LI>
</UL>
<LI>
There are several environment variables you will need to set, either manually
or via a script within a command session, or by setting them in your system
environment located through the Control Panel | System icon.</LI>
<P>&nbsp;<B>Note: There is an additional variable for building NGLayout!
Use this list carefully!</B>
<P>&nbsp;The variables are:
<UL>
<LI>
set MOZ_BITS=32</LI>
<LI>
set MOZ_DEBUG=1 (don't set this if you want to build an optimized release
build)</LI>
<LI>
set MOZ_GOLD=1</LI>
<LI>
set MOZ_MEDIUM=1</LI>
<LI>
set MOZ_NT=351 (if running NT 3.51, don't set otherwise)</LI>
<LI>
set MOZ_OUT=(location of resulting executable and totally optional, see
Notes for more details)</LI>
<LI>
set MOZ_SRC=(top of your tree, drive letter and path, i.e. set MOZ_SRC=d:\mozilla_src.
The topmost directory under this should be mozilla)</LI>
<LI>
set MOZ_TOOLS=(location of the bin directory containing your GNU tools.
The build looks for MOZ_TOOLS\bin\gmake.exe, so make sure your MOZ_TOOLS
is figured appropriately)</LI>
<LI>
set NO_SECURITY=1</LI>
<LI>
set NSPR20=1</LI>
<LI>
if you are running VC++ 5.0 or higher: set _MSC_VER=1100; if you are running
VC++ 4.2 then set MOZ_VCVER=42</LI>
<LI>
<B>set STANDALONE_IMAGE_LIB=1</B></LI>
<LI>
<B>set MODULAR_NETLIB=1</B></LI>
</UL>
</UL>
<B><FONT SIZE=+1>Building:</FONT></B>
<UL>
<LI>
You need to be running a vanilla command prompt. Other shells may work,
but you might have to tweak makefiles.</LI>
<LI>
<B>Build the tools:</B> This generates several tools that handle things
like dependency generation</LI>
<UL>
<LI>
cd mozilla\config</LI>
<LI>
nmake /f makefile.win</LI>
</UL>
<LI>
<B>Build the NGLayout:</B> This will do a complete build of the source
tree. You will end up with a viewer.exe at the end. The viewer.exe will
be in your dist\win32_[OD].obj\bin directory (O will be used when you don't
set MOZ_DEBUG; D will be used when you set MOZ_DEBUG).</LI>
<UL>
<LI>
cd mozilla</LI>
<LI>
nmake /f nglayout.mak</LI>
</UL>
</UL>
<B><FONT SIZE=+1>Running:</FONT></B>
<UL>
<LI>
Once you have built the system, do this to run the viewer program (the
viewer program is a simple test program that uses the nsIWebWidget API
to embed a web widget object). The viewer program has a few basic menu
items, include "Samples" which load sample tests.</LI>
<UL>
<LI>
cd mozilla\dist\win32_[OD].obj\bin</LI>
<LI>
.\viewer.exe</LI>
</UL>
</UL>
<B><FONT SIZE=+1>Notes:</FONT></B>
<UL>
<LI>
This build process does not use Visual C++ generated project files for
several reasons having to do with (among other things) size, maintainability,
and the long term desire to start using more of tools like gmake, or plug
and play developer tools. This does not preclude you from using the Visual
C++ IDE, or it's debugger. Once you have built a viewer.exe do this to
run it under the debugger:</LI>
</UL>
<UL>
<UL>
<LI>
cd mozilla\dist\win32_[OD].obj\bin</LI>
<LI>
msdev viewer.exe</LI>
</UL>
</UL>
<HR WIDTH="100%">
<CENTER><FONT SIZE=-1>Copyright &copy; 1998 <A HREF="http://home.netscape.com/misc/contact_info.html">Netscape
Communications Corporation</A></FONT></CENTER>
&nbsp;
</BODY>
</HTML>

7
mozilla/aclocal.m4 vendored
View File

@@ -1,7 +0,0 @@
dnl
dnl Local autoconf macros used with mozilla
dnl The contents of this file are under the Public Domain.
dnl
builtin(include, gtk.m4)dnl

View File

@@ -22,9 +22,11 @@ srcdir = @srcdir@
include $(DEPTH)/config/autoconf.mk
DIRS = public src
DIRS = public src
ifdef ENABLE_TESTS
DIRS += tests
endif
include $(topsrcdir)/config/config.mk

View File

@@ -16,6 +16,6 @@
* Reserved.
*/
#define MAC_STATIC 1
#define _IMPL_NS_BASE 1
#include "MacPrefix.h"
#include "MacPrefix_debug.h"

View File

@@ -16,6 +16,6 @@
* Reserved.
*/
#define MAC_SHARED 1
#define _IMPL_NS_BASE 1
#include "MacPrefix.h"
#include "MacPrefix.h"

Binary file not shown.

Binary file not shown.

View File

@@ -2,6 +2,7 @@
mozilla/base/src/mac/nsTimerMac.cpp
mozilla/base/src/nsArena.cpp
mozilla/base/src/nsAtomTable.cpp
mozilla/base/src/nsBaseDLL.cpp
mozilla/base/src/nsBTree.cpp
mozilla/base/src/nsByteBuffer.cpp
mozilla/base/src/nsCRT.cpp
@@ -10,6 +11,7 @@ mozilla/base/src/nsEscape.cpp
mozilla/base/src/nsFileSpec.cpp
mozilla/base/src/nsFileStream.cpp
mozilla/base/src/nsRBTree.cpp
mozilla/base/src/nsProperties.cpp
mozilla/base/src/nsSizeOfHandler.cpp
mozilla/base/src/nsString.cpp
mozilla/base/src/nsUnicharBuffer.cpp

View File

@@ -2,7 +2,11 @@
# This is a list of local files which get copied to the mozilla:dist:base directory
#
nsAutoLock.h
nsISizeOfHandler.h
nsFileStream.h
nsIFileStream.h
nsFileSpec.h
nsRepeater.h
nsRepeater.h
nsIProperties.h
nsCaretProperties.h

View File

@@ -25,10 +25,14 @@ include $(DEPTH)/config/autoconf.mk
DEFINES += -D_IMPL_NS_BASE
EXPORTS = \
nsAutoLock.h \
nsIProperties.h \
nsISizeOfHandler.h \
nsCaretProperties.h \
nsEscape.h \
nsFileSpec.h \
nsFileStream.h \
nsIFileStream.h \
$(NULL)
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))

View File

@@ -20,12 +20,16 @@ IGNORE_MANIFEST=1
DEFINES = -D_IMPL_NS_BASE
EXPORTS = \
nsIProperties.h \
nsISizeOfHandler.h \
nsFileSpec.h \
nsFileStream.h \
$(NULL)
EXPORTS = \
nsAutoLock.h \
nsCaretProperties.h \
nsIProperties.h \
nsISizeOfHandler.h \
nsEscape.h \
nsFileSpec.h \
nsFileStream.h \
nsIFileStream.h \
$(NULL)
MODULE = raptor

View File

@@ -0,0 +1,116 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
A stack-based lock object that makes using PRLock a bit more
convenient. It acquires the monitor when constructed, and releases
it when it goes out of scope.
For example,
class Foo {
private:
PRLock* mLock;
public:
Foo(void) {
mLock = PR_NewLock();
}
virtual ~Foo(void) {
PR_DestroyLock(mLock);
}
void ThreadSafeMethod(void) {
// we're don't hold the lock yet...
nsAutoLock lock(mLock);
// ...but now we do.
// we even can do wacky stuff like return from arbitrary places w/o
// worrying about forgetting to release the lock
if (some_weird_condition)
return;
// otherwise do some other stuff
}
void ThreadSafeBlockScope(void) {
// we're not in the lock here...
{
nsAutoLock lock(mLock);
// but we are now, at least until the block scope closes
}
// ...now we're not in the lock anymore
}
};
*/
#ifndef nsAutoLock_h__
#define nsAutoLock_h__
#include "nscore.h"
#include "prlock.h"
#include "prlog.h"
// If you ever decide that you need to add a non-inline method to this
// class, be sure to change the class declaration to "class NS_BASE
// nsAutoLock".
class nsAutoLock {
private:
PRLock* mLock;
// Not meant to be implemented. This makes it a compiler error to
// construct or assign an nsAutoLock object incorrectly.
nsAutoLock(void) {}
nsAutoLock(nsAutoLock& aLock) {}
nsAutoLock& operator =(nsAutoLock& aLock) {
return *this;
}
// Not meant to be implemented. This makes it a compiler error to
// attempt to create an nsAutoLock object on the heap.
static void* operator new(size_t size) {
return nsnull;
}
static void operator delete(void* memory) {}
public:
nsAutoLock(PRLock* aLock) : mLock(aLock) {
PR_ASSERT(mLock);
// This will assert deep in the bowels of NSPR if you attempt
// to re-enter the lock.
PR_Lock(mLock);
}
~nsAutoLock(void) {
PR_Unlock(mLock);
}
};
#endif // nsAutoLock_h__

View File

@@ -16,7 +16,38 @@
* Reserved.
*/
#define _IMPL_NS_LAYOUT 1
#define INCLUDE_XUL 1
// this class is used to gather caret properties from the OS. It
// must be implemented by each platform that wants more than
// the generic caret properties.
#include "MacSharedPrefix_debug.h"
class nsCaretProperties
{
public:
nsCaretProperties();
virtual ~nsCaretProperties() {}
virtual PRUint32 GetCaretWidth() { return mCaretWidth; }
virtual PRUint32 GetCaretBlinkRate() { return mBlinkRate; }
protected:
// have value for no blinking
enum {
eDefaulBlinkRate = 500, // twice a second
eDefaultCaretWidth = 1 // one pixel wide
};
PRUint32 mCaretWidth; // caret width in twips
PRUint32 mBlinkRate; // blink rate in milliseconds
// members for vertical placement & size?
};
NS_BASE nsCaretProperties* NewCaretProperties();

View File

@@ -22,6 +22,7 @@
#define _ESCAPE_H_
#include "prtypes.h"
#include "nscore.h"
/* valid mask values for NET_Escape() and NET_EscapedSize(). */
typedef enum {
@@ -33,19 +34,20 @@ typedef enum {
#ifdef __cplusplus
extern "C" {
#endif
char * nsEscape(const char * str, nsEscapeMask mask);
NS_BASE char * nsEscape(const char * str, nsEscapeMask mask);
/* Caller must use delete [] on the result */
char * nsUnescape(char * str);
NS_BASE char * nsUnescape(char * str);
/* decode % escaped hex codes into character values,
* modifies the parameter, returns the same buffer
*/
char * nsEscapeCount(const char * str, PRInt32 len, nsEscapeMask mask, PRInt32* out_len);
NS_BASE char * nsEscapeCount(const char * str, PRInt32 len, nsEscapeMask mask, PRInt32* out_len);
/* Like nsEscape, but if out_len is non-null, return result string length
* in *out_len, and uses len instead of NUL termination.
* Caller must use delete [] on the result.
*/
PRInt32 nsUnescapeCount (char * str);
NS_BASE PRInt32 nsUnescapeCount (char * str);
/* decode % escaped hex codes into character values,
* modifies the parameter buffer, returns the length of the result
* (result may contain \0's).

View File

@@ -24,7 +24,16 @@
//
// Classes defined:
//
// nsFilePath, nsFileURL, nsNativeFileSpec.
// nsFilePath, nsFileURL, nsFileSpec, nsPersistentFileDescriptor.
//
// Q. How should I represent files at run time?
// A. Use nsFileSpec. Using char* will lose information on some platforms.
//
// Q. Then what are nsFilePath and nsFileURL for?
// A. Only when you need a char* parameter for legacy code.
//
// Q. How should I represent files in a persistent way (eg, in a disk file)?
// A. Use nsPersistentFileDescriptor. Convert to and from nsFileSpec at run time.
//
// This suite provides the following services:
//
@@ -63,7 +72,7 @@
//
// Initialize a native file spec from a URL
//
// nsNativeFileSpec fileSpec(fileURL);
// nsFileSpec fileSpec(fileURL);
//
// Make the spec unique (this one has no suffix).
//
@@ -103,6 +112,7 @@
#define _FILESPEC_H_
#include "nscore.h"
#include "nsError.h"
//========================================================================================
// Compiler-specific macros, as needed
@@ -116,11 +126,13 @@
#define NS_NAMESPACE_PROTOTYPE
#define NS_NAMESPACE namespace
#define NS_NAMESPACE_END
#define NS_EXPLICIT explicit
#else
#define NS_NAMESPACE_PROTOTYPE static
#define NS_NAMESPACE struct
#define NS_NAMESPACE_END ;
#define NS_EXPLICIT
#endif
//=========================== End Compiler-specific macros ===============================
@@ -137,33 +149,50 @@
// Here are the allowable ways to describe a file.
//========================================================================================
class nsFilePath; // This can be passed to NSPR file I/O routines.
class nsFileSpec; // Preferred. For i/o use nsInputFileStream, nsOutputFileStream
class nsFilePath; // This can be passed to NSPR file I/O routines, if you must.
class nsFileURL;
class nsNativeFileSpec;
class nsPersistentFileDescriptor; // Used for storage across program launches.
#define kFileURLPrefix "file://"
#define kFileURLPrefixLength (7)
class nsBasicOutStream;
class nsOutputStream;
class nsInputStream;
class nsOutputFileStream;
class nsInputFileStream;
//========================================================================================
class NS_BASE nsNativeFileSpec
// Conversion of native file errors to nsresult values. These are really only for use
// in the file module, clients of this interface shouldn't really need them.
// Error results returned from this interface have, in the low-order 16 bits,
// native errors that are masked to 16 bits. Assumption: a native error of 0 is success
// on all platforms. Note the way we define this using an inline function. This
// avoids multiple evaluation if people go NS_FILE_RESULT(function_call()).
#define NS_FILE_RESULT(x) ns_file_convert_result((PRInt32)x)
nsresult ns_file_convert_result(PRInt32 nativeErr);
#define NS_FILE_FAILURE NS_FILE_RESULT(-1)
//========================================================================================
class NS_BASE nsFileSpec
// This is whatever each platform really prefers to describe files as. Declared first
// because the other two types have an embeded nsNativeFileSpec object.
// because the other two types have an embeded nsFileSpec object.
//========================================================================================
{
public:
nsNativeFileSpec();
explicit nsNativeFileSpec(const char* inString, bool inCreateDirs = false);
explicit nsNativeFileSpec(const nsFilePath& inPath);
explicit nsNativeFileSpec(const nsFileURL& inURL);
nsNativeFileSpec(const nsNativeFileSpec& inPath);
virtual ~nsNativeFileSpec();
nsFileSpec();
NS_EXPLICIT nsFileSpec(const char* inString, PRBool inCreateDirs = PR_FALSE);
NS_EXPLICIT nsFileSpec(const nsFilePath& inPath);
NS_EXPLICIT nsFileSpec(const nsFileURL& inURL);
NS_EXPLICIT nsFileSpec(const nsPersistentFileDescriptor& inURL);
nsFileSpec(const nsFileSpec& inPath);
virtual ~nsFileSpec();
void operator = (const char* inPath);
void operator = (const nsFilePath& inPath);
void operator = (const nsFileURL& inURL);
void operator = (const nsNativeFileSpec& inOther);
void operator = (const nsFileSpec& inOther);
void operator = (const nsPersistentFileDescriptor& inOther);
#ifndef XP_MAC
operator const char* () const { return mPath; }
@@ -175,23 +204,22 @@ class NS_BASE nsNativeFileSpec
#ifdef XP_MAC
// For Macintosh people, this is meant to be useful in its own right as a C++ version
// of the FSSpec struct.
nsNativeFileSpec(
nsFileSpec(
short vRefNum,
long parID,
ConstStr255Param name);
nsNativeFileSpec(const FSSpec& inSpec)
: mSpec(inSpec), mError(noErr) {}
nsFileSpec(const FSSpec& inSpec)
: mSpec(inSpec), mError(NS_OK) {}
operator FSSpec* () { return &mSpec; }
operator const FSSpec* const () { return &mSpec; }
operator FSSpec& () { return mSpec; }
operator const FSSpec& () const { return mSpec; }
OSErr Error() const { return mError; }
void MakeAliasSafe();
// Called for the spec of an alias. Copies the alias to
// a secret temp directory and modifies the spec to point
// to it. Sets mError.
void ResolveAlias(bool& wasAliased);
void ResolveAlias(PRBool& wasAliased);
// Called for the spec of an alias. Modifies the spec to
// point to the original. Sets mError.
void MakeUnique(ConstStr255Param inSuggestedLeafName);
@@ -199,15 +227,15 @@ class NS_BASE nsNativeFileSpec
ConstStr255Param GetLeafPName() const { return mSpec.name; }
#endif // end of Macintosh utility methods.
#ifdef XP_MAC
bool Valid() const { return mError == noErr; }
#else
bool Valid() const { return true; } // Fixme.
#endif // XP_MAC
PRBool Valid() const { return NS_SUCCEEDED(Error()); }
nsresult Error() const { return mError; }
friend NS_BASE nsBasicOutStream& operator << (
nsBasicOutStream& s,
const nsNativeFileSpec& spec);
#if DEBUG
friend NS_BASE nsOutputStream& operator << (
nsOutputStream& s,
const nsFileSpec& spec); // THIS IS FOR DEBUGGING ONLY.
// see PersistentFileDescriptor for the real deal.
#endif
//--------------------------------------------------
// Queries and path algebra. These do not modify the disk.
@@ -218,7 +246,7 @@ class NS_BASE nsNativeFileSpec
// inLeafName can be a relative path, so this allows
// one kind of concatenation of "paths".
void GetParent(nsNativeFileSpec& outSpec) const;
void GetParent(nsFileSpec& outSpec) const;
// Return the filespec of the parent directory. Used
// in conjunction with GetLeafName(), this lets you
// parse a path into a list of node names. Beware,
@@ -226,7 +254,7 @@ class NS_BASE nsNativeFileSpec
// but a spec. Volumes on Macintosh can have identical
// names. Perhaps could be used for an operator --() ?
nsNativeFileSpec operator + (const char* inRelativePath) const;
nsFileSpec operator + (const char* inRelativePath) const;
void operator += (const char* inRelativePath);
// Concatenate the relative path to this directory.
// Used for constructing the filespec of a descendant.
@@ -240,19 +268,24 @@ class NS_BASE nsNativeFileSpec
void MakeUnique();
void MakeUnique(const char* inSuggestedLeafName);
bool IsDirectory() const;
PRBool IsDirectory() const;
// More stringent than Exists()
bool IsFile() const;
PRBool IsFile() const;
// More stringent than Exists()
bool Exists() const;
PRBool Exists() const;
//--------------------------------------------------
// Creation and deletion of objects. These can modify the disk.
//--------------------------------------------------
void CreateDirectory(int mode = 0700 /* for unix */);
void Delete(bool inRecursive);
void Delete(PRBool inRecursive);
nsresult Rename(const char* inNewName); // not const: gets updated
nsresult Copy(const nsFileSpec& inNewParentDirectory) const;
nsresult Move(const nsFileSpec& inNewParentDirectory) const;
nsresult Execute(const char* args) const;
//--------------------------------------------------
// Data
//--------------------------------------------------
@@ -261,11 +294,15 @@ class NS_BASE nsNativeFileSpec
friend class nsFilePath;
#ifdef XP_MAC
FSSpec mSpec;
OSErr mError;
#else
char* mPath;
#endif
}; // class nsNativeFileSpec
nsresult mError;
}; // class nsFileSpec
// FOR HISTORICAL REASONS:
typedef nsFileSpec nsNativeFileSpec;
//========================================================================================
class NS_BASE nsFileURL
@@ -276,9 +313,9 @@ class NS_BASE nsFileURL
{
public:
nsFileURL(const nsFileURL& inURL);
explicit nsFileURL(const char* inString, bool inCreateDirs = false);
explicit nsFileURL(const nsFilePath& inPath);
explicit nsFileURL(const nsNativeFileSpec& inPath);
NS_EXPLICIT nsFileURL(const char* inString, PRBool inCreateDirs = PR_FALSE);
NS_EXPLICIT nsFileURL(const nsFilePath& inPath);
NS_EXPLICIT nsFileURL(const nsFileSpec& inPath);
virtual ~nsFileURL();
// nsString GetString() const { return mPath; }
@@ -288,14 +325,14 @@ class NS_BASE nsFileURL
void operator = (const nsFileURL& inURL);
void operator = (const char* inString);
void operator = (const nsFilePath& inOther);
void operator = (const nsNativeFileSpec& inOther);
void operator = (const nsFileSpec& inOther);
friend NS_BASE nsBasicOutStream& operator << (
nsBasicOutStream& s, const nsFileURL& spec);
friend NS_BASE nsOutputStream& operator << (
nsOutputStream& s, const nsFileURL& spec);
#ifdef XP_MAC
// Accessor to allow quick assignment to a mNativeFileSpec
const nsNativeFileSpec& GetNativeSpec() const { return mNativeFileSpec; }
// Accessor to allow quick assignment to a mFileSpec
const nsFileSpec& GetFileSpec() const { return mFileSpec; }
#endif
private:
// Should not be defined (only nsFilePath is to be treated as strings.
@@ -306,8 +343,8 @@ class NS_BASE nsFileURL
char* mURL;
#ifdef XP_MAC
// Since the path on the macintosh does not uniquely specify a file (volumes
// can have the same name), stash the secret nsNativeFileSpec, too.
nsNativeFileSpec mNativeFileSpec;
// can have the same name), stash the secret nsFileSpec, too.
nsFileSpec mFileSpec;
#endif
}; // class nsFileURL
@@ -319,9 +356,9 @@ class NS_BASE nsFilePath
{
public:
nsFilePath(const nsFilePath& inPath);
explicit nsFilePath(const char* inString, bool inCreateDirs = false);
explicit nsFilePath(const nsFileURL& inURL);
explicit nsFilePath(const nsNativeFileSpec& inPath);
NS_EXPLICIT nsFilePath(const char* inString, PRBool inCreateDirs = PR_FALSE);
NS_EXPLICIT nsFilePath(const nsFileURL& inURL);
NS_EXPLICIT nsFilePath(const nsFileSpec& inPath);
virtual ~nsFilePath();
@@ -337,12 +374,12 @@ class NS_BASE nsFilePath
void operator = (const nsFilePath& inPath);
void operator = (const char* inString);
void operator = (const nsFileURL& inURL);
void operator = (const nsNativeFileSpec& inOther);
void operator = (const nsFileSpec& inOther);
#ifdef XP_MAC
public:
// Accessor to allow quick assignment to a mNativeFileSpec
const nsNativeFileSpec& GetNativeSpec() const { return mNativeFileSpec; }
// Accessor to allow quick assignment to a mFileSpec
const nsFileSpec& GetFileSpec() const { return mFileSpec; }
#endif
private:
@@ -350,26 +387,59 @@ class NS_BASE nsFilePath
char* mPath;
#ifdef XP_MAC
// Since the path on the macintosh does not uniquely specify a file (volumes
// can have the same name), stash the secret nsNativeFileSpec, too.
nsNativeFileSpec mNativeFileSpec;
// can have the same name), stash the secret nsFileSpec, too.
nsFileSpec mFileSpec;
#endif
}; // class nsFilePath
//========================================================================================
class NS_BASE nsPersistentFileDescriptor
//========================================================================================
{
public:
nsPersistentFileDescriptor() : mDescriptorString(nsnull) {}
// For use prior to reading in from a stream
nsPersistentFileDescriptor(const nsPersistentFileDescriptor& inPath);
virtual ~nsPersistentFileDescriptor();
void operator = (const nsPersistentFileDescriptor& inPath);
// Conversions
nsPersistentFileDescriptor(const nsFileSpec& inPath);
void operator = (const nsFileSpec& inPath);
friend NS_BASE nsInputStream& operator >> (nsInputStream&, nsPersistentFileDescriptor&);
// reads the data from a file
friend NS_BASE nsOutputStream& operator << (nsOutputStream&, const nsPersistentFileDescriptor&);
// writes the data to a file
friend class nsFileSpec;
private:
// Here are the ways to get data in and out of a file.
void GetData(void*& outData, PRInt32& outSize) const;
// DON'T FREE the returned data!
void SetData(const void* inData, PRInt32 inSize);
private:
char* mDescriptorString;
}; // class nsPersistentFileDescriptor
//========================================================================================
class NS_BASE nsDirectoryIterator
// Example:
//
// nsNativeFileSpec parentDir(...); // directory over whose children we shall iterate
// nsFileSpec parentDir(...); // directory over whose children we shall iterate
// for (nsDirectoryIterator i(parentDir); i; i++)
// {
// // do something with (const nsNativeFileSpec&)i
// // do something with (const nsFileSpec&)i
// }
//
// or:
//
// for (nsDirectoryIterator i(parentDir, false); i; i--)
// for (nsDirectoryIterator i(parentDir, PR_FALSE); i; i--)
// {
// // do something with (const nsNativeFileSpec&)i
// // do something with (const nsFileSpec&)i
// }
//
// Currently, the only platform on which backwards iteration actually goes backwards
@@ -378,21 +448,21 @@ class NS_BASE nsDirectoryIterator
{
public:
nsDirectoryIterator(
const nsNativeFileSpec& parent,
const nsFileSpec& parent,
int iterateDirection = +1);
#ifndef XP_MAC
// Macintosh currently doesn't allocate, so needn't clean up.
virtual ~nsDirectoryIterator();
#endif
operator bool() const { return mExists; }
PRBool Exists() const { return mExists; }
nsDirectoryIterator& operator ++(); // moves to the next item, if any.
nsDirectoryIterator& operator ++(int) { return ++(*this); } // post-increment.
nsDirectoryIterator& operator --(); // moves to the previous item, if any.
nsDirectoryIterator& operator --(int) { return --(*this); } // post-decrement.
operator nsNativeFileSpec&() { return mCurrent; }
operator nsFileSpec&() { return mCurrent; }
private:
nsNativeFileSpec mCurrent;
bool mExists;
nsFileSpec mCurrent;
bool mExists; // MUST be bool.
#if defined(XP_UNIX)
DIR* mDir;

View File

@@ -19,14 +19,31 @@
// First checked in on 98/11/20 by John R. McMullen in the wrong directory.
// Checked in again 98/12/04.
// Polished version 98/12/08.
// Completely rewritten to integrate with nsIInputStream and nsIOutputStream (the
// xpcom stream objects.
//========================================================================================
//
// Classes defined:
//
// single-byte char:
//
// nsInputStream, nsOutputStream
// These are the lightweight STATICALLY LINKED wrappers for
// the xpcom objects nsIInputStream and nsIOutputstream.
// Possible uses:
// If you are implementing a function that accepts one of these xpcom
// streams, just make one of these little jobbies on the stack, and
// the handy << or >> notation can be yours.
//
// nsInputFileStream, nsOutputFileStream
// These are the STATICALLY LINKED versions of the file i/o streams,
// which wrap the NSPR file i/o plus console i/o.
//
// Related files:
// prio.h the NSPR file i/o C API), which is wrapped by
// THIS FILE statically linked C++ wrappers, which in turn are wrapped by
// nsIFileStream.h COM wrappers for this file, which are wrapped by
// nsAutoFileStream.h more easily used, nicer syntax wrappers for the
// COMified ones. Wrapper of a wrapper of a wrapper.
//
// This suite provide the following services:
//
@@ -41,13 +58,13 @@
//
// Basic example:
//
// nsFilePath myPath("/Development/iotest.txt");
// nsFileSpec myPath("/Development/iotest.txt");
//
// nsOutputFileStream testStream(myPath);
// testStream << "Hello World" << nsEndl;
//
// 4. Requires streams to be constructed using typesafe nsFilePath specifier
// (not the notorious and bug prone const char*), namely nsFilePath. See
// 4. Requires streams to be constructed using typesafe nsFileSpec specifier
// (not the notorious and bug prone const char*), namely nsFileSpec. See
// nsFileSpec.h for more details.
//
// 5. Fixes a bug that have been there for a long time, and
@@ -73,7 +90,13 @@
#else
#include "prio.h"
#endif
#include "nsFileSpec.h"
#include "nsIFileStream.h"
#include "nsCOMPtr.h"
class nsFileSpec;
class nsInputFileStream;
class nsOutputFileStream;
//========================================================================================
// Compiler-specific macros, as needed
@@ -133,200 +156,392 @@ using std::ostream;
//=========================== End Compiler-specific macros ===============================
//========================================================================================
class NS_BASE nsBasicFileStream
class NS_BASE nsInputStream
// This is a convenience class, for use on the STACK ("new" junkies: get detoxed first).
// Given a COM-style stream, this allows you to use the >> operators. It also acquires and
// reference counts its stream.
// Please read the comments at the top of this file
//========================================================================================
{
public:
nsBasicFileStream();
nsBasicFileStream(PRFileDesc* desc, int nsprMode);
nsBasicFileStream(
const nsFilePath& inFile,
int nsprMode,
PRIntn accessMode);
virtual ~nsBasicFileStream();
inline PRBool is_open() const { return mFileDesc != 0; }
void open(
const nsFilePath& inFile,
int nsprMode,
PRIntn accessMode);
void close();
PRIntn tell() const;
void seek(PRInt32 offset) { seek(PR_SEEK_SET, offset); }
void seek(PRSeekWhence whence, PRInt32 offset);
PRBool eof() const { return mEOF; }
PRBool failed() const { return mFailed; }
// call PR_GetError() for details
protected:
PRFileDesc* GetFileDescriptor() const { return mFileDesc; }
protected:
friend class nsBasicInStream;
friend class nsBasicOutStream;
PRFileDesc* mFileDesc;
int mNSPRMode;
PRBool mFailed;
PRBool mEOF;
}; // class nsBasicFileStream
//========================================================================================
class NS_BASE nsBasicInStream
//========================================================================================
{
protected:
nsBasicInStream(nsBasicFileStream& inStream, istream* stream);
public:
nsBasicInStream& operator >> (nsBasicInStream& (*pf)(nsBasicInStream&))
{
return pf(*this);
}
void get(char& c);
PRInt32 read(void* s, PRInt32 n);
PRBool readline(char* s, PRInt32 n);
// Result always null-terminated
// false result indicates line was truncated
// to fit buffer, or an error occurred.
// Input streamers. Add more as needed
nsBasicInStream& operator >> (char& ch);
istream* GetStandardStream() const { return mStdStream; }
protected:
nsBasicFileStream& mBase;
istream* mStdStream;
}; // class nsBasicInStream
//========================================================================================
class NS_BASE nsBasicOutStream
//========================================================================================
{
protected:
nsBasicOutStream(nsBasicFileStream& inStream, ostream* stream);
public:
nsBasicOutStream& operator << (nsBasicOutStream& (*pf)(nsBasicOutStream&))
{
return pf(*this);
}
void put(char c);
PRInt32 write(const void* s, PRInt32 n);
void flush();
// Output streamers. Add more as needed
nsBasicOutStream& operator << (const char* buf);
nsBasicOutStream& operator << (char ch);
nsBasicOutStream& operator << (short val);
nsBasicOutStream& operator << (unsigned short val);
nsBasicOutStream& operator << (long val);
nsBasicOutStream& operator << (unsigned long val);
ostream* GetStandardStream() const { return mStdStream; }
protected:
nsBasicFileStream& mBase;
ostream* mStdStream;
}; // class nsBasicOutStream
//========================================================================================
class NS_BASE nsInputFileStream
//========================================================================================
: public nsBasicFileStream
, public nsBasicInStream
{
public:
enum { kDefaultMode = PR_RDONLY };
nsInputFileStream(istream* stream = CONSOLE_IN);
nsInputFileStream(
const nsFilePath& inFile,
int nsprMode = kDefaultMode,
PRIntn accessMode = 00700) // <- OCTAL
: nsBasicFileStream(inFile, nsprMode, accessMode)
, nsBasicInStream(*this, 0)
nsInputStream(nsIInputStream* inStream)
: mInputStream(do_QueryInterface(inStream))
, mEOF(PR_FALSE)
{}
void open(
const nsFilePath& inFile,
int nsprMode = kDefaultMode,
PRIntn accessMode = 00700) // <- OCTAL
virtual ~nsInputStream();
nsCOMPtr<nsIInputStream> GetIStream() const
{
nsBasicFileStream::open(inFile, nsprMode, accessMode);
return mInputStream;
}
char eof() const { return mEOF; }
char get();
PRInt32 read(void* s, PRInt32 n)
{
if (!mInputStream)
return 0;
PRInt32 result = 0;
mInputStream->Read((char*)s, 0, n, (PRUint32*)&result);
if (result < n)
mEOF = PR_TRUE;
return result;
}
// Input streamers. Add more as needed (int&, unsigned int& etc). (but you have to
// add delegators to the derived classes, too, because these operators don't inherit).
nsInputStream& operator >> (char& ch);
// Support manipulators
nsInputStream& operator >> (nsInputStream& (*pf)(nsInputStream&))
{
return pf(*this);
}
private:
nsInputFileStream& operator >> (char* buf); // TOO DANGEROUS. DON'T DEFINE.
nsInputStream& operator >> (char* buf); // TOO DANGEROUS. DON'T DEFINE.
// DATA
protected:
nsCOMPtr<nsIInputStream> mInputStream;
PRBool mEOF;
}; // class nsInputStream
typedef nsInputStream nsBasicInStream; // historic support for this name
//========================================================================================
class NS_BASE nsOutputStream
// This is a convenience class, for use on the STACK ("new" junkies, get detoxed first).
// Given a COM-style stream, this allows you to use the << operators. It also acquires and
// reference counts its stream.
// Please read the comments at the top of this file
//========================================================================================
{
public:
nsOutputStream() {}
nsOutputStream(nsIOutputStream* inStream)
: mOutputStream(do_QueryInterface(inStream))
{}
virtual ~nsOutputStream();
nsCOMPtr<nsIOutputStream> GetIStream() const
{
return mOutputStream;
}
void put(char c);
PRInt32 write(const void* s, PRInt32 n)
{
if (!mOutputStream)
return 0;
PRInt32 result = 0;
mOutputStream->Write((char*)s, 0, n, (PRUint32*)&result);
return result;
}
virtual void flush();
// Output streamers. Add more as needed (but you have to add delegators to the derived
// classes, too, because these operators don't inherit).
nsOutputStream& operator << (const char* buf);
nsOutputStream& operator << (char ch);
nsOutputStream& operator << (short val);
nsOutputStream& operator << (unsigned short val);
nsOutputStream& operator << (long val);
nsOutputStream& operator << (unsigned long val);
// Support manipulators
nsOutputStream& operator << (nsOutputStream& (*pf)(nsOutputStream&))
{
return pf(*this);
}
// DATA
protected:
nsCOMPtr<nsIOutputStream> mOutputStream;
}; // class nsOutputStream
typedef nsOutputStream nsBasicOutStream; // Historic support for this name
//========================================================================================
class NS_BASE nsFileClient
// Because COM does not allow us to write functions which return a boolean value etc,
// this class is here to take care of the tedious "declare variable then call with
// the address of the variable" chores.
//========================================================================================
{
public:
nsFileClient() // for delayed opening
: mResult(NS_OK)
{
}
nsFileClient(const nsCOMPtr<nsIFile>& inFile)
: mFile(do_QueryInterface(inFile))
, mResult(NS_OK)
{
}
PRBool is_file() const
{
return mFile ? PR_TRUE : PR_FALSE;
}
void open(
const nsFileSpec& inFile,
int nsprMode,
PRIntn accessMode)
{
if (mFile)
mResult = mFile->Open(inFile, nsprMode, accessMode);
}
PRBool is_open() const
{
PRBool result = PR_FALSE;
if (mFile)
mFile->GetIsOpen(&result);
return result;
}
PRBool failed() const
{
return NS_FAILED(mResult);
}
void seek(PRInt32 offset)
{
seek(PR_SEEK_SET, offset);
}
void seek(PRSeekWhence whence, PRInt32 offset)
{
if (mFile)
mResult = mFile->Seek(whence, offset);
}
PRIntn tell()
{
PRIntn result = -1;
if (mFile)
mResult = mFile->Tell(&result);
return result;
}
// DATA
protected:
nsCOMPtr<nsIFile> mFile;
PRBool mResult;
}; // class nsFileClient
//========================================================================================
class NS_BASE nsInputFileStream
// Please read the comments at the top of this file
//========================================================================================
: public nsInputStream
, public nsFileClient
{
public:
enum { kDefaultMode = PR_RDONLY };
nsInputFileStream(nsIInputStream* inStream)
: nsInputStream(inStream)
, nsFileClient(do_QueryInterface(inStream))
, mFileInputStream(do_QueryInterface(inStream))
{
}
nsInputFileStream(
const nsFileSpec& inFile,
int nsprMode = kDefaultMode,
PRIntn accessMode = 00700) // <- OCTAL
: nsInputStream(nsnull)
{
nsISupports* stream;
NS_NewIOFileStream(
&stream,
inFile, nsprMode, accessMode);
mFile = nsQueryInterface(stream);
mInputStream = nsQueryInterface(stream);
mFileInputStream = nsQueryInterface(stream);
}
PRBool readline(char* s, PRInt32 n);
// Result always null-terminated.
// Check eof() before each call.
// CAUTION: false result only indicates line was truncated
// to fit buffer, or an error occurred (OTHER THAN eof).
void Open(
const nsFileSpec& inFile,
int nsprMode = kDefaultMode,
PRIntn accessMode = 00700) // <- OCTAL
{
if (mFile)
mFile->Open(inFile, nsprMode, accessMode);
}
// Input streamers. Unfortunately, they don't inherit!
nsInputStream& operator >> (char& ch)
{ return nsInputStream::operator >>(ch); }
nsInputStream& operator >> (nsInputStream& (*pf)(nsInputStream&))
{ return nsInputStream::operator >>(pf); }
// DATA
protected:
nsCOMPtr<nsIFileInputStream> mFileInputStream;
}; // class nsInputFileStream
//========================================================================================
class NS_BASE nsOutputFileStream
// Please read the comments at the top of this file
//========================================================================================
: public nsBasicFileStream
, public nsBasicOutStream
: public nsOutputStream
, public nsFileClient
{
public:
enum { kDefaultMode = (PR_WRONLY | PR_CREATE_FILE | PR_TRUNCATE) };
nsOutputFileStream(ostream* stream = CONSOLE_OUT);
nsOutputFileStream() {}
nsOutputFileStream(nsIOutputStream* inStream)
: nsOutputStream(inStream)
, nsFileClient(do_QueryInterface(inStream))
, mFileOutputStream(do_QueryInterface(inStream))
{
}
nsOutputFileStream(
const nsFilePath& inFile,
const nsFileSpec& inFile,
int nsprMode = kDefaultMode,
PRIntn accessMode = 00700) // <- OCTAL
: nsBasicFileStream(inFile, nsprMode, accessMode)
, nsBasicOutStream(*this, 0)
{}
inline void open(
const nsFilePath& inFile,
int nsprMode = kDefaultMode,
PRIntn accessMode = 00700) // <- OCTAL
: nsOutputStream(nsnull)
{
nsBasicFileStream::open(inFile, nsprMode, accessMode);
nsISupports* stream;
if (NS_FAILED(NS_NewIOFileStream(
&stream,
inFile, nsprMode, accessMode)))
return;
mFile = nsQueryInterface(stream);
mOutputStream = nsQueryInterface(stream);
mFileOutputStream = nsQueryInterface(stream);
}
virtual void flush();
// Output streamers. Unfortunately, they don't inherit!
nsOutputStream& operator << (const char* buf)
{ return nsOutputStream::operator << (buf); }
nsOutputStream& operator << (char ch)
{ return nsOutputStream::operator << (ch); }
nsOutputStream& operator << (short val)
{ return nsOutputStream::operator << (val); }
nsOutputStream& operator << (unsigned short val)
{ return nsOutputStream::operator << (val); }
nsOutputStream& operator << (long val)
{ return nsOutputStream::operator << (val); }
nsOutputStream& operator << (unsigned long val)
{ return nsOutputStream::operator << (val); }
nsOutputStream& operator << (nsOutputStream& (*pf)(nsOutputStream&))
{ return nsOutputStream::operator << (pf); }
// DATA
protected:
nsCOMPtr<nsIFileOutputStream> mFileOutputStream;
}; // class nsOutputFileStream
//========================================================================================
class NS_BASE nsIOFileStream
class NS_BASE nsOutputConsoleStream
// Please read the comments at the top of this file
//========================================================================================
: public nsBasicFileStream
, public nsBasicOutStream
, public nsBasicInStream
: public nsOutputFileStream
{
public:
nsOutputConsoleStream()
{
nsISupports* stream;
if (NS_FAILED(NS_NewOutputConsoleStream(&stream)))
return;
mFile = nsQueryInterface(stream);
mOutputStream = nsQueryInterface(stream);
mFileOutputStream = nsQueryInterface(stream);
}
// Output streamers. Unfortunately, they don't inherit!
nsOutputStream& operator << (const char* buf)
{ return nsOutputStream::operator << (buf); }
nsOutputStream& operator << (char ch)
{ return nsOutputStream::operator << (ch); }
nsOutputStream& operator << (short val)
{ return nsOutputStream::operator << (val); }
nsOutputStream& operator << (unsigned short val)
{ return nsOutputStream::operator << (val); }
nsOutputStream& operator << (long val)
{ return nsOutputStream::operator << (val); }
nsOutputStream& operator << (unsigned long val)
{ return nsOutputStream::operator << (val); }
nsOutputStream& operator << (nsOutputStream& (*pf)(nsOutputStream&))
{ return nsOutputStream::operator << (pf); }
}; // class nsOutputConsoleStream
//========================================================================================
class NS_BASE nsIOFileStream
// Please read the comments at the top of this file
//========================================================================================
: public nsInputFileStream
, public nsOutputStream
{
public:
enum { kDefaultMode = (PR_RDWR | PR_CREATE_FILE) };
nsIOFileStream(
const nsFilePath& inFile,
nsIInputStream* inInputStream
, nsIOutputStream* inOutputStream)
: nsInputFileStream(inInputStream)
, nsOutputStream(inOutputStream)
, mFileOutputStream(do_QueryInterface(inOutputStream))
{
}
nsIOFileStream(
const nsFileSpec& inFile,
int nsprMode = kDefaultMode,
PRIntn accessMode = 00700) // <- OCTAL
: nsBasicFileStream(inFile, nsprMode, accessMode)
, nsBasicInStream(*this, 0)
, nsBasicOutStream(*this, 0)
{}
inline void open(
const nsFilePath& inFile,
int nsprMode = kDefaultMode,
PRIntn accessMode = 00700) // <- OCTAL
: nsInputFileStream(nsnull)
, nsOutputStream(nsnull)
{
nsBasicFileStream::open(inFile, nsprMode, accessMode);
nsISupports* stream;
if (NS_FAILED(NS_NewIOFileStream(
&stream,
inFile, nsprMode, accessMode)))
return;
mFile = nsQueryInterface(stream);
mInputStream = nsQueryInterface(stream);
mOutputStream = nsQueryInterface(stream);
mFileInputStream = nsQueryInterface(stream);
mFileOutputStream = nsQueryInterface(stream);
}
}; // class nsIOFileStream
// Output streamers. Unfortunately, they don't inherit!
nsOutputStream& operator << (const char* buf)
{ return nsOutputStream::operator << (buf); }
nsOutputStream& operator << (char ch)
{ return nsOutputStream::operator << (ch); }
nsOutputStream& operator << (short val)
{ return nsOutputStream::operator << (val); }
nsOutputStream& operator << (unsigned short val)
{ return nsOutputStream::operator << (val); }
nsOutputStream& operator << (long val)
{ return nsOutputStream::operator << (val); }
nsOutputStream& operator << (unsigned long val)
{ return nsOutputStream::operator << (val); }
nsOutputStream& operator << (nsOutputStream& (*pf)(nsOutputStream&))
{ return nsOutputStream::operator << (pf); }
// Input streamers. Unfortunately, they don't inherit!
nsInputStream& operator >> (char& ch)
{ return nsInputStream::operator >>(ch); }
nsInputStream& operator >> (nsInputStream& (*pf)(nsInputStream&))
{ return nsInputStream::operator >>(pf); }
// DATA
protected:
nsCOMPtr<nsIFileOutputStream> mFileOutputStream;
}; // class nsIOFileStream
//========================================================================================
// Manipulators
//========================================================================================
NS_BASE nsBasicOutStream& nsEndl(nsBasicOutStream& os);
NS_BASE nsOutputStream& nsEndl(nsOutputStream& os); // outputs and FLUSHES.
#endif /* _FILESTREAM_H_ */

View File

@@ -0,0 +1,127 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsIFileStream_h___
#define nsIFileStream_h___
#include "nsIInputStream.h"
#include "nsIOutputStream.h"
#include "prio.h"
class nsFileSpec;
/* a6cf90e8-15b3-11d2-932e-00805f8add32 */
#define NS_IFILE_IID \
{ 0xa6cf90e8, 0x15b3, 0x11d2, \
{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32} }
//========================================================================================
class nsIFile
// Represents a file, and supports Open, Tell etc.
//========================================================================================
: public nsISupports
{
public:
static const nsIID& IID() { static nsIID iid = NS_IFILE_IID; return iid; }
NS_IMETHOD Open(
const nsFileSpec& inFile,
int nsprMode,
PRIntn accessMode) = 0;
// Note: Open() is only needed after
// an explicit Close(). All file streams
// are automatically opened on construction.
NS_IMETHOD Seek(PRSeekWhence whence, PRInt32 offset) = 0;
NS_IMETHOD GetIsOpen(PRBool* outOpen) = 0;
NS_IMETHOD Tell(PRIntn* outWhere) = 0;
}; // class nsIFile
/* a6cf90e6-15b3-11d2-932e-00805f8add32 */
#define NS_IFILEINPUTSTREAM_IID \
{ 0xa6cf90e6, 0x15b3, 0x11d2, \
{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32} }
//========================================================================================
class nsIFileInputStream
// These are additional file-specific methods that files have, above what
// nsIInputStream supports. The current implementation supports both
// interfaces.
//========================================================================================
: public nsISupports
{
public:
static const nsIID& IID() { static nsIID iid = NS_IFILEINPUTSTREAM_IID; return iid; }
}; // class nsIFileInputStream
/* a6cf90e7-15b3-11d2-932e-00805f8add32 */
#define NS_IFILEOUTPUTSTREAM_IID \
{ 0xa6cf90e7, 0x15b3, 0x11d2, \
{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32} }
//========================================================================================
class nsIFileOutputStream
// These are additional file-specific methods that files have, above what
// nsIOutputStream supports. The current implementation supports both
// interfaces.
//========================================================================================
: public nsISupports
{
public:
static const nsIID& IID() { static nsIID iid = NS_IFILEOUTPUTSTREAM_IID; return iid; }
NS_IMETHOD Flush() = 0;
// Forces a write to disk.
}; // class nsIFileOutputStream
//----------------------------------------------------------------------------------------
NS_BASE nsresult NS_NewTypicalInputFileStream(
nsISupports** aStreamResult,
const nsFileSpec& inFile
/*Default nsprMode == PR_RDONLY*/
/*Default accessmode = 0700 (octal)*/);
// Factory method to get an nsInputStream from a file, using most common options
//----------------------------------------------------------------------------------------
extern "C" NS_BASE nsresult NS_NewOutputConsoleStream(
nsISupports** aStreamResult);
// Factory method to get an nsOutputStream to the console.
//----------------------------------------------------------------------------------------
extern "C" NS_BASE nsresult NS_NewTypicalOutputFileStream(
nsISupports** aStreamResult, // will implement all the above interfaces
const nsFileSpec& inFile
/*default nsprMode= (PR_WRONLY | PR_CREATE_FILE | PR_TRUNCATE)*/
/*Default accessMode= 0700 (octal)*/);
// Factory method to get an nsOutputStream to a file - most common case.
//----------------------------------------------------------------------------------------
extern "C" NS_BASE nsresult NS_NewTypicalIOFileStream(
nsISupports** aStreamResult, // will implement all the above interfaces
const nsFileSpec& inFile
/*default nsprMode = (PR_RDWR | PR_CREATE_FILE)*/
/*Default accessMode = 0700 (octal)*/);
// Factory method to get an object that implements both nsIInputStream
// and nsIOutputStream, associated with a single file.
//----------------------------------------------------------------------------------------
extern "C" NS_BASE nsresult NS_NewIOFileStream(
nsISupports** aStreamResult, // will implement all the above interfaces
const nsFileSpec& inFile,
PRInt32 nsprMode,
PRInt32 accessMode);
// Factory method to get an object that implements both nsIInputStream
// and nsIOutputStream, associated with a single file.
#endif /* nsIFileStream_h___ */

View File

@@ -19,9 +19,11 @@
#ifndef nsRepeater_h___
#define nsRepeater_h___
#include "nscore.h"
class EventRecord;
class Repeater {
class NS_BASE Repeater {
public:
Repeater();

View File

@@ -31,6 +31,7 @@ LIBRARY_NAME = raptorbase
CPPSRCS = \
nsArena.cpp \
nsAtomTable.cpp \
nsBaseDLL.cpp \
nsBTree.cpp \
nsByteBuffer.cpp \
nsCRT.cpp \
@@ -38,6 +39,8 @@ CPPSRCS = \
nsEscape.cpp \
nsFileSpec.cpp \
nsFileStream.cpp \
nsIFileStream.cpp \
nsProperties.cpp \
nsRBTree.cpp \
nsSizeOfHandler.cpp \
nsString.cpp \

View File

@@ -16,18 +16,25 @@
* Reserved.
*/
#ifndef _nsMotifMenu_h_
#define _nsMotifMenu_h_
#include <Xm/Xm.h>
#include "nscore.h"
typedef void (*MenuCallbackProc)(
PRUint32
);
void CreateViewerMenus(Widget aParent, MenuCallbackProc aCallback);
#include "nsCaretProperties.h"
#endif // _nsMotifMenu_h_
//-----------------------------------------------------------------------------
nsCaretProperties::nsCaretProperties()
: mCaretWidth(eDefaultCaretWidth)
, mBlinkRate(eDefaulBlinkRate)
{
// in your platform-specific class, get data from the OS in your constructor
mBlinkRate = 0; // don't blink the caret
}
//-----------------------------------------------------------------------------
nsCaretProperties* NewCaretProperties()
{
return new nsCaretProperties();
}

View File

@@ -15,37 +15,29 @@
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef Label_h__
#define Label_h__
#include "nsTextWidget.h"
#include "nsILabel.h"
#include <Events.h>
#include "nscore.h"
#include "nsCaretProperties.h"
//-------------------------------------------------------------------------
//
// nsLabel
//
//-------------------------------------------------------------------------
class nsLabel : public nsTextWidget, public nsILabel
//-----------------------------------------------------------------------------
nsCaretProperties::nsCaretProperties()
: mCaretWidth(eDefaultCaretWidth)
, mBlinkRate(eDefaulBlinkRate)
{
public:
nsLabel();
virtual ~nsLabel();
// nsISupports
NS_IMETHOD_(nsrefcnt) AddRef();
NS_IMETHOD_(nsrefcnt) Release();
NS_IMETHOD QueryInterface(const nsIID& aIID, void** aInstancePtr);
// nsILabel part
NS_IMETHOD SetLabel(const nsString& aText);
NS_IMETHOD GetLabel(nsString& aBuffer);
NS_IMETHOD SetAlignment(nsLabelAlignment aAlignment);
};
// in your platform-specific class, get data from the OS in your constructor
// MacOS calls
mBlinkRate = ::GetCaretTime() * 1000 / 60;
}
#endif // Label_h__
//-----------------------------------------------------------------------------
nsCaretProperties* NewCaretProperties()
{
return new nsCaretProperties();
}

View File

@@ -28,6 +28,7 @@
#include <Folders.h>
#include <Errors.h>
#include <TextUtils.h>
#include <Processes.h>
const unsigned char* kAliasHavenFolderName = "\pnsAliasHaven";
@@ -74,7 +75,7 @@ namespace MacFileHelpers
// to support attaching of aliases in mail.
void EnsureAliasHaven();
void SetNoResolve(Boolean inResolve);
bool IsAliasSafe(const FSSpec& inSpec);
PRBool IsAliasSafe(const FSSpec& inSpec);
OSErr MakeAliasSafe(FSSpec& inOutSpec);
OSErr ResolveAliasFile(FSSpec& inOutSpec, Boolean& wasAliased);
@@ -131,8 +132,8 @@ char* MacFileHelpers::EncodeMacPath(
// Method: Swap ':' and '/', hex escape the result
//-----------------------------------
{
if (inPath == NULL)
return NULL;
if (inPath == nsnull)
return nsnull;
int pathSize = strlen(inPath);
// XP code sometimes chokes if there's a final slash in the unix path.
@@ -145,8 +146,8 @@ char* MacFileHelpers::EncodeMacPath(
pathSize--;
}
char * newPath = NULL;
char * finalPath = NULL;
char * newPath = nsnull;
char * finalPath = nsnull;
if (prependSlash)
{
@@ -188,10 +189,10 @@ OSErr MacFileHelpers::MakeAliasSafe(FSSpec& inOutSpec)
//----------------------------------------------------------------------------------------
{
EnsureAliasHaven();
nsNativeFileSpec dstDirSpec(sAliasHavenVRefNum, sAliasHavenDirID, "\p");
nsFileSpec dstDirSpec(sAliasHavenVRefNum, sAliasHavenDirID, "\p");
// Make sure its name is unique
nsNativeFileSpec havenSpec(sAliasHavenVRefNum, sAliasHavenDirID, "\pG'day");
nsFileSpec havenSpec(sAliasHavenVRefNum, sAliasHavenDirID, "\pG'day");
if (havenSpec.Valid())
havenSpec.MakeUnique(inOutSpec.name);
// Copy the file into the haven directory
@@ -221,9 +222,9 @@ char* MacFileHelpers::MacPathFromUnixPath(const char* unixPath)
{
char* dst = result;
const char* src = unixPath;
if (*src == '/') // ¥ full path
if (*src == '/') // * full path
src++;
else if (strchr(src, '/')) // ¥ partial path, and not just a leaf name
else if (strchr(src, '/')) // * partial path, and not just a leaf name
*dst++ = ':';
strcpy(dst, src);
nsUnescape(dst); // Hex Decode
@@ -346,7 +347,7 @@ void MacFileHelpers::EnsureAliasHaven()
} // MacFileHelpers::EnsureAliasHaven
//----------------------------------------------------------------------------------------
bool MacFileHelpers::IsAliasSafe(const FSSpec& inSpec)
PRBool MacFileHelpers::IsAliasSafe(const FSSpec& inSpec)
// Returns true if the alias is in the alias haven directory, or if alias resolution
// has been turned off.
//----------------------------------------------------------------------------------------
@@ -379,7 +380,7 @@ OSErr MacFileHelpers::FSSpecFromFullUnixPath(
// then it is combined with inOutSpec's vRefNum and parID to form a new spec.
//-----------------------------------
{
if (unixPath == NULL)
if (unixPath == nsnull)
return badFidErr;
char* macPath = MacPathFromUnixPath(unixPath);
if (!macPath)
@@ -413,7 +414,7 @@ char* MacFileHelpers::PathNameFromFSSpec( const FSSpec& inSpec, Boolean wantLeaf
OSErr err = noErr;
short fullPathLength = 0;
Handle fullPath = NULL;
Handle fullPath = nsnull;
FSSpec tempSpec = inSpec;
if ( tempSpec.parID == fsRtParID )
@@ -471,7 +472,7 @@ char* MacFileHelpers::PathNameFromFSSpec( const FSSpec& inSpec, Boolean wantLeaf
tempSpec.name[tempSpec.name[0]] = ':';
/* Add directory name to beginning of fullPath */
(void) Munger(fullPath, 0, NULL, 0, &tempSpec.name[1], tempSpec.name[0]);
(void) Munger(fullPath, 0, nsnull, 0, &tempSpec.name[1], tempSpec.name[0]);
err = MemError();
}
} while ( err == noErr && pb.dirInfo.ioDrDirID != fsRtDirID );
@@ -500,19 +501,19 @@ Clean:
} // MacFileHelpers::PathNameFromFSSpec
//========================================================================================
// Macintosh nsNativeFileSpec implementation
// Macintosh nsFileSpec implementation
//========================================================================================
//----------------------------------------------------------------------------------------
nsNativeFileSpec::nsNativeFileSpec()
nsFileSpec::nsFileSpec()
//----------------------------------------------------------------------------------------
: mError(noErr)
: mError(NS_OK)
{
mSpec.name[0] = '\0';
}
//----------------------------------------------------------------------------------------
nsNativeFileSpec::nsNativeFileSpec(const nsNativeFileSpec& inSpec)
nsFileSpec::nsFileSpec(const nsFileSpec& inSpec)
//----------------------------------------------------------------------------------------
: mSpec(inSpec.mSpec)
, mError(inSpec.Error())
@@ -520,87 +521,90 @@ nsNativeFileSpec::nsNativeFileSpec(const nsNativeFileSpec& inSpec)
}
//----------------------------------------------------------------------------------------
nsNativeFileSpec::nsNativeFileSpec(const char* inString, bool inCreateDirs)
nsFileSpec::nsFileSpec(const char* inString, PRBool inCreateDirs)
//----------------------------------------------------------------------------------------
{
mError = MacFileHelpers::FSSpecFromFullUnixPath(
inString, mSpec, true, true, inCreateDirs);
mError = NS_FILE_RESULT(MacFileHelpers::FSSpecFromFullUnixPath(
inString, mSpec, false, true, inCreateDirs));
// allow a partial path, create as necessary
if (mError == fnfErr)
mError = noErr;
} // nsNativeFileSpec::nsNativeFileSpec
if (mError == NS_FILE_RESULT(fnfErr))
mError = NS_OK;
} // nsFileSpec::nsFileSpec
//----------------------------------------------------------------------------------------
nsNativeFileSpec::nsNativeFileSpec(
nsFileSpec::nsFileSpec(
short vRefNum,
long parID,
ConstStr255Param name)
//----------------------------------------------------------------------------------------
{
mError = ::FSMakeFSSpec(vRefNum, parID, name, &mSpec);
if (mError == fnfErr)
mError = NS_FILE_RESULT(::FSMakeFSSpec(vRefNum, parID, name, &mSpec));
if (mError == NS_FILE_RESULT(fnfErr))
mError = noErr;
}
//----------------------------------------------------------------------------------------
nsNativeFileSpec::nsNativeFileSpec(const nsFilePath& inPath)
nsFileSpec::nsFileSpec(const nsFilePath& inPath)
//----------------------------------------------------------------------------------------
{
*this = inPath.GetNativeSpec();
*this = inPath.GetFileSpec();
}
#if DEBUG
//----------------------------------------------------------------------------------------
nsBasicOutStream& operator << (nsBasicOutStream& s, const nsNativeFileSpec& spec)
nsOutputStream& operator << (nsOutputStream& s, const nsFileSpec& spec)
//----------------------------------------------------------------------------------------
{
s << spec.mSpec.vRefNum << ", " << spec.mSpec.parID << ", \"";
s.write((const char*)&spec.mSpec.name[1], spec.mSpec.name[0]);
return s << "\"";
} // nsOutputFileStream& operator << (nsOutputFileStream&, const nsNativeFileSpec&)
} // nsOutputStream& operator << (nsOutputStream&, const nsFileSpec&)
#endif
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::operator = (const char* inString)
void nsFileSpec::operator = (const char* inString)
//----------------------------------------------------------------------------------------
{
mError = MacFileHelpers::FSSpecFromFullUnixPath(inString, mSpec, true);
} // nsNativeFileSpec::operator =
mError = NS_FILE_RESULT(MacFileHelpers::FSSpecFromFullUnixPath(inString, mSpec, false));
} // nsFileSpec::operator =
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::operator = (const nsNativeFileSpec& inSpec)
void nsFileSpec::operator = (const nsFileSpec& inSpec)
//----------------------------------------------------------------------------------------
{
mSpec = inSpec.mSpec;
mError = inSpec.Error();
} // nsNativeFileSpec::operator =
} // nsFileSpec::operator =
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::operator = (const nsFilePath& inPath)
void nsFileSpec::operator = (const nsFilePath& inPath)
//----------------------------------------------------------------------------------------
{
*this = inPath.GetNativeSpec();
} // nsNativeFileSpec::operator =
*this = inPath.GetFileSpec();
} // nsFileSpec::operator =
//----------------------------------------------------------------------------------------
bool nsNativeFileSpec::Exists() const
PRBool nsFileSpec::Exists() const
//----------------------------------------------------------------------------------------
{
FSSpec temp;
return ::FSMakeFSSpec(mSpec.vRefNum, mSpec.parID, mSpec.name, &temp) == noErr;
} // nsNativeFileSpec::operator =
} // nsFileSpec::operator =
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::SetLeafName(const char* inLeafName)
void nsFileSpec::SetLeafName(const char* inLeafName)
// In leaf name can actually be a partial path...
//----------------------------------------------------------------------------------------
{
// what about long relative paths? Hmm?
Str255 partialPath;
MacFileHelpers::PLstrcpy(partialPath, inLeafName);
mError = FSMakeFSSpec(mSpec.vRefNum, mSpec.parID, partialPath, &mSpec);
} // nsNativeFileSpec::SetLeafName
mError = NS_FILE_RESULT(
::FSMakeFSSpec(mSpec.vRefNum, mSpec.parID, partialPath, &mSpec));
} // nsFileSpec::SetLeafName
//----------------------------------------------------------------------------------------
char* nsNativeFileSpec::GetLeafName() const
char* nsFileSpec::GetLeafName() const
// Result needs to be delete[]ed.
//----------------------------------------------------------------------------------------
{
@@ -608,131 +612,206 @@ char* nsNativeFileSpec::GetLeafName() const
memcpy(leaf, &mSpec.name[1], mSpec.name[0]);
leaf[mSpec.name[0]] = '\0';
return nsFileSpecHelpers::StringDup(leaf);
} // nsNativeFileSpec::GetLeafName
} // nsFileSpec::GetLeafName
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::MakeAliasSafe()
void nsFileSpec::MakeAliasSafe()
//----------------------------------------------------------------------------------------
{
mError = MacFileHelpers::MakeAliasSafe(mSpec);
} // nsNativeFileSpec::MakeAliasSafe
mError = NS_FILE_RESULT(MacFileHelpers::MakeAliasSafe(mSpec));
} // nsFileSpec::MakeAliasSafe
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::MakeUnique(ConstStr255Param inSuggestedLeafName)
void nsFileSpec::MakeUnique(ConstStr255Param inSuggestedLeafName)
//----------------------------------------------------------------------------------------
{
if (inSuggestedLeafName[0] > 0)
MacFileHelpers::PLstrcpy(mSpec.name, inSuggestedLeafName);
MakeUnique();
} // nsNativeFileSpec::MakeUnique
} // nsFileSpec::MakeUnique
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::ResolveAlias(bool& wasAliased)
void nsFileSpec::ResolveAlias(PRBool& wasAliased)
//----------------------------------------------------------------------------------------
{
Boolean wasAliased2;
mError = MacFileHelpers::ResolveAliasFile(mSpec, wasAliased2);
mError = NS_FILE_RESULT(MacFileHelpers::ResolveAliasFile(mSpec, wasAliased2));
wasAliased = (wasAliased2 != false);
} // nsNativeFileSpec::ResolveAlias
} // nsFileSpec::ResolveAlias
//----------------------------------------------------------------------------------------
bool nsNativeFileSpec::IsFile() const
PRBool nsFileSpec::IsFile() const
//----------------------------------------------------------------------------------------
{
long dirID;
Boolean isDirectory;
return (noErr == FSpGetDirectoryID(&mSpec, &dirID, &isDirectory) && !isDirectory);
} // nsNativeFileSpec::IsFile
} // nsFileSpec::IsFile
//----------------------------------------------------------------------------------------
bool nsNativeFileSpec::IsDirectory() const
PRBool nsFileSpec::IsDirectory() const
//----------------------------------------------------------------------------------------
{
long dirID;
Boolean isDirectory;
return (noErr == FSpGetDirectoryID(&mSpec, &dirID, &isDirectory) && isDirectory);
} // nsNativeFileSpec::IsDirectory
} // nsFileSpec::IsDirectory
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::GetParent(nsNativeFileSpec& outSpec) const
void nsFileSpec::GetParent(nsFileSpec& outSpec) const
//----------------------------------------------------------------------------------------
{
if (mError == noErr)
outSpec.mError = FSMakeFSSpec(mSpec.vRefNum, mSpec.parID, NULL, outSpec);
} // nsNativeFileSpec::GetParent
if (NS_SUCCEEDED(mError))
outSpec.mError
= NS_FILE_RESULT(::FSMakeFSSpec(mSpec.vRefNum, mSpec.parID, nsnull, outSpec));
} // nsFileSpec::GetParent
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::operator += (const char* inRelativePath)
void nsFileSpec::operator += (const char* inRelativePath)
//----------------------------------------------------------------------------------------
{
long dirID;
Boolean isDirectory;
mError = FSpGetDirectoryID(&mSpec, &dirID, &isDirectory);
if (mError == noErr && isDirectory)
mError = NS_FILE_RESULT(::FSpGetDirectoryID(&mSpec, &dirID, &isDirectory));
if (NS_SUCCEEDED(mError) && isDirectory)
{
mError = FSMakeFSSpec(mSpec.vRefNum, dirID, "\pG'day", *this);
if (mError == noErr)
SetLeafName(inRelativePath);
Str255 partialPath;
MacFileHelpers::PLstrcpy(partialPath, inRelativePath);
mError = NS_FILE_RESULT(::FSMakeFSSpec(mSpec.vRefNum, dirID, partialPath, *this));
//if (NS_SUCCEEDED(mError))
// SetLeafName(inRelativePath);
}
} // nsNativeFileSpec::operator +=
} // nsFileSpec::operator +=
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::CreateDirectory(int /* unix mode */)
void nsFileSpec::CreateDirectory(int /* unix mode */)
//----------------------------------------------------------------------------------------
{
long ignoredDirID;
FSpDirCreate(&mSpec, smCurrentScript, &ignoredDirID);
} // nsNativeFileSpec::CreateDirectory
} // nsFileSpec::CreateDirectory
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::Delete(bool inRecursive)
void nsFileSpec::Delete(PRBool inRecursive)
//----------------------------------------------------------------------------------------
{
if (inRecursive)
{
// MoreFilesExtras
mError = DeleteDirectory(
mError = NS_FILE_RESULT(::DeleteDirectory(
mSpec.vRefNum,
mSpec.parID,
const_cast<unsigned char*>(mSpec.name));
const_cast<unsigned char*>(mSpec.name)));
}
else
mError = FSpDelete(&mSpec);
} // nsNativeFileSpec::Delete
mError = NS_FILE_RESULT(FSpDelete(&mSpec));
} // nsFileSpec::Delete
//----------------------------------------------------------------------------------------
nsresult nsFileSpec::Rename(const char* inNewName)
//----------------------------------------------------------------------------------------
{
if (strchr(inNewName, '/'))
return -1; // no relative paths here!
Str255 pName;
MacFileHelpers::PLstrcpy(pName, inNewName);
if (FSpRename(&mSpec, pName) != noErr)
return -1;
SetLeafName(inNewName);
return 0;
} // nsFileSpec::Rename
//----------------------------------------------------------------------------------------
nsresult nsFileSpec::Copy(const nsFileSpec& newParentDir) const
//----------------------------------------------------------------------------------------
{
// We can only copy into a directory, and (for now) can not copy entire directories
if (!newParentDir.IsDirectory() || (IsDirectory() ) )
return NS_FILE_FAILURE;
nsresult result = NS_FILE_RESULT(::FSpFileCopy( &mSpec,
&newParentDir.mSpec,
const_cast<StringPtr>(GetLeafPName()),
nsnull,
0,
true));
return result;
} // nsFileSpec::Copy
//----------------------------------------------------------------------------------------
nsresult nsFileSpec::Move(const nsFileSpec& newParentDir) const
//----------------------------------------------------------------------------------------
{
// We can only move into a directory
if (!newParentDir.IsDirectory())
return NS_FILE_FAILURE;
nsresult result = NS_FILE_RESULT(::FSpMoveRenameCompat(&mSpec,
&newParentDir.mSpec,
const_cast<StringPtr>(GetLeafPName())));
return result;
} // nsFileSpec::Move
//----------------------------------------------------------------------------------------
nsresult nsFileSpec::Execute(const char* /*args - how can this be cross-platform? problem! */ ) const
//----------------------------------------------------------------------------------------
{
if (IsDirectory())
return NS_FILE_FAILURE;
LaunchParamBlockRec launchThis;
launchThis.launchAppSpec = const_cast<FSSpec*>(&mSpec);
launchThis.launchAppParameters = nsnull; // args;
/* launch the thing */
launchThis.launchBlockID = extendedBlock;
launchThis.launchEPBLength = extendedBlockLen;
launchThis.launchFileFlags = nsnull;
launchThis.launchControlFlags = launchContinue + launchNoFileFlags + launchUseMinimum;
launchThis.launchControlFlags += launchDontSwitch;
nsresult result = NS_FILE_RESULT(::LaunchApplication(&launchThis));
return result;
} // nsFileSpec::Execute
//========================================================================================
// Macintosh nsFilePath implementation
//========================================================================================
//----------------------------------------------------------------------------------------
nsFilePath::nsFilePath(const char* inString, bool inCreateDirs)
nsFilePath::nsFilePath(const char* inString, PRBool inCreateDirs)
//----------------------------------------------------------------------------------------
: mPath(nsnull)
, mNativeFileSpec(inString, inCreateDirs)
, mFileSpec(inString, inCreateDirs)
{
// Make canonical and absolute.
char * path = MacFileHelpers::PathNameFromFSSpec( mNativeFileSpec, TRUE );
char * path = MacFileHelpers::PathNameFromFSSpec( mFileSpec, TRUE );
mPath = MacFileHelpers::EncodeMacPath(path, true, true);
}
//----------------------------------------------------------------------------------------
nsFilePath::nsFilePath(const nsNativeFileSpec& inSpec)
nsFilePath::nsFilePath(const nsFileSpec& inSpec)
//----------------------------------------------------------------------------------------
: mNativeFileSpec(inSpec)
: mFileSpec(inSpec)
{
char * path = MacFileHelpers::PathNameFromFSSpec( inSpec.mSpec, TRUE );
mPath = MacFileHelpers::EncodeMacPath(path, true, true);
}
//----------------------------------------------------------------------------------------
void nsFilePath::operator = (const nsNativeFileSpec& inSpec)
void nsFilePath::operator = (const nsFileSpec& inSpec)
//----------------------------------------------------------------------------------------
{
delete [] mPath;
char * path = MacFileHelpers::PathNameFromFSSpec( inSpec.mSpec, TRUE );
mPath = MacFileHelpers::EncodeMacPath(path, true, true);
mNativeFileSpec = inSpec;
mFileSpec = inSpec;
} // nsFilePath::operator =
//========================================================================================
@@ -740,14 +819,14 @@ void nsFilePath::operator = (const nsNativeFileSpec& inSpec)
//========================================================================================
//----------------------------------------------------------------------------------------
nsFileURL::nsFileURL(const char* inString, bool inCreateDirs)
nsFileURL::nsFileURL(const char* inString, PRBool inCreateDirs)
//----------------------------------------------------------------------------------------
: mURL(nsnull)
, mNativeFileSpec(inString + kFileURLPrefixLength, inCreateDirs)
, mFileSpec(inString + kFileURLPrefixLength, inCreateDirs)
{
NS_ASSERTION(strstr(inString, kFileURLPrefix) == inString, "Not a URL!");
// Make canonical and absolute.
char* path = MacFileHelpers::PathNameFromFSSpec( mNativeFileSpec, TRUE );
char* path = MacFileHelpers::PathNameFromFSSpec( mFileSpec, TRUE );
char* escapedPath = MacFileHelpers::EncodeMacPath(path, true, true);
mURL = nsFileSpecHelpers::StringDup(kFileURLPrefix, kFileURLPrefixLength + strlen(escapedPath));
strcat(mURL, escapedPath);
@@ -760,7 +839,7 @@ nsFileURL::nsFileURL(const char* inString, bool inCreateDirs)
//----------------------------------------------------------------------------------------
nsDirectoryIterator::nsDirectoryIterator(
const nsNativeFileSpec& inDirectory
const nsFileSpec& inDirectory
, int inIterateDirection)
//----------------------------------------------------------------------------------------
: mCurrent(inDirectory)
@@ -770,7 +849,7 @@ nsDirectoryIterator::nsDirectoryIterator(
CInfoPBRec pb;
DirInfo* dipb = (DirInfo*)&pb;
// Sorry about this, there seems to be a bug in CWPro 4:
const FSSpec& inSpec = inDirectory.nsNativeFileSpec::operator const FSSpec&();
const FSSpec& inSpec = inDirectory.nsFileSpec::operator const FSSpec&();
Str255 outName;
MacFileHelpers::PLstrcpy(outName, inSpec.name);
pb.hFileInfo.ioNamePtr = outName;
@@ -784,7 +863,7 @@ nsDirectoryIterator::nsDirectoryIterator(
if ( (err != noErr ) || !( dipb->ioFlAttrib & 0x0010 ) )
return;
// Sorry about this, there seems to be a bug in CWPro 4:
FSSpec& currentSpec = mCurrent.nsNativeFileSpec::operator FSSpec&();
FSSpec& currentSpec = mCurrent.nsFileSpec::operator FSSpec&();
currentSpec.vRefNum = inSpec.vRefNum;
currentSpec.parID = dipb->ioDrDirID;
mMaxIndex = pb.dirInfo.ioDrNmFls;
@@ -807,10 +886,10 @@ OSErr nsDirectoryIterator::SetToIndex()
CInfoPBRec cipb;
DirInfo *dipb=(DirInfo *)&cipb;
Str255 objectName;
dipb->ioCompletion = NULL;
dipb->ioCompletion = nsnull;
dipb->ioFDirIndex = mIndex;
// Sorry about this, there seems to be a bug in CWPro 4:
FSSpec& currentSpec = mCurrent.nsNativeFileSpec::operator FSSpec&();
FSSpec& currentSpec = mCurrent.nsFileSpec::operator FSSpec&();
dipb->ioVRefNum = currentSpec.vRefNum; /* Might need to use vRefNum, not sure*/
dipb->ioDrDirID = currentSpec.parID;
dipb->ioNamePtr = objectName;

View File

@@ -39,12 +39,16 @@ class TimerImpl : public nsITimer
// TimerImpl implements nsITimer API
//========================================================================================
{
friend class TimerPeriodical;
private:
nsTimerCallbackFunc mCallbackFunc;
nsITimerCallback * mCallbackObject;
void * mClosure;
PRUint32 mDelay;
PRUint32 mFireTime; // Timer should fire when TickCount >= this number
TimerImpl * mPrev;
TimerImpl * mNext;
public:
@@ -103,10 +107,10 @@ class TimerPeriodical : public Repeater
// TimerPeriodical is a singleton Repeater subclass that fires
// off TimerImpl. The firing is done on idle.
//========================================================================================
{
{
static TimerPeriodical * gPeriodical;
list<TimerImpl*> mTimers;
TimerImpl* mTimers;
public:
// Returns the singleton instance
@@ -140,6 +144,8 @@ TimerImpl::TimerImpl()
, mClosure(nsnull)
, mDelay(0)
, mFireTime(0)
, mPrev(nsnull)
, mNext(nsnull)
#if DEBUG
, mSignature(eGoodTimerSignature)
#endif
@@ -185,7 +191,6 @@ nsresult TimerImpl::Init(nsITimerCallback *aCallback,
void TimerImpl::Cancel()
//----------------------------------------------------------------------------------------
{
TimerPeriodical::GetPeriodical()->RemoveTimer(this);
}
@@ -251,26 +256,70 @@ TimerPeriodical * TimerPeriodical::GetPeriodical()
TimerPeriodical::TimerPeriodical()
{
mTimers = nsnull;
}
TimerPeriodical::~TimerPeriodical()
{
PR_ASSERT(mTimers.size() == 0);
PR_ASSERT(mTimers == 0);
}
nsresult TimerPeriodical::AddTimer( TimerImpl * aTimer)
{
// make sure it's not already there
mTimers.remove(aTimer);
mTimers.push_back(aTimer);
RemoveTimer(aTimer);
// keep list sorted by fire time
if (mTimers)
{
if (aTimer->GetFireTime() < mTimers->GetFireTime())
{
mTimers->mPrev = aTimer;
aTimer->mNext = mTimers;
mTimers = aTimer;
}
else
{
TimerImpl *t = mTimers;
TimerImpl *prevt;
// we know we will enter the while loop at least the first
// time, and thus prevt will be initialized
while (t && (t->GetFireTime() <= aTimer->GetFireTime()))
{
prevt = t;
t = t->mNext;
}
aTimer->mPrev = prevt;
aTimer->mNext = prevt->mNext;
prevt->mNext = aTimer;
if (aTimer->mNext) aTimer->mNext->mPrev = aTimer;
}
}
else mTimers = aTimer;
StartRepeating();
return NS_OK;
}
nsresult TimerPeriodical::RemoveTimer( TimerImpl * aTimer)
{
mTimers.remove(aTimer);
if ( mTimers.size() == 0 )
TimerImpl* t = mTimers;
TimerImpl* next_t = nsnull;
if (t) next_t = t->mNext;
while (t)
{
if (t == aTimer)
{
if (mTimers == t) mTimers = t->mNext;
if (t->mPrev) t->mPrev->mNext = t->mNext;
if (t->mNext) t->mNext->mPrev = t->mPrev;
t->mNext = nsnull;
t->mPrev = nsnull;
}
t = next_t;
if (t) next_t = t->mNext;
}
if ( mTimers == nsnull )
StopRepeating();
return NS_OK;
}
@@ -280,33 +329,23 @@ nsresult TimerPeriodical::RemoveTimer( TimerImpl * aTimer)
// fires off the appropriate ones
void TimerPeriodical::RepeatAction( const EventRecord &inMacEvent)
{
list<TimerImpl*>::iterator iter = mTimers.begin();
list<TimerImpl*> fireList;
while (iter != mTimers.end())
PRBool done = false;
while (!done)
{
TimerImpl* timer = *iter;
NS_ASSERTION(timer->IsGoodTimer(), "Bad timer!");
if (timer->GetFireTime() <= inMacEvent.when)
TimerImpl* t = mTimers;
while (t)
{
mTimers.erase(iter++);
NS_ADDREF(timer);
fireList.push_back(timer);
}
else
NS_ASSERTION(t->IsGoodTimer(), "Bad timer!");
if (t->GetFireTime() <= inMacEvent.when)
{
iter++;
RemoveTimer(t);
t->Fire();
break;
}
}
if ( mTimers.size() == 0 )
StopRepeating();
for (iter=fireList.begin(); iter!=fireList.end(); iter++)
{
(*iter)->Fire();
NS_RELEASE(*iter);
t = t->mNext;
}
done = true;
}
}

View File

@@ -40,6 +40,8 @@ CPPSRCS = \
nsVoidArray.cpp \
nsFileSpec.cpp \
nsFileStream.cpp \
nsEscape.cpp \
nsIFileStream.cpp \
$(NULL)
CPP_OBJS = \
@@ -59,6 +61,8 @@ CPP_OBJS = \
.\$(OBJDIR)\nsVoidArray.obj \
.\$(OBJDIR)\nsFileSpec.obj \
.\$(OBJDIR)\nsFileStream.obj \
.\$(OBJDIR)\nsEscape.obj \
.\$(OBJDIR)\nsIFileStream.obj \
$(NULL)
EXPORTS=nscore.h nsIArena.h nsIAtom.h nsIByteBuffer.h \
@@ -71,10 +75,10 @@ EXPORTS=nscore.h nsIArena.h nsIAtom.h nsIByteBuffer.h \
MODULE=raptor
REQUIRES=xpcom netlib raptor
REQUIRES=xpcom netlib raptor uconv
LINCS=-I$(PUBLIC)\xpcom -I$(PUBLIC)\netlib \
-I$(PUBLIC)\raptor
-I$(PUBLIC)\raptor -I$(PUBLIC)\uconv -I$(PUBLIC)\unicharutil
MAKE_OBJ_TYPE = DLL
DLLNAME = raptorbase

View File

@@ -16,15 +16,24 @@
* Reserved.
*/
// Force references to all of the symbols that we want exported from
// the dll that are located in the .lib files we link with
#include "nscore.h"
#include <gtk/gtk.h>
GtkWidget *gAppContext;
#include "nsCaretProperties.h"
void XXXNeverCalled()
//-----------------------------------------------------------------------------
nsCaretProperties::nsCaretProperties()
: mCaretWidth(eDefaultCaretWidth)
, mBlinkRate(eDefaulBlinkRate)
{
gAppContext = NULL;
// in your platform-specific class, get data from the OS in your constructor
}
//-----------------------------------------------------------------------------
nsCaretProperties* NewCaretProperties()
{
return new nsCaretProperties();
}

View File

@@ -130,7 +130,7 @@ NS_BASE nsIAtom* NS_NewAtom(const PRUnichar* us)
(PLHashComparator) nsnull,
nsnull, nsnull);
}
PRInt32 uslen;
PRUint32 uslen;
PRUint32 hashCode = nsCRT::HashValue(us, &uslen);
PLHashEntry** hep = PL_HashTableRawLookup(gAtomHashTable, hashCode, us);
PLHashEntry* he = *hep;

View File

@@ -22,7 +22,7 @@
#include "nsProperties.h"
#include "nsRepository.h"
extern "C" PRInt32 gLockCount = 0;
PRInt32 gLockCount = 0;
NS_DEFINE_IID(kIFactoryIID, NS_IFACTORY_IID);

View File

@@ -21,6 +21,6 @@
#include "prtypes.h"
extern "C" PRInt32 gLockCount;
extern PRInt32 gLockCount;
#endif /* nsBaseDLL_h___ */

View File

@@ -33,6 +33,10 @@
#include "nsCRT.h"
#include "nsUnicharUtilCIID.h"
#include "nsIServiceManager.h"
#include "nsICaseConversion.h"
// XXX Bug: These tables don't lowercase the upper 128 characters properly
@@ -109,21 +113,77 @@ static const PRUnichar kIsoLatin1ToUCS2[256] = {
//----------------------------------------------------------------------
#define TOLOWER(_ucs2) \
(((_ucs2) < 256) ? PRUnichar(kUpper2Lower[_ucs2]) : _ToLower(_ucs2))
(((_ucs2) < 128) ? PRUnichar(kUpper2Lower[_ucs2]) : _ToLower(_ucs2))
#define TOUPPER(_ucs2) \
(((_ucs2) < 256) ? PRUnichar(kLower2Upper[_ucs2]) : _ToUpper(_ucs2))
(((_ucs2) < 128) ? PRUnichar(kLower2Upper[_ucs2]) : _ToUpper(_ucs2))
class HandleCaseConversionShutdown : public nsIShutdownListener {
public :
NS_IMETHOD OnShutdown(const nsCID& cid, nsISupports* service);
HandleCaseConversionShutdown(void) { NS_INIT_REFCNT(); }
virtual ~HandleCaseConversionShutdown(void) {}
NS_DECL_ISUPPORTS
};
static NS_DEFINE_CID(kUnicharUtilCID, NS_UNICHARUTIL_CID);
static NS_DEFINE_IID(kICaseConversionIID, NS_ICASECONVERSION_IID);
static nsICaseConversion * gCaseConv = NULL;
static NS_DEFINE_IID(kIShutdownListenerIID, NS_ISHUTDOWNLISTENER_IID);
NS_IMPL_ISUPPORTS(HandleCaseConversionShutdown, kIShutdownListenerIID);
nsresult
HandleCaseConversionShutdown::OnShutdown(const nsCID& cid, nsISupports* service)
{
if (cid.Equals(kUnicharUtilCID)) {
NS_ASSERTION(service == gCaseConv, "wrong service!");
nsrefcnt cnt = gCaseConv->Release();
gCaseConv = NULL;
}
return NS_OK;
}
static HandleCaseConversionShutdown* gListener = NULL;
static void StartUpCaseConversion()
{
nsresult err;
if ( NULL == gListener )
{
gListener = new HandleCaseConversionShutdown();
gListener->AddRef();
}
err = nsServiceManager::GetService(kUnicharUtilCID, kICaseConversionIID,
(nsISupports**) &gCaseConv, gListener);
}
static void CheckCaseConversion()
{
if(NULL == gCaseConv )
StartUpCaseConversion();
NS_ASSERTION( gCaseConv != NULL , "cannot obtain UnicharUtil");
}
static PRUnichar _ToLower(PRUnichar aChar)
{
// XXX need i18n code here
return aChar;
PRUnichar oLower;
CheckCaseConversion();
nsresult err = gCaseConv->ToLower(aChar, &oLower);
NS_ASSERTION( NS_SUCCEEDED(err), "failed to communicate to UnicharUtil");
return ( NS_SUCCEEDED(err) ) ? oLower : aChar ;
}
static PRUnichar _ToUpper(PRUnichar aChar)
{
// XXX need i18n code here
return aChar;
nsresult err;
PRUnichar oUpper;
CheckCaseConversion();
err = gCaseConv->ToUpper(aChar, &oUpper);
NS_ASSERTION( NS_SUCCEEDED(err), "failed to communicate to UnicharUtil");
return ( NS_SUCCEEDED(err) ) ? oUpper : aChar ;
}
//----------------------------------------------------------------------
@@ -138,9 +198,53 @@ PRUnichar nsCRT::ToLower(PRUnichar aChar)
return TOLOWER(aChar);
}
PRInt32 nsCRT::strlen(const PRUnichar* s)
////////////////////////////////////////////////////////////////////////////////
// My lovely strtok routine
#define IS_DELIM(m, c) ((m)[(c) >> 3] & (1 << ((c) & 7)))
#define SET_DELIM(m, c) ((m)[(c) >> 3] |= (1 << ((c) & 7)))
#define DELIM_TABLE_SIZE 32
char* nsCRT::strtok(char* str, const char* delims, char* *newStr)
{
PRInt32 len = 0;
NS_ASSERTION(str, "Unlike regular strtok, the first argument cannot be null.");
char delimTable[DELIM_TABLE_SIZE];
PRUint32 i;
char* result;
for (i = 0; i < DELIM_TABLE_SIZE; i++)
delimTable[i] = '\0';
for (i = 0; i < DELIM_TABLE_SIZE && delims[i]; i++) {
SET_DELIM(delimTable, delims[i]);
}
NS_ASSERTION(delims[i] == '\0', "too many delimiters");
// skip to beginning
while (*str && IS_DELIM(delimTable, *str)) {
str++;
}
result = str;
// fix up the end of the token
while (*str) {
if (IS_DELIM(delimTable, *str)) {
*str++ = '\0';
break;
}
str++;
}
*newStr = str;
return str == result ? NULL : result;
}
////////////////////////////////////////////////////////////////////////////////
PRUint32 nsCRT::strlen(const PRUnichar* s)
{
PRUint32 len = 0;
if(s) {
while (*s++ != 0) {
len++;
@@ -180,11 +284,11 @@ PRInt32 nsCRT::strcmp(const PRUnichar* s1, const PRUnichar* s2)
* @param s1 and s2 both point to unichar strings
* @return 0 if they match, -1 if s1<s2; 1 if s1>s2
*/
PRInt32 nsCRT::strncmp(const PRUnichar* s1, const PRUnichar* s2, PRInt32 n)
PRInt32 nsCRT::strncmp(const PRUnichar* s1, const PRUnichar* s2, PRUint32 n)
{
if(s1 && s2) {
if(0<n) {
while (--n >= 0) {
if(n != 0) {
do {
PRUnichar c1 = *s1++;
PRUnichar c2 = *s2++;
if (c1 != c2) {
@@ -192,7 +296,7 @@ PRInt32 nsCRT::strncmp(const PRUnichar* s1, const PRUnichar* s2, PRInt32 n)
return 1;
}
if ((0==c1) || (0==c2)) break;
}
} while (--n != 0);
}
}
return 0;
@@ -234,7 +338,7 @@ PRInt32 nsCRT::strcasecmp(const PRUnichar* s1, const PRUnichar* s2)
* @param s1 and s2 both point to unichar strings
* @return 0 if they match, -1 if s1<s2; 1 if s1>s2
*/
PRInt32 nsCRT::strncasecmp(const PRUnichar* s1, const PRUnichar* s2, PRInt32 n)
PRInt32 nsCRT::strncasecmp(const PRUnichar* s1, const PRUnichar* s2, PRUint32 n)
{
if(s1 && s2) {
if(0<n){
@@ -290,11 +394,11 @@ PRInt32 nsCRT::strcmp(const PRUnichar* s1, const char* s2)
* @param s2 points to cstring
* @return 0 if they match, -1 if s1<s2; 1 if s1>s2
*/
PRInt32 nsCRT::strncmp(const PRUnichar* s1, const char* s2, PRInt32 n)
PRInt32 nsCRT::strncmp(const PRUnichar* s1, const char* s2, PRUint32 n)
{
if(s1 && s2) {
if(0<n){
while (--n >= 0) {
if(n != 0){
do {
PRUnichar c1 = *s1++;
PRUnichar c2 = kIsoLatin1ToUCS2[*(const unsigned char*)s2++];
if (c1 != c2) {
@@ -302,7 +406,7 @@ PRInt32 nsCRT::strncmp(const PRUnichar* s1, const char* s2, PRInt32 n)
return 1;
}
if ((0==c1) || (0==c2)) break;
}
} while (--n != 0);
}
}
return 0;
@@ -344,11 +448,11 @@ PRInt32 nsCRT::strcasecmp(const PRUnichar* s1, const char* s2)
* @param s2 points to cstring
* @return 0 if they match, -1 if s1<s2; 1 if s1>s2
*/
PRInt32 nsCRT::strncasecmp(const PRUnichar* s1, const char* s2, PRInt32 n)
PRInt32 nsCRT::strncasecmp(const PRUnichar* s1, const char* s2, PRUint32 n)
{
if(s1 && s2){
if(0<n){
while (--n >= 0) {
if(n != 0){
do {
PRUnichar c1 = *s1++;
PRUnichar c2 = kIsoLatin1ToUCS2[*(const unsigned char*)s2++];
if (c1 != c2) {
@@ -360,7 +464,7 @@ PRInt32 nsCRT::strncasecmp(const PRUnichar* s1, const char* s2, PRInt32 n)
}
}
if (c1 == 0) break;
}
} while (--n != 0);
}
}
return 0;
@@ -368,7 +472,7 @@ PRInt32 nsCRT::strncasecmp(const PRUnichar* s1, const char* s2, PRInt32 n)
PRUnichar* nsCRT::strdup(const PRUnichar* str)
{
PRInt32 len = nsCRT::strlen(str) + 1; // add one for null
PRUint32 len = nsCRT::strlen(str) + 1; // add one for null
PRUnichar* rslt = new PRUnichar[len];
if (rslt == NULL) return NULL;
nsCRT::memcpy(rslt, str, len * sizeof(PRUnichar));
@@ -388,10 +492,10 @@ PRUint32 nsCRT::HashValue(const PRUnichar* us)
return rv;
}
PRUint32 nsCRT::HashValue(const PRUnichar* us, PRInt32* uslenp)
PRUint32 nsCRT::HashValue(const PRUnichar* us, PRUint32* uslenp)
{
PRUint32 rv = 0;
PRInt32 len = 0;
PRUint32 len = 0;
PRUnichar ch;
while ((ch = *us++) != 0) {
// FYI: rv = rv*37 + ch

View File

@@ -23,28 +23,38 @@
#include "plstr.h"
#include "nscore.h"
#define CR '\015'
#define LF '\012'
#define VTAB '\013'
#define FF '\014'
#define TAB '\011'
#define CRLF "\015\012" /* A CR LF equivalent string */
/// This is a wrapper class around all the C runtime functions.
class NS_BASE nsCRT {
public:
/** Copy bytes from aSrc to aDest.
@param aDest the destination address
@param aSrc the source address
@param aCount the number of bytes to copy
*/
static void memcpy(void* aDest, const void* aSrc, PRInt32 aCount) {
static void memcpy(void* aDest, const void* aSrc, PRUint32 aCount) {
::memcpy(aDest, aSrc, (size_t)aCount);
}
static void memmove(void* aDest, const void* aSrc, PRInt32 aCount) {
static void memmove(void* aDest, const void* aSrc, PRUint32 aCount) {
::memmove(aDest, aSrc, (size_t)aCount);
}
static void memset(void* aDest, PRUint8 aByte, PRInt32 aCount) {
static void memset(void* aDest, PRUint8 aByte, PRUint32 aCount) {
::memset(aDest, aByte, aCount);
}
static void zero(void* aDest, PRInt32 aCount) {
static void zero(void* aDest, PRUint32 aCount) {
::memset(aDest, 0, (size_t)aCount);
}
@@ -52,13 +62,18 @@ public:
@param s the string in question
@return the length of s
*/
static PRInt32 strlen(const char* s) {
return PRInt32(::strlen(s));
static PRUint32 strlen(const char* s) {
return PRUint32(::strlen(s));
}
/// Compare s1 and s2.
static PRInt32 strcmp(const char* s1, const char* s2) {
return PRInt32(PL_strcmp(s1, s2));
return PRUint32(PL_strcmp(s1, s2));
}
static PRUint32 strncmp(const char* s1, const char* s2,
PRUint32 aMaxLen) {
return PRInt32(PL_strncmp(s1, s2, aMaxLen));
}
/// Case-insensitive string comparison.
@@ -67,40 +82,63 @@ public:
}
/// Case-insensitive string comparison with length
static PRInt32 strncasecmp(const char* s1, const char* s2, PRInt32 aMaxLen) {
static PRInt32 strncasecmp(const char* s1, const char* s2, PRUint32 aMaxLen) {
return PRInt32(PL_strncasecmp(s1, s2, aMaxLen));
}
static PRInt32 strncmp(const char* s1, const char* s2, PRInt32 aMaxLen) {
return PRInt32(PL_strncmp(s1,s2,aMaxLen));
}
static char* strdup(const char* str) {
return PL_strdup(str);
}
/**
How to use this fancy (thread-safe) version of strtok:
void main( void ) {
printf( "%s\n\nTokens:\n", string );
// Establish string and get the first token:
char* newStr;
token = nsCRT::strtok( string, seps, &newStr );
while( token != NULL ) {
// While there are tokens in "string"
printf( " %s\n", token );
// Get next token:
token = nsCRT::strtok( newStr, seps, &newStr );
}
}
*/
static char* strtok(char* str, const char* delims, char* *newStr);
/// Like strlen except for ucs2 strings
static PRInt32 strlen(const PRUnichar* s);
static PRUint32 strlen(const PRUnichar* s);
/// Like strcmp except for ucs2 strings
static PRInt32 strcmp(const PRUnichar* s1, const PRUnichar* s2);
/// Like strcmp except for ucs2 strings
static PRInt32 strncmp(const PRUnichar* s1, const PRUnichar* s2,
PRInt32 aMaxLen);
PRUint32 aMaxLen);
/// Like strcasecmp except for ucs2 strings
static PRInt32 strcasecmp(const PRUnichar* s1, const PRUnichar* s2);
/// Like strncasecmp except for ucs2 strings
static PRInt32 strncasecmp(const PRUnichar* s1, const PRUnichar* s2,
PRInt32 aMaxLen);
PRUint32 aMaxLen);
/// Like strcmp with a char* and a ucs2 string
static PRInt32 strcmp(const PRUnichar* s1, const char* s2);
/// Like strncmp with a char* and a ucs2 string
static PRInt32 strncmp(const PRUnichar* s1, const char* s2,
PRInt32 aMaxLen);
PRUint32 aMaxLen);
/// Like strcasecmp with a char* and a ucs2 string
static PRInt32 strcasecmp(const PRUnichar* s1, const char* s2);
/// Like strncasecmp with a char* and a ucs2 string
static PRInt32 strncasecmp(const PRUnichar* s1, const char* s2,
PRInt32 aMaxLen);
PRUint32 aMaxLen);
// Note: uses new[] to allocate memory, so you must use delete[] to
// free the memory
@@ -110,7 +148,7 @@ public:
static PRUint32 HashValue(const PRUnichar* s1);
/// Same as above except that we return the length in s1len
static PRUint32 HashValue(const PRUnichar* s1, PRInt32* s1len);
static PRUint32 HashValue(const PRUnichar* s1, PRUint32* s1len);
/// String to integer.
static PRInt32 atoi( const PRUnichar *string );

View File

@@ -67,7 +67,9 @@ PRInt32 nsDeque::GetSize(void) const {
* @return
*/
nsDeque& nsDeque::Empty() {
nsCRT::zero(mData,mCapacity*sizeof(mData));
if((0<mCapacity) && (mData)) {
nsCRT::zero(mData,mCapacity*sizeof(mData));
}
mSize=0;
mOrigin=0;
return *this;

View File

@@ -53,7 +53,7 @@ const int netCharType[256] =
#define HEX_ESCAPE '%'
//----------------------------------------------------------------------------------------
char* nsEscape(const char * str, nsEscapeMask mask)
NS_BASE char* nsEscape(const char * str, nsEscapeMask mask)
//----------------------------------------------------------------------------------------
{
if(!str)
@@ -62,7 +62,7 @@ char* nsEscape(const char * str, nsEscapeMask mask)
}
//----------------------------------------------------------------------------------------
char* nsEscapeCount(const char * str, PRInt32 len, nsEscapeMask mask, PRInt32 * out_len)
NS_BASE char* nsEscapeCount(const char * str, PRInt32 len, nsEscapeMask mask, PRInt32 * out_len)
//----------------------------------------------------------------------------------------
{
int32 i, extra = 0;
@@ -109,7 +109,7 @@ char* nsEscapeCount(const char * str, PRInt32 len, nsEscapeMask mask, PRInt32 *
}
//----------------------------------------------------------------------------------------
char* nsUnescape(char * str)
NS_BASE char* nsUnescape(char * str)
//----------------------------------------------------------------------------------------
{
nsUnescapeCount(str);
@@ -117,7 +117,7 @@ char* nsUnescape(char * str)
}
//----------------------------------------------------------------------------------------
PRInt32 nsUnescapeCount(char * str)
NS_BASE PRInt32 nsUnescapeCount(char * str)
//----------------------------------------------------------------------------------------
{
register char *src = str;

View File

@@ -22,6 +22,9 @@
#include "nsDebug.h"
#include "prtypes.h"
#include "plstr.h"
#include "plbase64.h"
#include "prmem.h"
#include <string.h>
#include <stdio.h>
@@ -40,7 +43,7 @@ NS_NAMESPACE nsFileSpecHelpers
char inSeparator,
const char* inLeafName);
#ifndef XP_MAC
NS_NAMESPACE_PROTOTYPE void Canonify(char*& ioPath, bool inMakeDirs);
NS_NAMESPACE_PROTOTYPE void Canonify(char*& ioPath, PRBool inMakeDirs);
NS_NAMESPACE_PROTOTYPE void MakeAllDirectories(const char* inPath, int mode);
#endif
NS_NAMESPACE_PROTOTYPE char* GetLeaf(const char* inPath, char inSeparator); // allocated
@@ -54,6 +57,14 @@ NS_NAMESPACE nsFileSpecHelpers
#endif
} NS_NAMESPACE_END
//----------------------------------------------------------------------------------------
nsresult ns_file_convert_result(PRInt32 nativeErr)
//----------------------------------------------------------------------------------------
{
return nativeErr ?
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES,((nativeErr)&0xFFFF))
: NS_OK;
}
//----------------------------------------------------------------------------------------
char* nsFileSpecHelpers::StringDup(
@@ -65,7 +76,7 @@ char* nsFileSpecHelpers::StringDup(
allocLength = strlen(inString);
char* newPath = inString || allocLength ? new char[allocLength + 1] : nsnull;
if (!newPath)
return NULL;
return nsnull;
strcpy(newPath, inString);
return newPath;
} // nsFileSpecHelpers::StringDup
@@ -77,7 +88,7 @@ char* nsFileSpecHelpers::AllocCat(
//----------------------------------------------------------------------------------------
{
if (!inString1)
return inString2 ? StringDup(inString2) : (char*)NULL;
return inString2 ? StringDup(inString2) : (char*)nsnull;
if (!inString2)
return StringDup(inString1);
char* outString = StringDup(inString1, strlen(inString1) + strlen(inString2));
@@ -95,7 +106,7 @@ char* nsFileSpecHelpers::StringAssign(
if (!inString2)
{
delete [] ioString;
ioString = (char*)NULL;
ioString = (char*)nsnull;
return ioString;
}
if (!ioString || (strlen(inString2) > strlen(ioString)))
@@ -125,8 +136,19 @@ void nsFileSpecHelpers::LeafReplace(
}
char* lastSeparator = strrchr(ioPath, inSeparator);
int oldLength = strlen(ioPath);
*(++lastSeparator) = '\0'; // strip the current leaf name
int newLength = lastSeparator - ioPath + strlen(inLeafName);
PRBool trailingSeparator = (lastSeparator + 1 == ioPath + oldLength);
if (trailingSeparator)
{
*lastSeparator = '\0';
lastSeparator = strrchr(ioPath, inSeparator);
}
if (lastSeparator)
lastSeparator++; // point at the trailing string
else
lastSeparator = ioPath; // the full monty
*lastSeparator = '\0'; // strip the current leaf name
int newLength = (lastSeparator - ioPath) + strlen(inLeafName) + int(trailingSeparator);
if (newLength > oldLength)
{
char* newPath = StringDup(ioPath, newLength + 1);
@@ -134,7 +156,14 @@ void nsFileSpecHelpers::LeafReplace(
ioPath = newPath;
}
strcat(ioPath, inLeafName);
} // nsNativeFileSpec::LeafReplace
if (trailingSeparator)
{
// If the original ended in a slash, then the new one should, too.
char sepStr[2] = "/";
*sepStr = inSeparator;
strcat(ioPath, sepStr);
}
} // nsFileSpecHelpers::LeafReplace
//----------------------------------------------------------------------------------------
char* nsFileSpecHelpers::GetLeaf(const char* inPath, char inSeparator)
@@ -142,12 +171,32 @@ char* nsFileSpecHelpers::GetLeaf(const char* inPath, char inSeparator)
//----------------------------------------------------------------------------------------
{
if (!inPath)
return NULL;
char* lastSeparator = strrchr(inPath, inSeparator);
if (lastSeparator)
return StringDup(++lastSeparator);
return StringDup(inPath);
} // nsNativeFileSpec::GetLeaf
return nsnull;
const char* lastSeparator = strrchr(inPath, inSeparator);
// If there was no separator, then return a copy of the caller's path.
if (!lastSeparator)
return StringDup(inPath);
// So there's at least one separator. What's just after it?
// If the separator was not the last character, return the trailing string.
const char* leafPointer = lastSeparator + 1;
if (*leafPointer)
return StringDup(leafPointer);
// So now, separator was the last character. Poke in a null instead.
*(char*)lastSeparator = '\0'; // Should use const_cast, but Unix has old compiler.
leafPointer = strrchr(inPath, inSeparator);
char* result = leafPointer ? StringDup(leafPointer++) : StringDup(inPath);
// Restore the poked null before returning.
*(char*)lastSeparator = inSeparator;
#ifdef XP_PC
// If it's a drive letter use the colon notation.
if (!leafPointer && strlen(result) == 2 && result[1] == '|')
result[1] = ':';
#endif
return result;
} // nsFileSpecHelpers::GetLeaf
#if defined(XP_UNIX) || defined(XP_PC)
@@ -177,7 +226,7 @@ void nsFileSpecHelpers::MakeAllDirectories(const char* inPath, int mode)
if (currentEnd)
{
*currentEnd = '\0';
nsNativeFileSpec spec(nsFilePath(pathCopy, false));
nsFileSpec spec(nsFilePath(pathCopy, PR_FALSE));
do
{
// If the node doesn't exist, and it is not the initial node in a full path,
@@ -209,7 +258,7 @@ char* nsFileSpecHelpers::ReallocCat(char*& ioString, const char* inString1)
delete [] ioString;
ioString = newString;
return ioString;
} // nsNativeFileSpec::ReallocCat
} // nsFileSpecHelpers::ReallocCat
#if defined(XP_PC)
#include "windows/nsFileSpecWin.cpp" // Windows-specific implementations
@@ -225,7 +274,7 @@ char* nsFileSpecHelpers::ReallocCat(char*& ioString, const char* inString1)
#ifndef XP_MAC
//----------------------------------------------------------------------------------------
nsFileURL::nsFileURL(const char* inString, bool inCreateDirs)
nsFileURL::nsFileURL(const char* inString, PRBool inCreateDirs)
//----------------------------------------------------------------------------------------
: mURL(nsnull)
{
@@ -243,7 +292,7 @@ nsFileURL::nsFileURL(const nsFileURL& inOther)
//----------------------------------------------------------------------------------------
: mURL(nsFileSpecHelpers::StringDup(inOther.mURL))
#ifdef XP_MAC
, mNativeFileSpec(inOther.GetNativeSpec())
, mFileSpec(inOther.GetFileSpec())
#endif
{
} // nsFileURL::nsFileURL
@@ -253,16 +302,16 @@ nsFileURL::nsFileURL(const nsFilePath& inOther)
//----------------------------------------------------------------------------------------
: mURL(nsFileSpecHelpers::AllocCat(kFileURLPrefix, (const char*)inOther))
#ifdef XP_MAC
, mNativeFileSpec(inOther.GetNativeSpec())
, mFileSpec(inOther.GetFileSpec())
#endif
{
} // nsFileURL::nsFileURL
//----------------------------------------------------------------------------------------
nsFileURL::nsFileURL(const nsNativeFileSpec& inOther)
nsFileURL::nsFileURL(const nsFileSpec& inOther)
: mURL(nsFileSpecHelpers::AllocCat(kFileURLPrefix, (const char*)nsFilePath(inOther)))
#ifdef XP_MAC
, mNativeFileSpec(inOther)
, mFileSpec(inOther)
#endif
//----------------------------------------------------------------------------------------
{
@@ -282,7 +331,7 @@ void nsFileURL::operator = (const char* inString)
nsFileSpecHelpers::StringAssign(mURL, inString);
NS_ASSERTION(strstr(inString, kFileURLPrefix) == inString, "Not a URL!");
#ifdef XP_MAC
mNativeFileSpec = inString + kFileURLPrefixLength;
mFileSpec = inString + kFileURLPrefixLength;
#endif
} // nsFileURL::operator =
@@ -292,7 +341,7 @@ void nsFileURL::operator = (const nsFileURL& inOther)
{
mURL = nsFileSpecHelpers::StringAssign(mURL, inOther.mURL);
#ifdef XP_MAC
mNativeFileSpec = inOther.GetNativeSpec();
mFileSpec = inOther.GetFileSpec();
#endif
} // nsFileURL::operator =
@@ -303,35 +352,45 @@ void nsFileURL::operator = (const nsFilePath& inOther)
delete [] mURL;
mURL = nsFileSpecHelpers::AllocCat(kFileURLPrefix, (const char*)inOther);
#ifdef XP_MAC
mNativeFileSpec = inOther.GetNativeSpec();
mFileSpec = inOther.GetFileSpec();
#endif
} // nsFileURL::operator =
//----------------------------------------------------------------------------------------
void nsFileURL::operator = (const nsNativeFileSpec& inOther)
void nsFileURL::operator = (const nsFileSpec& inOther)
//----------------------------------------------------------------------------------------
{
delete [] mURL;
mURL = nsFileSpecHelpers::AllocCat(kFileURLPrefix, (const char*)nsFilePath(inOther));
#ifdef XP_MAC
mNativeFileSpec = inOther;
mFileSpec = inOther;
#endif
} // nsFileURL::operator =
#if DEBUG
//----------------------------------------------------------------------------------------
nsBasicOutStream& operator << (nsBasicOutStream& s, const nsFileURL& url)
nsOutputStream& operator << (nsOutputStream& s, const nsFileURL& url)
//----------------------------------------------------------------------------------------
{
return (s << url.mURL);
}
#endif
//========================================================================================
// nsFilePath implementation
//========================================================================================
nsFilePath::nsFilePath(const nsFilePath& inPath)
: mPath(nsFileSpecHelpers::StringDup(inPath.mPath))
#ifdef XP_MAC
, mFileSpec(inPath.mFileSpec)
#endif
{
}
#ifndef XP_MAC
//----------------------------------------------------------------------------------------
nsFilePath::nsFilePath(const char* inString, bool inCreateDirs)
nsFilePath::nsFilePath(const char* inString, PRBool inCreateDirs)
//----------------------------------------------------------------------------------------
: mPath(nsFileSpecHelpers::StringDup(inString))
{
@@ -354,14 +413,14 @@ nsFilePath::nsFilePath(const nsFileURL& inOther)
//----------------------------------------------------------------------------------------
: mPath(nsFileSpecHelpers::StringDup(inOther.mURL + kFileURLPrefixLength))
#ifdef XP_MAC
, mNativeFileSpec(inOther.GetNativeSpec())
, mFileSpec(inOther.GetFileSpec())
#endif
{
}
#ifdef XP_UNIX
//----------------------------------------------------------------------------------------
nsFilePath::nsFilePath(const nsNativeFileSpec& inOther)
nsFilePath::nsFilePath(const nsFileSpec& inOther)
//----------------------------------------------------------------------------------------
: mPath(nsFileSpecHelpers::StringDup(inOther.mPath))
{
@@ -377,7 +436,7 @@ nsFilePath::~nsFilePath()
#ifdef XP_UNIX
//----------------------------------------------------------------------------------------
void nsFilePath::operator = (const nsNativeFileSpec& inOther)
void nsFilePath::operator = (const nsFileSpec& inOther)
//----------------------------------------------------------------------------------------
{
mPath = nsFileSpecHelpers::StringAssign(mPath, inOther.mPath);
@@ -390,14 +449,14 @@ void nsFilePath::operator = (const char* inString)
{
NS_ASSERTION(strstr(inString, kFileURLPrefix) != inString, "URL passed as path");
#ifdef XP_MAC
mNativeFileSpec = inString;
nsFileSpecHelpers::StringAssign(mPath, (const char*)nsFilePath(mNativeFileSpec));
mFileSpec = inString;
nsFileSpecHelpers::StringAssign(mPath, (const char*)nsFilePath(mFileSpec));
#else
#ifdef XP_PC
nsFileSpecHelpers::UnixToNative(mPath);
#endif
// Make canonical and absolute.
nsFileSpecHelpers::Canonify(mPath, false /* XXX? */);
nsFileSpecHelpers::Canonify(mPath, PR_FALSE /* XXX? */);
#ifdef XP_PC
nsFileSpecHelpers::NativeToUnix(mPath);
#endif
@@ -410,45 +469,56 @@ void nsFilePath::operator = (const nsFileURL& inOther)
{
nsFileSpecHelpers::StringAssign(mPath, (const char*)nsFilePath(inOther));
#ifdef XP_MAC
mNativeFileSpec = inOther.GetNativeSpec();
mFileSpec = inOther.GetFileSpec();
#endif
}
//========================================================================================
// nsNativeFileSpec implementation
// nsFileSpec implementation
//========================================================================================
#ifndef XP_MAC
//----------------------------------------------------------------------------------------
nsNativeFileSpec::nsNativeFileSpec()
nsFileSpec::nsFileSpec()
//----------------------------------------------------------------------------------------
: mPath(NULL)
: mPath(nsnull)
, mError(NS_OK)
{
}
#endif
//----------------------------------------------------------------------------------------
nsNativeFileSpec::nsNativeFileSpec(const nsFileURL& inURL)
nsFileSpec::nsFileSpec(const nsPersistentFileDescriptor& inDescriptor)
//----------------------------------------------------------------------------------------
#ifndef XP_MAC
: mPath(NULL)
: mPath(nsnull)
#endif
{
*this = inDescriptor;
}
//----------------------------------------------------------------------------------------
nsFileSpec::nsFileSpec(const nsFileURL& inURL)
//----------------------------------------------------------------------------------------
#ifndef XP_MAC
: mPath(nsnull)
#endif
{
*this = nsFilePath(inURL); // convert to unix path first
}
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::MakeUnique(const char* inSuggestedLeafName)
void nsFileSpec::MakeUnique(const char* inSuggestedLeafName)
//----------------------------------------------------------------------------------------
{
if (inSuggestedLeafName && *inSuggestedLeafName)
SetLeafName(inSuggestedLeafName);
MakeUnique();
} // nsNativeFileSpec::MakeUnique
} // nsFileSpec::MakeUnique
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::MakeUnique()
void nsFileSpec::MakeUnique()
//----------------------------------------------------------------------------------------
{
if (!Exists())
@@ -479,51 +549,82 @@ void nsNativeFileSpec::MakeUnique()
if (*suffix)
delete [] suffix;
delete [] leafName;
} // nsNativeFileSpec::MakeUnique
} // nsFileSpec::MakeUnique
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::operator = (const nsFileURL& inURL)
void nsFileSpec::operator = (const nsFileURL& inURL)
//----------------------------------------------------------------------------------------
{
*this = nsFilePath(inURL); // convert to unix path first
}
//----------------------------------------------------------------------------------------
void nsFileSpec::operator = (const nsPersistentFileDescriptor& inDescriptor)
//----------------------------------------------------------------------------------------
{
void* data;
PRInt32 dataSize;
inDescriptor.GetData(data, dataSize);
#ifdef XP_MAC
char* decodedData = PL_Base64Decode((const char*)data, (int)dataSize, nsnull);
// Cast to an alias record and resolve.
AliasHandle aliasH = nsnull;
mError = NS_FILE_RESULT(PtrToHand(decodedData, &(Handle)aliasH, (dataSize * 3) / 4));
PR_Free(decodedData);
if (NS_SUCCEEDED(mError))
return; // not enough memory?
Boolean changed;
mError = NS_FILE_RESULT(::ResolveAlias(nsnull, aliasH, &mSpec, &changed));
DisposeHandle((Handle) aliasH);
#else
nsFileSpecHelpers::StringAssign(mPath, (char*)data);
mError = NS_OK;
#endif
}
//========================================================================================
// UNIX & WIN nsNativeFileSpec implementation
// UNIX & WIN nsFileSpec implementation
//========================================================================================
#ifdef XP_UNIX
//----------------------------------------------------------------------------------------
nsNativeFileSpec::nsNativeFileSpec(const nsFilePath& inPath)
nsFileSpec::nsFileSpec(const nsFilePath& inPath)
//----------------------------------------------------------------------------------------
: mPath(nsFileSpecHelpers::StringDup((const char*)inPath))
, mError(NS_OK)
{
}
#endif // XP_UNIX
#ifdef XP_UNIX
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::operator = (const nsFilePath& inPath)
void nsFileSpec::operator = (const nsFilePath& inPath)
//----------------------------------------------------------------------------------------
{
nsFileSpecHelpers::StringAssign(mPath, (const char*)inPath);
mError = NS_OK;
}
#endif //XP_UNIX
#if defined(XP_UNIX) || defined(XP_PC)
//----------------------------------------------------------------------------------------
nsNativeFileSpec::nsNativeFileSpec(const nsNativeFileSpec& inSpec)
nsFileSpec::nsFileSpec(const nsFileSpec& inSpec)
//----------------------------------------------------------------------------------------
: mPath(nsFileSpecHelpers::StringDup(inSpec.mPath))
, mError(NS_OK)
{
}
#endif //XP_UNIX
#if defined(XP_UNIX) || defined(XP_PC)
//----------------------------------------------------------------------------------------
nsNativeFileSpec::nsNativeFileSpec(const char* inString, bool inCreateDirs)
nsFileSpec::nsFileSpec(const char* inString, PRBool inCreateDirs)
//----------------------------------------------------------------------------------------
: mPath(nsFileSpecHelpers::StringDup(inString))
, mError(NS_OK)
{
// Make canonical and absolute.
nsFileSpecHelpers::Canonify(mPath, inCreateDirs);
@@ -531,7 +632,7 @@ nsNativeFileSpec::nsNativeFileSpec(const char* inString, bool inCreateDirs)
#endif //XP_UNIX,PC
//----------------------------------------------------------------------------------------
nsNativeFileSpec::~nsNativeFileSpec()
nsFileSpec::~nsFileSpec()
//----------------------------------------------------------------------------------------
{
#ifndef XP_MAC
@@ -541,39 +642,160 @@ nsNativeFileSpec::~nsNativeFileSpec()
#if defined(XP_UNIX) || defined(XP_PC)
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::operator = (const nsNativeFileSpec& inSpec)
void nsFileSpec::operator = (const nsFileSpec& inSpec)
//----------------------------------------------------------------------------------------
{
mPath = nsFileSpecHelpers::StringAssign(mPath, inSpec.mPath);
mError = inSpec.Error();
}
#endif //XP_UNIX
#if defined(XP_UNIX) || defined(XP_PC)
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::operator = (const char* inString)
void nsFileSpec::operator = (const char* inString)
//----------------------------------------------------------------------------------------
{
mPath = nsFileSpecHelpers::StringAssign(mPath, inString);
// Make canonical and absolute.
nsFileSpecHelpers::Canonify(mPath, true /* XXX? */);
nsFileSpecHelpers::Canonify(mPath, PR_TRUE /* XXX? */);
mError = NS_OK;
}
#endif //XP_UNIX
#if DEBUG
#if (defined(XP_UNIX) || defined(XP_PC))
//----------------------------------------------------------------------------------------
nsBasicOutStream& operator << (nsBasicOutStream& s, const nsNativeFileSpec& spec)
nsOutputStream& operator << (nsOutputStream& s, const nsFileSpec& spec)
//----------------------------------------------------------------------------------------
{
return (s << (const char*)spec.mPath);
}
#endif // DEBUG && XP_UNIX
#endif
//----------------------------------------------------------------------------------------
nsNativeFileSpec nsNativeFileSpec::operator + (const char* inRelativePath) const
nsFileSpec nsFileSpec::operator + (const char* inRelativePath) const
//----------------------------------------------------------------------------------------
{
nsNativeFileSpec result = *this;
nsFileSpec result = *this;
result += inRelativePath;
return result;
} // nsNativeFileSpec::operator +
} // nsFileSpec::operator +
//========================================================================================
// class nsPersistentFileDescriptor
//========================================================================================
//----------------------------------------------------------------------------------------
nsPersistentFileDescriptor::nsPersistentFileDescriptor(const nsPersistentFileDescriptor& inDesc)
//----------------------------------------------------------------------------------------
: mDescriptorString(nsFileSpecHelpers::StringDup(inDesc.mDescriptorString))
{
} // nsPersistentFileDescriptor::nsPersistentFileDescriptor
//----------------------------------------------------------------------------------------
void nsPersistentFileDescriptor::operator = (const nsPersistentFileDescriptor& inDesc)
//----------------------------------------------------------------------------------------
{
nsFileSpecHelpers::StringAssign(mDescriptorString, inDesc.mDescriptorString);
} // nsPersistentFileDescriptor::operator =
//----------------------------------------------------------------------------------------
nsPersistentFileDescriptor::nsPersistentFileDescriptor(const nsFileSpec& inSpec)
//----------------------------------------------------------------------------------------
: mDescriptorString(nsnull)
{
*this = inSpec;
} // nsPersistentFileDescriptor::nsPersistentFileDescriptor
//----------------------------------------------------------------------------------------
void nsPersistentFileDescriptor::operator = (const nsFileSpec& inSpec)
//----------------------------------------------------------------------------------------
{
#ifdef XP_MAC
if (inSpec.Error())
return;
AliasHandle aliasH;
OSErr err = NewAlias(nil, inSpec.operator const FSSpec* const (), &aliasH);
if (err != noErr)
return;
PRUint32 bytes = GetHandleSize((Handle) aliasH);
HLock((Handle) aliasH);
char* buf = PL_Base64Encode((const char*)*aliasH, bytes, nsnull);
DisposeHandle((Handle) aliasH);
nsFileSpecHelpers::StringAssign(mDescriptorString, buf);
PR_Free(buf);
#else
nsFileSpecHelpers::StringAssign(mDescriptorString, inSpec);
#endif // XP_MAC
} // nsPersistentFileDescriptor::operator =
//----------------------------------------------------------------------------------------
nsPersistentFileDescriptor::~nsPersistentFileDescriptor()
//----------------------------------------------------------------------------------------
{
delete [] mDescriptorString;
} // nsPersistentFileDescriptor::~nsPersistentFileDescriptor
//----------------------------------------------------------------------------------------
void nsPersistentFileDescriptor::GetData(void*& outData, PRInt32& outSize) const
//----------------------------------------------------------------------------------------
{
outSize = PL_strlen(mDescriptorString);
outData = mDescriptorString;
}
//----------------------------------------------------------------------------------------
void nsPersistentFileDescriptor::SetData(const void* inData, PRInt32 inSize)
//----------------------------------------------------------------------------------------
{
delete [] mDescriptorString;
mDescriptorString = new char[1 + inSize];
if (!mDescriptorString)
return;
memcpy(mDescriptorString, inData, inSize);
mDescriptorString[inSize] = '\0';
}
#define MAX_PERSISTENT_DATA_SIZE 1000
//----------------------------------------------------------------------------------------
nsInputStream& operator >> (nsInputStream& s, nsPersistentFileDescriptor& d)
// reads the data from a file
//----------------------------------------------------------------------------------------
{
char bigBuffer[MAX_PERSISTENT_DATA_SIZE + 1];
// The first 8 bytes of the data should be a hex version of the data size to follow.
PRInt32 bytesRead = 8;
bytesRead = s.read(bigBuffer, bytesRead);
if (bytesRead != 8)
return (nsInputFileStream&)s;
bigBuffer[8] = '\0';
sscanf(bigBuffer, "%lx", &bytesRead);
if (bytesRead > MAX_PERSISTENT_DATA_SIZE)
return (nsInputFileStream&)s; // preposterous.
// Now we know how many bytes to read, do it.
s.read(bigBuffer, bytesRead);
d.SetData(bigBuffer, bytesRead);
return (nsInputFileStream&)s;
}
//----------------------------------------------------------------------------------------
nsOutputStream& operator << (nsOutputStream& s, const nsPersistentFileDescriptor& d)
// writes the data to a file
//----------------------------------------------------------------------------------------
{
char littleBuf[9];
PRInt32 dataSize;
void* data;
d.GetData(data, dataSize);
// First write (in hex) the length of the data to follow. Exactly 8 bytes
sprintf(littleBuf, "%0.8x", dataSize);
s << littleBuf;
// Now write the data itself
s << d.mDescriptorString;
return s;
}

View File

@@ -22,332 +22,78 @@
#include "nsFileStream.h"
#include <string.h>
#include <stdio.h>
#ifdef XP_MAC
#include <Errors.h>
#endif
//========================================================================================
// nsBasicFileStream
// nsInputStream
//========================================================================================
//----------------------------------------------------------------------------------------
nsBasicFileStream::nsBasicFileStream()
nsInputStream::~nsInputStream()
//----------------------------------------------------------------------------------------
: mFileDesc(0)
, mNSPRMode(0)
, mFailed(false)
, mEOF(false)
{
mInputStream->Close();
}
//----------------------------------------------------------------------------------------
nsBasicFileStream::nsBasicFileStream(
const nsFilePath& inFile,
int nsprMode,
PRIntn accessMode)
char nsInputStream::get()
//----------------------------------------------------------------------------------------
: mFileDesc(0)
, mNSPRMode(0)
, mFailed(false)
, mEOF(false)
{
open(inFile, nsprMode, accessMode);
char c;
read(&c, sizeof(c));
return c;
}
//----------------------------------------------------------------------------------------
nsBasicFileStream::nsBasicFileStream(PRFileDesc* desc, int nsprMode)
static void TidyEndOfLine(char*& cp)
// Assumes that cp is pointing at \n or \r. Nulls out the character, checks for
// a second terminator (of the opposite persuasion), and returns cp pointing past the
// entire eol construct (one or two characters).
//----------------------------------------------------------------------------------------
: mFileDesc(desc)
, mNSPRMode(nsprMode)
, mFailed(false)
, mEOF(false)
{
char ch = *cp;
*cp++ = '\0'; // terminate at the newline, then skip past it
if ((ch == '\n' && *cp == '\r') || (ch == '\r' && *cp == '\n'))
cp++; // possibly a pair.
}
//----------------------------------------------------------------------------------------
nsBasicFileStream::~nsBasicFileStream()
nsInputStream& nsInputStream::operator >> (char& c)
//----------------------------------------------------------------------------------------
{
close();
}
//----------------------------------------------------------------------------------------
void nsBasicFileStream::open(
const nsFilePath& inFile,
int nsprMode,
PRIntn accessMode)
//----------------------------------------------------------------------------------------
{
if (mFileDesc)
return;
const int nspr_modes[]={
PR_WRONLY | PR_CREATE_FILE,
PR_WRONLY | PR_CREATE_FILE | PR_APPEND,
PR_WRONLY | PR_CREATE_FILE | PR_TRUNCATE,
PR_RDONLY,
PR_RDONLY | PR_APPEND,
PR_RDWR | PR_CREATE_FILE,
PR_RDWR | PR_CREATE_FILE | PR_TRUNCATE,
// "wb",
// "ab",
// "wb",
// "rb",
// "r+b",
// "w+b",
0 };
const int* currentLegalMode = nspr_modes;
while (*currentLegalMode && nsprMode != *currentLegalMode)
++currentLegalMode;
if (!*currentLegalMode)
return;
#ifdef XP_MAC
// Use the file spec to open the file, because one path can be common to
// several files on the Macintosh (you can have several volumes with the
// same name, see).
mFileDesc = 0;
if (inFile.GetNativeSpec().Error() != noErr)
return;
OSErr err = noErr;
#if DEBUG
const OSType kCreator = 'CWIE';
#else
const OSType kCreator = 'MOSS';
#endif
nsNativeFileSpec nativeSpec = inFile.GetNativeSpec();
FSSpec* spec = (FSSpec*)nativeSpec;
if (nsprMode & PR_CREATE_FILE)
err = FSpCreate(spec, kCreator, 'TEXT', 0);
if (err == dupFNErr)
err = noErr;
if (err != noErr)
return;
SInt8 perm;
if (nsprMode & PR_RDWR)
perm = fsRdWrPerm;
else if (nsprMode & PR_WRONLY)
perm = fsWrPerm;
else
perm = fsRdPerm;
short refnum;
err = FSpOpenDF(spec, perm, &refnum);
if (err == noErr && (nsprMode & PR_TRUNCATE))
err = SetEOF(refnum, 0);
if (err == noErr && (nsprMode & PR_APPEND))
err = SetFPos(refnum, fsFromLEOF, 0);
if (err != noErr)
return;
if ((mFileDesc = PR_ImportFile(refnum)) == 0)
return;
#else
// Platforms other than Macintosh...
// Another bug in NSPR: Mac PR_Open assumes a unix style path, but Win PR_Open assumes
// a windows path.
if ((mFileDesc = PR_Open((const char*)nsNativeFileSpec(inFile), nsprMode, accessMode)) == 0)
return;
#endif
mNSPRMode = nsprMode;
} // nsFileStreamHelpers::open
//----------------------------------------------------------------------------------------
void nsBasicFileStream::close()
// Must precede the destructor because both are inline.
//----------------------------------------------------------------------------------------
{
if (mFileDesc==PR_STDIN || mFileDesc==PR_STDOUT || mFileDesc==PR_STDERR || mFileDesc == 0)
return;
if (PR_Close(mFileDesc) == PR_SUCCESS)
mFileDesc = 0;
} // nsBasicFileStream::close
//----------------------------------------------------------------------------------------
void nsBasicFileStream::seek(PRSeekWhence whence, PRInt32 offset)
// Must precede the destructor because both are inline.
//----------------------------------------------------------------------------------------
{
if (mFileDesc==PR_STDIN || mFileDesc==PR_STDOUT || mFileDesc==PR_STDERR || mFileDesc == 0)
return;
mFailed = false; // reset on a seek.
mEOF = false; // reset on a seek.
PRInt32 position = PR_Seek(mFileDesc, 0, PR_SEEK_CUR);
PRInt32 available = PR_Available(mFileDesc);
PRInt32 fileSize = position + available;
PRInt32 newPosition;
switch (whence)
{
case PR_SEEK_CUR: newPosition = position + offset; break;
case PR_SEEK_SET: newPosition = offset; break;
case PR_SEEK_END: newPosition = fileSize + offset; break;
}
if (newPosition < 0)
{
newPosition = 0;
mFailed = true;
}
else if (newPosition >= fileSize)
{
newPosition = fileSize;
mEOF = true;
}
if (PR_Seek(mFileDesc, newPosition, PR_SEEK_SET) < 0)
mFailed = true;
} // nsBasicFileStream::seek
//----------------------------------------------------------------------------------------
PRIntn nsBasicFileStream::tell() const
// Must precede the destructor because both are inline.
//----------------------------------------------------------------------------------------
{
if (mFileDesc==PR_STDIN || mFileDesc==PR_STDOUT || mFileDesc==PR_STDERR || mFileDesc == 0)
return -1;
return PR_Seek(mFileDesc, 0, PR_SEEK_CUR);
} // nsBasicFileStream::tell
//========================================================================================
// nsBasicInStream
//========================================================================================
//----------------------------------------------------------------------------------------
nsBasicInStream::nsBasicInStream(nsBasicFileStream& inBasicStream, istream* inStream)
//----------------------------------------------------------------------------------------
: mBase(inBasicStream)
, mStdStream(inStream)
{
}
//----------------------------------------------------------------------------------------
void nsBasicInStream::get(char& c)
//----------------------------------------------------------------------------------------
{
read(&c, sizeof(char));
}
//----------------------------------------------------------------------------------------
PRBool nsBasicInStream::readline(char* s, PRInt32 n)
// This will truncate if the buffer is too small. Result will always be null-terminated.
//----------------------------------------------------------------------------------------
{
PRBool bufferLargeEnough = true; // result
if (!s || !n)
return true;
PRIntn position = mBase.tell();
if (position < 0)
return false;
PRInt32 bytesRead = read(s, n - 1);
if (mBase.failed())
return false;
s[bytesRead] = '\0'; // always terminate at the end of the buffer
char* tp = strpbrk(s, "\n\r");
if (tp)
{
char ch = *tp;
*tp++ = '\0'; // terminate at the newline, then skip past it
if ((ch == '\n' && *tp == '\r') || (ch == '\r' && *tp == '\n'))
tp++; // possibly a pair.
bytesRead = (tp - s);
}
else if (!mBase.eof())
bufferLargeEnough = false;
position += bytesRead;
mBase.seek(position);
return bufferLargeEnough;
} // nsBasicInStream::getline
//----------------------------------------------------------------------------------------
PRInt32 nsBasicInStream::read(void* s, PRInt32 n)
//----------------------------------------------------------------------------------------
{
#ifndef NS_USE_PR_STDIO
// Calling PR_Read on stdin is sure suicide on Macintosh.
if (GetStandardStream())
{
GetStandardStream()->read((char*)s, n);
return n;
}
#endif
if (!mBase.is_open() || mBase.failed())
return -1;
PRInt32 bytesRead = PR_Read(mBase.GetFileDescriptor(), s, n);
if (bytesRead < 0)
mBase.mFailed = true;
else if (bytesRead < n)
mBase.mEOF = true;
return bytesRead;
}
//----------------------------------------------------------------------------------------
nsBasicInStream& nsBasicInStream::operator >> (char& c)
//----------------------------------------------------------------------------------------
{
get(c);
c = get();
return *this;
}
//========================================================================================
// nsInputFileStream
// nsOutputStream
//========================================================================================
//----------------------------------------------------------------------------------------
nsInputFileStream::nsInputFileStream(istream* stream)
nsOutputStream::~nsOutputStream()
//----------------------------------------------------------------------------------------
#ifndef NS_USE_PR_STDIO
: nsBasicFileStream(0, kDefaultMode)
, nsBasicInStream(*this, stream)
#else
: nsBasicFileStream(PR_STDIN, kDefaultMode)
, nsBasicInStream(*this, 0)
#endif
{
}
//========================================================================================
// nsBasicOutStream
//========================================================================================
//----------------------------------------------------------------------------------------
nsBasicOutStream::nsBasicOutStream(nsBasicFileStream& inBase, ostream* stream)
//----------------------------------------------------------------------------------------
: mBase(inBase)
, mStdStream(stream)
{
mOutputStream->Close();
}
//----------------------------------------------------------------------------------------
void nsBasicOutStream::put(char c)
void nsOutputStream::put(char c)
//----------------------------------------------------------------------------------------
{
write(&c, sizeof(c));
}
//----------------------------------------------------------------------------------------
PRInt32 nsBasicOutStream::write(const void* s, PRInt32 n)
void nsOutputStream::flush()
//----------------------------------------------------------------------------------------
{
#ifndef NS_USE_PR_STDIO
// Calling PR_Write on stdout is sure suicide.
if (mStdStream)
{
mStdStream->write((const char*)s, n);
return n;
}
#endif
if (!mBase.mFileDesc || mBase.failed())
return -1;
PRInt32 bytesWrit = PR_Write(mBase.mFileDesc, s, n);
if (bytesWrit != n)
mBase.mFailed = true;
return bytesWrit;
}
//----------------------------------------------------------------------------------------
nsBasicOutStream& nsBasicOutStream::operator << (char c)
nsOutputStream& nsOutputStream::operator << (char c)
//----------------------------------------------------------------------------------------
{
put(c);
@@ -355,7 +101,7 @@ nsBasicOutStream& nsBasicOutStream::operator << (char c)
}
//----------------------------------------------------------------------------------------
nsBasicOutStream& nsBasicOutStream::operator << (const char* s)
nsOutputStream& nsOutputStream::operator << (const char* s)
//----------------------------------------------------------------------------------------
{
write(s, strlen(s));
@@ -363,78 +109,84 @@ nsBasicOutStream& nsBasicOutStream::operator << (const char* s)
}
//----------------------------------------------------------------------------------------
nsBasicOutStream& nsBasicOutStream::operator << (short val)
nsOutputStream& nsOutputStream::operator << (short val)
//----------------------------------------------------------------------------------------
{
char buf[30];
sprintf(buf, "%d", val);
return *this << buf;
return (*this << buf);
}
//----------------------------------------------------------------------------------------
nsBasicOutStream& nsBasicOutStream::operator << (unsigned short val)
nsOutputStream& nsOutputStream::operator << (unsigned short val)
//----------------------------------------------------------------------------------------
{
char buf[30];
sprintf(buf, "%ud", val);
return *this << buf;
return (*this << buf);
}
//----------------------------------------------------------------------------------------
nsBasicOutStream& nsBasicOutStream::operator << (long val)
nsOutputStream& nsOutputStream::operator << (long val)
//----------------------------------------------------------------------------------------
{
char buf[30];
sprintf(buf, "%ld", val);
return *this << buf;
return (*this << buf);
}
//----------------------------------------------------------------------------------------
nsBasicOutStream& nsBasicOutStream::operator << (unsigned long val)
nsOutputStream& nsOutputStream::operator << (unsigned long val)
//----------------------------------------------------------------------------------------
{
char buf[30];
sprintf(buf, "%uld", val);
return *this << buf;
return (*this << buf);
}
//========================================================================================
// nsInputFileStream
//========================================================================================
//----------------------------------------------------------------------------------------
void nsBasicOutStream::flush()
// Must precede the destructor because both are inline.
PRBool nsInputFileStream::readline(char* s, PRInt32 n)
// This will truncate if the buffer is too small. Result will always be null-terminated.
//----------------------------------------------------------------------------------------
{
#ifndef NS_USE_PR_STDIO
if (mStdStream)
PRBool bufferLargeEnough = PR_TRUE; // result
if (!s || !n)
return PR_TRUE;
PRIntn position = tell();
if (position < 0)
return PR_FALSE;
PRInt32 bytesRead = read(s, n - 1);
if (failed())
return PR_FALSE;
s[bytesRead] = '\0'; // always terminate at the end of the buffer
char* tp = strpbrk(s, "\n\r");
if (tp)
{
mStdStream->flush();
return;
TidyEndOfLine(tp);
bytesRead = (tp - s);
}
#endif
if (mBase.mFileDesc == 0)
return;
PRBool itFailed = PR_Sync(mBase.mFileDesc) != PR_SUCCESS;
#ifdef XP_MAC
// On unix, it seems to fail always.
if (itFailed)
mBase.mFailed = true;
#endif
} // nsBasicOutStream::flush
else if (!eof())
bufferLargeEnough = PR_FALSE;
position += bytesRead;
seek(position);
return bufferLargeEnough;
} // nsInputStream::readline
//========================================================================================
// nsOutputFileStream
//========================================================================================
//----------------------------------------------------------------------------------------
nsOutputFileStream::nsOutputFileStream(ostream* stream)
void nsOutputFileStream::flush()
//----------------------------------------------------------------------------------------
#ifndef NS_USE_PR_STDIO
: nsBasicFileStream(0, kDefaultMode)
, nsBasicOutStream(*this, stream)
#else
: nsBasicFileStream(PR_STDOUT, kDefaultMode)
, nsBasicOutStream(*this, 0)
#endif
{
if (mFileOutputStream)
mFileOutputStream->Flush();
}
//========================================================================================
@@ -442,19 +194,10 @@ nsOutputFileStream::nsOutputFileStream(ostream* stream)
//========================================================================================
//----------------------------------------------------------------------------------------
nsBasicOutStream& nsEndl(nsBasicOutStream& os)
nsOutputStream& nsEndl(nsOutputStream& os)
//----------------------------------------------------------------------------------------
{
#ifndef NS_USE_PR_STDIO
// Calling PR_Write on stdout is sure suicide on Macintosh.
ostream* stream = os.GetStandardStream();
if (stream)
{
*stream << std::endl;
return os;
}
#endif
os.put('\n');
os.flush();
return os;
}
os.put('\n');
os.flush();
return os;
} // nsEndl

View File

@@ -0,0 +1,22 @@
#include "nscore.h"
#include "nsCaretProperties.h"
//-----------------------------------------------------------------------------
nsCaretProperties::nsCaretProperties()
: mCaretWidth(eDefaultCaretWidth)
, mBlinkRate(eDefaulBlinkRate)
{
// in your platform-specific class, get data from the OS in your constructor
}
//-----------------------------------------------------------------------------
nsCaretProperties* NewCaretProperties()
{
return new nsCaretProperties();
}

View File

@@ -35,6 +35,8 @@ class nsISizeOfHandler;
*/
class nsIAtom : public nsISupports {
public:
static const nsIID& IID() { static nsIID iid = NS_IATOM_IID; return iid; }
/**
* Translate the unicode string into the stringbuf.
*/

View File

@@ -31,6 +31,8 @@
class nsIBaseStream : public nsISupports {
public:
static const nsIID& IID() { static nsIID iid = NS_IBASESTREAM_IID; return iid; }
/** Close the stream. */
NS_IMETHOD
Close(void) = 0;

View File

@@ -0,0 +1,451 @@
#include "nsIFileStream.h"
#include "nsFileSpec.h"
#include "prerror.h"
#ifdef XP_MAC
#include "pprio.h" // To get PR_ImportFile
#else
#include "prio.h"
#endif
#ifdef XP_MAC
#include <Errors.h>
#include <iostream>
#endif
//========================================================================================
class FileImpl
: public nsIOutputStream
, public nsIInputStream
, public nsIFileOutputStream
, public nsIFileInputStream
, public nsIFile
//========================================================================================
{
public:
FileImpl(PRFileDesc* inDesc)
: mFileDesc(inDesc)
, mFailed(PR_FALSE)
, mEOF(PR_FALSE)
, mLength(-1)
{
NS_INIT_REFCNT();
}
FileImpl(
const nsFileSpec& inFile,
int nsprMode,
PRIntn accessMode)
: mFileDesc(nsnull)
, mFailed(PR_FALSE)
, mEOF(PR_FALSE)
{
NS_INIT_REFCNT();
Open(inFile, nsprMode, accessMode);
}
virtual ~FileImpl()
{
Close();
}
// nsISupports interface
NS_DECL_ISUPPORTS
// nsIFile interface
NS_IMETHOD Open(
const nsFileSpec& inFile,
int nsprMode,
PRIntn accessMode);
NS_IMETHOD Close();
NS_IMETHOD Seek(PRSeekWhence whence, PRInt32 offset);
NS_IMETHOD GetIsOpen(PRBool* outOpen)
{
*outOpen = (mFileDesc != nsnull);
return NS_OK;
}
NS_IMETHOD Tell(PRIntn* outWhere);
// nsIInputStream interface
NS_IMETHOD GetLength(PRUint32 *aLength)
{
NS_PRECONDITION(aLength != nsnull, "null ptr");
if (!aLength)
return NS_ERROR_NULL_POINTER;
if (mLength < 0)
return NS_FILE_RESULT(NS_ERROR_UNEXPECTED);
*aLength = mLength;
return NS_OK;
}
NS_IMETHOD Read(char* aBuf,
PRUint32 aOffset,
PRUint32 aCount,
PRUint32 *aReadCount)
{
NS_PRECONDITION(aBuf != nsnull, "null ptr");
if (!aBuf)
return NS_ERROR_NULL_POINTER;
NS_PRECONDITION(aReadCount != nsnull, "null ptr");
if (!aReadCount)
return NS_ERROR_NULL_POINTER;
if (!mFileDesc)
return NS_FILE_RESULT(PR_BAD_DESCRIPTOR_ERROR);
if (mFailed)
return NS_ERROR_FAILURE;
if (aOffset)
PR_Seek(mFileDesc, aOffset, PR_SEEK_CUR);
PRInt32 bytesRead = PR_Read(mFileDesc, aBuf, aCount);
if (bytesRead < 0)
{
*aReadCount = 0;
mFailed = PR_TRUE;
return NS_FILE_RESULT(PR_GetError());
}
*aReadCount = bytesRead;
return NS_OK;
}
// nsIOutputStream interface
NS_IMETHOD Write(const char* aBuf,
PRUint32 aOffset,
PRUint32 aCount,
PRUint32 *aWriteCount)
{
NS_PRECONDITION(aBuf != nsnull, "null ptr");
NS_PRECONDITION(aWriteCount != nsnull, "null ptr");
#ifdef XP_MAC
// Calling PR_Write on stdout is sure suicide.
if (mFileDesc == PR_STDOUT || mFileDesc == PR_STDERR)
{
cout.write(aBuf, aCount);
*aWriteCount = aCount;
return NS_OK;
}
#endif
if (!mFileDesc)
return NS_FILE_RESULT(PR_BAD_DESCRIPTOR_ERROR);
if (mFailed)
return NS_ERROR_FAILURE;
if (aOffset)
PR_Seek(mFileDesc, aOffset, PR_SEEK_CUR);
PRInt32 bytesWrit = PR_Write(mFileDesc, aBuf, aCount);
if (bytesWrit != aCount)
{
mFailed = PR_TRUE;
*aWriteCount = 0;
return NS_FILE_RESULT(PR_GetError());
}
*aWriteCount = bytesWrit;
return NS_OK;
}
NS_IMETHOD Flush();
protected:
PRFileDesc* mFileDesc;
int mNSPRMode;
PRBool mFailed;
PRBool mEOF;
PRInt32 mLength;
}; // class FileImpl
#define SAY_I_IMPLEMENT(classname) \
if (aIID.Equals(classname::IID())) \
{ \
*aInstancePtr = (void*)((classname*)this); \
NS_ADDREF_THIS(); \
return NS_OK; \
}
NS_IMPL_RELEASE(FileImpl)
NS_IMPL_ADDREF(FileImpl)
//----------------------------------------------------------------------------------------
NS_IMETHODIMP FileImpl::QueryInterface(REFNSIID aIID, void** aInstancePtr)
//----------------------------------------------------------------------------------------
{
if (!aInstancePtr)
return NS_ERROR_NULL_POINTER;
*aInstancePtr = nsnull;
SAY_I_IMPLEMENT(nsIFile)
SAY_I_IMPLEMENT(nsIOutputStream)
SAY_I_IMPLEMENT(nsIInputStream)
SAY_I_IMPLEMENT(nsIFileInputStream)
SAY_I_IMPLEMENT(nsIFileOutputStream)
// Note that we derive from two copies of nsIBaseStream (and hence
// of nsISupports), one through
// nsIOutputStream, the other through nsIInputStream. Resolve this
// by giving them a specific one
if (aIID.Equals(((nsIBaseStream*)(nsIOutputStream*)this)->IID()))
{
*aInstancePtr = (void*)((nsIBaseStream*)(nsIOutputStream*)this);
NS_ADDREF_THIS();
return NS_OK;
}
if (aIID.Equals(((nsISupports*)(nsIOutputStream*)this)->IID()))
{
*aInstancePtr = (void*)((nsISupports*)(nsIOutputStream*)this);
NS_ADDREF_THIS();
return NS_OK;
}
return NS_NOINTERFACE;
} // FileImpl::QueryInterface
//----------------------------------------------------------------------------------------
NS_IMETHODIMP FileImpl::Open(
const nsFileSpec& inFile,
int nsprMode,
PRIntn accessMode)
//----------------------------------------------------------------------------------------
{
if (mFileDesc)
if ((nsprMode & mNSPRMode) == nsprMode)
return NS_OK;
else
return NS_FILE_RESULT(PR_ILLEGAL_ACCESS_ERROR);
const int nspr_modes[]={
PR_WRONLY | PR_CREATE_FILE,
PR_WRONLY | PR_CREATE_FILE | PR_APPEND,
PR_WRONLY | PR_CREATE_FILE | PR_TRUNCATE,
PR_RDONLY,
PR_RDONLY | PR_APPEND,
PR_RDWR | PR_CREATE_FILE,
PR_RDWR | PR_CREATE_FILE | PR_TRUNCATE,
// "wb",
// "ab",
// "wb",
// "rb",
// "r+b",
// "w+b",
0 };
const int* currentLegalMode = nspr_modes;
while (*currentLegalMode && nsprMode != *currentLegalMode)
++currentLegalMode;
if (!*currentLegalMode)
return NS_FILE_RESULT(PR_ILLEGAL_ACCESS_ERROR);
#ifdef XP_MAC
// Use the file spec to open the file, because one path can be common to
// several files on the Macintosh (you can have several volumes with the
// same name, see).
mFileDesc = 0;
if (inFile.Error() != noErr)
return NS_FILE_RESULT(inFile.Error());
OSErr err = noErr;
#if DEBUG
const OSType kCreator = 'CWIE';
#else
const OSType kCreator = 'MOSS';
#endif
// Resolve the alias to the original file.
nsFileSpec original = inFile;
PRBool ignoredResult;
original.ResolveAlias(ignoredResult);
const FSSpec& spec = original.operator const FSSpec&();
if (nsprMode & PR_CREATE_FILE)
err = FSpCreate(&spec, kCreator, 'TEXT', 0);
if (err == dupFNErr)
err = noErr;
if (err != noErr)
return NS_FILE_RESULT(err);
SInt8 perm;
if (nsprMode & PR_RDWR)
perm = fsRdWrPerm;
else if (nsprMode & PR_WRONLY)
perm = fsWrPerm;
else
perm = fsRdPerm;
short refnum;
err = FSpOpenDF(&spec, perm, &refnum);
if (err == noErr && (nsprMode & PR_TRUNCATE))
err = SetEOF(refnum, 0);
if (err == noErr && (nsprMode & PR_APPEND))
err = SetFPos(refnum, fsFromLEOF, 0);
if (err != noErr)
return NS_FILE_RESULT(err);
if ((mFileDesc = PR_ImportFile(refnum)) == 0)
return NS_FILE_RESULT(PR_GetError());
#else
// Platforms other than Macintosh...
// Another bug in NSPR: Mac PR_Open assumes a unix style path, but Win PR_Open assumes
// a windows path.
if ((mFileDesc = PR_Open((const char*)nsFileSpec(inFile), nsprMode, accessMode)) == 0)
return NS_FILE_RESULT(PR_GetError());
#endif
mNSPRMode = nsprMode;
mLength = PR_Available(mFileDesc);
return NS_OK;
} // FileImpl::Open
//----------------------------------------------------------------------------------------
NS_IMETHODIMP FileImpl::Seek(PRSeekWhence whence, PRInt32 offset)
//----------------------------------------------------------------------------------------
{
if (mFileDesc==PR_STDIN || mFileDesc==PR_STDOUT || mFileDesc==PR_STDERR || !mFileDesc)
return NS_FILE_RESULT(PR_BAD_DESCRIPTOR_ERROR);
mFailed = PR_FALSE; // reset on a seek.
mEOF = PR_FALSE; // reset on a seek.
PRInt32 position = PR_Seek(mFileDesc, 0, PR_SEEK_CUR);
PRInt32 available = PR_Available(mFileDesc);
PRInt32 fileSize = position + available;
PRInt32 newPosition;
switch (whence)
{
case PR_SEEK_CUR: newPosition = position + offset; break;
case PR_SEEK_SET: newPosition = offset; break;
case PR_SEEK_END: newPosition = fileSize + offset; break;
}
if (newPosition < 0)
{
newPosition = 0;
mFailed = PR_TRUE;
}
else if (newPosition >= fileSize)
{
newPosition = fileSize;
mEOF = PR_TRUE;
}
if (PR_Seek(mFileDesc, newPosition, PR_SEEK_SET) < 0)
mFailed = PR_TRUE;
return NS_OK;
} // FileImpl::Seek
//----------------------------------------------------------------------------------------
NS_IMETHODIMP FileImpl::Tell(PRIntn* outWhere)
//----------------------------------------------------------------------------------------
{
if (mFileDesc==PR_STDIN || mFileDesc==PR_STDOUT || mFileDesc==PR_STDERR || !mFileDesc)
return NS_FILE_RESULT(PR_BAD_DESCRIPTOR_ERROR);
*outWhere = PR_Seek(mFileDesc, 0, PR_SEEK_CUR);
return NS_OK;
} // FileImpl::Tell
//----------------------------------------------------------------------------------------
NS_IMETHODIMP FileImpl::Close()
//----------------------------------------------------------------------------------------
{
if (mFileDesc==PR_STDIN || mFileDesc==PR_STDOUT || mFileDesc==PR_STDERR || !mFileDesc)
return NS_OK;
if (PR_Close(mFileDesc) == PR_SUCCESS)
mFileDesc = 0;
else
return NS_FILE_RESULT(PR_GetError());
return NS_OK;
} // FileImpl::close
//----------------------------------------------------------------------------------------
NS_IMETHODIMP FileImpl::Flush()
//----------------------------------------------------------------------------------------
{
#ifdef XP_MAC
if (mFileDesc == PR_STDOUT || mFileDesc == PR_STDERR)
{
cout.flush();
return NS_OK;
}
#endif
if (!mFileDesc)
return NS_FILE_RESULT(PR_BAD_DESCRIPTOR_ERROR);
PRBool itFailed = PR_Sync(mFileDesc) != PR_SUCCESS;
#ifdef XP_MAC
// On unix, it seems to fail always.
if (itFailed)
mFailed = PR_TRUE;
#endif
return NS_OK;
} // FileImpl::flush
//----------------------------------------------------------------------------------------
NS_BASE nsresult NS_NewTypicalInputFileStream(
nsISupports** aResult,
const nsFileSpec& inFile
/*Default nsprMode == PR_RDONLY*/
/*Default accessmode = 0700 (octal)*/)
// Factory method to get an nsInputStream from a file, using most common options
//----------------------------------------------------------------------------------------
{
return NS_NewIOFileStream(aResult, inFile, PR_RDONLY, 0700);
}
//----------------------------------------------------------------------------------------
NS_BASE nsresult NS_NewOutputConsoleStream(
nsISupports** aResult)
// Factory method to get an nsOutputStream to the console.
//----------------------------------------------------------------------------------------
{
NS_PRECONDITION(aResult != nsnull, "null ptr");
if (! aResult)
return NS_ERROR_NULL_POINTER;
FileImpl* stream = new FileImpl(PR_STDOUT);
if (! stream)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(stream);
*aResult = (nsISupports*)(void*)stream;
return NS_OK;
}
//----------------------------------------------------------------------------------------
NS_BASE nsresult NS_NewTypicalOutputFileStream(
nsISupports** aResult,
const nsFileSpec& inFile
/*default nsprMode= (PR_WRONLY | PR_CREATE_FILE | PR_TRUNCATE)*/
/*Default accessMode= 0700 (octal)*/)
// Factory method to get an nsOutputStream to a file - most common case.
//----------------------------------------------------------------------------------------
{
return NS_NewIOFileStream(
aResult,
inFile,
(PR_WRONLY | PR_CREATE_FILE | PR_TRUNCATE),
0700);
}
//----------------------------------------------------------------------------------------
NS_BASE nsresult NS_NewIOFileStream(
nsISupports** aResult,
const nsFileSpec& inFile,
PRInt32 nsprMode /*default = (PR_WRONLY | PR_CREATE_FILE | PR_TRUNCATE)*/,
PRInt32 accessMode /*Default = 0700 (octal)*/)
// Factory method to get an object that implements both nsIInputStream
// and nsIOutputStream, associated with a file.
//----------------------------------------------------------------------------------------
{
NS_PRECONDITION(aResult != nsnull, "null ptr");
if (!aResult)
return NS_ERROR_NULL_POINTER;
FileImpl* stream = new FileImpl(inFile, nsprMode, accessMode);
if (! stream)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(stream);
*aResult = (nsISupports*)(void*)stream;
return NS_OK;
}
//----------------------------------------------------------------------------------------
NS_BASE nsresult NS_NewTypicalIOFileStream(
nsISupports** aResult,
const nsFileSpec& inFile
/*default nsprMode= (PR_RDWR | PR_CREATE_FILE)*/
/*Default accessMode= 0700 (octal)*/)
// Factory method to get an object that implements both nsIInputStream
// and nsIOutputStream, associated with a single file.
//----------------------------------------------------------------------------------------
{
return NS_NewIOFileStream(
aResult,
inFile,
(PR_RDWR | PR_CREATE_FILE),
0700);
}

View File

@@ -28,6 +28,8 @@
class nsIInputStream : public nsIBaseStream {
public:
static const nsIID& IID() { static nsIID iid = NS_IINPUTSTREAM_IID; return iid; }
/** Return the number of bytes in the stream
* @param aLength out parameter to hold the length
* of the stream. if an error occurs, the length

View File

@@ -29,6 +29,8 @@
class nsIOutputStream : public nsIBaseStream {
public:
static const nsIID& IID() { static nsIID iid = NS_IOUTPUTSTREAM_IID; return iid; }
/** Write data into the stream.
* @param aBuf the buffer into which the data is read
* @param aOffset the start offset of the data

View File

@@ -25,11 +25,6 @@ class nsString;
{ 0x2d97fbf0, 0x93b5, 0x11d1, \
{0x89, 0x5b, 0x00, 0x60, 0x08, 0x91, 0x1b, 0x81} }
#define NS_IB2UCONVERTER_IID \
{ 0x35e40290, 0x93b5, 0x11d1, \
{0x89, 0x5b, 0x00, 0x60, 0x08, 0x91, 0x1b, 0x81} }
/** Abstract unicode character input stream
* @see nsIInputStream
*/
@@ -52,21 +47,6 @@ extern NS_BASE nsresult
NS_NewStringUnicharInputStream(nsIUnicharInputStream** aInstancePtrResult,
nsString* aString);
/// Abstract interface for converting from bytes to unicode characters
class nsIB2UConverter : public nsISupports {
public:
/** aDstLen is updated to indicate how much data was translated into
* aDst; aSrcLen is updated to indicate how much data was used in
* the source buffer.
*/
NS_IMETHOD Convert(PRUnichar* aDst,
PRUint32 aDstOffset,
PRUint32& aDstLen,
const char* aSrc,
PRUint32 aSrcOffset,
PRUint32& aSrcLen) = 0;
};
/** Create a new nsUnicharInputStream that provides a converter for the
* byte input stream aStreamToWrap. If no converter can be found then
* nsnull is returned and the error code is set to
@@ -79,13 +59,4 @@ extern NS_BASE nsresult
PRInt32 aBufferSize = 0,
nsString* aCharSet = nsnull);
/** Create a new nsB2UConverter for the given character set. When given
* nsnull, the converter for iso-latin1 to unicode is provided. If no
* converter can be found, nsnull is returned.
*/
extern NS_BASE nsresult
NS_NewB2UConverter(nsIB2UConverter** aInstancePtrResult,
nsISupports* aOuter,
nsString* aCharSet = nsnull);
#endif /* nsUnicharInputStream_h___ */

View File

@@ -32,7 +32,7 @@ class nsProperties : public nsIProperties
{
public:
nsProperties();
~nsProperties();
virtual ~nsProperties();
NS_DECL_ISUPPORTS
@@ -61,9 +61,19 @@ nsProperties::nsProperties()
mTable = nsnull;
}
PR_CALLBACK PRIntn
FreeHashEntries(PLHashEntry* he, PRIntn i, void* arg)
{
delete[] (PRUnichar*)he->key;
delete[] (PRUnichar*)he->value;
return HT_ENUMERATE_REMOVE;
}
nsProperties::~nsProperties()
{
if (mTable) {
// Free the PRUnicode* pointers contained in the hash table entries
PL_HashTableEnumerateEntries(mTable, FreeHashEntries, 0);
PL_HashTableDestroy(mTable);
mTable = nsnull;
}
@@ -126,7 +136,8 @@ nsProperties::Load(nsIInputStream *aIn)
}
}
mIn->Close();
mIn = nsnull;
NS_RELEASE(mIn);
NS_ASSERTION(!mIn, "unexpected remaining reference");
return NS_OK;
}
@@ -147,7 +158,11 @@ NS_IMETHODIMP
nsProperties::SetProperty(const nsString& aKey, nsString& aNewValue,
nsString& aOldValue)
{
// XXX The ToNewCString() calls allocate memory using "new" so this code
// causes a memory leak...
#if 0
cout << "will add " << aKey.ToNewCString() << "=" << aNewValue.ToNewCString() << endl;
#endif
if (!mTable) {
mTable = PL_NewHashTable(8, (PLHashFunction) HashKey,
(PLHashComparator) CompareKeys,
@@ -157,16 +172,16 @@ nsProperties::SetProperty(const nsString& aKey, nsString& aNewValue,
}
}
PRUnichar *key = aKey.ToNewUnicode();
PRInt32 len;
const PRUnichar *key = aKey.GetUnicode(); // returns internal pointer (not a copy)
PRUint32 len;
PRUint32 hashValue = nsCRT::HashValue(key, &len);
PLHashEntry **hep = PL_HashTableRawLookup(mTable, hashValue, key);
PLHashEntry *he = *hep;
if (he && aOldValue) {
// XXX fix me
}
PL_HashTableRawAdd(mTable, hep, hashValue, key,
new nsString(aNewValue.ToNewUnicode()));
PL_HashTableRawAdd(mTable, hep, hashValue, aKey.ToNewUnicode(),
aNewValue.ToNewUnicode());
return NS_OK;
}
@@ -190,13 +205,13 @@ nsProperties::Subclass(nsIProperties* aSubclass)
NS_IMETHODIMP
nsProperties::GetProperty(const nsString& aKey, nsString& aValue)
{
PRUnichar *key = aKey;
PRInt32 len;
const PRUnichar *key = aKey;
PRUint32 len;
PRUint32 hashValue = nsCRT::HashValue(key, &len);
PLHashEntry **hep = PL_HashTableRawLookup(mTable, hashValue, key);
PLHashEntry *he = *hep;
if (he) {
((nsString *) he->value)->Copy(aValue);
aValue = (const PRUnichar*)he->value;
return NS_OK;
}
@@ -247,6 +262,15 @@ nsProperties::SkipLine(PRInt32 c)
return c;
}
nsPropertiesFactory::nsPropertiesFactory()
{
NS_INIT_REFCNT();
}
nsPropertiesFactory::~nsPropertiesFactory()
{
}
NS_DEFINE_IID(kIFactoryIID, NS_IFACTORY_IID);
NS_IMPL_ISUPPORTS(nsPropertiesFactory, kIFactoryIID);

View File

@@ -21,9 +21,12 @@
#include "nsIFactory.h"
class nsPropertiesFactory : nsIFactory
class nsPropertiesFactory : public nsIFactory
{
public:
nsPropertiesFactory();
virtual ~nsPropertiesFactory();
NS_DECL_ISUPPORTS
NS_IMETHOD CreateInstance(nsISupports* aOuter, REFNSIID aIID,

View File

@@ -27,6 +27,11 @@
#include "prdtoa.h"
#include "nsISizeOfHandler.h"
#include "nsUnicharUtilCIID.h"
#include "nsIServiceManager.h"
#include "nsICaseConversion.h"
const PRInt32 kGrowthDelta = 8;
const PRInt32 kNotFound = -1;
PRUnichar gBadChar = 0;
@@ -96,6 +101,57 @@ public:
};
static CTableConstructor gTableConstructor;
//---- XPCOM code to connect with UnicharUtil
class HandleCaseConversionShutdown2 : public nsIShutdownListener {
public :
NS_IMETHOD OnShutdown(const nsCID& cid, nsISupports* service);
HandleCaseConversionShutdown2(void) { NS_INIT_REFCNT(); }
virtual ~HandleCaseConversionShutdown2(void) {}
NS_DECL_ISUPPORTS
};
static NS_DEFINE_CID(kUnicharUtilCID, NS_UNICHARUTIL_CID);
static NS_DEFINE_IID(kICaseConversionIID, NS_ICASECONVERSION_IID);
static nsICaseConversion * gCaseConv = NULL;
static NS_DEFINE_IID(kIShutdownListenerIID, NS_ISHUTDOWNLISTENER_IID);
NS_IMPL_ISUPPORTS(HandleCaseConversionShutdown2, kIShutdownListenerIID);
nsresult
HandleCaseConversionShutdown2::OnShutdown(const nsCID& cid, nsISupports* service)
{
if (cid.Equals(kUnicharUtilCID)) {
NS_ASSERTION(service == gCaseConv, "wrong service!");
nsrefcnt cnt = gCaseConv->Release();
gCaseConv = NULL;
}
return NS_OK;
}
static HandleCaseConversionShutdown2* gListener = NULL;
static void StartUpCaseConversion()
{
nsresult err;
if ( NULL == gListener )
{
gListener = new HandleCaseConversionShutdown2();
gListener->AddRef();
}
err = nsServiceManager::GetService(kUnicharUtilCID, kICaseConversionIID,
(nsISupports**) &gCaseConv, gListener);
}
static void CheckCaseConversion()
{
if(NULL == gCaseConv )
StartUpCaseConversion();
NS_ASSERTION( gCaseConv != NULL , "cannot obtain UnicharUtil");
}
/***********************************************************************
IMPLEMENTATION NOTES:
@@ -294,7 +350,7 @@ const PRUnichar* nsString::GetUnicode(void) const{
return mStr;
}
nsString::operator PRUnichar*() const{
nsString::operator const PRUnichar*() const{
return mStr;
}
@@ -431,6 +487,14 @@ nsString nsString::operator+(PRUnichar aChar) {
*/
void nsString::ToLowerCase()
{
// I18N code begin
CheckCaseConversion();
nsresult err = gCaseConv->ToLower(mStr, mStr, mLength);
if( NS_SUCCEEDED(err))
return;
// I18N code end
// somehow UnicharUtil return failed, fallback to the old ascii only code
chartype* cp = mStr;
chartype* end = cp + mLength;
while (cp < end) {
@@ -448,6 +512,14 @@ void nsString::ToLowerCase()
*/
void nsString::ToUpperCase()
{
// I18N code begin
CheckCaseConversion();
nsresult err = gCaseConv->ToUpper(mStr, mStr, mLength);
if( NS_SUCCEEDED(err))
return;
// I18N code end
// somehow UnicharUtil return failed, fallback to the old ascii only code
chartype* cp = mStr;
chartype* end = cp + mLength;
while (cp < end) {
@@ -468,7 +540,8 @@ void nsString::ToUCS2(PRInt32 aStartOffset){
chartype* end = cp + mLength;
while (cp < end) {
unsigned char ch = (unsigned char)*cp;
*cp=gToUCS2[ch];
if( 0x0080 == (0xFFE0 & (*cp)) ) // limit to only 0x0080 to 0x009F
*cp=gToUCS2[ch];
cp++;
}
}
@@ -486,6 +559,17 @@ void nsString::ToLowerCase(nsString& aOut) const
{
aOut.EnsureCapacityFor(mLength);
aOut.mLength = mLength;
// I18N code begin
CheckCaseConversion();
nsresult err = gCaseConv->ToLower(mStr, aOut.mStr, mLength);
(*(aOut.mStr+mLength)) = 0;
if( NS_SUCCEEDED(err))
return;
// I18N code end
// somehow UnicharUtil return failed, fallback to the old ascii only code
chartype* to = aOut.mStr;
chartype* from = mStr;
chartype* end = from + mLength;
@@ -509,6 +593,16 @@ void nsString::ToUpperCase(nsString& aOut) const
{
aOut.EnsureCapacityFor(mLength);
aOut.mLength = mLength;
// I18N code begin
CheckCaseConversion();
nsresult err = gCaseConv->ToUpper(mStr, aOut.mStr, mLength);
(*(aOut.mStr+mLength)) = 0;
if( NS_SUCCEEDED(err))
return;
// I18N code end
// somehow UnicharUtil return failed, fallback to the old ascii only code
chartype* to = aOut.mStr;
chartype* from = mStr;
chartype* end = from + mLength;
@@ -1264,12 +1358,13 @@ nsString& nsString::Trim(const char* aTrimSet,
nsString& nsString::CompressWhitespace( PRBool aEliminateLeading,
PRBool aEliminateTrailing)
{
Trim(" \r\n\t",aEliminateLeading,aEliminateTrailing);
PRUnichar* from = mStr;
PRUnichar* end = mStr + mLength;
PRUnichar* to = from;
Trim(" \r\n\t",aEliminateLeading,aEliminateTrailing);
//this code converts /n, /t, /r into normal space ' ';
//it also eliminates runs of whitespace...
while (from < end) {
@@ -1305,6 +1400,28 @@ nsString& nsString::StripWhitespace()
return StripChars("\r\t\n");
}
/**
* This method is used to replace all occurances of the
* given source char with the given dest char
*
* @param
* @return *this
*/
nsString& nsString::ReplaceChar(PRUnichar aSourceChar, PRUnichar aDestChar) {
PRUnichar* from = mStr;
PRUnichar* end = mStr + mLength;
while (from < end) {
PRUnichar ch = *from;
if(ch==aSourceChar) {
*from = aDestChar;
}
from++;
}
return *this;
}
/**
* Search for given character within this string.
* This method does so by using a binary search,
@@ -1681,6 +1798,7 @@ PRInt32 nsString::Compare(const PRUnichar* aString,PRBool aIgnoreCase,PRInt32 aL
PRBool nsString::operator==(const nsString &S) const {return Equals(S);}
PRBool nsString::operator==(const char *s) const {return Equals(s);}
PRBool nsString::operator==(const PRUnichar *s) const {return Equals(s);}
PRBool nsString::operator==(PRUnichar *s) const {return Equals(s);}
PRBool nsString::operator!=(const nsString &S) const {return PRBool(Compare(S)!=0);}
PRBool nsString::operator!=(const char *s) const {return PRBool(Compare(s)!=0);}
PRBool nsString::operator!=(const PRUnichar *s) const {return PRBool(Compare(s)!=0);}

View File

@@ -136,7 +136,7 @@ const PRUnichar* GetUnicode(void) const;
* @param
* @return
*/
operator PRUnichar*() const;
operator const PRUnichar*() const;
/**
* Retrieve unicode char at given index
@@ -499,6 +499,15 @@ nsString& Cut(PRInt32 anOffset,PRInt32 aCount);
*/
nsString& StripChars(const char* aSet);
/**
* This method is used to replace all occurances of the
* given source char with the given dest char
*
* @param
* @return *this
*/
nsString& ReplaceChar(PRUnichar aSourceChar, PRUnichar aDestChar);
/**
* This method strips whitespace throughout the string
*
@@ -648,6 +657,7 @@ virtual PRInt32 Compare(const PRUnichar *aString,PRBool aIgnoreCase=PR_FALSE,PRI
PRBool operator==(const nsString &aString) const;
PRBool operator==(const char *aString) const;
PRBool operator==(const PRUnichar* aString) const;
PRBool operator==(PRUnichar* aString) const;
/**
* These methods perform a !compare of a given string type to this
@@ -776,6 +786,7 @@ public:
virtual ~nsAutoString();
nsAutoString& operator=(const nsString& aString) {nsString::operator=(aString); return *this;}
nsAutoString& operator=(const nsAutoString& aString) {nsString::operator=(aString); return *this;}
nsAutoString& operator=(const char* aCString) {nsString::operator=(aCString); return *this;}
nsAutoString& operator=(char aChar) {nsString::operator=(aChar); return *this;}
nsAutoString& operator=(const PRUnichar* aBuffer) {nsString::operator=(aBuffer); return *this;}

View File

@@ -15,9 +15,14 @@
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#define NS_IMPL_IDS
#include "nsIUnicharInputStream.h"
#include "nsIByteBuffer.h"
#include "nsIUnicharBuffer.h"
#include "nsIServiceManager.h"
#include "nsICharsetConverterManager.h"
#include "nsIUnicodeDecoder.h"
#include "nsString.h"
#include "nsCRT.h"
#include <fcntl.h>
@@ -115,66 +120,34 @@ NS_NewStringUnicharInputStream(nsIUnicharInputStream** aInstancePtrResult,
//----------------------------------------------------------------------
class IsoLatin1Converter : public nsIB2UConverter {
public:
IsoLatin1Converter();
NS_DECL_ISUPPORTS
NS_IMETHOD Convert(PRUnichar* aDst,
PRUint32 aDstOffset,
PRUint32& aDstLen,
const char* aSrc,
PRUint32 aSrcOffset,
PRUint32& aSrcLen);
};
IsoLatin1Converter::IsoLatin1Converter()
{
NS_INIT_REFCNT();
}
NS_DEFINE_IID(kIB2UConverterIID, NS_IB2UCONVERTER_IID);
NS_IMPL_ISUPPORTS(IsoLatin1Converter,kIB2UConverterIID);
nsresult IsoLatin1Converter::Convert(PRUnichar* aDst,
PRUint32 aDstOffset,
PRUint32& aDstLen,
const char* aSrc,
PRUint32 aSrcOffset,
PRUint32& aSrcLen)
{
PRUint32 amount = aSrcLen;
if (aSrcLen > aDstLen) {
amount = aDstLen;
}
const char* end = aSrc + amount;
while (aSrc < end) {
PRUint8 isoLatin1 = PRUint8(*aSrc++);
/* XXX insert table based lookup converter here */
*aDst++ = isoLatin1;
}
aDstLen = amount;
aSrcLen = amount;
return NS_OK;
}
NS_BASE nsresult
NS_NewB2UConverter(nsIB2UConverter** aInstancePtrResult,
/**
* This function used to be public, with the NS_BASE declaration. I am
* changing it right now into a module private visibility because there are
* better and more xpcom-like ways to get a Converter.
*/
nsresult
NS_NewB2UConverter(nsIUnicodeDecoder** aInstancePtrResult,
nsISupports* aOuter,
nsString* aCharSet)
{
if (nsnull != aOuter) {
return NS_ERROR_NO_AGGREGATION;
}
// We cannot use enum to pass charset id
if ((nsnull != aCharSet) && (! aCharSet->EqualsIgnoreCase( "iso-8859-1" ))){
return NS_BASE_STREAM_NO_CONVERTER;
}
IsoLatin1Converter* it = new IsoLatin1Converter();
if (nsnull == it) {
return NS_ERROR_OUT_OF_MEMORY;
}
return it->QueryInterface(kIB2UConverterIID, (void**)aInstancePtrResult);
// Create converter
nsresult res;
nsICharsetConverterManager * ccm;
nsAutoString defaultCharset("ISO-8859-1");
if (aCharSet == nsnull) aCharSet = &defaultCharset;
res = nsServiceManager::GetService(kCharsetConverterManagerCID,
kICharsetConverterManagerIID, (nsISupports**)&ccm);
if (NS_FAILED(res)) return res;
res = ccm->GetUnicodeDecoder(aCharSet, aInstancePtrResult);
nsServiceManager::ReleaseService(kCharsetConverterManagerCID, ccm);
return res;
}
//----------------------------------------------------------------------
@@ -182,7 +155,7 @@ NS_NewB2UConverter(nsIB2UConverter** aInstancePtrResult,
class ConverterInputStream : public nsIUnicharInputStream {
public:
ConverterInputStream(nsIInputStream* aStream,
nsIB2UConverter* aConverter,
nsIUnicodeDecoder* aConverter,
PRUint32 aBufSize);
~ConverterInputStream();
@@ -197,7 +170,7 @@ protected:
PRInt32 Fill(nsresult * aErrorCode);
nsIInputStream* mInput;
nsIB2UConverter* mConverter;
nsIUnicodeDecoder* mConverter;
nsIByteBuffer* mByteData;
PRUint32 mByteDataOffset;
nsIUnicharBuffer* mUnicharData;
@@ -206,7 +179,7 @@ protected:
};
ConverterInputStream::ConverterInputStream(nsIInputStream* aStream,
nsIB2UConverter* aConverter,
nsIUnicodeDecoder* aConverter,
PRUint32 aBufferSize)
{
NS_INIT_REFCNT();
@@ -300,10 +273,10 @@ PRInt32 ConverterInputStream::Fill(nsresult * aErrorCode)
NS_ASSERTION(remainder + nb == mByteData->GetLength(), "bad nb");
// Now convert as much of the byte buffer to unicode as possible
PRUint32 dstLen = mUnicharData->GetBufferSize();
PRUint32 srcLen = remainder + nb;
*aErrorCode = mConverter->Convert(mUnicharData->GetBuffer(), 0, dstLen,
mByteData->GetBuffer(), 0, srcLen);
PRInt32 dstLen = mUnicharData->GetBufferSize();
PRInt32 srcLen = remainder + nb;
*aErrorCode = mConverter->Convert(mUnicharData->GetBuffer(), 0, &dstLen,
mByteData->GetBuffer(), 0, &srcLen);
mUnicharDataOffset = 0;
mUnicharDataLength = dstLen;
mByteDataOffset += srcLen;
@@ -323,7 +296,7 @@ NS_NewConverterStream(nsIUnicharInputStream** aInstancePtrResult,
}
// Create converter
nsIB2UConverter* converter;
nsIUnicodeDecoder* converter;
nsresult rv = NS_NewB2UConverter(&converter, nsnull, aCharSet);
if (NS_OK != rv) {
return rv;
@@ -332,7 +305,7 @@ NS_NewConverterStream(nsIUnicharInputStream** aInstancePtrResult,
// Create converter input stream
ConverterInputStream* it =
new ConverterInputStream(aStreamToWrap, converter, aBufferSize);
converter->Release();
NS_RELEASE(converter);
if (nsnull == it) {
return NS_ERROR_OUT_OF_MEMORY;
}

View File

@@ -16,17 +16,24 @@
* Reserved.
*/
#ifndef _nsMotifMenu_h_
#define _nsMotifMenu_h_
#include "nscore.h"
typedef void (*MenuCallbackProc)(
PRUint32
);
void CreateViewerMenus(GtkWidget *aParent, gpointer data);
#include "nsCaretProperties.h"
#endif // _nsMotifMenu_h_
//-----------------------------------------------------------------------------
nsCaretProperties::nsCaretProperties()
: mCaretWidth(eDefaultCaretWidth)
, mBlinkRate(eDefaulBlinkRate)
{
// in your platform-specific class, get data from the OS in your constructor
}
//-----------------------------------------------------------------------------
nsCaretProperties* NewCaretProperties()
{
return new nsCaretProperties();
}

View File

@@ -25,9 +25,10 @@
#include <dirent.h>
#include <unistd.h>
#include <stdlib.h>
#include "nsError.h"
//----------------------------------------------------------------------------------------
void nsFileSpecHelpers::Canonify(char*& ioPath, bool inMakeDirs)
void nsFileSpecHelpers::Canonify(char*& ioPath, PRBool inMakeDirs)
// Canonify, make absolute, and check whether directories exist
//----------------------------------------------------------------------------------------
{
@@ -76,75 +77,78 @@ void nsFileSpecHelpers::Canonify(char*& ioPath, bool inMakeDirs)
} // nsFileSpecHelpers::Canonify
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::SetLeafName(const char* inLeafName)
void nsFileSpec::SetLeafName(const char* inLeafName)
//----------------------------------------------------------------------------------------
{
nsFileSpecHelpers::LeafReplace(mPath, '/', inLeafName);
} // nsNativeFileSpec::SetLeafName
} // nsFileSpec::SetLeafName
//----------------------------------------------------------------------------------------
char* nsNativeFileSpec::GetLeafName() const
char* nsFileSpec::GetLeafName() const
//----------------------------------------------------------------------------------------
{
return nsFileSpecHelpers::GetLeaf(mPath, '/');
} // nsNativeFileSpec::GetLeafName
} // nsFileSpec::GetLeafName
//----------------------------------------------------------------------------------------
bool nsNativeFileSpec::Exists() const
PRBool nsFileSpec::Exists() const
//----------------------------------------------------------------------------------------
{
struct stat st;
return 0 == stat(mPath, &st);
} // nsNativeFileSpec::Exists
} // nsFileSpec::Exists
//----------------------------------------------------------------------------------------
bool nsNativeFileSpec::IsFile() const
PRBool nsFileSpec::IsFile() const
//----------------------------------------------------------------------------------------
{
struct stat st;
return 0 == stat(mPath, &st) && S_ISREG(st.st_mode);
} // nsNativeFileSpec::IsFile
} // nsFileSpec::IsFile
//----------------------------------------------------------------------------------------
bool nsNativeFileSpec::IsDirectory() const
PRBool nsFileSpec::IsDirectory() const
//----------------------------------------------------------------------------------------
{
struct stat st;
return 0 == stat(mPath, &st) && S_ISDIR(st.st_mode);
} // nsNativeFileSpec::IsDirectory
} // nsFileSpec::IsDirectory
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::GetParent(nsNativeFileSpec& outSpec) const
void nsFileSpec::GetParent(nsFileSpec& outSpec) const
//----------------------------------------------------------------------------------------
{
nsFileSpecHelpers::StringAssign(outSpec.mPath, mPath);
char* cp = strrchr(outSpec.mPath, '/');
if (cp)
*cp = '\0';
} // nsNativeFileSpec::GetParent
} // nsFileSpec::GetParent
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::operator += (const char* inRelativePath)
void nsFileSpec::operator += (const char* inRelativePath)
//----------------------------------------------------------------------------------------
{
if (!inRelativePath || !mPath)
return;
if (mPath[strlen(mPath) - 1] != '/')
char* newPath = nsFileSpecHelpers::ReallocCat(mPath, "/");
char endChar = mPath[strlen(mPath) - 1];
if (endChar == '/')
nsFileSpecHelpers::ReallocCat(mPath, "x");
else
nsFileSpecHelpers::ReallocCat(mPath, "/x");
SetLeafName(inRelativePath);
} // nsNativeFileSpec::operator +=
} // nsFileSpec::operator +=
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::CreateDirectory(int mode)
void nsFileSpec::CreateDirectory(int mode)
//----------------------------------------------------------------------------------------
{
// Note that mPath is canonical!
mkdir(mPath, mode);
} // nsNativeFileSpec::CreateDirectory
} // nsFileSpec::CreateDirectory
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::Delete(bool inRecursive)
void nsFileSpec::Delete(PRBool inRecursive)
// To check if this worked, call Exists() afterwards, see?
//----------------------------------------------------------------------------------------
{
@@ -152,9 +156,9 @@ void nsNativeFileSpec::Delete(bool inRecursive)
{
if (inRecursive)
{
for (nsDirectoryIterator i(*this); i; i++)
for (nsDirectoryIterator i(*this); i.Exists(); i++)
{
nsNativeFileSpec& child = (nsNativeFileSpec&)i;
nsFileSpec& child = (nsFileSpec&)i;
child.Delete(inRecursive);
}
}
@@ -162,7 +166,148 @@ void nsNativeFileSpec::Delete(bool inRecursive)
}
else
remove(mPath);
} // nsNativeFileSpec::Delete
} // nsFileSpec::Delete
//----------------------------------------------------------------------------------------
nsresult nsFileSpec::Rename(const char* inNewName)
//----------------------------------------------------------------------------------------
{
// This function should not be used to move a file on disk.
if (strchr(inNewName, '/'))
return NS_FILE_FAILURE;
if (PR_Rename(mPath, inNewName) != 0)
{
return NS_FILE_FAILURE;
}
SetLeafName(inNewName);
return NS_OK;
} // nsFileSpec::Rename
static int CrudeFileCopy(const char* in, const char* out)
{
struct stat in_stat;
int stat_result = -1;
char buf [1024];
FILE *ifp, *ofp;
int rbytes, wbytes;
if (!in || !out)
return -1;
stat_result = stat (in, &in_stat);
ifp = fopen (in, "r");
if (!ifp)
{
return -1;
}
ofp = fopen (out, "w");
if (!ofp)
{
fclose (ifp);
return -1;
}
while ((rbytes = fread (buf, 1, sizeof(buf), ifp)) > 0)
{
while (rbytes > 0)
{
if ( (wbytes = fwrite (buf, 1, rbytes, ofp)) < 0 )
{
fclose (ofp);
fclose (ifp);
unlink(out);
return -1;
}
rbytes -= wbytes;
}
}
fclose (ofp);
fclose (ifp);
if (stat_result == 0)
{
chmod (out, in_stat.st_mode & 0777);
}
return 0;
} // nsFileSpec::Rename
//----------------------------------------------------------------------------------------
nsresult nsFileSpec::Copy(const nsFileSpec& inParentDirectory) const
//----------------------------------------------------------------------------------------
{
// We can only copy into a directory, and (for now) can not copy entire directories
nsresult result = NS_FILE_FAILURE;
if (inParentDirectory.IsDirectory() && (! IsDirectory() ) )
{
char *leafname = GetLeafName();
char* destPath = nsFileSpecHelpers::StringDup(inParentDirectory, ( strlen(inParentDirectory) + 1 + strlen(leafname) ) );
strcat(destPath, "/");
strcat(destPath, leafname);
delete [] leafname;
result = NS_FILE_RESULT(CrudeFileCopy(*this, destPath));
delete [] destPath;
}
return result;
} // nsFileSpec::Copy
//----------------------------------------------------------------------------------------
nsresult nsFileSpec::Move(const nsFileSpec& inNewParentDirectory) const
//----------------------------------------------------------------------------------------
{
// We can only copy into a directory, and (for now) can not copy entire directories
nsresult result = NS_FILE_FAILURE;
if (inNewParentDirectory.IsDirectory() && (! IsDirectory() ) )
{
char *leafname = GetLeafName();
char* destPath
= nsFileSpecHelpers::StringDup(
inNewParentDirectory,
strlen(inNewParentDirectory) + 1 + strlen(leafname));
strcat(destPath, "/");
strcat(destPath, leafname);
delete [] leafname;
result = NS_FILE_RESULT(CrudeFileCopy(*this, destPath));
if (result == NS_OK)
{
Delete(PR_FALSE);
}
delete [] destPath;
}
return result;
}
//----------------------------------------------------------------------------------------
nsresult nsFileSpec::Execute(const char* inArgs ) const
//----------------------------------------------------------------------------------------
{
nsresult result = NS_FILE_FAILURE;
if (! IsDirectory())
{
char* fileNameWithArgs
= nsFileSpecHelpers::StringDup(mPath, strlen(mPath) + 1 + strlen(inArgs));
strcat(fileNameWithArgs, " ");
strcat(fileNameWithArgs, inArgs);
result = NS_FILE_RESULT(system(fileNameWithArgs));
delete [] fileNameWithArgs;
}
return result;
} // nsFileSpec::Execute
//========================================================================================
// nsDirectoryIterator
@@ -170,7 +315,7 @@ void nsNativeFileSpec::Delete(bool inRecursive)
//----------------------------------------------------------------------------------------
nsDirectoryIterator::nsDirectoryIterator(
const nsNativeFileSpec& inDirectory
const nsFileSpec& inDirectory
, int inIterateDirection)
//----------------------------------------------------------------------------------------
: mCurrent(inDirectory)

View File

@@ -15,36 +15,26 @@
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef Dialog_h__
#define Dialog_h__
#include "nsMacWindow.h"
#include "nsIDialog.h"
//-------------------------------------------------------------------------
//
// nsDialog
//
//-------------------------------------------------------------------------
#include "nscore.h"
class nsDialog : public nsMacWindow, public nsIDialog
#include "nsCaretProperties.h"
//-----------------------------------------------------------------------------
nsCaretProperties::nsCaretProperties()
: mCaretWidth(eDefaultCaretWidth)
, mBlinkRate(eDefaulBlinkRate)
{
public:
nsDialog();
virtual ~nsDialog();
// nsISupports
NS_IMETHOD_(nsrefcnt) AddRef();
NS_IMETHOD_(nsrefcnt) Release();
NS_IMETHOD QueryInterface(const nsIID& aIID, void** aInstancePtr);
// nsIDialog part
NS_IMETHOD SetLabel(const nsString& aText);
NS_IMETHOD GetLabel(nsString& aBuffer);
};
// in your platform-specific class, get data from the OS in your constructor
mCaretWidth = 2; // 2 pixel caret on Windows
}
#endif // Dialog_h__
//-----------------------------------------------------------------------------
nsCaretProperties* NewCaretProperties()
{
return new nsCaretProperties();
}

View File

@@ -23,9 +23,18 @@
#include <direct.h>
#include <stdlib.h>
#include "prio.h"
#include "nsError.h"
#include "windows.h"
#ifdef UNICODE
#define CreateDirectoryW CreateDirectory
#else
#define CreateDirectoryA CreateDirectory
#endif
//----------------------------------------------------------------------------------------
void nsFileSpecHelpers::Canonify(char*& ioPath, bool inMakeDirs)
void nsFileSpecHelpers::Canonify(char*& ioPath, PRBool inMakeDirs)
// Canonify, make absolute, and check whether directories exist. This
// takes a (possibly relative) native path and converts it into a
// fully qualified native path.
@@ -125,7 +134,7 @@ void nsFileSpecHelpers::NativeToUnix(char*& ioPath)
}
//----------------------------------------------------------------------------------------
nsNativeFileSpec::nsNativeFileSpec(const nsFilePath& inPath)
nsFileSpec::nsFileSpec(const nsFilePath& inPath)
//----------------------------------------------------------------------------------------
: mPath(NULL)
{
@@ -133,15 +142,16 @@ nsNativeFileSpec::nsNativeFileSpec(const nsFilePath& inPath)
}
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::operator = (const nsFilePath& inPath)
void nsFileSpec::operator = (const nsFilePath& inPath)
//----------------------------------------------------------------------------------------
{
nsFileSpecHelpers::StringAssign(mPath, (const char*)inPath);
nsFileSpecHelpers::UnixToNative(mPath);
} // nsNativeFileSpec::operator =
mError = NS_OK;
} // nsFileSpec::operator =
//----------------------------------------------------------------------------------------
nsFilePath::nsFilePath(const nsNativeFileSpec& inSpec)
nsFilePath::nsFilePath(const nsFileSpec& inSpec)
//----------------------------------------------------------------------------------------
: mPath(NULL)
{
@@ -149,7 +159,7 @@ nsFilePath::nsFilePath(const nsNativeFileSpec& inSpec)
} // nsFilePath::nsFilePath
//----------------------------------------------------------------------------------------
void nsFilePath::operator = (const nsNativeFileSpec& inSpec)
void nsFilePath::operator = (const nsFileSpec& inSpec)
//----------------------------------------------------------------------------------------
{
nsFileSpecHelpers::StringAssign(mPath, inSpec.mPath);
@@ -157,84 +167,86 @@ void nsFilePath::operator = (const nsNativeFileSpec& inSpec)
} // nsFilePath::operator =
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::SetLeafName(const char* inLeafName)
void nsFileSpec::SetLeafName(const char* inLeafName)
//----------------------------------------------------------------------------------------
{
nsFileSpecHelpers::LeafReplace(mPath, '\\', inLeafName);
} // nsNativeFileSpec::SetLeafName
} // nsFileSpec::SetLeafName
//----------------------------------------------------------------------------------------
char* nsNativeFileSpec::GetLeafName() const
char* nsFileSpec::GetLeafName() const
//----------------------------------------------------------------------------------------
{
return nsFileSpecHelpers::GetLeaf(mPath, '\\');
} // nsNativeFileSpec::GetLeafName
} // nsFileSpec::GetLeafName
//----------------------------------------------------------------------------------------
bool nsNativeFileSpec::Exists() const
PRBool nsFileSpec::Exists() const
//----------------------------------------------------------------------------------------
{
struct stat st;
return 0 == stat(mPath, &st);
} // nsNativeFileSpec::Exists
} // nsFileSpec::Exists
//----------------------------------------------------------------------------------------
bool nsNativeFileSpec::IsFile() const
PRBool nsFileSpec::IsFile() const
//----------------------------------------------------------------------------------------
{
struct stat st;
return 0 == stat(mPath, &st) && (_S_IFREG & st.st_mode);
} // nsNativeFileSpec::IsFile
} // nsFileSpec::IsFile
//----------------------------------------------------------------------------------------
bool nsNativeFileSpec::IsDirectory() const
PRBool nsFileSpec::IsDirectory() const
//----------------------------------------------------------------------------------------
{
struct stat st;
return 0 == stat(mPath, &st) && (_S_IFDIR & st.st_mode);
} // nsNativeFileSpec::IsDirectory
} // nsFileSpec::IsDirectory
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::GetParent(nsNativeFileSpec& outSpec) const
void nsFileSpec::GetParent(nsFileSpec& outSpec) const
//----------------------------------------------------------------------------------------
{
nsFileSpecHelpers::StringAssign(outSpec.mPath, mPath);
char* cp = strrchr(outSpec.mPath, '\\');
if (cp)
*cp = '\0';
} // nsNativeFileSpec::GetParent
} // nsFileSpec::GetParent
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::operator += (const char* inRelativePath)
void nsFileSpec::operator += (const char* inRelativePath)
//----------------------------------------------------------------------------------------
{
if (!inRelativePath || !mPath)
return;
if (mPath[strlen(mPath) - 1] != '\\')
char* newPath = nsFileSpecHelpers::ReallocCat(mPath, "\\");
if (mPath[strlen(mPath) - 1] == '\\')
nsFileSpecHelpers::ReallocCat(mPath, "x");
else
nsFileSpecHelpers::ReallocCat(mPath, "\\x");
SetLeafName(inRelativePath);
} // nsNativeFileSpec::operator +=
} // nsFileSpec::operator +=
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::CreateDirectory(int /*mode*/)
void nsFileSpec::CreateDirectory(int /*mode*/)
//----------------------------------------------------------------------------------------
{
// Note that mPath is canonical!
mkdir(mPath);
} // nsNativeFileSpec::CreateDirectory
} // nsFileSpec::CreateDirectory
//----------------------------------------------------------------------------------------
void nsNativeFileSpec::Delete(bool inRecursive)
void nsFileSpec::Delete(PRBool inRecursive)
//----------------------------------------------------------------------------------------
{
if (IsDirectory())
{
if (inRecursive)
{
for (nsDirectoryIterator i(*this); i; i++)
for (nsDirectoryIterator i(*this); i.Exists(); i++)
{
nsNativeFileSpec& child = (nsNativeFileSpec&)i;
nsFileSpec& child = (nsFileSpec&)i;
child.Delete(inRecursive);
}
}
@@ -244,7 +256,106 @@ void nsNativeFileSpec::Delete(bool inRecursive)
{
remove(mPath);
}
} // nsNativeFileSpec::Delete
} // nsFileSpec::Delete
//----------------------------------------------------------------------------------------
nsresult nsFileSpec::Rename(const char* inNewName)
//----------------------------------------------------------------------------------------
{
// This function should not be used to move a file on disk.
if (strchr(inNewName, '/'))
return NS_FILE_FAILURE;
if (PR_Rename(*this, inNewName) != NS_OK)
{
return NS_FILE_FAILURE;
}
SetLeafName(inNewName);
return NS_OK;
} // nsFileSpec::Rename
//----------------------------------------------------------------------------------------
nsresult nsFileSpec::Copy(const nsFileSpec& inParentDirectory) const
//----------------------------------------------------------------------------------------
{
// We can only copy into a directory, and (for now) can not copy entire directories
if (inParentDirectory.IsDirectory() && (! IsDirectory() ) )
{
char *leafname = GetLeafName();
char* destPath = nsFileSpecHelpers::StringDup(inParentDirectory, ( strlen(inParentDirectory) + 1 + strlen(leafname) ) );
strcat(destPath, "\\");
strcat(destPath, leafname);
delete [] leafname;
// CopyFile returns non-zero if succeeds
int copyOK = CopyFile(*this, destPath, true);
delete[] destPath;
if (copyOK)
{
return NS_OK;
}
}
return NS_FILE_FAILURE;
} // nsFileSpec::Copy
//----------------------------------------------------------------------------------------
nsresult nsFileSpec::Move(const nsFileSpec& nsNewParentDirectory) const
//----------------------------------------------------------------------------------------
{
// We can only copy into a directory, and (for now) can not copy entire directories
if (nsNewParentDirectory.IsDirectory() && (! IsDirectory() ) )
{
char *leafname = GetLeafName();
char *destPath = nsFileSpecHelpers::StringDup(nsNewParentDirectory, ( strlen(nsNewParentDirectory) + 1 + strlen(leafname) ));
strcat(destPath, "\\");
strcat(destPath, leafname);
delete [] leafname;
// MoveFile returns non-zero if succeeds
int copyOK = MoveFile(*this, destPath);
delete [] destPath;
if (copyOK)
{
return NS_OK;
}
}
return NS_FILE_FAILURE;
} // nsFileSpec::Move
//----------------------------------------------------------------------------------------
nsresult nsFileSpec::Execute(const char* inArgs ) const
//----------------------------------------------------------------------------------------
{
if (! IsDirectory())
{
char* fileNameWithArgs = NULL;
fileNameWithArgs = nsFileSpecHelpers::StringDup(mPath, ( strlen(mPath) + 1 + strlen(inArgs) ) );
strcat(fileNameWithArgs, " ");
strcat(fileNameWithArgs, inArgs);
int execResult = WinExec( fileNameWithArgs, SW_NORMAL );
delete [] fileNameWithArgs;
if (execResult > 31)
{
return NS_OK;
}
}
return NS_FILE_FAILURE;
} // nsFileSpec::Execute
//========================================================================================
// nsDirectoryIterator
@@ -252,7 +363,7 @@ void nsNativeFileSpec::Delete(bool inRecursive)
//----------------------------------------------------------------------------------------
nsDirectoryIterator::nsDirectoryIterator(
const nsNativeFileSpec& inDirectory
const nsFileSpec& inDirectory
, int inIterateDirection)
//----------------------------------------------------------------------------------------
: mCurrent(inDirectory)

View File

@@ -1,7 +1,26 @@
#include "string.h"
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsFileSpec.h"
#include "nsFileStream.h"
//#include "string.h"
struct FilesTest
{
FilesTest() : mConsole() {}
@@ -12,18 +31,25 @@ struct FilesTest
int InputStream(const char* relativePath);
int OutputStream(const char* relativePath);
int IOStream(const char* relativePath);
int Parent(const char* relativePath, nsNativeFileSpec& outParent);
int Delete(nsNativeFileSpec& victim);
int CreateDirectory(nsNativeFileSpec& victim);
int IterateDirectoryChildren(nsNativeFileSpec& startChild);
int Parent(const char* relativePath, nsFileSpec& outParent);
int Delete(nsFileSpec& victim);
int CreateDirectory(nsFileSpec& victim);
int IterateDirectoryChildren(nsFileSpec& startChild);
int CanonicalPath(const char* relativePath);
int Persistence(const char* relativePath);
int Copy(const char* sourceFile, const char* targDir);
int Move(const char* sourceFile, const char* targDir);
int Rename(const char* sourceFile, const char* newName);
int Execute(const char* appName, const char* args);
void Banner(const char* bannerString);
void Passed();
void Failed();
void Inspect();
nsOutputFileStream mConsole;
nsOutputConsoleStream mConsole;
};
//----------------------------------------------------------------------------------------
@@ -41,7 +67,8 @@ void FilesTest::Banner(const char* bannerString)
void FilesTest::Passed()
//----------------------------------------------------------------------------------------
{
mConsole << "Test passed." << nsEndl;
((nsOutputStream&)mConsole) << "Test passed.";
mConsole << nsEndl;
}
//----------------------------------------------------------------------------------------
@@ -71,7 +98,7 @@ void FilesTest::WriteStuff(nsOutputFileStream& s)
s << "As a unix path: \"" << (const char*)filePath << "\""<< nsEndl;
// Initialize a native file spec from a URL
nsNativeFileSpec fileSpec(fileURL);
nsFileSpec fileSpec(fileURL);
s << "As a file spec: " << fileSpec << nsEndl;
// Make the spec unique (this one has no suffix).
@@ -101,10 +128,10 @@ int FilesTest::OutputStream(const char* relativePath)
{
nsFilePath myTextFilePath(relativePath, true); // relative path.
const char* pathAsString = (const char*)myTextFilePath;
nsNativeFileSpec mySpec(myTextFilePath);
nsFileSpec mySpec(myTextFilePath);
{
mConsole << "WRITING IDENTICAL OUTPUT TO " << pathAsString << nsEndl << nsEndl;
nsOutputFileStream testStream(myTextFilePath);
nsOutputFileStream testStream(mySpec);
if (!testStream.is_open())
{
mConsole
@@ -136,9 +163,10 @@ int FilesTest::IOStream(const char* relativePath)
{
nsFilePath myTextFilePath(relativePath, true); // relative path.
const char* pathAsString = (const char*)myTextFilePath;
nsFileSpec mySpec(myTextFilePath);
mConsole
<< "Replacing \"path\" by \"ZUUL\" in " << pathAsString << nsEndl << nsEndl;
nsIOFileStream testStream(myTextFilePath);
nsIOFileStream testStream(mySpec);
if (!testStream.is_open())
{
mConsole
@@ -165,6 +193,57 @@ int FilesTest::IOStream(const char* relativePath)
return 0;
}
//----------------------------------------------------------------------------------------
int FilesTest::Persistence(
const char* relativePathToWrite)
//----------------------------------------------------------------------------------------
{
nsFilePath myTextFilePath(relativePathToWrite, true);
const char* pathAsString = (const char*)myTextFilePath;
nsFileSpec mySpec(myTextFilePath);
nsIOFileStream testStream(mySpec, (PR_RDWR | PR_CREATE_FILE | PR_TRUNCATE));
if (!testStream.is_open())
{
mConsole
<< "ERROR: File "
<< pathAsString
<< " could not be opened for input+output"
<< nsEndl;
return -1;
}
nsPersistentFileDescriptor myPersistent(mySpec);
mConsole
<< "Writing persistent file data " << pathAsString << nsEndl << nsEndl;
testStream.seek(0); // check that the seek compiles
testStream << myPersistent;
testStream.seek(0);
nsPersistentFileDescriptor mySecondPersistent;
testStream >> mySecondPersistent;
mySpec = mySecondPersistent;
#ifdef XP_MAC
if (mySpec.Error())
{
Failed();
return -1;
}
#endif
if (!mySpec.Exists())
{
Failed();
return -1;
}
Passed();
return 0;
}
//----------------------------------------------------------------------------------------
int FilesTest::InputStream(const char* relativePath)
//----------------------------------------------------------------------------------------
@@ -172,7 +251,8 @@ int FilesTest::InputStream(const char* relativePath)
nsFilePath myTextFilePath(relativePath, true);
const char* pathAsString = (const char*)myTextFilePath;
mConsole << "READING BACK DATA FROM " << pathAsString << nsEndl << nsEndl;
nsInputFileStream testStream2(myTextFilePath);
nsFileSpec mySpec(myTextFilePath);
nsInputFileStream testStream2(mySpec);
if (!testStream2.is_open())
{
mConsole
@@ -197,12 +277,12 @@ int FilesTest::InputStream(const char* relativePath)
//----------------------------------------------------------------------------------------
int FilesTest::Parent(
const char* relativePath,
nsNativeFileSpec& outParent)
nsFileSpec& outParent)
//----------------------------------------------------------------------------------------
{
nsFilePath myTextFilePath(relativePath, true);
const char* pathAsString = (const char*)myTextFilePath;
nsNativeFileSpec mySpec(myTextFilePath);
nsFileSpec mySpec(myTextFilePath);
mySpec.GetParent(outParent);
nsFilePath parentPath(outParent);
@@ -217,7 +297,7 @@ int FilesTest::Parent(
}
//----------------------------------------------------------------------------------------
int FilesTest::Delete(nsNativeFileSpec& victim)
int FilesTest::Delete(nsFileSpec& victim)
//----------------------------------------------------------------------------------------
{
// - Test of non-recursive delete
@@ -266,7 +346,7 @@ int FilesTest::Delete(nsNativeFileSpec& victim)
}
//----------------------------------------------------------------------------------------
int FilesTest::CreateDirectory(nsNativeFileSpec& dirSpec)
int FilesTest::CreateDirectory(nsFileSpec& dirSpec)
//----------------------------------------------------------------------------------------
{
nsFilePath dirPath(dirSpec);
@@ -288,27 +368,27 @@ int FilesTest::CreateDirectory(nsNativeFileSpec& dirSpec)
}
//----------------------------------------------------------------------------------------
int FilesTest::IterateDirectoryChildren(nsNativeFileSpec& startChild)
int FilesTest::IterateDirectoryChildren(nsFileSpec& startChild)
//----------------------------------------------------------------------------------------
{
// - Test of directory iterator
nsNativeFileSpec grandparent;
nsFileSpec grandparent;
startChild.GetParent(grandparent); // should be the original default directory.
nsFilePath grandparentPath(grandparent);
mConsole << "Forwards listing of " << (const char*)grandparentPath << ":" << nsEndl;
for (nsDirectoryIterator i(grandparent, +1); i; i++)
for (nsDirectoryIterator i(grandparent, +1); i.Exists(); i++)
{
char* itemName = ((nsNativeFileSpec&)i).GetLeafName();
char* itemName = ((nsFileSpec&)i).GetLeafName();
mConsole << '\t' << itemName << nsEndl;
delete [] itemName;
}
mConsole << "Backwards listing of " << (const char*)grandparentPath << ":" << nsEndl;
for (nsDirectoryIterator j(grandparent, -1); j; j--)
for (nsDirectoryIterator j(grandparent, -1); j.Exists(); j--)
{
char* itemName = ((nsNativeFileSpec&)j).GetLeafName();
char* itemName = ((nsFileSpec&)j).GetLeafName();
mConsole << '\t' << itemName << nsEndl;
delete [] itemName;
}
@@ -337,6 +417,110 @@ int FilesTest::CanonicalPath(
return 0;
}
//----------------------------------------------------------------------------------------
int FilesTest::Copy(const char* file, const char* dir)
//----------------------------------------------------------------------------------------
{
nsFileSpec dirPath(dir, true);
dirPath.CreateDirectory();
if (! dirPath.Exists())
{
Failed();
return -1;
}
nsFileSpec mySpec(file, true); // relative path.
{
nsIOFileStream testStream(mySpec); // creates the file
// Scope ends here, file gets closed
}
nsFileSpec filePath(file);
if (! filePath.Exists())
{
Failed();
return -1;
}
nsresult error = filePath.Copy(dirPath);
dirPath += filePath.GetLeafName();
if (! dirPath.Exists() || ! filePath.Exists() || NS_FAILED(error))
{
Failed();
return -1;
}
Passed();
return 0;
}
//----------------------------------------------------------------------------------------
int FilesTest::Move(const char* file, const char* dir)
//----------------------------------------------------------------------------------------
{
nsFileSpec dirPath(dir, true);
dirPath.CreateDirectory();
if (! dirPath.Exists())
{
Failed();
return -1;
}
nsFileSpec srcSpec(file, true); // relative path.
{
nsIOFileStream testStream(srcSpec); // creates the file
// file gets closed here because scope ends here.
};
if (! srcSpec.Exists())
{
Failed();
return -1;
}
nsresult error = srcSpec.Move(dirPath);
dirPath += srcSpec.GetLeafName();
if (! dirPath.Exists() || srcSpec.Exists() || NS_FAILED(error))
{
Failed();
return -1;
}
Passed();
return 0;
}
//----------------------------------------------------------------------------------------
int FilesTest::Execute(const char* appName, const char* args)
//----------------------------------------------------------------------------------------
{
nsFileSpec appPath(appName, false);
if (!appPath.Exists())
{
Failed();
return -1;
}
nsresult error = appPath.Execute(args);
if (NS_FAILED(error))
{
Failed();
return -1;
}
Passed();
return 0;
}
//----------------------------------------------------------------------------------------
int FilesTest::RunAllTests()
// For use with DEBUG defined.
@@ -371,7 +555,7 @@ int FilesTest::RunAllTests()
return -1;
Banner("Parent");
nsNativeFileSpec parent;
nsFileSpec parent;
if (Parent("mumble/iotest.txt", parent) != 0)
return -1;
@@ -387,6 +571,36 @@ int FilesTest::RunAllTests()
if (IterateDirectoryChildren(parent) != 0)
return -1;
Banner("Copy");
if (Copy("mumble/copyfile.txt", "mumble/copy") != 0)
return -1;
Banner("Move");
if (Move("mumble/moveFile.txt", "mumble/move") != 0)
return -1;
Banner("Execute");
#ifdef XP_MAC
// This path is hard-coded to test on jrm's machine. Finding an app
// on an arbitrary Macintosh would cost more trouble than it's worth.
// Change path to suit.
if NS_FAILED(Execute("/Projects/Nav45_BRANCH/ns/cmd/macfe/"\
"projects/client45/Client45PPC", ""))
#elif XP_PC
if NS_FAILED(Execute("c:\\windows\\notepad.exe", ""))
#else
if NS_FAILED(Execute("/bin/ls", "/"))
#endif
return -1;
Banner("Persistence");
if (Persistence("mumble/filedesc.dat") != 0)
return -1;
Banner("Delete again (to clean up our mess)");
if (Delete(parent) != 0)
return -1;
return 0;
}
@@ -395,7 +609,6 @@ int main()
// For use with DEBUG defined.
//----------------------------------------------------------------------------------------
{
FilesTest tester;
return tester.RunAllTests();
} // main

View File

@@ -21,13 +21,33 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
REQUIRES = xpcom netlib
CPPSRCS = TestAtoms.cpp TestCRT.cpp FilesTest.cpp
CPPSRCS = TestAtoms.cpp TestCRT.cpp CvtURL.cpp FilesTest.cpp PropertiesTest.cpp TestAutoLock.cpp
LIBS = \
-lnetlib \
-labouturl \
-lfileurl \
-lremoturl \
-lgophurl \
-lnetcnvts \
-lsockstuburl \
-lftpurl \
-lmimetype \
-lpwcac \
-lhttpurl \
-lnetwork \
-lnetutil \
-lnetcache \
-lgmbase$(MOZ_TOOLKIT) \
$(TK_LIBS) \
-lpref \
-lsecfree \
-ljs \
-lxp \
-lraptorbase \
-lxpcom \
-lreg \
$(ZLIB_LIBS) \
$(NSPR_LIBS) \
$(NULL)

View File

@@ -31,16 +31,32 @@
#define TEST_URL "resource:/res/test.properties"
#ifdef XP_PC
#define NETLIB_DLL "netlib.dll"
#define RAPTORBASE_DLL "raptorbase.dll"
#define XPCOM_DLL "xpcom32.dll"
#else
#ifdef XP_MAC
#define NETLIB_DLL "NETLIB_DLL"
#define RAPTORBASE_DLL "base.shlb"
#define XPCOM_DLL "XPCOM_DLL"
#else
#define NETLIB_DLL "libnetlib.so"
#define RAPTORBASE_DLL "libraptorbase.so"
#define XPCOM_DLL "libxpcom32.so"
#endif
#endif
static NS_DEFINE_IID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID);
static NS_DEFINE_IID(kIEventQueueServiceIID, NS_IEVENTQUEUESERVICE_IID);
static NS_DEFINE_IID(kINetServiceIID, NS_INETSERVICE_IID);
static NS_DEFINE_IID(kIPropertiesIID, NS_IPROPERTIES_IID);
static NS_DEFINE_IID(kNetServiceCID, NS_NETSERVICE_CID);
#ifdef XP_MAC // have not build this on PC and UNIX yet so make it #ifdef XP_MAC
extern "C" void NS_SetupRegistry();
#endif
int
main(int argc, char *argv[])
{
@@ -48,6 +64,10 @@ main(int argc, char *argv[])
PR_FALSE);
nsRepository::RegisterFactory(kEventQueueServiceCID, XPCOM_DLL,
PR_FALSE, PR_FALSE);
#ifdef XP_MAC // have not build this on PC and UNIX yet so make it #ifdef XP_MAC
NS_SetupRegistry();
#endif
nsresult ret;
nsIEventQueueService* pEventQueueService = nsnull;
ret = nsServiceManager::GetService(kEventQueueServiceCID,

View File

@@ -0,0 +1,72 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
Some tests for nsAutoLock.
*/
#include "nsAutoLock.h"
#include "prthread.h"
PRLock* gLock;
int gCount;
static void run(void* arg)
{
for (int i = 0; i < 1000000; ++i) {
nsAutoLock guard(gLock);
++gCount;
PR_ASSERT(gCount == 1);
--gCount;
}
}
int main(int argc, char** argv)
{
gLock = PR_NewLock();
gCount = 0;
// This shouldn't compile
//nsAutoLock* l1 = new nsAutoLock(theLock);
//delete l1;
// Create a block-scoped lock. This should compile.
{
nsAutoLock l2(gLock);
}
// Fork a thread to access the shared variable in a tight loop
PRThread* t1 =
PR_CreateThread(PR_SYSTEM_THREAD,
run,
nsnull,
PR_PRIORITY_NORMAL,
PR_GLOBAL_THREAD,
PR_JOINABLE_THREAD,
0);
// ...and now do the same thing ourselves
run(nsnull);
// Wait for the background thread to finish, if necessary.
PR_JoinThread(t1);
return 0;
}

View File

@@ -24,6 +24,7 @@ PROG2 = .\$(OBJDIR)\CvtURL.exe
PROG3 = .\$(OBJDIR)\TestCRT.exe
PROG4 = .\$(OBJDIR)\FilesTest.exe
PROG5 = .\$(OBJDIR)\PropertiesTest.exe
PROG6 = .\$(OBJDIR)\TestAutoLock.exe
RESFILE = timer.res
PROGRAMS = $(PROG0) $(PROG1) \
!ifdef MODULAR_NETLIB
@@ -32,6 +33,7 @@ PROGRAMS = $(PROG0) $(PROG1) \
$(PROG5) \
!endif
$(PROG4) \
$(PROG6) \
$(NULL)
LINCS=-I..\src -I$(PUBLIC)\xpcom -I$(PUBLIC)\netlib -I$(PUBLIC)\raptor
@@ -61,6 +63,7 @@ install:: $(PROGRAMS)
$(MAKE_INSTALL) test.properties $(DIST)\bin\res
!endif
$(MAKE_INSTALL) $(PROG4) $(DIST)\bin
$(MAKE_INSTALL) $(PROG6) $(DIST)\bin
clobber::
rm -f $(DIST)\bin\TimerTest.exe
@@ -72,6 +75,7 @@ clobber::
rm -f $(DIST)\bin\res\test.properties
!endif
rm -f $(DIST)\bin\FilesTest.exe
rm -f $(DIST)\bin\TestAutoLock.exe
# Move this into config/obj.inc when it's allowed
.cpp{.\$(OBJDIR)\}.exe:
@@ -102,3 +106,7 @@ $(PROG3): $(OBJDIR) TestCRT.cpp
$(PROG5): $(OBJDIR) PropertiesTest.cpp
!endif
$(PROG6): $(OBJDIR) TestAutoLock.cpp

View File

@@ -1,890 +0,0 @@
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc.
#
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# Written by Per Bothner <bothner@cygnus.com>.
# The master version of this file is at the FSF in /home/gd/gnu/lib.
#
# This script attempts to guess a canonical system name similar to
# config.sub. If it succeeds, it prints the system name on stdout, and
# exits with 0. Otherwise, it exits with 1.
#
# The plan is that this can be called by configure scripts if you
# don't specify an explicit system type (host/target name).
#
# Only a few systems have been added to this list; please add others
# (but try to keep the structure clean).
#
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
# (ghazi@noc.rutgers.edu 8/24/94.)
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
PATH=$PATH:/.attbin ; export PATH
fi
UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15
# Note: order is significant - the case branches are not exclusive.
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
alpha:OSF1:*:*)
if test $UNAME_RELEASE = "V4.0"; then
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
fi
# A Vn.n version is a released version.
# A Tn.n version is a released field test version.
# A Xn.n version is an unreleased experimental baselevel.
# 1.2 uses "1.2" for uname -r.
cat <<EOF >dummy.s
.globl main
.ent main
main:
.frame \$30,0,\$26,0
.prologue 0
.long 0x47e03d80 # implver $0
lda \$2,259
.long 0x47e20c21 # amask $2,$1
srl \$1,8,\$2
sll \$2,2,\$2
sll \$0,3,\$0
addl \$1,\$0,\$0
addl \$2,\$0,\$0
ret \$31,(\$26),1
.end main
EOF
${CC-cc} dummy.s -o dummy 2>/dev/null
if test "$?" = 0 ; then
./dummy
case "$?" in
7)
UNAME_MACHINE="alpha"
;;
15)
UNAME_MACHINE="alphaev5"
;;
14)
UNAME_MACHINE="alphaev56"
;;
10)
UNAME_MACHINE="alphapca56"
;;
16)
UNAME_MACHINE="alphaev6"
;;
esac
fi
rm -f dummy.s dummy
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]`
exit 0 ;;
21064:Windows_NT:50:3)
echo alpha-dec-winnt3.5
exit 0 ;;
Amiga*:UNIX_System_V:4.0:*)
echo m68k-cbm-sysv4
exit 0;;
amiga:NetBSD:*:*)
echo m68k-cbm-netbsd${UNAME_RELEASE}
exit 0 ;;
amiga:OpenBSD:*:*)
echo m68k-unknown-openbsd${UNAME_RELEASE}
exit 0 ;;
arc64:OpenBSD:*:*)
echo mips64el-unknown-openbsd${UNAME_RELEASE}
exit 0 ;;
arc:OpenBSD:*:*)
echo mipsel-unknown-openbsd${UNAME_RELEASE}
exit 0 ;;
hkmips:OpenBSD:*:*)
echo mips-unknown-openbsd${UNAME_RELEASE}
exit 0 ;;
pmax:OpenBSD:*:*)
echo mipsel-unknown-openbsd${UNAME_RELEASE}
exit 0 ;;
sgi:OpenBSD:*:*)
echo mips-unknown-openbsd${UNAME_RELEASE}
exit 0 ;;
wgrisc:OpenBSD:*:*)
echo mipsel-unknown-openbsd${UNAME_RELEASE}
exit 0 ;;
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
echo arm-acorn-riscix${UNAME_RELEASE}
exit 0;;
arm32:NetBSD:*:*)
echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
exit 0 ;;
SR2?01:HI-UX/MPP:*:*)
echo hppa1.1-hitachi-hiuxmpp
exit 0;;
Pyramid*:OSx*:*:*|MIS*:OSx*:*:*)
# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
if test "`(/bin/universe) 2>/dev/null`" = att ; then
echo pyramid-pyramid-sysv3
else
echo pyramid-pyramid-bsd
fi
exit 0 ;;
NILE:*:*:dcosx)
echo pyramid-pyramid-svr4
exit 0 ;;
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit 0 ;;
i86pc:SunOS:5.*:*)
echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit 0 ;;
sun4*:SunOS:6*:*)
# According to config.sub, this is the proper way to canonicalize
# SunOS6. Hard to guess exactly what SunOS6 will be like, but
# it's likely to be more like Solaris than SunOS4.
echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit 0 ;;
sun4*:SunOS:*:*)
case "`/usr/bin/arch -k`" in
Series*|S4*)
UNAME_RELEASE=`uname -v`
;;
esac
# Japanese Language versions have a version number like `4.1.3-JL'.
echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
exit 0 ;;
sun3*:SunOS:*:*)
echo m68k-sun-sunos${UNAME_RELEASE}
exit 0 ;;
sun*:*:4.2BSD:*)
UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
case "`/bin/arch`" in
sun3)
echo m68k-sun-sunos${UNAME_RELEASE}
;;
sun4)
echo sparc-sun-sunos${UNAME_RELEASE}
;;
esac
exit 0 ;;
aushp:SunOS:*:*)
echo sparc-auspex-sunos${UNAME_RELEASE}
exit 0 ;;
atari*:NetBSD:*:*)
echo m68k-atari-netbsd${UNAME_RELEASE}
exit 0 ;;
atari*:OpenBSD:*:*)
echo m68k-unknown-openbsd${UNAME_RELEASE}
exit 0 ;;
sun3*:NetBSD:*:*)
echo m68k-sun-netbsd${UNAME_RELEASE}
exit 0 ;;
sun3*:OpenBSD:*:*)
echo m68k-unknown-openbsd${UNAME_RELEASE}
exit 0 ;;
mac68k:NetBSD:*:*)
echo m68k-apple-netbsd${UNAME_RELEASE}
exit 0 ;;
mac68k:OpenBSD:*:*)
echo m68k-unknown-openbsd${UNAME_RELEASE}
exit 0 ;;
mvme68k:OpenBSD:*:*)
echo m68k-unknown-openbsd${UNAME_RELEASE}
exit 0 ;;
mvme88k:OpenBSD:*:*)
echo m88k-unknown-openbsd${UNAME_RELEASE}
exit 0 ;;
powerpc:machten:*:*)
echo powerpc-apple-machten${UNAME_RELEASE}
exit 0 ;;
RISC*:Mach:*:*)
echo mips-dec-mach_bsd4.3
exit 0 ;;
RISC*:ULTRIX:*:*)
echo mips-dec-ultrix${UNAME_RELEASE}
exit 0 ;;
VAX*:ULTRIX*:*:*)
echo vax-dec-ultrix${UNAME_RELEASE}
exit 0 ;;
2020:CLIX:*:*)
echo clipper-intergraph-clix${UNAME_RELEASE}
exit 0 ;;
mips:*:*:UMIPS | mips:*:*:RISCos)
sed 's/^ //' << EOF >dummy.c
int main (argc, argv) int argc; char **argv; {
#if defined (host_mips) && defined (MIPSEB)
#if defined (SYSTYPE_SYSV)
printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
#endif
#if defined (SYSTYPE_SVR4)
printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
#endif
#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
#endif
#endif
exit (-1);
}
EOF
${CC-cc} dummy.c -o dummy \
&& ./dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
&& rm dummy.c dummy && exit 0
rm -f dummy.c dummy
echo mips-mips-riscos${UNAME_RELEASE}
exit 0 ;;
Night_Hawk:Power_UNIX:*:*)
echo powerpc-harris-powerunix
exit 0 ;;
m88k:CX/UX:7*:*)
echo m88k-harris-cxux7
exit 0 ;;
m88k:*:4*:R4*)
echo m88k-motorola-sysv4
exit 0 ;;
m88k:*:3*:R3*)
echo m88k-motorola-sysv3
exit 0 ;;
AViiON:dgux:*:*)
# DG/UX returns AViiON for all architectures
UNAME_PROCESSOR=`/usr/bin/uname -p`
if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \
-o ${TARGET_BINARY_INTERFACE}x = x ] ; then
echo m88k-dg-dgux${UNAME_RELEASE}
else
echo m88k-dg-dguxbcs${UNAME_RELEASE}
fi
else echo i586-dg-dgux${UNAME_RELEASE}
fi
exit 0 ;;
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
echo m88k-dolphin-sysv3
exit 0 ;;
M88*:*:R3*:*)
# Delta 88k system running SVR3
echo m88k-motorola-sysv3
exit 0 ;;
XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
echo m88k-tektronix-sysv3
exit 0 ;;
Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
echo m68k-tektronix-bsd
exit 0 ;;
*:IRIX*:*:*)
echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
exit 0 ;;
????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
i?86:AIX:*:*)
echo i386-ibm-aix
exit 0 ;;
*:AIX:2:3)
if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
sed 's/^ //' << EOF >dummy.c
#include <sys/systemcfg.h>
main()
{
if (!__power_pc())
exit(1);
puts("powerpc-ibm-aix3.2.5");
exit(0);
}
EOF
${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
rm -f dummy.c dummy
echo rs6000-ibm-aix3.2.5
elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
echo rs6000-ibm-aix3.2.4
else
echo rs6000-ibm-aix3.2
fi
exit 0 ;;
*:AIX:*:4)
if /usr/sbin/lsattr -EHl proc0 | grep POWER >/dev/null 2>&1; then
IBM_ARCH=rs6000
else
IBM_ARCH=powerpc
fi
if [ -x /usr/bin/oslevel ] ; then
IBM_REV=`/usr/bin/oslevel`
else
IBM_REV=4.${UNAME_RELEASE}
fi
echo ${IBM_ARCH}-ibm-aix${IBM_REV}
exit 0 ;;
*:AIX:*:*)
echo rs6000-ibm-aix
exit 0 ;;
ibmrt:4.4BSD:*|romp-ibm:BSD:*)
echo romp-ibm-bsd4.4
exit 0 ;;
ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and
echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
exit 0 ;; # report: romp-ibm BSD 4.3
*:BOSX:*:*)
echo rs6000-bull-bosx
exit 0 ;;
DPX/2?00:B.O.S.:*:*)
echo m68k-bull-sysv3
exit 0 ;;
9000/[34]??:4.3bsd:1.*:*)
echo m68k-hp-bsd
exit 0 ;;
hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
echo m68k-hp-bsd4.4
exit 0 ;;
9000/[3478]??:HP-UX:*:*)
case "${UNAME_MACHINE}" in
9000/31? ) HP_ARCH=m68000 ;;
9000/[34]?? ) HP_ARCH=m68k ;;
9000/7?? | 9000/8?[1679] ) HP_ARCH=hppa1.1 ;;
9000/8?? ) HP_ARCH=hppa1.0 ;;
esac
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
echo ${HP_ARCH}-hp-hpux${HPUX_REV}
exit 0 ;;
3050*:HI-UX:*:*)
sed 's/^ //' << EOF >dummy.c
#include <unistd.h>
int
main ()
{
long cpu = sysconf (_SC_CPU_VERSION);
/* The order matters, because CPU_IS_HP_MC68K erroneously returns
true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
results, however. */
if (CPU_IS_PA_RISC (cpu))
{
switch (cpu)
{
case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
default: puts ("hppa-hitachi-hiuxwe2"); break;
}
}
else if (CPU_IS_HP_MC68K (cpu))
puts ("m68k-hitachi-hiuxwe2");
else puts ("unknown-hitachi-hiuxwe2");
exit (0);
}
EOF
${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
rm -f dummy.c dummy
echo unknown-hitachi-hiuxwe2
exit 0 ;;
9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
echo hppa1.1-hp-bsd
exit 0 ;;
9000/8??:4.3bsd:*:*)
echo hppa1.0-hp-bsd
exit 0 ;;
hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
echo hppa1.1-hp-osf
exit 0 ;;
hp8??:OSF1:*:*)
echo hppa1.0-hp-osf
exit 0 ;;
i?86:OSF1:*:*)
if [ -x /usr/sbin/sysversion ] ; then
echo ${UNAME_MACHINE}-unknown-osf1mk
else
echo ${UNAME_MACHINE}-unknown-osf1
fi
exit 0 ;;
parisc*:Lites*:*:*)
echo hppa1.1-hp-lites
exit 0 ;;
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
echo c1-convex-bsd
exit 0 ;;
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
if getsysinfo -f scalar_acc
then echo c32-convex-bsd
else echo c2-convex-bsd
fi
exit 0 ;;
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
echo c34-convex-bsd
exit 0 ;;
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
echo c38-convex-bsd
exit 0 ;;
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
echo c4-convex-bsd
exit 0 ;;
CRAY*X-MP:*:*:*)
echo xmp-cray-unicos
exit 0 ;;
CRAY*Y-MP:*:*:*)
echo ymp-cray-unicos${UNAME_RELEASE}
exit 0 ;;
CRAY*[A-Z]90:*:*:*)
echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
-e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
exit 0 ;;
CRAY*TS:*:*:*)
echo t90-cray-unicos${UNAME_RELEASE}
exit 0 ;;
CRAY-2:*:*:*)
echo cray2-cray-unicos
exit 0 ;;
F300:UNIX_System_V:*:*)
FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'`
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
exit 0 ;;
F301:UNIX_System_V:*:*)
echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
exit 0 ;;
hp3[0-9][05]:NetBSD:*:*)
echo m68k-hp-netbsd${UNAME_RELEASE}
exit 0 ;;
hp300:OpenBSD:*:*)
echo m68k-unknown-openbsd${UNAME_RELEASE}
exit 0 ;;
i?86:BSD/386:*:* | *:BSD/OS:*:*)
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
exit 0 ;;
*:FreeBSD:*:*)
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
exit 0 ;;
*:NetBSD:*:*)
echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
exit 0 ;;
*:OpenBSD:*:*)
echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
exit 0 ;;
i*:CYGWIN*:*)
echo ${UNAME_MACHINE}-pc-cygwin32
exit 0 ;;
i*:MINGW*:*)
echo ${UNAME_MACHINE}-pc-mingw32
exit 0 ;;
p*:CYGWIN*:*)
echo powerpcle-unknown-cygwin32
exit 0 ;;
prep*:SunOS:5.*:*)
echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit 0 ;;
*:GNU:*:*)
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
exit 0 ;;
*:Linux:*:*)
# uname on the ARM produces all sorts of strangeness, and we need to
# filter it out.
case "$UNAME_MACHINE" in
arm* | sa110*) UNAME_MACHINE="arm" ;;
esac
# The BFD linker knows what the default object file format is, so
# first see if it will tell us.
ld_help_string=`ld --help 2>&1`
ld_supported_emulations=`echo $ld_help_string \
| sed -ne '/supported emulations:/!d
s/[ ][ ]*/ /g
s/.*supported emulations: *//
s/ .*//
p'`
case "$ld_supported_emulations" in
i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;;
i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;;
sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
armlinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
elf32ppc) echo "powerpc-unknown-linux-gnu" ; exit 0 ;;
esac
if test "${UNAME_MACHINE}" = "alpha" ; then
sed 's/^ //' <<EOF >dummy.s
.globl main
.ent main
main:
.frame \$30,0,\$26,0
.prologue 0
.long 0x47e03d80 # implver $0
lda \$2,259
.long 0x47e20c21 # amask $2,$1
srl \$1,8,\$2
sll \$2,2,\$2
sll \$0,3,\$0
addl \$1,\$0,\$0
addl \$2,\$0,\$0
ret \$31,(\$26),1
.end main
EOF
LIBC=""
${CC-cc} dummy.s -o dummy 2>/dev/null
if test "$?" = 0 ; then
./dummy
case "$?" in
7)
UNAME_MACHINE="alpha"
;;
15)
UNAME_MACHINE="alphaev5"
;;
14)
UNAME_MACHINE="alphaev56"
;;
10)
UNAME_MACHINE="alphapca56"
;;
16)
UNAME_MACHINE="alphaev6"
;;
esac
objdump --private-headers dummy | \
grep ld.so.1 > /dev/null
if test "$?" = 0 ; then
LIBC="libc1"
fi
fi
rm -f dummy.s dummy
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
elif test "${UNAME_MACHINE}" = "mips" ; then
cat >dummy.c <<EOF
main(argc, argv)
int argc;
char *argv[];
{
#ifdef __MIPSEB__
printf ("%s-unknown-linux-gnu\n", argv[1]);
#endif
#ifdef __MIPSEL__
printf ("%sel-unknown-linux-gnu\n", argv[1]);
#endif
return 0;
}
EOF
${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
rm -f dummy.c dummy
else
# Either a pre-BFD a.out linker (linux-gnuoldld)
# or one that does not give us useful --help.
# GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
# If ld does not provide *any* "supported emulations:"
# that means it is gnuoldld.
echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:"
test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
case "${UNAME_MACHINE}" in
i?86)
VENDOR=pc;
;;
*)
VENDOR=unknown;
;;
esac
# Determine whether the default compiler is a.out or elf
cat >dummy.c <<EOF
#include <features.h>
main(argc, argv)
int argc;
char *argv[];
{
#ifdef __ELF__
# ifdef __GLIBC__
# if __GLIBC__ >= 2
printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
# else
printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
# endif
# else
printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
# endif
#else
printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
#endif
return 0;
}
EOF
${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
rm -f dummy.c dummy
fi ;;
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
# are messed up and put the nodename in both sysname and nodename.
i?86:DYNIX/ptx:4*:*)
echo i386-sequent-sysv4
exit 0 ;;
i?86:UNIX_SV:4.2MP:2.*)
# Unixware is an offshoot of SVR4, but it has its own version
# number series starting with 2...
# I am not positive that other SVR4 systems won't match this,
# I just have to hope. -- rms.
# Use sysv4.2uw... so that sysv4* matches it.
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
exit 0 ;;
i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*)
if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE}
else
echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
fi
exit 0 ;;
i?86:*:3.2:*)
if test -f /usr/options/cb.name; then
UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
elif /bin/uname -X 2>/dev/null >/dev/null ; then
UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
(/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
(/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
&& UNAME_MACHINE=i586
echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
else
echo ${UNAME_MACHINE}-pc-sysv32
fi
exit 0 ;;
pc:*:*:*)
# uname -m prints for DJGPP always 'pc', but it prints nothing about
# the processor, so we play safe by assuming i386.
echo i386-pc-msdosdjgpp
exit 0 ;;
Intel:Mach:3*:*)
echo i386-pc-mach3
exit 0 ;;
paragon:*:*:*)
echo i860-intel-osf1
exit 0 ;;
i860:*:4.*:*) # i860-SVR4
if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
else # Add other i860-SVR4 vendors below as they are discovered.
echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
fi
exit 0 ;;
mini*:CTIX:SYS*5:*)
# "miniframe"
echo m68010-convergent-sysv
exit 0 ;;
M68*:*:R3V[567]*:*)
test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
OS_REL=''
test -r /etc/.relid \
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
&& echo i486-ncr-sysv4.3${OS_REL} && exit 0
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
&& echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
&& echo i486-ncr-sysv4 && exit 0 ;;
m68*:LynxOS:2.*:*)
echo m68k-unknown-lynxos${UNAME_RELEASE}
exit 0 ;;
mc68030:UNIX_System_V:4.*:*)
echo m68k-atari-sysv4
exit 0 ;;
i?86:LynxOS:2.*:*)
echo i386-unknown-lynxos${UNAME_RELEASE}
exit 0 ;;
TSUNAMI:LynxOS:2.*:*)
echo sparc-unknown-lynxos${UNAME_RELEASE}
exit 0 ;;
rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*)
echo rs6000-unknown-lynxos${UNAME_RELEASE}
exit 0 ;;
SM[BE]S:UNIX_SV:*:*)
echo mips-dde-sysv${UNAME_RELEASE}
exit 0 ;;
RM*:SINIX-*:*:*)
echo mips-sni-sysv4
exit 0 ;;
*:SINIX-*:*:*)
if uname -p 2>/dev/null >/dev/null ; then
UNAME_MACHINE=`(uname -p) 2>/dev/null`
echo ${UNAME_MACHINE}-sni-sysv4
else
echo ns32k-sni-sysv
fi
exit 0 ;;
PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
# says <Richard.M.Bartel@ccMail.Census.GOV>
echo i586-unisys-sysv4
exit 0 ;;
*:UNIX_System_V:4*:FTX*)
# From Gerald Hewes <hewes@openmarket.com>.
# How about differentiating between stratus architectures? -djm
echo hppa1.1-stratus-sysv4
exit 0 ;;
*:*:*:FTX*)
# From seanf@swdc.stratus.com.
echo i860-stratus-sysv4
exit 0 ;;
mc68*:A/UX:*:*)
echo m68k-apple-aux${UNAME_RELEASE}
exit 0 ;;
news*:NEWS-OS:*:6*)
echo mips-sony-newsos6
exit 0 ;;
R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:*)
if [ -d /usr/nec ]; then
echo mips-nec-sysv${UNAME_RELEASE}
else
echo mips-unknown-sysv${UNAME_RELEASE}
fi
exit 0 ;;
esac
#echo '(No uname command or uname output not recognized.)' 1>&2
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
cat >dummy.c <<EOF
#ifdef _SEQUENT_
# include <sys/types.h>
# include <sys/utsname.h>
#endif
main ()
{
#if defined (sony)
#if defined (MIPSEB)
/* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
I don't know.... */
printf ("mips-sony-bsd\n"); exit (0);
#else
#include <sys/param.h>
printf ("m68k-sony-newsos%s\n",
#ifdef NEWSOS4
"4"
#else
""
#endif
); exit (0);
#endif
#endif
#if defined (__arm) && defined (__acorn) && defined (__unix)
printf ("arm-acorn-riscix"); exit (0);
#endif
#if defined (hp300) && !defined (hpux)
printf ("m68k-hp-bsd\n"); exit (0);
#endif
#if defined (NeXT)
#if !defined (__ARCHITECTURE__)
#define __ARCHITECTURE__ "m68k"
#endif
int version;
version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
exit (0);
#endif
#if defined (MULTIMAX) || defined (n16)
#if defined (UMAXV)
printf ("ns32k-encore-sysv\n"); exit (0);
#else
#if defined (CMU)
printf ("ns32k-encore-mach\n"); exit (0);
#else
printf ("ns32k-encore-bsd\n"); exit (0);
#endif
#endif
#endif
#if defined (__386BSD__)
printf ("i386-pc-bsd\n"); exit (0);
#endif
#if defined (sequent)
#if defined (i386)
printf ("i386-sequent-dynix\n"); exit (0);
#endif
#if defined (ns32000)
printf ("ns32k-sequent-dynix\n"); exit (0);
#endif
#endif
#if defined (_SEQUENT_)
struct utsname un;
uname(&un);
if (strncmp(un.version, "V2", 2) == 0) {
printf ("i386-sequent-ptx2\n"); exit (0);
}
if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
printf ("i386-sequent-ptx1\n"); exit (0);
}
printf ("i386-sequent-ptx\n"); exit (0);
#endif
#if defined (vax)
#if !defined (ultrix)
printf ("vax-dec-bsd\n"); exit (0);
#else
printf ("vax-dec-ultrix\n"); exit (0);
#endif
#endif
#if defined (alliant) && defined (i860)
printf ("i860-alliant-bsd\n"); exit (0);
#endif
exit (1);
}
EOF
${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0
rm -f dummy.c dummy
# Apollos put the system type in the environment.
test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
# Convex versions that predate uname can use getsysinfo(1)
if [ -x /usr/convex/getsysinfo ]
then
case `getsysinfo -f cpu_type` in
c1*)
echo c1-convex-bsd
exit 0 ;;
c2*)
if getsysinfo -f scalar_acc
then echo c32-convex-bsd
else echo c2-convex-bsd
fi
exit 0 ;;
c34*)
echo c34-convex-bsd
exit 0 ;;
c38*)
echo c38-convex-bsd
exit 0 ;;
c4*)
echo c4-convex-bsd
exit 0 ;;
esac
fi
#echo '(Unable to guess system type)' 1>&2
exit 1

View File

@@ -1,952 +0,0 @@
#! /bin/sh
# Configuration validation subroutine script, version 1.1.
# Copyright (C) 1991, 92-97, 1998 Free Software Foundation, Inc.
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
# can handle that machine. It does not imply ALL GNU software can.
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# Configuration subroutine to validate and canonicalize a configuration type.
# Supply the specified configuration type as an argument.
# If it is invalid, we print an error message on stderr and exit with code 1.
# Otherwise, we print the canonical config type on stdout and succeed.
# This file is supposed to be the same for all GNU packages
# and recognize all the CPU types, system types and aliases
# that are meaningful with *any* GNU software.
# Each package is responsible for reporting which valid configurations
# it does not support. The user should be able to distinguish
# a failure to support a valid configuration from a meaningless
# configuration.
# The goal of this file is to map all the various variations of a given
# machine specification into a single specification in the form:
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
# or in some cases, the newer four-part form:
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
# It is wrong to echo any other type of specification.
if [ x$1 = x ]
then
echo Configuration name missing. 1>&2
echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
echo "or $0 ALIAS" 1>&2
echo where ALIAS is a recognized configuration type. 1>&2
exit 1
fi
# First pass through any local machine types.
case $1 in
*local*)
echo $1
exit 0
;;
*)
;;
esac
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
# Here we must recognize all the valid KERNEL-OS combinations.
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
case $maybe_os in
linux-gnu*)
os=-$maybe_os
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
;;
*)
basic_machine=`echo $1 | sed 's/-[^-]*$//'`
if [ $basic_machine != $1 ]
then os=`echo $1 | sed 's/.*-/-/'`
else os=; fi
;;
esac
### Let's recognize common machines as not being operating systems so
### that things like config.sub decstation-3100 work. We also
### recognize some manufacturers as not being operating systems, so we
### can provide default operating systems below.
case $os in
-sun*os*)
# Prevent following clause from handling this invalid input.
;;
-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
-apple)
os=
basic_machine=$1
;;
-hiux*)
os=-hiuxwe2
;;
-sco5)
os=sco3.2v5
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-sco4)
os=-sco3.2v4
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-sco3.2.[4-9]*)
os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-sco3.2v[4-9]*)
# Don't forget version if it is 3.2v4 or newer.
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-sco*)
os=-sco3.2v2
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-isc)
os=-isc2.2
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-clix*)
basic_machine=clipper-intergraph
;;
-isc*)
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-lynx*)
os=-lynxos
;;
-ptx*)
basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
;;
-windowsnt*)
os=`echo $os | sed -e 's/windowsnt/winnt/'`
;;
-psos*)
os=-psos
;;
esac
# Decode aliases for certain CPU-COMPANY combinations.
case $basic_machine in
# Recognize the basic CPU types without company name.
# Some are omitted here because they have special meanings below.
tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
| arme[lb] | pyramid | mn10200 | mn10300 \
| tron | a29k | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 \
| alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \
| i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \
| mips64 | mipsel | mips64el | mips64orion | mips64orionel \
| mipstx39 | mipstx39el \
| sparc | sparclet | sparclite | sparc64 | v850)
basic_machine=$basic_machine-unknown
;;
# We use `pc' rather than `unknown'
# because (1) that's what they normally are, and
# (2) the word "unknown" tends to confuse beginning users.
i[34567]86)
basic_machine=$basic_machine-pc
;;
# Object if more than one company name word.
*-*-*)
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
exit 1
;;
# Recognize the basic CPU types with company name.
vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \
| m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
| mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
| power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \
| xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* \
| alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \
| ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \
| sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
| sparc64-* | mips64-* | mipsel-* \
| mips64el-* | mips64orion-* | mips64orionel-* \
| mipstx39-* | mipstx39el-* \
| f301-*)
;;
# Recognize the various machine names and aliases which stand
# for a CPU type and a company and sometimes even an OS.
3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
basic_machine=m68000-att
;;
3b*)
basic_machine=we32k-att
;;
alliant | fx80)
basic_machine=fx80-alliant
;;
altos | altos3068)
basic_machine=m68k-altos
;;
am29k)
basic_machine=a29k-none
os=-bsd
;;
amdahl)
basic_machine=580-amdahl
os=-sysv
;;
amiga | amiga-*)
basic_machine=m68k-cbm
;;
amigaos | amigados)
basic_machine=m68k-cbm
os=-amigaos
;;
amigaunix | amix)
basic_machine=m68k-cbm
os=-sysv4
;;
apollo68)
basic_machine=m68k-apollo
os=-sysv
;;
aux)
basic_machine=m68k-apple
os=-aux
;;
balance)
basic_machine=ns32k-sequent
os=-dynix
;;
convex-c1)
basic_machine=c1-convex
os=-bsd
;;
convex-c2)
basic_machine=c2-convex
os=-bsd
;;
convex-c32)
basic_machine=c32-convex
os=-bsd
;;
convex-c34)
basic_machine=c34-convex
os=-bsd
;;
convex-c38)
basic_machine=c38-convex
os=-bsd
;;
cray | ymp)
basic_machine=ymp-cray
os=-unicos
;;
cray2)
basic_machine=cray2-cray
os=-unicos
;;
[ctj]90-cray)
basic_machine=c90-cray
os=-unicos
;;
crds | unos)
basic_machine=m68k-crds
;;
da30 | da30-*)
basic_machine=m68k-da30
;;
decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
basic_machine=mips-dec
;;
delta | 3300 | motorola-3300 | motorola-delta \
| 3300-motorola | delta-motorola)
basic_machine=m68k-motorola
;;
delta88)
basic_machine=m88k-motorola
os=-sysv3
;;
dpx20 | dpx20-*)
basic_machine=rs6000-bull
os=-bosx
;;
dpx2* | dpx2*-bull)
basic_machine=m68k-bull
os=-sysv3
;;
ebmon29k)
basic_machine=a29k-amd
os=-ebmon
;;
elxsi)
basic_machine=elxsi-elxsi
os=-bsd
;;
encore | umax | mmax)
basic_machine=ns32k-encore
;;
fx2800)
basic_machine=i860-alliant
;;
genix)
basic_machine=ns32k-ns
;;
gmicro)
basic_machine=tron-gmicro
os=-sysv
;;
h3050r* | hiux*)
basic_machine=hppa1.1-hitachi
os=-hiuxwe2
;;
h8300hms)
basic_machine=h8300-hitachi
os=-hms
;;
harris)
basic_machine=m88k-harris
os=-sysv3
;;
hp300-*)
basic_machine=m68k-hp
;;
hp300bsd)
basic_machine=m68k-hp
os=-bsd
;;
hp300hpux)
basic_machine=m68k-hp
os=-hpux
;;
hp9k2[0-9][0-9] | hp9k31[0-9])
basic_machine=m68000-hp
;;
hp9k3[2-9][0-9])
basic_machine=m68k-hp
;;
hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
basic_machine=hppa1.1-hp
;;
hp9k8[0-9][0-9] | hp8[0-9][0-9])
basic_machine=hppa1.0-hp
;;
hppa-next)
os=-nextstep3
;;
i370-ibm* | ibm*)
basic_machine=i370-ibm
os=-mvs
;;
# I'm not sure what "Sysv32" means. Should this be sysv3.2?
i[34567]86v32)
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
os=-sysv32
;;
i[34567]86v4*)
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
os=-sysv4
;;
i[34567]86v)
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
os=-sysv
;;
i[34567]86sol2)
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
os=-solaris2
;;
iris | iris4d)
basic_machine=mips-sgi
case $os in
-irix*)
;;
*)
os=-irix4
;;
esac
;;
isi68 | isi)
basic_machine=m68k-isi
os=-sysv
;;
m88k-omron*)
basic_machine=m88k-omron
;;
magnum | m3230)
basic_machine=mips-mips
os=-sysv
;;
merlin)
basic_machine=ns32k-utek
os=-sysv
;;
miniframe)
basic_machine=m68000-convergent
;;
mipsel*-linux*)
basic_machine=mipsel-unknown
os=-linux-gnu
;;
mips*-linux*)
basic_machine=mips-unknown
os=-linux-gnu
;;
mips3*-*)
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
;;
mips3*)
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
;;
ncr3000)
basic_machine=i486-ncr
os=-sysv4
;;
news | news700 | news800 | news900)
basic_machine=m68k-sony
os=-newsos
;;
news1000)
basic_machine=m68030-sony
os=-newsos
;;
news-3600 | risc-news)
basic_machine=mips-sony
os=-newsos
;;
next | m*-next )
basic_machine=m68k-next
case $os in
-nextstep* )
;;
-ns2*)
os=-nextstep2
;;
*)
os=-nextstep3
;;
esac
;;
nh3000)
basic_machine=m68k-harris
os=-cxux
;;
nh[45]000)
basic_machine=m88k-harris
os=-cxux
;;
nindy960)
basic_machine=i960-intel
os=-nindy
;;
np1)
basic_machine=np1-gould
;;
pa-hitachi)
basic_machine=hppa1.1-hitachi
os=-hiuxwe2
;;
paragon)
basic_machine=i860-intel
os=-osf
;;
pbd)
basic_machine=sparc-tti
;;
pbb)
basic_machine=m68k-tti
;;
pc532 | pc532-*)
basic_machine=ns32k-pc532
;;
pentium | p5 | k5 | nexen)
basic_machine=i586-pc
;;
pentiumpro | p6 | k6 | 6x86)
basic_machine=i686-pc
;;
pentiumii | pentium2)
basic_machine=i786-pc
;;
pentium-* | p5-* | k5-* | nexen-*)
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
pentiumpro-* | p6-* | k6-* | 6x86-*)
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
pentiumii-* | pentium2-*)
basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
pn)
basic_machine=pn-gould
;;
power) basic_machine=rs6000-ibm
;;
ppc) basic_machine=powerpc-unknown
;;
ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
ppcle | powerpclittle | ppc-le | powerpc-little)
basic_machine=powerpcle-unknown
;;
ppcle-* | powerpclittle-*)
basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
ps2)
basic_machine=i386-ibm
;;
rm[46]00)
basic_machine=mips-siemens
;;
rtpc | rtpc-*)
basic_machine=romp-ibm
;;
sequent)
basic_machine=i386-sequent
;;
sh)
basic_machine=sh-hitachi
os=-hms
;;
sps7)
basic_machine=m68k-bull
os=-sysv2
;;
spur)
basic_machine=spur-unknown
;;
sun2)
basic_machine=m68000-sun
;;
sun2os3)
basic_machine=m68000-sun
os=-sunos3
;;
sun2os4)
basic_machine=m68000-sun
os=-sunos4
;;
sun3os3)
basic_machine=m68k-sun
os=-sunos3
;;
sun3os4)
basic_machine=m68k-sun
os=-sunos4
;;
sun4os3)
basic_machine=sparc-sun
os=-sunos3
;;
sun4os4)
basic_machine=sparc-sun
os=-sunos4
;;
sun4sol2)
basic_machine=sparc-sun
os=-solaris2
;;
sun3 | sun3-*)
basic_machine=m68k-sun
;;
sun4)
basic_machine=sparc-sun
;;
sun386 | sun386i | roadrunner)
basic_machine=i386-sun
;;
symmetry)
basic_machine=i386-sequent
os=-dynix
;;
tx39)
basic_machine=mipstx39-unknown
;;
tx39el)
basic_machine=mipstx39el-unknown
;;
tower | tower-32)
basic_machine=m68k-ncr
;;
udi29k)
basic_machine=a29k-amd
os=-udi
;;
ultra3)
basic_machine=a29k-nyu
os=-sym1
;;
vaxv)
basic_machine=vax-dec
os=-sysv
;;
vms)
basic_machine=vax-dec
os=-vms
;;
vpp*|vx|vx-*)
basic_machine=f301-fujitsu
;;
vxworks960)
basic_machine=i960-wrs
os=-vxworks
;;
vxworks68)
basic_machine=m68k-wrs
os=-vxworks
;;
vxworks29k)
basic_machine=a29k-wrs
os=-vxworks
;;
xmp)
basic_machine=xmp-cray
os=-unicos
;;
xps | xps100)
basic_machine=xps100-honeywell
;;
none)
basic_machine=none-none
os=-none
;;
# Here we handle the default manufacturer of certain CPU types. It is in
# some cases the only manufacturer, in others, it is the most popular.
mips)
if [ x$os = x-linux-gnu ]; then
basic_machine=mips-unknown
else
basic_machine=mips-mips
fi
;;
romp)
basic_machine=romp-ibm
;;
rs6000)
basic_machine=rs6000-ibm
;;
vax)
basic_machine=vax-dec
;;
pdp11)
basic_machine=pdp11-dec
;;
we32k)
basic_machine=we32k-att
;;
sparc)
basic_machine=sparc-sun
;;
cydra)
basic_machine=cydra-cydrome
;;
orion)
basic_machine=orion-highlevel
;;
orion105)
basic_machine=clipper-highlevel
;;
*)
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
exit 1
;;
esac
# Here we canonicalize certain aliases for manufacturers.
case $basic_machine in
*-digital*)
basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
;;
*-commodore*)
basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
;;
*)
;;
esac
# Decode manufacturer-specific aliases for certain operating systems.
if [ x"$os" != x"" ]
then
case $os in
# First match some system type aliases
# that might get confused with valid system types.
# -solaris* is a basic system type, with this one exception.
-solaris1 | -solaris1.*)
os=`echo $os | sed -e 's|solaris1|sunos4|'`
;;
-solaris)
os=-solaris2
;;
-svr4*)
os=-sysv4
;;
-unixware*)
os=-sysv4.2uw
;;
-gnu/linux*)
os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
;;
# First accept the basic system types.
# The portable systems comes first.
# Each alternative MUST END IN A *, to match a version number.
# -sysv* is not here because it comes later, after sysvr4.
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
| -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
| -aos* \
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
| -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
| -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
| -mingw32* | -linux-gnu* | -uxpv*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-linux*)
os=`echo $os | sed -e 's|linux|linux-gnu|'`
;;
-sunos5*)
os=`echo $os | sed -e 's|sunos5|solaris2|'`
;;
-sunos6*)
os=`echo $os | sed -e 's|sunos6|solaris3|'`
;;
-osfrose*)
os=-osfrose
;;
-osf*)
os=-osf
;;
-utek*)
os=-bsd
;;
-dynix*)
os=-bsd
;;
-acis*)
os=-aos
;;
-ctix* | -uts*)
os=-sysv
;;
-ns2 )
os=-nextstep2
;;
# Preserve the version number of sinix5.
-sinix5.*)
os=`echo $os | sed -e 's|sinix|sysv|'`
;;
-sinix*)
os=-sysv4
;;
-triton*)
os=-sysv3
;;
-oss*)
os=-sysv3
;;
-svr4)
os=-sysv4
;;
-svr3)
os=-sysv3
;;
-sysvr4)
os=-sysv4
;;
# This must come after -sysvr4.
-sysv*)
;;
-xenix)
os=-xenix
;;
-none)
;;
*)
# Get rid of the `-' at the beginning of $os.
os=`echo $os | sed 's/[^-]*-//'`
echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
exit 1
;;
esac
else
# Here we handle the default operating systems that come with various machines.
# The value should be what the vendor currently ships out the door with their
# machine or put another way, the most popular os provided with the machine.
# Note that if you're going to try to match "-MANUFACTURER" here (say,
# "-sun"), then you have to tell the case statement up towards the top
# that MANUFACTURER isn't an operating system. Otherwise, code above
# will signal an error saying that MANUFACTURER isn't an operating
# system, and we'll never get to this point.
case $basic_machine in
*-acorn)
os=-riscix1.2
;;
arm*-semi)
os=-aout
;;
pdp11-*)
os=-none
;;
*-dec | vax-*)
os=-ultrix4.2
;;
m68*-apollo)
os=-domain
;;
i386-sun)
os=-sunos4.0.2
;;
m68000-sun)
os=-sunos3
# This also exists in the configure program, but was not the
# default.
# os=-sunos4
;;
*-tti) # must be before sparc entry or we get the wrong os.
os=-sysv3
;;
sparc-* | *-sun)
os=-sunos4.1.1
;;
*-ibm)
os=-aix
;;
*-hp)
os=-hpux
;;
*-hitachi)
os=-hiux
;;
i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
os=-sysv
;;
*-cbm)
os=-amigaos
;;
*-dg)
os=-dgux
;;
*-dolphin)
os=-sysv3
;;
m68k-ccur)
os=-rtu
;;
m88k-omron*)
os=-luna
;;
*-next )
os=-nextstep
;;
*-sequent)
os=-ptx
;;
*-crds)
os=-unos
;;
*-ns)
os=-genix
;;
i370-*)
os=-mvs
;;
*-next)
os=-nextstep3
;;
*-gould)
os=-sysv
;;
*-highlevel)
os=-bsd
;;
*-encore)
os=-bsd
;;
*-sgi)
os=-irix
;;
*-siemens)
os=-sysv4
;;
*-masscomp)
os=-rtu
;;
f301-fujitsu)
os=-uxpv
;;
*)
os=-none
;;
esac
fi
# Here we handle the case where we know the os, and the CPU type, but not the
# manufacturer. We pick the logical manufacturer.
vendor=unknown
case $basic_machine in
*-unknown)
case $os in
-riscix*)
vendor=acorn
;;
-sunos*)
vendor=sun
;;
-aix*)
vendor=ibm
;;
-hpux*)
vendor=hp
;;
-hiux*)
vendor=hitachi
;;
-unos*)
vendor=crds
;;
-dgux*)
vendor=dg
;;
-luna*)
vendor=omron
;;
-genix*)
vendor=ns
;;
-mvs*)
vendor=ibm
;;
-ptx*)
vendor=sequent
;;
-vxsim* | -vxworks*)
vendor=wrs
;;
-aux*)
vendor=apple
;;
esac
basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
;;
esac
echo $basic_machine$os

View File

@@ -1,186 +0,0 @@
# Configure paths for GTK+
# Owen Taylor 97-11-3
# (copy of gtk.m4 (public domain))
dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS
dnl
AC_DEFUN(AM_PATH_GTK,
[dnl
dnl Get the cflags and libraries from the gtk-config script
dnl
AC_ARG_WITH(gtk-prefix,[ --with-gtk-prefix=PFX Prefix where GTK is installed (optional)],
gtk_config_prefix="$withval", gtk_config_prefix="")
AC_ARG_WITH(gtk-exec-prefix,[ --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)],
gtk_config_exec_prefix="$withval", gtk_config_exec_prefix="")
AC_ARG_ENABLE(gtktest, [ --disable-gtktest Do not try to compile and run a test GTK program],
, enable_gtktest=yes)
if test x$gtk_config_exec_prefix != x ; then
gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
if test x${GTK_CONFIG+set} != xset ; then
GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
fi
fi
if test x$gtk_config_prefix != x ; then
gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
if test x${GTK_CONFIG+set} != xset ; then
GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
fi
fi
AC_PATH_PROG(GTK_CONFIG, gtk-config, no)
min_gtk_version=ifelse([$1], ,0.99.7,$1)
AC_MSG_CHECKING(for GTK - version >= $min_gtk_version)
no_gtk=""
if test "$GTK_CONFIG" = "no" ; then
no_gtk=yes
else
GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
if test "x$enable_gtktest" = "xyes" ; then
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
CFLAGS="$CFLAGS $GTK_CFLAGS"
LIBS="$LIBS $GTK_LIBS"
dnl
dnl Now check if the installed GTK is sufficiently new. (Also sanity
dnl checks the results of gtk-config to some extent
dnl
rm -f conf.gtktest
AC_TRY_RUN([
#include <gtk/gtk.h>
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
int major, minor, micro;
char *tmp_version;
system ("touch conf.gtktest");
/* HP/UX 9 (%@#!) writes to sscanf strings */
tmp_version = g_strdup("$min_gtk_version");
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
printf("%s, bad version string\n", "$min_gtk_version");
exit(1);
}
if ((gtk_major_version != $gtk_config_major_version) ||
(gtk_minor_version != $gtk_config_minor_version) ||
(gtk_micro_version != $gtk_config_micro_version))
{
printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
$gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
gtk_major_version, gtk_minor_version, gtk_micro_version);
printf ("*** was found! If gtk-config was correct, then it is best\n");
printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
printf("*** required on your system.\n");
printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
printf("*** before re-running configure\n");
}
#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
(gtk_minor_version != GTK_MINOR_VERSION) ||
(gtk_micro_version != GTK_MICRO_VERSION))
{
printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
printf("*** library (version %d.%d.%d)\n",
gtk_major_version, gtk_minor_version, gtk_micro_version);
}
#endif /* defined (GTK_MAJOR_VERSION) ... */
else
{
if ((gtk_major_version > major) ||
((gtk_major_version == major) && (gtk_minor_version > minor)) ||
((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
{
return 0;
}
else
{
printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
gtk_major_version, gtk_minor_version, gtk_micro_version);
printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
major, minor, micro);
printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
printf("***\n");
printf("*** If you have already installed a sufficiently new version, this error\n");
printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
printf("*** being found. The easiest way to fix this is to remove the old version\n");
printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
printf("*** correct copy of gtk-config. (In this case, you will have to\n");
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
printf("*** so that the correct libraries are found at run-time))\n");
}
}
return 1;
}
],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
fi
if test "x$no_gtk" = x ; then
AC_MSG_RESULT(yes)
ifelse([$2], , :, [$2])
else
AC_MSG_RESULT(no)
if test "$GTK_CONFIG" = "no" ; then
echo "*** The gtk-config script installed by GTK could not be found"
echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
echo "*** your path, or set the GTK_CONFIG environment variable to the"
echo "*** full path to gtk-config."
else
if test -f conf.gtktest ; then
:
else
echo "*** Could not run GTK test program, checking why..."
CFLAGS="$CFLAGS $GTK_CFLAGS"
LIBS="$LIBS $GTK_LIBS"
AC_TRY_LINK([
#include <gtk/gtk.h>
#include <stdio.h>
], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ],
[ echo "*** The test program compiled, but did not run. This usually means"
echo "*** that the run-time linker is not finding GTK or finding the wrong"
echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
echo "*** to the installed location Also, make sure you have run ldconfig if that"
echo "*** is required on your system"
echo "***"
echo "*** If you have an old version installed, it is best to remove it, although"
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
echo "***"
echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
echo "*** came with the system with the command"
echo "***"
echo "*** rpm --erase --nodeps gtk gtk-devel" ],
[ echo "*** The test program failed to compile or link. See the file config.log for the"
echo "*** exact error that occured. This usually means GTK was incorrectly installed"
echo "*** or that you have moved GTK since it was installed. In the latter case, you"
echo "*** may want to edit the gtk-config script: $GTK_CONFIG" ])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
fi
GTK_CFLAGS=""
GTK_LIBS=""
ifelse([$3], , :, [$3])
fi
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
rm -f conf.gtktest
])

View File

@@ -1,119 +0,0 @@
#!/bin/sh
#
# install - install a program, script, or datafile
# This comes from X11R5; it is not part of GNU.
#
# $XConsortium: install.sh,v 1.2 89/12/18 14:47:22 jim Exp $
#
# This script is compatible with the BSD install script, but was written
# from scratch.
#
# set DOITPROG to echo to test this script
# Don't use :- since 4.3BSD and earlier shells don't like it.
doit="${DOITPROG-}"
# put in absolute paths if you don't have them in your path; or use env. vars.
mvprog="${MVPROG-mv}"
cpprog="${CPPROG-cp}"
chmodprog="${CHMODPROG-chmod}"
chownprog="${CHOWNPROG-chown}"
chgrpprog="${CHGRPPROG-chgrp}"
stripprog="${STRIPPROG-strip}"
rmprog="${RMPROG-rm}"
instcmd="$mvprog"
chmodcmd=""
chowncmd=""
chgrpcmd=""
stripcmd=""
rmcmd="$rmprog -f"
mvcmd="$mvprog"
src=""
dst=""
while [ x"$1" != x ]; do
case $1 in
-c) instcmd="$cpprog"
shift
continue;;
-m) chmodcmd="$chmodprog $2"
shift
shift
continue;;
-o) chowncmd="$chownprog $2"
shift
shift
continue;;
-g) chgrpcmd="$chgrpprog $2"
shift
shift
continue;;
-s) stripcmd="$stripprog"
shift
continue;;
*) if [ x"$src" = x ]
then
src=$1
else
dst=$1
fi
shift
continue;;
esac
done
if [ x"$src" = x ]
then
echo "install: no input file specified"
exit 1
fi
if [ x"$dst" = x ]
then
echo "install: no destination specified"
exit 1
fi
# If destination is a directory, append the input filename; if your system
# does not like double slashes in filenames, you may need to add some logic
if [ -d $dst ]
then
dst="$dst"/`basename $src`
fi
# Make a temp file name in the proper directory.
dstdir=`dirname $dst`
dsttmp=$dstdir/#inst.$$#
# Move or copy the file name to the temp name
$doit $instcmd $src $dsttmp
# and set any options; do chmod last to preserve setuid bits
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; fi
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; fi
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; fi
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; fi
# Now rename the file to the real destination.
$doit $rmcmd $dst
$doit $mvcmd $dsttmp $dst
exit 0

View File

@@ -1,83 +0,0 @@
#!/bin/sh
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
#
#
# This script will generate a single Makefile from a Makefile.in using
# the config.status script.
#
# The config.status script is generated the first time you run
# ./configure.
#
#
# Usage: update-makefile.sh
#
# Send comments, improvements, bugs to ramiro@netscape.com
#
# Make sure a Makefile.in exists
if [ ! -f Makefile.in ]
then
echo
echo "There ain't no 'Makefile.in' over here: $pwd"
echo
exit
fi
# Use DEPTH in the Makefile.in to determine the depth
depth=`grep -w DEPTH Makefile.in | grep -e "\.\." | awk -F"=" '{ print $2; }'`
# Determine the depth count
n=`echo $depth | tr '/' ' ' | wc -w`
# Determine the path (strip anything before the mozilla/ root)
path=`pwd | awk -v count=$n -F"/" '\
{ for(i=NF-count+1; i <= NF ; i++) \
{ \
if (i!=NF) \
{ printf "%s/", $i } \
else \
{ printf "%s", $i } \
} \
}'`
dir=$path
# Add a slash only to dirs where depth >= mozilla_root
if [ $n -gt 0 ]
then
dir=${dir}"/"
fi
back=`pwd`
makefile=${dir}"Makefile"
cd $depth
# Make sure config.status exists
if [ -f config.status ]
then
CONFIG_FILES=$makefile ./config.status
else
echo
echo "There ain't no 'config.status' over here: $pwd"
echo
fi
cd $back

View File

@@ -1 +0,0 @@
98091517

View File

@@ -1,25 +0,0 @@
#!/bin/sh
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
#
DATATYPE="$1"
INFILE="$2"
echo "${DATATYPE} RCDATA"
sed 's/"/""/g' ${INFILE} | awk 'BEGIN { printf("BEGIN\n") } { printf("\"%s\\r\\n\",\n", $0) } END { printf("\"\\0\"\nEND\n") }'
exit 0

View File

@@ -1,91 +0,0 @@
#!/bin/sh
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
#
#
# Fix brain-damaged compilers that don't understand -o and -c together
#
CC=`echo $1 | sed -e "s|'||g" -e 's|"||g'`
shift
DASH_C=0
DASH_O=0
DUMMY="XxxXxxX"
GET_OBJECT=0
OBJ="${DUMMY}"
OBJECT="${DUMMY}"
for i in $*
do
[ "${CHECK_O}" = yes ] && {
case $i in
./*/*.o) OBJECT="$i"
OPTS="${OPTS} -o"
DASH_O=1
;;
./*.o) OBJECT="`basename $i`"
i=""
DASH_O=1
;;
*.o) if [ $i = `basename $i` ]
then
OBJECT="$i"
i=""
else
OPTS="${OPTS} -o"
fi
DASH_O=1
;;
*) OPTS="${OPTS} -o $i"
DASH_O=1
i=""
;;
esac
CHECK_O=no
}
case $i in
-c) DASH_C=1
OPTS="${OPTS} -c"
;;
-o) CHECK_O=yes
;;
*.c) C_SRC=$i
OPTS="${OPTS} $i"
# cc always creates the .o from the .c name
OBJ=`basename $C_SRC .c`.o
;;
*.s) S_SRC=$i
OPTS="${OPTS} $i"
# or the .o from the .s name
OBJ=`basename $S_SRC .s`.o
;;
*.o) OBJECT=$i
OPTS="${OPTS} $i"
;;
*) OPTS="${OPTS} $i"
;;
esac
done
${CC} ${OPTS} || exit $?
# if there was no -c and -o we're done
[ $DASH_C = 1 -a $DASH_O = 1 ] || exit 0
# if $OBJ and $OBJECT are the same we're done
[ $OBJ = $OBJECT ] && exit 0
[ -f $OBJ ] && mv -f $OBJ $OBJECT

View File

@@ -1,118 +0,0 @@
#!/bin/sh
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
#
#
# Wrapper for brain-damaged compilers that don't understand -o and -c together.
#
CXX=`echo $1 | sed -e "s|'||g" -e 's|"||g'`
shift
DUMMY="XxxXxxX"
DASH_C=0
DASH_O=0
GET_OBJECT=0
C_SRC="${DUMMY}"
CC_SRC="${DUMMY}"
CPP_SRC="${DUMMY}"
S_SRC="${DUMMY}"
OBJECT="${DUMMY}"
for i in $*
do
[ ${GET_OBJECT} -eq 1 ] && {
case $i in
./*/*.o) OBJECT="$i"
OPTS="${OPTS} -o"
DASH_O=1
;;
./*.o) OBJECT="`basename $i`"
i=""
DASH_O=1
;;
*.o) if [ $i = `basename $i` ]
then
i=""
else
OPTS="${OPTS} -o"
DASH_O=1
fi
;;
*) OPTS="${OPTS} -o $i"
DASH_O=1
i=""
;;
esac
GET_OBJECT=0
}
case $i in
-c)
DASH_C=1
OPTS="${OPTS} -c"
;;
-o)
GET_OBJECT=1
;;
*.c)
C_SRC="$i"
OPTS="${OPTS} $i"
# cc always creates the .o from the .c name
OBJ=`basename ${C_SRC} .c`.o
;;
+.*)
OPTS="${OPTS} $i"
;;
*.cpp)
CPP_SRC="$i"
OPTS="${OPTS} $i"
# cc always creates the .o from the .cpp name
OBJ=`basename ${CPP_SRC} .cpp`.o
;;
*.cc)
CC_SRC="$i"
OPTS="${OPTS} $i"
# cc always creates the .o from the .cc name
OBJ=`basename ${CC_SRC} .cc`.o
;;
*.s)
S_SRC="$i"
OPTS="${OPTS} $i"
# cc always creates the .o from the .s name
OBJ=`basename ${S_SRC} .s`.o
;;
*.o) OBJECT=$i
OPTS="${OPTS} $i"
;;
*) OPTS="${OPTS} $i"
;;
esac
done
${CXX} ${OPTS} || exit $?
# LAME!!!
if [ -f -O ]; then
mv -f -- -O ${OBJECT}
fi
# if there was no -c and -o we're done
[ ${DASH_C} -eq 1 -a ${DASH_O} -eq 1 ] || exit 0
# if $OBJ and $OBJECT are the same we're done
[ $OBJ = $OBJECT ] && exit 0
[ -f $OBJ ] && mv -f $OBJ $OBJECT

View File

@@ -1,354 +0,0 @@
#!perl
package BuildList;
require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw(BuildMozilla DistMozilla);
=head1 NAME
BuildList - build the [ordered] set of projects needed to construct Mozilla
=head1 SYNOPSIS
...
=head1 COPYRIGHT
The contents of this file are subject to the Netscape Public License
Version 1.0 (the "NPL"); you may not use this file except in
compliance with the NPL. You may obtain a copy of the NPL at
http://www.mozilla.org/NPL/
Software distributed under the NPL is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
for the specific language governing rights and limitations under the
NPL.
The Initial Developer of this code under the NPL is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998 Netscape Communications Corporation. All Rights
Reserved.
=cut
use Moz;
use File::Path;
sub BuildMozilla()
{
if ( $main::DEBUG )
{
$D = "Debug";
$dist_dir = ":mozilla:dist:client_debug:";
}
else
{
$D = "";
$dist_dir = ":mozilla:dist:client:";
}
#
# Build the appropriate target of each project
#
BuildProjectClean(":mozilla:lib:mac:NSStdLib:NSStdLib.mcp", "Stubs");
BuildProjectClean(":mozilla:lib:mac:NSRuntime:NSRuntime.mcp", "Stubs");
BuildProjectClean(":mozilla:lib:mac:MacMemoryAllocator:MemAllocator.mcp", "Stubs");
# BuildProjectClean(":mozilla:cmd:macfe:projects:client:Client.mcp", "Stubs");
if ( $main::CARBON )
{
BuildProject(":mozilla:cmd:macfe:projects:interfaceLib:Interface.mcp", "Carbon Interfaces");
}
else
{
BuildProject(":mozilla:cmd:macfe:projects:interfaceLib:Interface.mcp", "MacOS Interfaces");
}
BuildProject(":mozilla:lib:mac:NSRuntime:NSRuntime.mcp", "NSRuntime$D.shlb");
MakeAlias(":mozilla:lib:mac:NSRuntime:NSRuntime$D.shlb", "$dist_dir");
BuildProject(":mozilla:cmd:macfe:restext:StringLib.mcp", "Strings$D.shlb");
MakeAlias(":mozilla:cmd:macfe:restext:Strings$D.shlb", "$dist_dir");
BuildProject(":mozilla:lib:mac:MoreFiles:build:MoreFilesPPC.mcp", "MoreFiles$D.shlb");
MakeAlias(":mozilla:lib:mac:MoreFiles:build:MoreFiles$D.shlb", "$dist_dir");
BuildProject(":mozilla:nsprpub:macbuild:NSPR20PPC.mcp", "NSPR20$D.shlb");
MakeAlias(":mozilla:nsprpub:macbuild:NSPR20$D.shlb", "$dist_dir");
BuildProject(":mozilla:dbm:macbuild:DBMPPC.mcp", "DBM$D.shlb");
MakeAlias(":mozilla:dbm:macbuild:DBM$D.shlb", "$dist_dir");
BuildProject(":mozilla:lib:mac:MacMemoryAllocator:MemAllocator.mcp", "MemAllocator$D.shlb");
MakeAlias(":mozilla:lib:mac:MacMemoryAllocator:MemAllocator$D.shlb", "$dist_dir");
BuildProject(":mozilla:lib:mac:NSStdLib:NSStdLib.mcp", "NSStdLib$D.shlb");
MakeAlias(":mozilla:lib:mac:NSStdLib:NSStdLib$D.shlb", "$dist_dir");
BuildProject(":mozilla:xpcom:macbuild:xpcomPPC.mcp", "xpcom$D.shlb");
MakeAlias(":mozilla:xpcom:macbuild:xpcom$D.shlb", "$dist_dir");
BuildProject(":mozilla:lib:mac:PowerPlant:PowerPlant.mcp", "PowerPlant$D.shlb");
MakeAlias(":mozilla:lib:mac:PowerPlant:PowerPlant$D.shlb", "$dist_dir");
BuildProject(":mozilla:modules:progress:macbuild:ProgressPPC.mcp", "Progress$D.shlb");
MakeAlias(":mozilla:modules:progress:macbuild:Progress$D.shlb", "$dist_dir");
BuildProject(":mozilla:modules:zlib:macbuild:zlib.mcp", "zlib$D.shlb");
MakeAlias(":mozilla:modules:zlib:macbuild:zlib$D.shlb", "$dist_dir");
BuildProject(":mozilla:jpeg:macbuild:JPEG.mcp", "JPEG$D.shlb");
MakeAlias(":mozilla:jpeg:macbuild:JPEG$D.shlb", "$dist_dir");
BuildProject(":mozilla:sun-java:stubs:macbuild:JavaStubs.mcp", "JavaRuntime$D.shlb");
MakeAlias(":mozilla:sun-java:stubs:macbuild:JavaRuntime$D.shlb", "$dist_dir");
BuildProject(":mozilla:js:macbuild:JavaScriptPPC.mcp", "JavaScript$D.shlb");
MakeAlias(":mozilla:js:macbuild:JavaScript$D.shlb", "$dist_dir");
BuildProject(":mozilla:js:macbuild:LiveConnect.mcp", "LiveConnect$D.shlb");
MakeAlias(":mozilla:js:macbuild:LiveConnect$D.shlb", "$dist_dir");
BuildProject(":mozilla:nav-java:stubs:macbuild:NavJavaStubs.mcp", "NavJava$D.shlb");
MakeAlias(":mozilla:nav-java:stubs:macbuild:NavJava$D.shlb", "$dist_dir");
BuildProject(":mozilla:modules:rdf:macbuild:RDF.mcp", "RDF$D.shlb");
MakeAlias(":mozilla:modules:rdf:macbuild:RDF$D.shlb", "$dist_dir");
BuildProject(":mozilla:modules:xml:macbuild:XML.mcp", "XML$D.shlb");
MakeAlias(":mozilla:modules:xml:macbuild:XML$D.shlb", "$dist_dir");
BuildProject(":mozilla:modules:schedulr:macbuild:Schedulr.mcp", "Scheduler$D.shlb");
MakeAlias(":mozilla:modules:schedulr:macbuild:Scheduler$D.shlb", "$dist_dir");
BuildProject(":mozilla:build:mac:CustomLib:CustomLib.mcp", "CustomLib$D.shlb");
MakeAlias(":mozilla:build:mac:CustomLib:CustomLib$D.shlb", "$dist_dir");
BuildProject(":mozilla:modules:security:freenav:macbuild:NoSecurity.mcp", "Security.o");
BuildProject(":mozilla:modules:libfont:macbuild:FontBroker.mcp", "FontBroker$D.o");
BuildProject(":mozilla:modules:oji:macbuild:oji.mcp", "oji$D.o");
BuildProject(":mozilla:lib:libmocha:macbuild:LibMocha.mcp", "LibMocha$D.o");
if ( $main::MOZ_DARK == 1 )
{
BuildProject(":mozilla:network:macbuild:network.mcp", "Network$D.o (mailnews)");
}
else
{
BuildProject(":mozilla:network:macbuild:network.mcp", "Network$D.o");
}
BuildProject(":mozilla:caps:macbuild:Caps.mcp", "Caps$D.o");
BuildProject(":mozilla:modules:libimg:macbuild:png.mcp", "png$D.o");
BuildProject(":mozilla:modules:libimg:macbuild:libimg.mcp", "libimg$D.o");
BuildProject(":mozilla:build:mac:CustomLib:CustomLib.mcp", "CustomStaticLib$D.o");
if ( $main::MOZ_LITE == 1 )
{
BuildProject(":mozilla:cmd:macfe:projects:dummies:MakeDummies.mcp", "MailNews$D.o");
BuildProject(":mozilla:cmd:macfe:projects:dummies:MakeDummies.mcp", "Composer$D.o");
BuildProject(":mozilla:cmd:macfe:projects:client:Client.mcp", "Nav_Resources");
}
else
{
if ( $main::MOZ_MEDIUM == 1 )
{
BuildProject(":mozilla:cmd:macfe:projects:dummies:MakeDummies.mcp", "MailNews$D.o");
BuildProject(":mozilla:cmd:macfe:Composer:build:Composer.mcp", "Composer$D.o");
BuildProject(":mozilla:cmd:macfe:projects:client:Client.mcp", "Moz_Resources");
}
else
{
if ( $main::MOZ_DARK == 1 )
{
BuildProject(":ns:lib:libneo:mac:macbuild:NeoLib.mcp", "NeoLib$D.o");
MakeAlias( ":ns:lib:libneo:mac:macbuild:NeoLib$D.o", "$dist_dir");
BuildProject(":mozilla:lib:libmsg:macbuild:MsgLib.mcp", "MsgLib$D.o (secure)");
MakeAlias( ":mozilla:lib:libmsg:macbuild:MsgLib$D.o", "$dist_dir");
BuildProject(":mozilla:directory:c-sdk:ldap:libraries:macintosh:LDAPClient.mcp","LDAPClient$D.o");
MakeAlias( ":mozilla:directory:c-sdk:ldap:libraries:macintosh:LDAPClient$D.o", "$dist_dir");
BuildProject(":mozilla:cmd:macfe:MailNews:build:MailNews.mcp", "MailNews$D.o");
BuildProject(":mozilla:cmd:macfe:Composer:build:Composer.mcp", "Composer$D.o");
BuildProject(":mozilla:cmd:macfe:projects:client:Client.mcp", "MozDark_Resources");
}
}
}
# BuildProject(":mozilla:cmd:macfe:projects:client:Client.mcp", "Client$D");
}
sub DistMozilla()
{
mkpath([ ":mozilla:dist:", ":mozilla:dist:client:", ":mozilla:dist:client_debug:", ":mozilla:dist:client_stubs:" ]);
#CONFIG
InstallFromManifest(":mozilla:config:mac:MANIFEST", ":mozilla:dist:config:");
InstallFromManifest(":mozilla:config:mac:MANIFEST_config", ":mozilla:dist:config:");
#INCLUDE
InstallFromManifest(":mozilla:include:MANIFEST", ":mozilla:dist:include:");
InstallFromManifest(":mozilla:cmd:macfe:pch:MANIFEST", ":mozilla:dist:include:");
#MAC_COMMON
InstallFromManifest(":mozilla:build:mac:MANIFEST", ":mozilla:dist:mac:common:");
InstallFromManifest(":mozilla:lib:mac:NSStdLib:include:MANIFEST", ":mozilla:dist:mac:common:");
InstallFromManifest(":mozilla:lib:mac:MacMemoryAllocator:include:MANIFEST", ":mozilla:dist:mac:common:");
InstallFromManifest(":mozilla:lib:mac:Misc:MANIFEST", ":mozilla:dist:mac:common:");
InstallFromManifest(":mozilla:lib:mac:MoreFiles:MANIFEST", ":mozilla:dist:mac:common:morefiles:");
InstallFromManifest(":mozilla:cmd:macfe:MANIFEST", ":mozilla:dist:mac:macfe:");
#NSPR
InstallFromManifest(":mozilla:nsprpub:pr:include:MANIFEST", ":mozilla:dist:nspr:");
InstallFromManifest(":mozilla:nsprpub:pr:src:md:mac:MANIFEST", ":mozilla:dist:nspr:mac:");
InstallFromManifest(":mozilla:nsprpub:lib:ds:MANIFEST", ":mozilla:dist:nspr:");
InstallFromManifest(":mozilla:nsprpub:lib:libc:include:MANIFEST", ":mozilla:dist:nspr:");
InstallFromManifest(":mozilla:nsprpub:lib:msgc:include:MANIFEST", ":mozilla:dist:nspr:");
#DBM
InstallFromManifest(":mozilla:dbm:include:MANIFEST", ":mozilla:dist:dbm:");
#LIBIMAGE
InstallFromManifest(":mozilla:modules:libimg:png:MANIFEST", ":mozilla:dist:libimg:");
InstallFromManifest(":mozilla:modules:libimg:src:MANIFEST", ":mozilla:dist:libimg:");
InstallFromManifest(":mozilla:modules:libimg:public:MANIFEST", ":mozilla:dist:libimg:");
#SECURITY_freenav
InstallFromManifest(":mozilla:modules:security:freenav:MANIFEST", ":mozilla:dist:security:");
#XPCOM
InstallFromManifest(":mozilla:xpcom:public:MANIFEST", ":mozilla:dist:xpcom:");
#ZLIB
InstallFromManifest(":mozilla:modules:zlib:src:MANIFEST", ":mozilla:dist:zlib:");
#JPEG
InstallFromManifest(":mozilla:jpeg:MANIFEST", ":mozilla:dist:jpeg:");
#JSJ
# beard: this conflicts with LiveConnect's jsjava.h.
#InstallFromManifest(":mozilla:js:jsj:MANIFEST", ":mozilla:dist:jsj:");
#JSDEBUG
InstallFromManifest(":mozilla:js:jsd:MANIFEST", ":mozilla:dist:jsdebug:");
#JS
InstallFromManifest(":mozilla:js:src:MANIFEST", ":mozilla:dist:js:");
#LIVECONNECT
InstallFromManifest(":mozilla:js:src:liveconnect:MANIFEST", ":mozilla:dist:liveconnect:");
#RDF
InstallFromManifest(":mozilla:modules:rdf:include:MANIFEST", ":mozilla:dist:rdf:");
#XML
InstallFromManifest(":mozilla:modules:xml:glue:MANIFEST", ":mozilla:dist:xml:");
InstallFromManifest(":mozilla:modules:xml:expat:xmlparse:MANIFEST", ":mozilla:dist:xml:");
#LIBFONT
InstallFromManifest(":mozilla:modules:libfont:MANIFEST", ":mozilla:dist:libfont:");
InstallFromManifest(":mozilla:modules:libfont:src:MANIFEST", ":mozilla:dist:libfont:");
#LDAP
if ( $main::MOZ_LDAP || $main::MOZ_DARK )
{
InstallFromManifest(":mozilla:directory:c-sdk:ldap:include:MANIFEST", ":mozilla:dist:ldap:");
}
#PRIVACY
InstallFromManifest(":mozilla:privacy:public:MANIFEST", ":mozilla:dist:privacy:");
#SCHEDULER
InstallFromManifest(":mozilla:modules:schedulr:public:MANIFEST", ":mozilla:dist:schedulr:");
#NETWORK
InstallFromManifest(":mozilla:network:cache:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:client:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:cnvts:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:cstream:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:main:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:mimetype:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:util:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:about:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:certld:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:dataurl:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:file:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:ftp:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:gopher:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:http:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:imap4:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:js:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:ldap:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:mailbox:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:marimba:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:nntp:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:pop3:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:remote:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:smtp:MANIFEST", ":mozilla:dist:network:");
InstallFromManifest(":mozilla:network:protocol:sockstub:MANIFEST", ":mozilla:dist:network:");
#HTML_DIALOGS
InstallFromManifest(":mozilla:lib:htmldlgs:MANIFEST", ":mozilla:dist:htmldlgs:");
#LAYOUT
InstallFromManifest(":mozilla:lib:layout:MANIFEST", ":mozilla:dist:layout:");
#LAYERS
InstallFromManifest(":mozilla:lib:liblayer:include:MANIFEST", ":mozilla:dist:layers:");
#PARSE
InstallFromManifest(":mozilla:lib:libparse:MANIFEST", ":mozilla:dist:libparse:");
#STYLE
InstallFromManifest(":mozilla:lib:libstyle:MANIFEST", ":mozilla:dist:libstyle:");
#PLUGIN
InstallFromManifest(":mozilla:modules:plugin:public:MANIFEST", ":mozilla:dist:plugin:");
InstallFromManifest(":mozilla:modules:plugin:src:MANIFEST", ":mozilla:dist:plugin:");
#LIBHOOK
InstallFromManifest(":mozilla:modules:libhook:public:MANIFEST", ":mozilla:dist:libhook:");
#LIBPREF
InstallFromManifest(":mozilla:modules:libpref:public:MANIFEST", ":mozilla:dist:libpref:");
#LIBREG
InstallFromManifest(":mozilla:modules:libreg:include:MANIFEST", ":mozilla:dist:libreg:");
#LIBUTIL
InstallFromManifest(":mozilla:modules:libutil:public:MANIFEST", ":mozilla:dist:libutil:");
#PROGRESS
InstallFromManifest(":mozilla:modules:progress:public:MANIFEST", ":mozilla:dist:progress:");
#EDTPLUG
InstallFromManifest(":mozilla:modules:edtplug:include:MANIFEST", ":mozilla:dist:edtplug:");
#NAV_JAVA
InstallFromManifest(":mozilla:nav-java:stubs:include:MANIFEST", ":mozilla:dist:nav-java:");
InstallFromManifest(":mozilla:nav-java:stubs:macjri:MANIFEST", ":mozilla:dist:nav-java:");
#SUN_JAVA
InstallFromManifest(":mozilla:sun-java:stubs:include:MANIFEST", ":mozilla:dist:sun-java:");
InstallFromManifest(":mozilla:sun-java:stubs:macjri:MANIFEST", ":mozilla:dist:sun-java:");
#OJI
InstallFromManifest(":mozilla:modules:oji:public:MANIFEST", ":mozilla:dist:oji:");
InstallFromManifest(":mozilla:modules:oji:src:MANIFEST", ":mozilla:dist:oji:");
#CAPS
InstallFromManifest(":mozilla:caps:include:MANIFEST", ":mozilla:dist:caps:");
InstallFromManifest(":mozilla:caps:public:MANIFEST", ":mozilla:dist:caps:");
#BASE
InstallFromManifest(":mozilla:base:public:MANIFEST", ":mozilla:dist:base:");
InstallFromManifest(":mozilla:base:src:MANIFEST", ":mozilla:dist:base:");
}
1;

View File

@@ -1,40 +0,0 @@
#!perl
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
#
use Moz;
use BuildList;
$DEBUG = 0;
# One of them should be 1. This will come from a config file at some stage.
# In the meanwhile, it should match mozilla/config/mac/MacConfig.h
$MOZ_LITE = 0;
$MOZ_MEDIUM = 1;
$MOZ_DARK = 0;
Moz::OpenErrorLog(":::Mozilla.BuildLog");
Moz::StopForErrors();
chdir("::::");
# Make and popuplate the dist directory
DistMozilla();
# Now build the projects
BuildMozilla();

View File

@@ -1,44 +0,0 @@
#!perl
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
#
use Moz;
use BuildList;
$DEBUG = 1;
# One of them should be 1. This will come from a config file at some stage.
# In the meanwhile, it should match mozilla/config/mac/MacConfig.h
$MOZ_LITE = 0;
$MOZ_MEDIUM = 1;
$MOZ_DARK = 0;
Moz::OpenErrorLog(":::Mozilla.BuildLog");
Moz::StopForErrors();
chdir("::::");
# Make and popuplate the dist directory
DistMozilla();
# Set the build number in about-all.html. Commented out for now
# until ckid/mcvs resource problem is resolved.
# SetBuildNumber();
# Now build the projects
BuildMozilla();

View File

@@ -1,51 +0,0 @@
#!perl
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
#
use Moz;
use BuildList;
$DEBUG = 1;
# One of them should be 1. This will come from a config file at some stage.
# In the meanwhile, it should match mozilla/config/mac/MacConfig.h
$MOZ_LITE = 0;
$MOZ_MEDIUM = 1;
$MOZ_DARK = 0;
Moz::OpenErrorLog(":::Mozilla.BuildLog");
Moz::StopForErrors();
chdir("::::");
SetBuildNumber();
SetTimeBomb(0, 30);
# Make and popuplate the dist directory
DistMozilla();
Delay(10);
# Set the build number in about-all.html. Commented out for now
# until ckid/mcvs resource problem is resolved.
# SetAgentString();
# Now build the projects
BuildMozilla();

View File

@@ -1,95 +0,0 @@
#!perl
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
#
#
# nglayout build script (debug)
#
use Mac::Processes;
use NGLayoutBuildList;
use Cwd;
use Moz;
# configuration variables
$DEBUG = 0;
$ALIAS_SYM_FILES = $DEBUG;
$CLOBBER_LIBS = 0;
$MOZ_FULLCIRCLE = 0;
$pull{all} = 0;
$pull{lizard} = 0;
$pull{xpcom} = 0;
$pull{imglib} = 0;
$pull{netlib} = 0;
$pull{nglayout} = 0;
$pull{mac} = 0;
$build{all} = 1; # turn off to do individual builds
$build{dist} = 0;
$build{stubs} = 0;
$build{common} = 0;
$build{nglayout} = 0;
$build{resources} = 0;
$build{editor} = 0;
$build{viewer} = 0;
$build{xpapp} = 0;
if ($pull{all})
{
foreach $k (keys(%pull))
{
$pull{$k} = 1;
}
}
if ($build{all})
{
foreach $k (keys(%build))
{
$build{$k} = 1;
}
}
# do the work
# you should not have to edit anything bellow
chdir("::::");
$MOZ_SRC = cwd();
if ($MOZ_FULLCIRCLE)
{
#// Get the Build Number for the Master.ini(Full Circle) n'stuff
$buildnum = Moz::SetBuildNumber();
}
OpenErrorLog("NGLayoutBuildLog");
#OpenErrorLog("Mozilla.BuildLog"); # Tinderbox requires that name
Moz::StopForErrors();
#Moz::DontStopForErrors();
if ($pull{all}) {
Checkout();
}
chdir($MOZ_SRC);
BuildDist();
chdir($MOZ_SRC);
BuildProjects();
print "Build layout complete\n";

View File

@@ -1,96 +0,0 @@
#!perl
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
#
#
# nglayout build script (debug)
#
use Mac::Processes;
use NGLayoutBuildList;
use Cwd;
use Moz;
# configuration variables
$DEBUG = 1;
$ALIAS_SYM_FILES = $DEBUG;
$CLOBBER_LIBS = 1; # turn on to clobber existing libs and .xSYM files before
# building each project
$MOZ_FULLCIRCLE = 0;
$pull{all} = 0;
$pull{lizard} = 0;
$pull{xpcom} = 0;
$pull{imglib} = 0;
$pull{netlib} = 0;
$pull{nglayout} = 0;
$pull{mac} = 0;
$build{all} = 1; # turn off to do individual builds
$build{dist} = 0;
$build{stubs} = 0;
$build{common} = 0;
$build{nglayout} = 0;
$build{resources} = 0;
$build{editor} = 0;
$build{viewer} = 0;
$build{xpapp} = 0;
if ($pull{all})
{
foreach $k (keys(%pull))
{
$pull{$k} = 1;
}
}
if ($build{all})
{
foreach $k (keys(%build))
{
$build{$k} = 1;
}
}
# do the work
# you should not have to edit anything bellow
chdir("::::");
$MOZ_SRC = cwd();
if ($MOZ_FULLCIRCLE)
{
#// Get the Build Number for the Master.ini(Full Circle) n'stuff
$buildnum = Moz::SetBuildNumber();
}
OpenErrorLog("NGLayoutDebugBuildLog");
#OpenErrorLog("Mozilla.BuildLog"); # Tinderbox requires that name
Moz::StopForErrors();
#Moz::DontStopForErrors();
if ($pull{all}) {
Checkout();
}
chdir($MOZ_SRC);
BuildDist();
chdir($MOZ_SRC);
BuildProjects();
print "Build layout complete\n";

View File

@@ -1,385 +0,0 @@
#!perl
package CodeWarriorLib;
=pod
=head1 NAME
CodeWarriorLib - supply interface to CodeWarrior
=head1 SYNOPSIS
#!perl
use CodeWarriorLib;
CodeWarriorLib::activate();
$had_errors = CodeWarriorLib::build_project(
$project_path, $target_name, $recent_errors_file, $clean_build
);
=head1 DESCRIPTION
Replaces the AppleScript library I<CodeWarriorLib>.
=over 4
=cut
use strict;
use Mac::AppleEvents::Simple;
use Mac::AppleEvents;
use Mac::Processes;
use Mac::MoreFiles;
use Mac::Types;
use File::Basename;
use vars qw($VERSION);
$VERSION = '1.02';
my($app) = 'CWIE';
# 0 == don't switch CWIE to front app in do_event(), 1 == do switch
# note: activate() still switches when called
$Mac::AppleEvents::Simple::SWITCH = 0;
# supply your own path to the source here
#_test('PowerPudgeIV:mozilla:mozilla:');
=pod
=item _get_project($full_path)
A private routine returning a reference to the open project with the given name,
or else the empty string (when that project is not open)
full_path is a string identifying the project to be built and is of the form,
e.g., "HD:ProjectFolder:MyProject.mcp". It must be supplied.
=cut
sub _get_project ($) {
my(
$full_path, $candidate_projects
) = @_;
$candidate_projects = _doc_named(basename($full_path, '*'));
if ($candidate_projects) {
my($cps) = _get_dobj($candidate_projects);
my($num) = AECountItems($cps);
if ($num) { # is a list
foreach (1 .. AECountItems($cps)) {
my($cp) = AEGetNthDesc($cps, $_);
if ($full_path eq _full_path($cp)) {
return($cp);
}
}
} else { # is only one, not a list
if ($full_path eq _full_path($cps)) {
return($cps);
}
}
}
return;
}
=pod
=item build_project
Build a selected target of a project, saving any errors to a file, if supplied.
full_path is a string identifying the project to be built and is of the form,
e.g., "HD:ProjectFolder:MyProject.mcp". It must be supplied.
If target_name is the empty string, the current target of the selected project
will be built, else, target_name should be a string matching a target name in
the selected project.
If error_path is the empty string, errors will not be saved to a file,
else, error_path should be the full path of a file to save error messages into.
=cut
sub build_project ($;$$$) {
my(
$full_path, $target_name, $error_path,
$remove_object, $p, $project_was_closed, $had_errors
) = @_;
_close_errors_window();
while (1) {
$p = _get_project($full_path);
if (!$p) {
if ($project_was_closed) {
print "### Error - request for project document failed after opening\n";
die "### possibly CW Pro 4 bug: be sure to close your Find window\n";
}
$project_was_closed = 1;
_open_file($full_path);
} else {
last;
}
}
$had_errors = 0;
if ($target_name eq '') {
if ($remove_object) {_remove_object($p)}
_build($p);
} else {
if ($remove_object) {_remove_object($p, $target_name)}
_build($p, $target_name);
}
if ($error_path ne '') {
_save_errors_window($error_path);
}
$had_errors = _close_errors_window();
if ($project_was_closed) {
$p = _get_project($full_path);
_close($p);
}
return($had_errors);
}
=pod
=item activate()
Launches CodeWarrior and brings it to the front.
Once found, path will be saved in ':idepath.txt' for future reference.
Edit or delete this file to change the location of the IDE. If app is
moved, C<activate()> will prompt for a new location.
First looks for an open CodeWarrior app. Second, tries to open previously
saved location in ':idepath.txt'. Third, tries to find it and allow user
to choose it with Navigation Services (if present). Fourth, uses good old
GUSI routines built-in to MacPerl for a Choose Directory dialog box.
=cut
sub activate () {
local(*F);
my($filepath, $appath, $psi) = (':idepath.txt');
foreach $psi (values(%Process)) {
if ($psi->processSignature() eq $app) {
$appath = $psi->processAppSpec(), "\n";
_save_appath($filepath, $appath);
last;
}
}
if ((!$appath || ! -x $appath) && open(F, $filepath)) {
$appath = <F>;
close(F);
}
if (!$appath || ! -x $appath) {
if (eval {require Mac::Navigation}) {
my($options, $nav);
Mac::Navigation->import();
$options = NavGetDefaultDialogOptions();
$options->message('Where is CodeWarrior IDE?');
$options->windowTitle('Find CodeWarrior IDE');
$nav = NavChooseObject($Application{$app}, $options);
die "CodeWarrior IDE not found.\n" if (!$nav || !$nav->file(1));
$appath = $nav->file(1);
} else {
local(*D);
my $cwd = `pwd`;
$appath = _get_folder(
'Where is the CW IDE folder?',
dirname($Application{$app})
);
die "CodeWarrior IDE not found.\n" if !$appath;
opendir(D, $appath) or die $!;
chdir($appath);
foreach my $file (sort readdir (D)) {
my(@app) = MacPerl::GetFileInfo($file);
if ($app[0] && $app[1] &&
$app[1] eq 'APPL' && $app[0] eq $app
) {
$appath .= $file;
last;
}
}
chomp($cwd);
chdir($cwd);
}
_save_appath($filepath, $appath);
}
my($lp) = LaunchParam->new(
launchAppSpec => $appath,
launchControlFlags => launchContinue() + launchNoFileFlags()
);
unless (LaunchApplication($lp)) {
unlink($filepath);
die $^E;
}
}
sub _build ($;$) {
my($evt);
if ($_[1]) {
my($prm) =
q"'----':obj {form:name, want:type(TRGT), seld:TEXT(@), from:" .
AEPrint($_[0]) . '}';
$evt = do_event(qw/CWIE MAKE/, $app, $prm, $_[1]);
} else {
my($prm) = q"'----':" . AEPrint($_[0]);
$evt = do_event(qw/CWIE MAKE/, $app, $prm);
}
}
sub _remove_object ($;$) {
my($evt);
if ($_[1]) {
my($prm) =
q"'----':obj {form:name, want:type(TRGT), seld:TEXT(@), from:" .
AEPrint($_[0]) . '}';
$evt = do_event(qw/CWIE RMOB/, $app, $prm, $_[1]);
} else {
my($prm) = q"'----':" . AEPrint($_[0]);
$evt = do_event(qw/CWIE RMOB/, $app, $prm);
}
}
sub _open_file ($) {
my($prm) =
q"'----':obj {form:name, want:type(alis), " .
q"seld:TEXT(@), from:'null'()}";
do_event(qw/aevt odoc/, $app, $prm, $_[0]);
}
sub _doc_named ($) {
my($prm) =
q"'----':obj {form:test, want:type(docu), from:'null'(), " .
q"seld:cmpd{relo:'= ', 'obj1':obj {form:prop, want:type" .
q"(prop), seld:type(pnam), from:'exmn'()}, 'obj2':TEXT(@)}}";
my($evt) = do_event(qw/core getd/, $app, $prm, $_[0]);
return($evt->{REPLY} eq 'aevt\ansr{}' ? undef : $evt);
}
sub _full_path ($) {
my($obj) = $_[0];
my($prm) =
q"'----':obj {form:prop, want:type(prop), seld:type(FILE), " .
q"from:" . AEPrint($_[0]) . q"}, rtyp:type(TEXT)";
my($evt) = do_event(qw/core getd/, $app, $prm);
return MacPerl::MakePath(
MacUnpack('fss ', (
AEGetParamDesc($evt->{REP}, keyDirectObject()))->data()->get()
)
);
}
sub _save_errors_window ($) {
my($prm) =
q"'----':obj {form:name, want:type(alis), seld:TEXT(@), from:'null'()}";
do_event(qw/MMPR SvMs/, $app, $prm, $_[0]);
}
sub _close_errors_window () {
my($prm) =
q"'----':obj {form:name, want:type(cwin), " .
q"seld:TEXT(@), from:'null'()}";
my($evt) = do_event(qw/core clos/, $app, $prm, 'Errors & Warnings');
return($evt->{REPLY} eq 'aevt\ansr{}' ? 1 : 0);
}
sub _close () {
my($prm) = q"'----':" . AEPrint($_[0]);
do_event(qw/core clos/, $app, $prm);
}
sub _get_dobj ($) {
return(AEGetParamDesc($_[0]->{REP}, keyDirectObject()));
}
sub _get_folder ($$) {
require 'GUSI.ph';
my($prompt, $default) = @_;
MacPerl::Choose(
GUSI::AF_FILE(), 0, $prompt, '',
GUSI::CHOOSE_DIR() + ($default ? &GUSI::CHOOSE_DEFAULT : 0),
$default
);
}
sub _save_appath ($$) {
open(F, '>' . $_[0]) or die $!;
print F $_[1];
close(F);
}
sub _test ($) {
activate();
my($path) = $_[0];
build_project(
"${path}modules:xml:macbuild:XML.mcp", '',
"${path}build:mac:Mozilla.BuildLog.part"
);
}
1;
=pod
=back
=head1 HISTORY
=over 4
=item v1.02, September 23, 1998
Made fixes in finding and saving location of CodeWarrior IDE.
=item v1.01, June 1, 1998
Made fixes to C<chdir()> in C<activate()>, made C<activate()> more robust
in finding CodeWarrior IDE, added global variable to NOT switch to IDE
for each sent event, a few other fixes.
=item v1.00, May 30, 1998
First shot
=back
=head1 AUTHORS
Chris Nandor F<E<lt>pudge@pobox.comE<gt>>, and the author of the
original I<CodeWarriorLib>, Scott Collins F<E<lt>scc@netscape.comE<gt>>.
=head1 SEE ALSO
BuildProject L<Moz>.
=head1 COPYRIGHT
The contents of this file are subject to the Netscape Public License
Version 1.0 (the "NPL"); you may not use this file except in
compliance with the NPL. You may obtain a copy of the NPL at
http://www.mozilla.org/NPL/
Software distributed under the NPL is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
for the specific language governing rights and limitations under the
NPL.
The Initial Developer of this code under the NPL is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998 Netscape Communications Corporation. All Rights
Reserved.
=cut

View File

@@ -1,4 +0,0 @@
/* This library only exists to provide a dummy library for the final project */
/* There is nothing to do here. */

Binary file not shown.

View File

@@ -1,260 +0,0 @@
(*
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*)
(*
GenToc - Generates a .toc file from the current contents of a project.
by Patrick C. Beard <beard@netscape.com>
*)
on swapDelimiters(newDelimiters)
set oldDelimiters to get AppleScript's text item delimiters
set AppleScript's text item delimiters to newDelimiters
return oldDelimiters
end swapDelimiters
on setDelimiters(newDelimiters)
set AppleScript's text item delimiters to newDelimiters
end setDelimiters
on setExtension(fileName, newExtension)
set oldDelimiters to swapDelimiters(".")
set newFileName to (text item 1 of fileName) & newExtension
setDelimiters(oldDelimiters)
return newFileName
end setExtension
on folderFromPath(filePath)
set folderPath to ((filePath's text items 1 thru ((count of filePath's text items) - 1)) as string) & ":"
return folderPath
end folderFromPath
on fileFromPath(filePath)
return last text item of filePath
end fileFromPath
on openProject(aProjectFile)
tell application "CodeWarrior IDE 3.3"
open aProjectFile
end tell
end openProject
on selectProject(aProjectFile)
set projectName to fileFromPath(aProjectFile as text)
tell application "CodeWarrior IDE 3.3"
if (name of window 1 is not projectName) then
select window projectName
end if
end tell
end selectProject
on getTargets()
set targetList to {}
set nameList to {}
tell application "CodeWarrior IDE 3.3"
set currentProject to project document 1
repeat with targetIndex from 1 to (count of targets of currentProject)
set currentTarget to (target targetIndex of currentProject)
set targetList to targetList & {currentTarget}
set nameList to nameList & {name of currentTarget}
end repeat
return {target:targetList, names:nameList}
end tell
end getTargets
(* uses "sort" scripting addition to sort a list of strings. *)
on sortList(aList)
if (aList ­ {}) then
return sort aList
else
return {}
end if
end sortList
(* uses "info for" scripting addition, to return the file type of a path. *)
on getFileType(aFilePath)
return file type of (info for alias aFilePath)
end getFileType
(* returns all "TEXT" files of the named target. *)
on getTargetFiles(targetKey)
set targetFiles to {}
tell application "CodeWarrior IDE 3.3"
set currentProject to project document 1
set currentTarget to (target targetKey of currentProject)
try
-- workaround for CW IDE 3.X bug, loop until error encountered.
set fileIndex to 1
repeat until false
set targetFile to (target file fileIndex of currentTarget)
-- only consider text files, since other platforms won't be managing binaries.
-- also, only consider if target file is directly linked.
if (linked of targetFile) then
set targetFilePath to (Access Paths of targetFile)
tell me
if (getFileType(targetFilePath) = "TEXT") then
set targetFiles to targetFiles & {targetFilePath}
end if
end tell
end if
set fileIndex to (fileIndex + 1)
end repeat
on error msg
-- display dialog msg & " file count = " & fileIndex
end try
end tell
return sortList(targetFiles)
end getTargetFiles
on addTargetFile(targetFile, targetName)
tell application "CodeWarrior IDE 3.3"
add (project document 1) new target file with data {targetFile} to targets {targetName}
end tell
end addTargetFile
on setCurrentTarget(currentTargetName)
tell application "CodeWarrior IDE 3.3"
Set Current Target currentTargetName
end tell
end setCurrentTarget
on removeTargetFile(targetFile)
tell application "CodeWarrior IDE 3.3"
Remove Files {targetFile}
end tell
end removeTargetFile
on quote(aString)
return "'" & aString & "'"
end quote
on listContains(aList, anItem)
repeat with listItem in aList
if (listItem contains anItem) then
return true
end if
end repeat
return false
end listContains
on showList(listToShow)
choose from list listToShow with prompt "List:" with empty selection allowed
end showList
on replace(aString, oldChar, newChar)
set newString to ""
repeat with aChar in (every character of aString)
if (contents of aChar = oldChar) then
set newString to newString & newChar
else
set newString to newString & aChar
end if
end repeat
return newString
end replace
on substring(aString, anOffset)
set aSubString to ""
repeat with charIndex from anOffset to (count aString)
set aSubString to aSubString & (character charIndex of aString)
end repeat
return aSubString
end substring
on setFileInfo(aFile, aCreator, aType)
tell application "Finder"
set creator type of aFile to aCreator
set file type of aFile to aType
end tell
end setFileInfo
on closeFile(fileRef)
try
-- make sure it's not currently open.
close access fileRef
on error
-- ignore error closing.
end try
end closeFile
on mroFile(aFile)
try
-- make sure it's modifiable.
mro aFile
on error
-- ignore error MROing.
end try
end mroFile
on run
-- so we can easily strip off file names from paths.
set oldDelimiters to swapDelimiters(":")
set theProjectFile to (choose file with prompt "Choose a CW Project file." of type {"MMPr"})
set theManifestFile to (new file with prompt "Create MANIFEST where?" default name setExtension(fileFromPath(theProjectFile as text), ".toc"))
set manifestRef to false
try
-- make sure the file is closed & is modifiable.
closeFile(theManifestFile)
mroFile(theManifestFile)
-- open the new MANIFEST file.
set manifestRef to (open for access theManifestFile with write permission)
set eof manifestRef to 0
-- give it CodeWarrior look and feel.
setFileInfo(theManifestFile, "CWIE", "TEXT")
openProject(theProjectFile)
selectProject(theProjectFile)
set targetsList to getTargets()
set targetNames to names of targetsList
set targetCount to count items of targetNames
set mozillaTreePathOffset to (offset of "mozilla" in (theManifestFile as text))
-- dump all targets into the new MANIFEST file.
repeat with targetName in targetNames
write ("# target: " & targetName & return) to manifestRef
setCurrentTarget(targetName)
set targetFiles to getTargetFiles(contents of targetName)
repeat with targetFile in targetFiles
-- only store the path name relative to the source tree itself.
set targetFilePath to substring(contents of targetFile, mozillaTreePathOffset)
write (replace(targetFilePath, ":", "/") & return) to manifestRef
end repeat
end repeat
on error msg
display dialog msg
end try
if (manifestRef is not false) then
closeFile(manifestRef)
end if
-- shut the project down, and display the result.
tell application "CodeWarrior IDE 3.3"
activate
Close Project
open theManifestFile
end tell
setDelimiters(oldDelimiters)
end run

View File

@@ -1,95 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
This file overrides all option settings in the IDE. It is an attempt to allow all builds
to have the same options.
Note: We can't use ConditionalMacros.h in this file because it will conflict with
the PowerPlant precompiled headers.
*/
/* warning pragmas */
#pragma warn_hidevirtual on
#pragma warn_emptydecl on
#pragma warn_unusedvar on
#pragma warn_extracomma on
#pragma warn_illpragma on
#pragma warn_possunwant on
#pragma warn_unusedarg off /* turned off to reduce warnings */
#pragma check_header_flags on
/* Language features that must be the same across libraries... */
#pragma enumsalwaysint on
#pragma unsigned_char off
#pragma exceptions on
#pragma bool on
#pragma RTTI on
/* Save as much space as possible with strings... */
#pragma pool_strings on
#pragma dont_reuse_strings off
#pragma options align=native
#pragma sym on /* Takes no memory. OK in non-debug. */
#ifdef powerc /* ...generating PowerPC */
#pragma toc_data on
#pragma fp_contract on
#pragma readonly_strings on
#ifdef DEBUG
#pragma traceback on
#pragma global_optimizer off
#pragma scheduling off
#pragma peephole off
#pragma optimize_for_size off
#else
#pragma traceback off
#pragma global_optimizer on
#pragma optimization_level 4
#pragma scheduling 604
#pragma peephole on
#pragma optimize_for_size on
#endif
#else /* ...generating 68k */
#pragma code68020 on
#pragma code68881 off
/* Far everything... */
#pragma far_code
#pragma far_data on
#pragma far_strings on
#pragma far_vtables on
#pragma fourbyteints on /* 4-byte ints */
#pragma IEEEdoubles on /* 8-byte doubles (as required by Java and NSPR) */
#ifdef DEBUG
#pragma macsbug on
#pragma oldstyle_symbols off
#else
#pragma macsbug off
#endif
#endif

View File

@@ -1,5 +0,0 @@
#
# This is a list of local files which get copied to the mozilla:dist directory
#
IDE_Options.h

View File

@@ -1,217 +0,0 @@
#!perl -w
package MANIFESTO;
require 5.004;
require Exporter;
#use strict;
use vars qw($VERSION @ISA @EXPORT $MANIFESTOLib);
use Mac::StandardFile;
use Moz;
use Cwd;
use Exporter;
use File::Basename;
@ISA = qw(Exporter);
@EXPORT = qw(ReconcileProject);
$VERSION = "1.00";
=head1 NAME
MANIFESTO - drives the Mac Project Reconciliation tool.
=head1 SYNOPSIS
You want to use this script. It will make your life easier.
=head1 COPYRIGHT
The contents of this file are subject to the Netscape Public License
Version 1.0 (the "NPL"); you may not use this file except in
compliance with the NPL. You may obtain a copy of the NPL at
http://www.mozilla.org/NPL/
Software distributed under the NPL is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
for the specific language governing rights and limitations under the
NPL.
The Initial Developer of this code under the NPL is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998 Netscape Communications Corporation. All Rights
Reserved.
=cut
#
# globals
# $MANIFESTOLib - location of MANIFESTO applescript library
#
#
# utility routines
#
sub current_directory()
{
my $current_directory = cwd();
chop($current_directory) if ( $current_directory =~ m/:$/ );
return $current_directory;
}
# Uses the "compile script" extension to compile a script.
sub compile_script($;$) {
my($scriptPath, $outputPath) = @_;
#// generate a script to compile a script file.
my $script = <<END_OF_APPLESCRIPT;
store script (compile script (alias "$scriptPath")) in (file "$outputPath") replacing yes
END_OF_APPLESCRIPT
#// run the script.
MacPerl::DoAppleScript($script);
}
# _useMANIFESTOLib()
# returns 1 on success
# Search the include path for the file called MANIFESTOLib
sub _useMANIFESTOLib()
{
unless ( defined($MANIFESTOLib) )
{
my($scriptName) = "MANIFESTOLib.script";
my($libName) = "MANIFESTOLib";
# try the directory we were run from
my($scriptPath) = dirname($0) . ":" . $scriptName;
my($libPath) = dirname($0) . ":" . $libName;
# make sure that the compiled script is up to date with the textual script.
unless (-e $libPath && getModificationDate($libPath) >= getModificationDate($scriptPath)) {
print "# Recompiling MANIFESTOLib.script.\n";
compile_script($scriptPath, $libPath);
}
if ( -e $libPath) {
$MANIFESTOLib = $libPath;
} else {
# now search the include directories
foreach (@INC)
{
unless ( m/^Dev:Pseudo/ ) # This is some bizarre MacPerl special-case directory
{
$libPath = $_ . $libName;
if (-e $libPath)
{
$MANIFESTOLib = $libPath;
last;
}
}
}
}
if (! (-e $MANIFESTOLib)) {
print STDERR "MANIFESTOLib lib could not be found! $MANIFESTOLib";
return 0;
}
}
return 1;
}
sub getModificationDate($) {
my($filePath)=@_;
my($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
$atime,$mtime,$ctime,$blksize,$blocks) = stat($filePath);
return $mtime;
}
sub setExtension($;$;$) {
my($filePath, $oldExtension, $newExtension)=@_;
my($name, $dir, $type) = fileparse($filePath, $oldExtension);
return "$dir$name$newExtension";
}
#
# ReconcileProject(projectPath, manifestoPath)
#
# Uses MANIFESTOLib AppleScript to reconcile the contents (toc?) of a
# CodeWarrior project with an external MANIFEST file.
#
sub ReconcileProject($;$) {
#// turn this feature on by removing the following line.
return 1;
my($projectPath, $manifestoPath) = @_;
my($sourceTree) = current_directory();
my($logPath) = setExtension($manifestoPath, ".toc", ".log");
print STDERR "# Reconciling Project: $projectPath with $manifestoPath\n";
#// compare the modification dates of the .toc and .log files. If .log is newer, do nothing.
if (-e $logPath && getModificationDate($logPath) >= getModificationDate($manifestoPath)) {
print "# Project is up to date.\n";
return 1;
}
_useMANIFESTOLib() || die "Could not load MANIFESTOLib\n";
my $script = <<END_OF_APPLESCRIPT;
tell (load script file "$MANIFESTOLib") to ReconcileProject("$sourceTree:", "$sourceTree$projectPath", "$sourceTree$manifestoPath")
END_OF_APPLESCRIPT
#// run the script, and store the results in a file called "$manifestoPath.log"
my $asresult = substr(MacPerl::DoAppleScript($script), 1, -1); #// chops off leading, trailing quotes.
#// print out to STDOUT to show progress.
print $asresult;
#// store the results in "$manifestoPath.log", which will act as a cache for later checks.
open(OUTPUT, ">$logPath") || die "can't open log file $logPath.";
print OUTPUT $asresult;
close(OUTPUT);
return 1;
}
1;
=pod
=head1 NAME
MANIFESTO - Scripts to process source .toc files.
=head1 SYNOPSIS
use MANIFESTO;
ReconcileProject(<path to Mac project file>, <path to table of contents file>) || die "cannot reconcile project";
=head1 DESCRIPTION
This is a PERL interface for talking to MANIFESTOLib AppleScripts.
=item ReconcileProject
ReconcileProject(<path to Mac project file>, <path to table of contents file>);
Reconciles the contents of a project with an external .toc file.
=cut
=head1 SEE ALSO
=over
=item MacCVS Home Page
http://www.maccvs.org/
=back
=head1 AUTHORS
Patrick Beard beard@netscape.com
based on work by
Aleks Totic atotic@netscape.com
=cut
__END__

Binary file not shown.

View File

@@ -1,372 +0,0 @@
(*
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*)
(*
MANIFESTOLib - Reconciles a CW Project file with an external table of contents file.
Uses merge sort, one pass per target.
by Patrick C. Beard <beard@netscape.com>
*)
(* Global Configuration Properties *)
property pShowReport : true
-- property pSourceTree : "Homeward:Work:Raptor:src:"
property pSourceTree : "Morbeus:Projects:Raptor:src:"
on swapDelimiters(newDelimiters)
set oldDelimiters to get AppleScript's text item delimiters
set AppleScript's text item delimiters to newDelimiters
return oldDelimiters
end swapDelimiters
on setDelimiters(newDelimiters)
set AppleScript's text item delimiters to newDelimiters
end setDelimiters
-- replaces oldChar with newChar in a string.
on replace(aString, oldChar, newChar)
set newString to ""
repeat with aChar in (every character of aString)
if (contents of aChar = oldChar) then
set newString to newString & newChar
else
set newString to newString & aChar
end if
end repeat
return newString
end replace
(* uses "sort" scripting addition to sort a list of strings. *)
on sortList(aList)
if (aList ­ {}) then
return sort aList
else
return {}
end if
end sortList
-- reads .toc file into a list.
on readManifestFile(sourceTree, manifestFile)
set oldDelimiters to swapDelimiters(return)
set fileRef to false
set fileLines to {}
try
set fileRef to (open for access manifestFile without write permission)
-- read entire file into memory, use text items to delimit lines.
set fileContents to (read fileRef)
repeat with lineRef in (every text item of fileContents)
-- ignore lines that start with "#" or are empty.
set fileLine to (contents of lineRef)
if (fileLine ­ "") and not (fileLine starts with "#") then
set fileLines to fileLines & (sourceTree & replace(fileLine, "/", ":"))
end if
end repeat
on error
-- ignore errors.
end try
if (fileRef is not false) then close access fileRef
setDelimiters(oldDelimiters)
return sortList(fileLines)
end readManifestFile
(* both of the following depend on ":" as the delimiter character. *)
on folderFromPath(filePath)
return ((filePath's text items 1 thru ((count of filePath's text items) - 1)) as string) & ":"
end folderFromPath
on fileFromPath(filePath)
return last text item of filePath
end fileFromPath
(* CW Pro IDE Interface Handlers. *)
on openProject(aProjectFile)
tell application "CodeWarrior IDE 3.3"
-- activate
open aProjectFile
end tell
end openProject
(* forces the named project file to be the front window. *)
on selectProject(aProjectFile)
set projectName to fileFromPath(aProjectFile as text)
tell application "CodeWarrior IDE 3.3"
if (name of window 1 is not projectName) then
select window projectName
end if
end tell
end selectProject
on closeProject(aProjectFile)
tell application "CodeWarrior IDE 3.3"
Close Project
end tell
end closeProject
on getTargets()
set targetList to {}
set nameList to {}
tell application "CodeWarrior IDE 3.3"
set currentProject to project document 1
repeat with targetIndex from 1 to (count of targets of currentProject)
set currentTarget to (target targetIndex of currentProject)
set targetList to targetList & {currentTarget}
set nameList to nameList & {name of currentTarget}
end repeat
return {target:targetList, names:nameList}
end tell
end getTargets
(* uses "info for" scripting addition, to return the file type of a path. *)
on getFileType(aFilePath)
return file type of (info for alias aFilePath)
end getFileType
(* returns all "TEXT" files of the named target. *)
on getTargetFiles(targetKey)
set targetFiles to {}
tell application "CodeWarrior IDE 3.3"
set currentProject to project document 1
set currentTarget to (target targetKey of currentProject)
try
-- workaround for CW IDE 3.X bug, loop until error encountered.
set fileIndex to 1
repeat until false
set targetFile to (target file fileIndex of currentTarget)
-- only consider text files, since other platforms won't be managing binaries.
-- also, only consider if target file is directly linked.
if (linked of targetFile) then
set targetFilePath to (Access Paths of targetFile)
tell me
if (getFileType(targetFilePath) = "TEXT") then
set targetFiles to targetFiles & {targetFilePath}
end if
end tell
end if
set fileIndex to (fileIndex + 1)
end repeat
on error msg
-- display dialog msg & " file count = " & fileIndex
end try
end tell
return sortList(targetFiles)
end getTargetFiles
on addTargetFile(targetFile, targetList)
tell application "CodeWarrior IDE 3.3"
add (project document 1) new target file with data {targetFile} to targets targetList
end tell
end addTargetFile
global gCurrentTarget
on setCurrentTarget(currentTargetName)
if (gCurrentTarget ­ currentTargetName) then
set gCurrentTarget to currentTargetName
tell application "CodeWarrior IDE 3.3"
Set Current Target currentTargetName
end tell
end if
end setCurrentTarget
on removeTargetFile(targetFile)
tell application "CodeWarrior IDE 3.3"
Remove Files {targetFile}
end tell
end removeTargetFile
on quote(aString)
return "'" & aString & "'"
end quote
on listContains(aList, anItem)
repeat with listItem in aList
if (contents of listItem = anItem) then
return true
end if
end repeat
return false
end listContains
on showList(aList)
choose from list aList with prompt "List:" with empty selection allowed
end showList
global gProjectModified
on ModifyReadOnly(aProjectFile)
if (not gProjectModified) then
set gProjectModified to true
-- so CodeWarrior will notice, must close the file before MROing it.
closeProject(aProjectFile)
mro aProjectFile
openProject(aProjectFile)
selectProject(aProjectFile)
end if
end ModifyReadOnly
on makeStream(itemList)
return {streamList:itemList, streamCount:count itemList, streamIndex:0}
end makeStream
(* true is used as the end of stream value. *)
property pEOS : true
on advanceStream(stream)
set itemCount to (streamCount of stream)
set itemIndex to (streamIndex of stream)
if (itemIndex < itemCount) then
set itemIndex to (itemIndex + 1)
set (streamIndex of stream) to itemIndex
return (item itemIndex of streamList of stream)
else
return pEOS
end if
end advanceStream
-- returns true if str2 is INFINITELY great, or str1 is less than str2.
on precedes(str1, str2)
return (str2 = pEOS) or ((str1 ­ pEOS) and (str1 < str2))
end precedes
on get_current_application()
return last text item of ((path to current application) as text)
end get_current_application
on get_frontmost_application()
return last text item of ((path to frontmost application) as text)
end get_frontmost_application
on activate_application(applicationName)
tell application "Finder"
set applicationProcess to (application process applicationName)
set frontmost of applicationProcess to true
end tell
end activate_application
on ReconcileProject(sourceTree, projectPath, manifestoPath)
-- so we can easily strip off file names from paths.
set oldDelimiters to swapDelimiters(":")
-- initialize globals.
set gCurrentTarget to ""
set gProjectModified to false
-- convert paths to aliases.
set projectFile to alias projectPath
set manifestFile to alias manifestoPath
-- read the MANIFESTO file into a list of paths.
set manifestContents to readManifestFile(sourceTree, manifestFile)
-- return manifestContents
-- now, start processing the file items, ensuring that the project contains all items.
openProject(projectFile)
selectProject(projectFile)
set targetsList to getTargets()
set targetNames to names of targetsList
if (pShowReport) then
set theReport to ""
set addedFiles to ""
set removedFiles to ""
end if
-- push current application to front for speed.
-- set frontmostApplication to get_frontmost_application()
-- set currentApplication to get_current_application()
-- activate_application(currentApplication)
-- reconcile all targets with the MANIFEST file.
-- this loop should be recoded in PERL for speed.
-- IDEA: with sorted lists, can scan both lists, like a merge sort, and make one pass per target.
repeat with targetNameRef in targetNames
-- switch targets because getTargetFiles now checks to see if file is linked in current target.
set targetName to (contents of targetNameRef)
set targetFiles to getTargetFiles(targetName)
-- hopefully, this list test is fast.
if (targetFiles ­ manifestContents) then
-- return {count targetFiles, count manifestContents, targetFiles, manifestContents}
-- make sure the project file is modifiable.
ModifyReadOnly(projectFile)
setCurrentTarget(targetName)
set targetStream to makeStream(targetFiles)
set targetItem to advanceStream(targetStream)
set manifestStream to makeStream(manifestContents)
set manifestItem to advanceStream(manifestStream)
repeat until (manifestItem is pEOS) and (targetItem is pEOS)
-- display dialog "m: " & manifestItem & ", t: " & targetFileItem
if (manifestItem = targetItem) then
-- items match, advance both.
set manifestItem to advanceStream(manifestStream)
set targetItem to advanceStream(targetStream)
else
-- return {manifestItem, targetItem}
if (precedes(manifestItem, targetItem)) then
-- we have an item in manifest, not in project, so we have to add it to the targets.
-- display dialog "adding " & manifestItem
addTargetFile(manifestItem, targetNames)
if pShowReport then
set addedFiles to addedFiles & ("# " & (last text item of manifestItem) & return)
end if
set manifestItem to advanceStream(manifestStream)
else
-- we have an item not in manifest, but in project, so it must be removed from this target.
-- display dialog "removing " & targetItem
removeTargetFile(targetItem)
if pShowReport then
set removedFiles to removedFiles & ("# " & targetName & " - " & (last text item of targetItem) & return)
end if
set targetItem to advanceStream(targetStream)
end if
end if
end repeat
end if
end repeat
-- activate_application(frontmostApplication)
-- commit the project changes, and optionally display a report.
tell application "CodeWarrior IDE 3.3"
-- leave project open for compilation phase?
Close Project
if pShowReport then
if addedFiles is not "" then set theReport to ("# Added files: " & return & addedFiles)
if removedFiles is not "" then set theReport to theReport & ("# Removed files: " & return & removedFiles)
if (theReport is "") then set theReport to (" # Project is up to date." & return)
-- display dialog theReport buttons {"OK"} default button "OK"
end if
end tell
-- restore AppleScript's delimiters.
setDelimiters(oldDelimiters)
-- return 0 to indicate no error.
return theReport
end ReconcileProject
on run
-- when run interactively,
-- ask user which project/MANIFEST files to use.
set projectPath to (choose file with prompt "Choose a CW Project file." of type {"MMPr"}) as text
set manifestPath to (choose file with prompt "Choose a TOC file to process." of type {"TEXT"}) as text
ReconcileProject(pSourceTree, projectPath, manifestPath)
end run

View File

@@ -1,198 +0,0 @@
#!perl -w
package MacCVS;
# package Mac::Apps::MacCVS; this should really be the name of the package
# but due to our directory hierarchy in mozilla, I am not doing it
require 5.004;
require Exporter;
use strict;
use vars qw($VERSION @ISA @EXPORT $MacCVSLib);
use Mac::StandardFile;
use Moz;
use Cwd;
use Exporter;
use File::Basename;
@ISA = qw(Exporter);
@EXPORT = qw( new print checkout);
$VERSION = "1.00";
# Architecture:
# cvs session object:
# name - session name
# session_file - session file
#
# globals
# $MacCVSLib - location of MacCVS applescript library
#
#
#
# utility routines
#
# just like Mac::DoAppleScript, 1 is success, 0 is failure
sub _myDoAppleScript($)
{
my($script) = @_;
my $asresult = MacPerl::DoAppleScript($script);
if ($asresult eq "0")
{
return 1;
}
else
{
print STDERR "AppleScript error: $asresult\n";
print STDERR "AppleScript was: \n $script \n";
return 0;
}
}
# _useMacCVSLib
# returns 1 on success
# Search the include path for the file called MacCVSLib
sub _useMacCVSLib()
{
unless ( defined($MacCVSLib) )
{
my($libname) = "MacCVSLib";
# try the directory we were run from
my($c) = dirname($0) . ":" . $libname;
if ( -e $c)
{
$MacCVSLib = $c;
}
else
{
# now search the include directories
foreach (@INC)
{
unless ( m/^Dev:Pseudo/ ) # This is some bizarre MacPerl special-case directory
{
$c = $_ . $libname;
if (-e $c)
{
$MacCVSLib = $c;
last;
}
}
}
}
if (! (-e $MacCVSLib))
{
print STDERR "MacCVS lib could not be found! $MacCVSLib";
return 0;
}
}
return 1;
}
#
# Session object methods
#
sub new {
my ( $proto, $session_file) = @_;
my $class = ref($proto) || $proto;
my $self = {};
if ( defined($session_file) && ( -e $session_file) )
{
$self->{"name"} = basename( $session_file );
$self->{"session_file"} = $session_file;
bless $self, $class;
return $self;
}
else
{
print STDERR "MacCVS->new cvs file < $session_file > does not exist\n";
return;
}
}
# makes sure that the session is open
# assertSessionOpen()
# returns 1 on failure
sub assertSessionOpen() {
my ($self) = shift;
_useMacCVSLib() || die "Could not load MacCVSLib\n";
my $script = <<END_OF_APPLESCRIPT;
tell (load script file "$MacCVSLib") to OpenSession("$self->{session_file}")
END_OF_APPLESCRIPT
return _myDoAppleScript($script);
}
# prints the cvs object, used mostly for debugging
sub print {
my($self) = shift;
print "MacCVS:: name: ", $self->{name}, " session file: ", $self->{session_file}, "\n";
}
# checkout( self, module, revision, date)
# MacCVS checkout command
# returns 1 on failure
sub checkout {
my($self, $module, $revision, $date ) = @_;
unless( defined ($module) ) { $module = ""; } # get rid of the pesky undefined warnings
unless( defined ($revision) ) { $revision = ""; }
unless( defined ($date) ) { $date = ""; }
$self->assertSessionOpen() || return 1;
my $script = <<END_OF_APPLESCRIPT;
tell (load script file "$MacCVSLib") to Checkout given sessionName:"$self->{name}", module:"$module", revision:"$revision", date:"$date"
END_OF_APPLESCRIPT
return _myDoAppleScript($script);
}
1;
=pod
=head1 NAME
MacCVS - Interface to MacCVS
=head1 SYNOPSIS
use MacCVS;
$session = MacCVS->new( <session_file_path>) || die "cannot create session";
$session->checkout([module] [revision] [date]) || die "Could not check out";
=head1 DESCRIPTION
This is a MacCVS interface for talking to MacCVS Pro client.
MacCVSSession is the class used to manipulate the session
=item new
MacCVS->new( <cvs session file path>);
Creates a new session. Returns undef on failure.
=item checkout( <module> [revision] [date] )
cvs checkout command. Revision and date are optional
returns 0 on failure
=cut
=head1 SEE ALSO
=over
=item MacCVS Home Page
http://www.maccvs.org/
=back
=head1 AUTHORS
Aleks Totic atotic@netscape.com
=cut
__END__

Binary file not shown.

View File

@@ -1,465 +0,0 @@
=head1 NAME
B<Moz> - routines for automating CodeWarrior builds, and some extra-curricular activities related to building Mozilla
=head1 SYNOPSIS
use Moz;
OpenErrorLog(":::BuildLog");
StopForErrors();
$Moz::QUIET = 1;
InstallFromManifest(":projects:MANIFEST", $dist_dir);
BuildProjectClean(":projects:SomeProject.mcp", "SomeTarget");
MakeAlias(":projects:SomeProject.shlb", $dist_dir);
DontStopForErrors();
BuildProject(":projects:SomeOtherProject.mcp", "SomeTarget");
=head1 DESCRIPTION
B<Moz> comprises the routines needed to slap CodeWarrior around, force it to build a sequence of projects, report the results, and a few other things.
=cut
package Moz;
require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw(BuildProject BuildProjectClean OpenErrorLog MakeAlias StopForErrors DontStopForErrors InstallFromManifest SetBuildNumber SetAgentString SetTimeBomb Delay);
@EXPORT_OK = qw(CloseErrorLog UseCodeWarriorLib QUIET);
use Cwd;
use File::Path;
use ExtUtils::Manifest 'maniread';
use CodeWarriorLib;
sub current_directory()
{
my $current_directory = cwd();
chop($current_directory) if ( $current_directory =~ m/:$/ );
return $current_directory;
}
sub full_path_to($)
{
my ($path) = @_;
if ( $path =~ m/^[^:]+$/ )
{
$path = ":" . $path;
}
if ( $path =~ m/^:/ )
{
$path = current_directory() . $path;
}
return $path;
}
=head2 Setup
Pretty much, everything is taken care of for you.
However, B<Moz> does use a little compiled AppleScript library (the file CodeWarriorLib) for some of its communcication with CodeWarrior.
If this library isn't in the same directory as "Moz.pm", then you need to tell B<Moz> where to find it.
Call C<UseCodeWarriorLib($path_to_CodeWarriorLib)>.
This routine is not exported by default, nor are you likely to need it.
=cut
sub UseCodeWarriorLib($)
{
# ($CodeWarriorLib) = @_;
# $CodeWarriorLib = full_path_to($CodeWarriorLib);
}
sub activate_CodeWarrior()
{
#MacPerl::DoAppleScript(<<END_OF_APPLESCRIPT);
# tell (load script file "$CodeWarriorLib") to ActivateCodeWarrior()
#END_OF_APPLESCRIPT
}
BEGIN
{
# UseCodeWarriorLib(":CodeWarriorLib");
# activate_CodeWarrior();
CodeWarriorLib::activate();
}
$logging = 0;
$recent_errors_file = "";
$stop_on_1st_error = 1;
$QUIET = 0;
=head2 Logging all the errors and warnings - C<OpenErrorLog($log_file)>, C<CloseErrorLog()>
The warnings and errors generated in the course of building projects can be logged to a file.
Tinderbox uses this facility to show why a remote build failed.
Logging is off by default.
Start logging at any point in your build process with C<OpenErrorLog($log_file)>.
Stop with C<CloseErrorLog()>.
You never need to close the log explicitly, unless you want to just log a couple of projects in the middle of a big list.
C<CloseErrorLog()> is not exported by default.
=cut
sub CloseErrorLog()
{
if ( $logging )
{
close(ERROR_LOG);
$logging = 0;
StopForErrors() if $stop_on_1st_error;
}
}
sub OpenErrorLog($)
{
my ($log_file) = @_;
CloseErrorLog();
if ( $log_file )
{
$log_file = full_path_to($log_file);
open(ERROR_LOG, ">$log_file") || die "Can't open logfile, check the file path.\n";
MacPerl::SetFileInfo("CWIE", "TEXT", $log_file);
$log_file =~ m/.+:(.+)/;
$recent_errors_file = full_path_to("$1.part");
$logging = 1;
}
}
=head2 Stopping before it's too late - C<StopForErrors()>, C<DontStopForErrors()>
When building a long list of projects, you decide whether to continue building subsequent projects when one fails.
By default, your build script will C<die> after the first project that generates an error while building.
Change this behavior with C<DontStopForErrors()>.
Re-enable it with C<StopForErrors()>.
=cut
sub StopForErrors()
{
$stop_on_1st_error = 1;
# Can't stop for errors unless we notice them.
# Can't notice them unless we are logging.
# If the user didn't explicitly request logging, log to a temporary file.
if ( ! $recent_errors_file )
{
OpenErrorLog("${TMPDIR}BuildResults");
}
}
sub DontStopForErrors()
{
$stop_on_1st_error = 0;
}
sub log_message($)
{
if ( $logging )
{
my ($message) = @_;
print ERROR_LOG $message;
}
}
sub log_message_with_time($)
{
if ( $logging )
{
my ($message) = @_;
my $time_stamp = localtime();
log_message("$message ($time_stamp)\n");
}
}
sub log_recent_errors($)
{
my ($project_name) = @_;
my $found_errors = 0;
if ( $logging )
{
open(RECENT_ERRORS, "<$recent_errors_file");
while( <RECENT_ERRORS> )
{
if ( /^Error/ || /^CouldnÕt find project file/ )
{
# if (!$found_errors)
# print $_;
$found_errors = 1;
}
print ERROR_LOG $_;
}
close(RECENT_ERRORS);
unlink("$recent_errors_file");
}
if ( $stop_on_1st_error && $found_errors )
{
print ERROR_LOG "### Build failed.\n";
die "### Errors encountered building \"$project_name\".\n";
}
}
sub build_project($$$)
{
my ($project_path, $target_name, $clean_build) = @_;
$project_path = full_path_to($project_path);
# $project_path =~ m/.+:(.+)/;
# my $project_name = $1;
log_message_with_time("### Building \"$project_path\"");
# Check that the given project exists
if (! -e $project_path)
{
print ERROR_LOG "### Build failed.\n";
die "### Can't find project file \"$project_path\".\n";
}
print "Building \"$project_path\[$target_name\]\"\n";
$had_errors = CodeWarriorLib::build_project(
$project_path, $target_name, $recent_errors_file, $clean_build
);
# $had_errors =
#MacPerl::DoAppleScript(<<END_OF_APPLESCRIPT);
# tell (load script file "$CodeWarriorLib") to BuildProject("$project_path", "$project_name", "$target_name", "$recent_errors_file", $clean_build)
#END_OF_APPLESCRIPT
# Append any errors to the globally accumulated log file
if ( $had_errors )
{
log_recent_errors($project_path);
}
}
=head2 Getting CodeWarrior to build projects - C<BuildProject($project, $opt_target)>, C<BuildProjectClean($project, $opt_target)>
C<BuildProject()> and C<BuildProjectClean()> are identical, except that the latter first removes object code.
In both, CodeWarrior opens the project if it wasn't already open; builds the given (or else current) target; and finally closes
the project, if it wasn't already open.
=cut
sub BuildProject($;$)
{
my ($project_path, $target_name) = @_;
build_project($project_path, $target_name, 0);
}
sub BuildProjectClean($;$)
{
my ($project_path, $target_name) = @_;
build_project($project_path, $target_name, 1);
}
=head2 Miscellaneous
C<MakeAlias($old_file, $new_file)> functions like C<symlink()>, except with better argument defaulting and more explicit error messages.
=cut
sub MakeAlias($$)
{
my ($old_file, $new_file) = @_;
# if the directory to hold $new_file doesn't exist, create it
if ( ($new_file =~ m/(.+:)/) && !-d $1 )
{
mkpath($1);
}
# if a leaf name wasn't specified for $new_file, use the leaf from $old_file
if ( ($new_file =~ m/:$/) && ($old_file =~ m/.+:(.+)/) )
{
$new_file .= $1;
}
my $message = "Can't create a Finder alias (at \"$new_file\")\n for \"$old_file\"; because ";
die "$message \"$old_file\" doesn't exist.\n" unless -e $old_file;
die "$message I won't replace an existing (non-alias) file with an alias.\n" if ( -e $new_file && ! -l $new_file );
# now: $old_file exists; $new_file doesn't (or else, is an alias already)
if ( -l $new_file )
{
# ...then see if it already points to $old_file
my $current_target = full_path_to(readlink($new_file));
my $new_target = full_path_to($old_file);
return if ( $current_target eq $new_target );
# if the desired alias already exists and points to the right thing, then we're done
unlink $new_file;
}
symlink($old_file, $new_file) || die "$message symlink returned an unexpected error.\n";
}
=pod
C<InstallFromManifest()>
=cut
sub InstallFromManifest($;$)
{
my ($manifest_file, $dest_dir) = @_;
$dest_dir ||= ":";
$manifest_file =~ m/(.+):/;
my $source_dir = $1;
chop($dest_dir) if $dest_dir =~ m/:$/;
print "Doing manifest on \"$manifest_file\"\n" unless $QUIET;
my $read = maniread(full_path_to($manifest_file));
foreach $file (keys %$read)
{
next unless $file;
$subdir = ":";
if ( $file =~ /:.+:/ )
{
$subdir = $&;
}
$file = ":$file" unless $file =~ m/^:/;
MakeAlias("$source_dir$file", "$dest_dir$subdir");
}
}
sub SetBuildNumber
{
open (OUTPUT, ">:mozilla:config:build_number") || die "could not open buildnumber";
open (BDATE, "perl :mozilla:config:bdate.pl|");
while (<BDATE>) {
print OUTPUT $_;
}
close (BDATE);
close (OUTPUT);
system ("perl :mozilla:config:aboutime.pl :mozilla:l10n:us:xp:about-all.html :mozilla:config:build_number");
}
sub SetAgentString
{
open (BDATE, ":mozilla:config:build_number") || die "could not open buildnumber";
while (<BDATE>) {
$build_number = $_;
}
close (BDATE);
open (ORIGFILE, ":mozilla:cmd:macfe:restext:custom.r") || die "no original file";
open (OUTPUT, ">:mozilla:cmd:macfe:restext:agent.r") || die "no output file";
chop($build_number);
while (<ORIGFILE>) {
$tempstring = $_;
if ($tempstring =~ "\#define VERSION_MAJOR_STR") {
$tempstring = "\#define VERSION_MAJOR_STR \"5.0a1-" . $build_number . " Development\"\n";
}
print OUTPUT $tempstring;
}
close (ORIGFILE);
close (OUTPUT);
unlink (":mozilla:cmd:macfe:restext:custom.r");
rename (":mozilla:cmd:macfe:restext:agent.r", ":mozilla:cmd:macfe:restext:custom.r");
}
sub SetTimeBomb($$)
{
my ($warn_days, $bomb_days) = @_;
system("perl :mozilla:config:mac-set-timebomb.pl $warn_days $bomb_days");
}
sub Delay($)
{
my ($delay_seconds) = @_;
$now = time;
$exit_time = $now + $delay_seconds;
while ($exit_time > $now) {
$now = time;
}
}
1;
=head1 AUTHORS
Scott Collins <scc@netscape.com>, Simon Fraser <sfraser@netscape.com>, Chris Yeh <cyeh@netscape.com>
=head1 SEE ALSO
BuildMozillaDebug.pl (et al), BuildList.pm, CodeWarriorLib (an AppleScript library)
=head1 COPYRIGHT
The contents of this file are subject to the Netscape Public License
Version 1.0 (the "NPL"); you may not use this file except in
compliance with the NPL. You may obtain a copy of the NPL at
http://www.mozilla.org/NPL/
Software distributed under the NPL is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
for the specific language governing rights and limitations under the
NPL.
The Initial Developer of this code under the NPL is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998 Netscape Communications Corporation. All Rights
Reserved.
=cut

View File

@@ -1,669 +0,0 @@
#!perl -w
package NGLayoutBuildList;
require 5.004;
require Exporter;
use strict;
use vars qw( @ISA @EXPORT );
# perl includes
use Mac::StandardFile;
use Mac::Processes;
use Cwd;
use File::Path;
# homegrown
use Moz;
use MacCVS;
use MANIFESTO;
@ISA = qw(Exporter);
@EXPORT = qw(Checkout BuildDist BuildProjects BuildCommonProjects BuildLayoutProjects);
# NGLayoutBuildList builds the nglayout project
# it is configured by setting the following variables in the caller:
# Usage:
# caller variables that affect behaviour:
# DEBUG : 1 if we are building a debug version
# 3-part build process: checkout, dist, and build_projects
# Hack alert:
# NGLayout defines are located in :mozilla:config:mac:NGLayoutConfigInclude.h
# An alias "MacConfigInclude.h" to this file is created inside dist:config
# Note that the name of alias is different than the name of the file. This
# is to trick CW into including NGLayout defines
#//--------------------------------------------------------------------------------------------------
#// Utility routines
#//--------------------------------------------------------------------------------------------------
# pickWithMemoryFile stores the information about the user pick inside
# the file $session_storage
sub _pickWithMemoryFile($)
{
my ($sessionStorage) = @_;
my $cvsfile;
if (( -e $sessionStorage) &&
open( SESSIONFILE, $sessionStorage ))
{
# Read in the path if available
$cvsfile = <SESSIONFILE>;
chomp $cvsfile;
close SESSIONFILE;
if ( ! -e $cvsfile )
{
print STDERR "$cvsfile has disappeared\n";
undef $cvsfile;
}
}
unless (defined ($cvsfile))
{
print "Choose a CVS session file in file dialog box:\n"; # no way to display a prompt?
# make sure that MacPerl is a front process
while (GetFrontProcess () != GetCurrentProcess())
{
SetFrontProcess( GetCurrentProcess() );
}
# prompt user for the file name, and store it
my $macFile = StandardGetFile( 0, "McvD");
if ( $macFile->sfGood() )
{
$cvsfile = $macFile->sfFile();
# save the choice if we can
if ( open (SESSIONFILE, ">" . $sessionStorage))
{
printf SESSIONFILE $cvsfile, "\n";
close SESSIONFILE;
}
else
{
print STDERR "Could not open storage file\n";
}
}
}
return $cvsfile;
}
# assert that we are in the correct directory for the build
sub _assertRightDirectory()
{
unless (-e ":mozilla")
{
my($dir) = cwd();
print STDERR "NGLayoutBuildList called from incorrect directory: $dir";
}
}
sub _getDistDirectory()
{
return $main::DEBUG ? ":mozilla:dist:viewer_debug:" : ":mozilla:dist:viewer:";
}
#//--------------------------------------------------------------------------------------------------
#// Checkout everything
#//--------------------------------------------------------------------------------------------------
sub Checkout()
{
_assertRightDirectory();
my($cvsfile) = _pickWithMemoryFile("::nglayout.cvsloc");
my($session) = MacCVS->new( $cvsfile );
unless (defined($session)) { die "Checkout aborted. Cannot create session file: $session" }
#//
#// Checkout commands
#//
if ($main::pull{all})
{
$session->checkout("SeaMonkeyEditor") || die "checkout failure";
#// beard: additional libraries needed to make shared libraries link.
#//$session->checkout("mozilla/lib/mac/PowerPlant") || die "checkout failure";
#//$session->checkout("mozilla/lib/xlate") || die "checkout failure";
}
}
#//--------------------------------------------------------------------------------------------------
#// Build the 'dist' directory
#//--------------------------------------------------------------------------------------------------
sub BuildDist()
{
unless ( $main::build{dist} ) { return;}
_assertRightDirectory();
# we really do not need all these paths, but many client projects include them
mkpath([ ":mozilla:dist:", ":mozilla:dist:client:", ":mozilla:dist:client_debug:", ":mozilla:dist:client_stubs:" ]);
mkpath([ ":mozilla:dist:viewer:", ":mozilla:dist:viewer_debug:" ]);
my($distdirectory) = ":mozilla:dist";
if ($main::MOZ_FULLCIRCLE)
{
if ( $main::DEBUG )
{
mkpath([ "$distdirectory:viewer_debug:TalkBack"]);
}
else
{
mkpath([ "$distdirectory:viewer:TalkBack"]);
}
}
#MAC_COMMON
InstallFromManifest(":mozilla:build:mac:MANIFEST", "$distdirectory:mac:common:");
InstallFromManifest(":mozilla:lib:mac:NSStdLib:include:MANIFEST", "$distdirectory:mac:common:");
InstallFromManifest(":mozilla:lib:mac:MacMemoryAllocator:include:MANIFEST", "$distdirectory:mac:common:");
InstallFromManifest(":mozilla:lib:mac:Misc:MANIFEST", "$distdirectory:mac:common:");
InstallFromManifest(":mozilla:lib:mac:MoreFiles:MANIFEST", "$distdirectory:mac:common:morefiles:");
#INCLUDE
InstallFromManifest(":mozilla:config:mac:MANIFEST", "$distdirectory:config:");
InstallFromManifest(":mozilla:config:mac:MANIFEST_config", "$distdirectory:config:");
InstallFromManifest(":mozilla:include:MANIFEST", "$distdirectory:include:");
InstallFromManifest(":mozilla:cmd:macfe:pch:MANIFEST", "$distdirectory:include:");
InstallFromManifest(":mozilla:cmd:macfe:utility:MANIFEST", "$distdirectory:include:");
#NSPR
InstallFromManifest(":mozilla:nsprpub:pr:include:MANIFEST", "$distdirectory:nspr:");
InstallFromManifest(":mozilla:nsprpub:pr:src:md:mac:MANIFEST", "$distdirectory:nspr:mac:");
InstallFromManifest(":mozilla:nsprpub:lib:ds:MANIFEST", "$distdirectory:nspr:");
InstallFromManifest(":mozilla:nsprpub:lib:libc:include:MANIFEST", "$distdirectory:nspr:");
InstallFromManifest(":mozilla:nsprpub:lib:msgc:include:MANIFEST", "$distdirectory:nspr:");
#UCONV
InstallFromManifest(":mozilla:intl:uconv:public:MANIFEST", "$distdirectory:uconv:");
#JPEG
InstallFromManifest(":mozilla:jpeg:MANIFEST", "$distdirectory:jpeg:");
#LIBREG
InstallFromManifest(":mozilla:modules:libreg:include:MANIFEST", "$distdirectory:libreg:");
#XPCOM
InstallFromManifest(":mozilla:xpcom:public:MANIFEST", "$distdirectory:xpcom:");
#ZLIB
InstallFromManifest(":mozilla:modules:zlib:src:MANIFEST", "$distdirectory:zlib:");
#LIBUTIL
InstallFromManifest(":mozilla:modules:libutil:public:MANIFEST", "$distdirectory:libutil:");
#SUN_JAVA
InstallFromManifest(":mozilla:sun-java:stubs:include:MANIFEST", "$distdirectory:sun-java:");
InstallFromManifest(":mozilla:sun-java:stubs:macjri:MANIFEST", "$distdirectory:sun-java:");
#NAV_JAVA
InstallFromManifest(":mozilla:nav-java:stubs:include:MANIFEST", "$distdirectory:nav-java:");
InstallFromManifest(":mozilla:nav-java:stubs:macjri:MANIFEST", "$distdirectory:nav-java:");
#JS
InstallFromManifest(":mozilla:js:src:MANIFEST", "$distdirectory:js:");
#LIVECONNECT
InstallFromManifest(":mozilla:js:src:liveconnect:MANIFEST", "$distdirectory:liveconnect:");
#SECURITY_freenav
InstallFromManifest(":mozilla:modules:security:freenav:MANIFEST", "$distdirectory:security:");
#LIBPREF
InstallFromManifest(":mozilla:modules:libpref:public:MANIFEST", "$distdirectory:libpref:");
#LIBIMAGE
InstallFromManifest(":mozilla:modules:libimg:png:MANIFEST", "$distdirectory:libimg:");
InstallFromManifest(":mozilla:modules:libimg:src:MANIFEST", "$distdirectory:libimg:");
InstallFromManifest(":mozilla:modules:libimg:public:MANIFEST", "$distdirectory:libimg:");
#PLUGIN
InstallFromManifest(":mozilla:modules:plugin:nglsrc:MANIFEST", "$distdirectory:plugin:");
InstallFromManifest(":mozilla:modules:plugin:public:MANIFEST", "$distdirectory:plugin:");
InstallFromManifest(":mozilla:modules:plugin:src:MANIFEST", "$distdirectory:plugin:");
InstallFromManifest(":mozilla:modules:oji:src:MANIFEST", "$distdirectory:oji:");
InstallFromManifest(":mozilla:modules:oji:public:MANIFEST", "$distdirectory:oji:");
#LAYERS (IS THIS STILL NEEDED)
InstallFromManifest(":mozilla:lib:liblayer:include:MANIFEST", "$distdirectory:layers:");
#NETWORK
InstallFromManifest(":mozilla:network:public:MANIFEST", "$distdirectory:network:");
InstallFromManifest(":mozilla:network:cache:MANIFEST", "$distdirectory:network:");
InstallFromManifest(":mozilla:network:client:MANIFEST", "$distdirectory:network:");
InstallFromManifest(":mozilla:network:cnvts:MANIFEST", "$distdirectory:network:");
InstallFromManifest(":mozilla:network:cstream:MANIFEST", "$distdirectory:network:");
InstallFromManifest(":mozilla:network:main:MANIFEST", "$distdirectory:network:");
InstallFromManifest(":mozilla:network:mimetype:MANIFEST", "$distdirectory:network:");
InstallFromManifest(":mozilla:network:util:MANIFEST", "$distdirectory:network:");
InstallFromManifest(":mozilla:network:protocol:about:MANIFEST", "$distdirectory:network:");
InstallFromManifest(":mozilla:network:protocol:certld:MANIFEST", "$distdirectory:network:");
InstallFromManifest(":mozilla:network:protocol:dataurl:MANIFEST", "$distdirectory:network:");
InstallFromManifest(":mozilla:network:protocol:file:MANIFEST", "$distdirectory:network:");
InstallFromManifest(":mozilla:network:protocol:ftp:MANIFEST", "$distdirectory:network:");
InstallFromManifest(":mozilla:network:protocol:gopher:MANIFEST", "$distdirectory:network:");
InstallFromManifest(":mozilla:network:protocol:http:MANIFEST", "$distdirectory:network:");
InstallFromManifest(":mozilla:network:protocol:js:MANIFEST", "$distdirectory:network:");
InstallFromManifest(":mozilla:network:protocol:mailbox:MANIFEST", "$distdirectory:network:");
InstallFromManifest(":mozilla:network:protocol:marimba:MANIFEST", "$distdirectory:network:");
InstallFromManifest(":mozilla:network:protocol:nntp:MANIFEST", "$distdirectory:network:");
InstallFromManifest(":mozilla:network:protocol:pop3:MANIFEST", "$distdirectory:network:");
InstallFromManifest(":mozilla:network:protocol:remote:MANIFEST", "$distdirectory:network:");
InstallFromManifest(":mozilla:network:protocol:smtp:MANIFEST", "$distdirectory:network:");
InstallFromManifest(":mozilla:network:protocol:sockstub:MANIFEST", "$distdirectory:network:");
InstallFromManifest(":mozilla:network:module:MANIFEST", "$distdirectory:network:module");
#BASE
InstallFromManifest(":mozilla:base:src:MANIFEST", "$distdirectory:base:");
InstallFromManifest(":mozilla:base:public:MANIFEST", "$distdirectory:base:");
#WEBSHELL
InstallFromManifest(":mozilla:webshell:public:MANIFEST", "$distdirectory:webshell:");
InstallFromManifest(":mozilla:webshell:tests:viewer:public:MANIFEST", "$distdirectory:webshell:");
#LAYOUT
InstallFromManifest(":mozilla:layout:build:MANIFEST", "$distdirectory:layout:");
InstallFromManifest(":mozilla:layout:base:public:MANIFEST", "$distdirectory:layout:");
InstallFromManifest(":mozilla:layout:html:style:public:MANIFEST", "$distdirectory:layout:");
InstallFromManifest(":mozilla:layout:html:style:src:MANIFEST", "$distdirectory:layout:");
InstallFromManifest(":mozilla:layout:html:base:src:MANIFEST", "$distdirectory:layout:");
InstallFromManifest(":mozilla:layout:html:forms:public:MANIFEST", "$distdirectory:layout:");
InstallFromManifest(":mozilla:layout:base:src:MANIFEST", "$distdirectory:layout:");
InstallFromManifest(":mozilla:layout:events:public:MANIFEST", "$distdirectory:layout:");
InstallFromManifest(":mozilla:layout:events:src:MANIFEST", "$distdirectory:layout:");
InstallFromManifest(":mozilla:layout:xml:document:public:MANIFEST", "$distdirectory:layout:");
InstallFromManifest(":mozilla:layout:xml:content:public:MANIFEST", "$distdirectory:layout:");
#WIDGET
InstallFromManifest(":mozilla:widget:public:MANIFEST", "$distdirectory:widget:");
InstallFromManifest(":mozilla:widget:src:mac:MANIFEST", "$distdirectory:widget:");
#GFX
InstallFromManifest(":mozilla:gfx:public:MANIFEST", "$distdirectory:gfx:");
#VIEW
InstallFromManifest(":mozilla:view:public:MANIFEST", "$distdirectory:view:");
#DOM
InstallFromManifest(":mozilla:dom:public:MANIFEST", "$distdirectory:dom:");
InstallFromManifest(":mozilla:dom:public:coreDom:MANIFEST", "$distdirectory:dom:");
InstallFromManifest(":mozilla:dom:public:coreEvents:MANIFEST", "$distdirectory:dom:");
InstallFromManifest(":mozilla:dom:public:events:MANIFEST", "$distdirectory:dom:");
InstallFromManifest(":mozilla:dom:public:html:MANIFEST", "$distdirectory:dom:");
InstallFromManifest(":mozilla:dom:public:css:MANIFEST", "$distdirectory:dom:");
InstallFromManifest(":mozilla:dom:src:jsurl:MANIFEST", "$distdirectory:dom:");
#HTMLPARSER
InstallFromManifest(":mozilla:htmlparser:src:MANIFEST", "$distdirectory:htmlparser:");
#RDF
InstallFromManifest(":mozilla:rdf:base:public:MANIFEST", "$distdirectory:rdf:");
InstallFromManifest(":mozilla:rdf:content:public:MANIFEST", "$distdirectory:rdf:");
InstallFromManifest(":mozilla:rdf:datasource:public:MANIFEST", "$distdirectory:rdf:");
InstallFromManifest(":mozilla:rdf:build:MANIFEST", "$distdirectory:rdf:");
#EDITOR
InstallFromManifest(":mozilla:editor:public:MANIFEST", "$distdirectory:editor:");
InstallFromManifest(":mozilla:editor:txmgr:public:MANIFEST", "$distdirectory:editor:txmgr");
#SILENTDL
InstallFromManifest(":mozilla:silentdl:MANIFEST", "$distdirectory:silentdl:");
#FULL CIRCLE
if ($main::MOZ_FULLCIRCLE)
{
InstallFromManifest(":ns:fullsoft:public:MANIFEST", "$distdirectory");
if ($main::DEBUG)
{
#InstallFromManifest(":ns:fullsoft:public:MANIFEST", "$distdirectory:viewer_debug:");
}
else
{
#InstallFromManifest(":ns:fullsoft:public:MANIFEST", "$distdirectory:viewer:");
InstallFromManifest(":ns:fullsoft:public:MANIFEST", "$distdirectory");
}
}
#// To get out defines in all the project, dummy alias NGLayoutConfigInclude.h into MacConfigInclude.h
MakeAlias(":mozilla:config:mac:NGLayoutConfigInclude.h", ":mozilla:dist:config:MacConfigInclude.h");
}
#//--------------------------------------------------------------------------------------------------
#// Build stub projects
#//--------------------------------------------------------------------------------------------------
sub BuildStubs()
{
unless( $main::build{stubs} ) { return; }
_assertRightDirectory();
#//
#// Clean projects
#//
BuildProjectClean(":mozilla:lib:mac:MacMemoryAllocator:MemAllocator.mcp", "Stubs");
BuildProjectClean(":mozilla:lib:mac:NSStdLib:NSStdLib.mcp", "Stubs");
BuildProjectClean(":mozilla:lib:mac:NSRuntime:NSRuntime.mcp", "Stubs");
# BuildProjectClean(":mozilla:cmd:macfe:projects:client:Client.mcp", "Stubs");
}
#//--------------------------------------------------------------------------------------------------
#// Build one project, and make the alias. Parameters
#// are project path, target name, make shlb alias (boolean), make xSYM alias (boolean)
#//
#// Note that this routine assumes that the target name and the shared libary name
#// are the same.
#//--------------------------------------------------------------------------------------------------
sub BuildOneProject($$$$$)
{
my ($project_path, $target_name, $toc_file, $alias_shlb, $alias_xSYM) = @_;
# $D becomes a suffix to target names for selecting either the debug or non-debug target of a project
my($D) = $main::DEBUG ? "Debug" : "";
my($dist_dir) = _getDistDirectory();
my($project_dir) = $project_path;
$project_dir =~ s/:[^:]+$/:/; # chop off leaf name
if ($main::CLOBBER_LIBS)
{
unlink "$project_dir$target_name"; # it's OK if these fail
unlink "$project_dir$target_name.xSYM";
}
if ($toc_file ne "")
{
ReconcileProject("$project_path", "$project_dir$toc_file");
}
BuildProject($project_path, $target_name);
$alias_shlb ? MakeAlias("$project_dir$target_name", "$dist_dir") : 0;
$alias_xSYM ? MakeAlias("$project_dir$target_name.xSYM", "$dist_dir") : 0;
}
#//--------------------------------------------------------------------------------------------------
#// Build common projects
#//--------------------------------------------------------------------------------------------------
sub BuildCommonProjects()
{
unless( $main::build{common} ) { return; }
_assertRightDirectory();
# $D becomes a suffix to target names for selecting either the debug or non-debug target of a project
my($D) = $main::DEBUG ? "Debug" : "";
my($dist_dir) = _getDistDirectory();
#//
#// Stub libraries
#//
BuildProject(":mozilla:modules:security:freenav:macbuild:NoSecurity.mcp", "Security.o");
#//
#// Shared libraries
#//
if ( $main::CARBON )
{
BuildProject(":mozilla:cmd:macfe:projects:interfaceLib:Interface.mcp", "Carbon Interfaces");
}
else
{
BuildProject(":mozilla:cmd:macfe:projects:interfaceLib:Interface.mcp", "MacOS Interfaces");
}
BuildOneProject(":mozilla:lib:mac:NSRuntime:NSRuntime.mcp", "NSRuntime$D.shlb", "", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:lib:mac:MoreFiles:build:MoreFilesPPC.mcp", "MoreFiles$D.shlb", "", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:nsprpub:macbuild:NSPR20PPC.mcp", "NSPR20$D.shlb", "NSPR20.toc", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:lib:mac:MacMemoryAllocator:MemAllocator.mcp", "MemAllocator$D.shlb", "", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:lib:mac:NSStdLib:NSStdLib.mcp", "NSStdLib$D.shlb", "", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:jpeg:macbuild:JPEG.mcp", "JPEG$D.shlb", "JPEG.toc", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:xpcom:macbuild:xpcomPPC.mcp", "xpcom$D.shlb", "xpcom.toc", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:js:macbuild:JavaScript.mcp", "JavaScript$D.shlb", "JavaScript.toc", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:js:macbuild:LiveConnect.mcp", "LiveConnect$D.shlb", "", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:modules:zlib:macbuild:zlib.mcp", "zlib$D.shlb", "zlib.toc", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:modules:libpref:macbuild:libpref.mcp", "libpref$D.shlb", "libpref.toc", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:base:macbuild:base.mcp", "base$D.shlb", "base.toc", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:intl:uconv:macbuild:uconv.mcp", "uconv$D.shlb", "uconv.toc", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:intl:uconv:macbuild:ucvlatin.mcp", "ucvlatin$D.shlb", "uconvlatin.toc", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:intl:uconv:macbuild:ucvja.mcp", "ucvja$D.shlb", "ucvja.toc", 1, $main::ALIAS_SYM_FILES);
#// removing powerplant - long live powerplant
# BuildOneProject(":mozilla:lib:mac:PowerPlant:PowerPlant.mcp", "PowerPlant$D.shlb", "", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:modules:libutil:macbuild:libutil.mcp", "libutil$D.shlb", "libutil.toc", 1, $main::ALIAS_SYM_FILES);
ReconcileProject(":mozilla:modules:libimg:macbuild:png.mcp", ":mozilla:modules:libimg:macbuild:png.toc");
BuildProject(":mozilla:modules:libimg:macbuild:png.mcp", "png$D.o");
BuildOneProject(":mozilla:modules:libimg:macbuild:libimg.mcp", "libimg$D.shlb", "libimg.toc", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:network:macbuild:network.mcp", "NetworkModular$D.shlb", "network.toc", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:rdf:macbuild:rdf.mcp", "rdf$D.shlb", "rdf.toc", 1, $main::ALIAS_SYM_FILES);
}
#//--------------------------------------------------------------------------------------------------
#// Make resource aliases for one directory
#//--------------------------------------------------------------------------------------------------
sub BuildFolderResourceAliases($$)
{
my($src_dir, $dest_dir) = @_;
# get a list of all the resource files
opendir(SRCDIR, $src_dir) || die("can't open $src_dir");
my(@resource_files) = readdir(SRCDIR);
closedir(SRCDIR);
# make aliases for each one into the dest directory
for ( @resource_files ) {
next if $_ eq "CVS";
my($file_name) = $src_dir . $_;
print("Placing alias to file $file_name in $dest_dir\n");
MakeAlias($file_name, $dest_dir);
}
}
#//--------------------------------------------------------------------------------------------------
#// Make resource aliases
#//--------------------------------------------------------------------------------------------------
sub MakeResouceAliases()
{
unless( $main::build{resources} ) { return; }
_assertRightDirectory();
# $D becomes a suffix to target names for selecting either the debug or non-debug target of a project
my($D) = $main::DEBUG ? "Debug" : "";
my($dist_dir) = _getDistDirectory();
#//
#// Make aliases of resource files
#//
my($resource_dir) = "$dist_dir" . "res:";
MakeAlias(":mozilla:layout:html:document:src:ua.css", "$resource_dir");
my($html_dir) = "$resource_dir" . "html:";
MakeAlias(":mozilla:layout:html:base:src:broken-image.gif", "$html_dir");
my($throbber_dir) = "$resource_dir" . "throbber:";
# BuildFolderResourceAliases(":mozilla:xpfe:xpviewer:src:resources:throbber:", "$throbber_dir");
BuildFolderResourceAliases(":mozilla:webshell:tests:viewer:throbber:", "$throbber_dir");
my($samples_dir) = "$resource_dir" . "samples:";
BuildFolderResourceAliases(":mozilla:webshell:tests:viewer:samples:", "$samples_dir");
BuildFolderResourceAliases(":mozilla:webshell:tests:viewer:resources:", "$samples_dir");
my($chrome_dir) = "$resource_dir" . "chrome:";
BuildFolderResourceAliases(":mozilla:xpfe:xpviewer:src:resources:chrome:", "$chrome_dir");
my($toolbar_dir) = "$resource_dir" . "toolbar:";
BuildFolderResourceAliases(":mozilla:xpfe:xpviewer:src:resources:toolbar:", "$toolbar_dir");
my($rdf_dir) = "$resource_dir" . "rdf:";
BuildFolderResourceAliases(":mozilla:rdf:resources:", "$rdf_dir");
# NOTE: this will change as we move the toolbar/appshell chrome files to a real place
BuildFolderResourceAliases(":mozilla:xpfe:browser:src:", "$samples_dir");
}
#//--------------------------------------------------------------------------------------------------
#// Build NGLayout
#//--------------------------------------------------------------------------------------------------
sub BuildLayoutProjects()
{
unless( $main::build{nglayout} ) { return; }
_assertRightDirectory();
# $D becomes a suffix to target names for selecting either the debug or non-debug target of a project
my($D) = $main::DEBUG ? "Debug" : "";
my($dist_dir) = _getDistDirectory();
#//
#// Make WasteLib alias
#//
local(*F);
my($filepath, $appath, $psi) = (':mozilla:build:mac:idepath.txt');
if (open(F, $filepath)) {
$appath = <F>;
close(F);
#// beard: use pattern substitution to generate path to WasteLib. (thanks gordon!)
$appath =~ s/[^:]*$/MacOS Support:WASTE 1.3 Distribution:WASTELib/;
my($wastelibpath) = $appath;
MakeAlias("$wastelibpath", "$dist_dir");
}
else {
print STDERR "Can't find $filepath\n";
}
#//
#// Build Layout projects
#//
BuildOneProject(":mozilla:htmlparser:macbuild:htmlparser.mcp", "htmlparser$D.shlb", "htmlparser.toc", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:dom:macbuild:dom.mcp", "dom$D.shlb", "dom.toc", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:gfx:macbuild:gfx.mcp", "gfx$D.shlb", "gfx.toc", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:modules:plugin:macbuild:plugin.mcp", "plugin$D.shlb", "plugin.toc", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:layout:macbuild:layout.mcp", "layout$D.shlb", "layout.toc", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:view:macbuild:view.mcp", "view$D.shlb", "view.toc", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:widget:macbuild:widget.mcp", "widget$D.shlb", "widget.toc", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:webshell:macbuild:webshell.mcp", "webshell$D.shlb", "webshell.toc", 1, $main::ALIAS_SYM_FILES);
}
#//--------------------------------------------------------------------------------------------------
#// Build Editor Projects
#//--------------------------------------------------------------------------------------------------
sub BuildEditorProjects()
{
unless( $main::build{editor} ) { return; }
_assertRightDirectory();
# $D becomes a suffix to target names for selecting either the debug or non-debug target of a project
my($D) = $main::DEBUG ? "Debug" : "";
my($dist_dir) = _getDistDirectory();
BuildOneProject(":mozilla:editor:txmgr:macbuild:txmgr.mcp", "EditorTxmgr$D.shlb", "txmgr.toc", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:editor:guimgr:macbuild:EditorGuiManager.mcp", "EditorGuiManager$D.shlb", "EditorGuiManager.toc", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:editor:macbuild:editor.mcp", "EditorCore$D.shlb", "EditorCore.toc", 1, $main::ALIAS_SYM_FILES);
}
#//--------------------------------------------------------------------------------------------------
#// Build Viewer Projects
#//--------------------------------------------------------------------------------------------------
sub BuildViewerProjects()
{
unless( $main::build{viewer} ) { return; }
_assertRightDirectory();
# $D becomes a suffix to target names for selecting either the debug or non-debug target of a project
my($D) = $main::DEBUG ? "Debug" : "";
my($dist_dir) = _getDistDirectory();
BuildOneProject(":mozilla:webshell:tests:viewer:mac:viewer.mcp", "viewer$D", "viewer.toc", 0, 0);
# BuildOneProject(":mozilla:xpfe:macbuild:xpfeviewer.mcp", "xpfeviewer$D.shlb", "xpfeviewer.toc", 0, 0);
}
#//--------------------------------------------------------------------------------------------------
#// Build XPApp Projects
#//--------------------------------------------------------------------------------------------------
sub BuildXPAppProjects()
{
unless( $main::build{xpapp} ) { return; }
_assertRightDirectory();
# $D becomes a suffix to target names for selecting either the debug or non-debug target of a project
my($D) = $main::DEBUG ? "Debug" : "";
my($dist_dir) = _getDistDirectory();
BuildOneProject(":mozilla:xpfe:appshell:macbuild:AppShell.mcp", "AppShell$D.shlb", "AppShell.toc", 1, $main::ALIAS_SYM_FILES);
BuildOneProject(":mozilla:xpfe:bootstrap:macbuild:apprunner.mcp", "apprunner$D", "apprunner.toc", 0, 0);
}
#//--------------------------------------------------------------------------------------------------
#// Build everything
#//--------------------------------------------------------------------------------------------------
sub BuildProjects()
{
BuildStubs();
BuildCommonProjects();
BuildLayoutProjects();
BuildEditorProjects();
MakeResouceAliases();
BuildViewerProjects();
BuildXPAppProjects();
}

View File

@@ -1,39 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#error "DonÕt use me!"
#define OLDROUTINELOCATIONS 0
#define XP_MAC 1
#define NSPR20 1
#define _NO_FAST_STRING_INLINES_ 1
#define HAVE_BOOLEAN 1
#define NETSCAPE 1
#define OTUNIXERRORS 1 /* We want OpenTransport error codes */
#define OJI 1
/*
This compiles in heap dumping utilities and other good stuff
for developers -- maybe we only want it in for a special SDK
nspr/java runtime(?):
*/
#define DEVELOPER_DEBUG 1
#define MAX(_a,_b) ((_a) < (_b) ? (_b) : (_a))
#define MIN(_a,_b) ((_a) < (_b) ? (_a) : (_b))

View File

@@ -1,57 +0,0 @@
#!perl
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
#
#
# nglayout build script (debug)
#
use Mac::Processes;
use NGLayoutBuildList;
use Cwd;
use Moz;
# configuration variables
$DEBUG = 1;
$pull{all} = 1;
$pull{lizard} = 0;
$pull{xpcom} = 0;
$pull{imglib} = 0;
$pull{netlib} = 0;
$pull{nglayout} = 0;
$pull{mac} = 0;
if ($pull{all})
{
foreach $k (keys(%pull))
{
$pull{$k} = 1;
}
}
# do the work
# you should not have to edit anything bellow
chdir("::::");
Moz::StopForErrors();
#Moz::DontStopForErrors();
#OpenErrorLog("::NGLayoutBuildLog");
OpenErrorLog("NGLayoutPullLog"); # Tinderbox requires that name
Checkout();

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More