64 Commits

Author SHA1 Message Date
mccabe%netscape.com
69a8cf7c7b Fix to 7610. Modify xpidl compiler to add 'const' to the method signature for generated attribute setter methods for string, wstring and nsid attributes.
As this changed the generated interface signatures, I had to change all of the uses to avoid bustage.  Any corners of the browser that aren't built by default, or that I haven't discovered how to build, may be at risk of bustage if they use string or wstring attributes.  (This could mean blackwood; sorry, guys!)

Many thanks to Alec Flett (alecf@netscape.com) for preparing diffs for the mailnews portion of the signature changes; thanks also to Ariel Backenroth (arielb@rice.edu) and Mike Shaver (shaver@mozilla.org) for help with updating the tree with NS_DECL_NSIFOO macros; everwhere where one of these macros was used was one less place I had to manually add 'const'.

Also removed extraneous space from generated method signatures, leftover from Brendan's capitalization spam, and made 'const decl must be of type short or long' an error rather than just a warning.


git-svn-id: svn://10.0.0.236/trunk@48284 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 23:46:35 +00:00
cls%seawood.org
696bbb41fa Reverting changes accidentally checked in
git-svn-id: svn://10.0.0.236/trunk@47537 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 05:28:31 +00:00
cls%seawood.org
46df8144ee Add -D_BSD_SOURCE or -D_XOPEN_SOURCE=500 as appropriate with __STRICT_ANSI__ defined in <prinet.h>
git-svn-id: svn://10.0.0.236/trunk@47097 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-13 05:09:53 +00:00
bruce%cybersight.com
3a6ad64e5e Use nsCRT::free() on result of nsEscape() instead of delete[].
git-svn-id: svn://10.0.0.236/trunk@46014 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-04 17:10:10 +00:00
shaver%netscape.com
aff923d924 add IsChildOf, and dougt's relative-path-handling diff
git-svn-id: svn://10.0.0.236/trunk@45975 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 23:44:59 +00:00
bruce%cybersight.com
eeddabfab0 Fix build bustage. Thanks waterson! Sorry about that.
git-svn-id: svn://10.0.0.236/trunk@45102 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-30 01:06:54 +00:00
bruce%cybersight.com
ad237541df Fix warning from my last checkin.
git-svn-id: svn://10.0.0.236/trunk@45101 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-30 00:51:56 +00:00
bruce%cybersight.com
d14a97c695 Change deallocation for nsAutoCString to use nsAllocator. This removes several thousand FMM errors in Purify.
git-svn-id: svn://10.0.0.236/trunk@45098 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-30 00:32:27 +00:00
shaver%netscape.com
b6754876bd make sure that /path/to/dir and /path/to/dir/ are treated as equal
git-svn-id: svn://10.0.0.236/trunk@45082 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-29 22:05:11 +00:00
dp%netscape.com
762dbcae6c Fixed
- Mismatched alloc/free
- Guarded against null pointer and crash bug#8830


git-svn-id: svn://10.0.0.236/trunk@38872 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-09 03:41:27 +00:00
mcafee%netscape.com
b366c7e0ba BeOS changes
git-svn-id: svn://10.0.0.236/trunk@37402 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-29 10:27:58 +00:00
mcmullen%netscape.com
242ec9344f Fix to #6398 using patch provided by jim_nance@yahoo.com (who does, apparently, yahoo).
git-svn-id: svn://10.0.0.236/trunk@33466 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 01:40:47 +00:00
dp%netscape.com
befa259a88 Landing xpcom20/21 branch.
git-svn-id: svn://10.0.0.236/trunk@32644 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 01:38:36 +00:00
mcmullen%netscape.com
bf928cd741 Fix badness when nsFilePath is initialized with a nil or empty string.
git-svn-id: svn://10.0.0.236/trunk@31310 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-12 22:56:24 +00:00
mcmullen%netscape.com
3ac0828129 Fix nsFileSpec to take native paths in constructors and assignment operators. Fix += to work with relative paths on Macintosh. Remove dependency of nsFileSpec on streams (so that dp can move nsFileSpec).
git-svn-id: svn://10.0.0.236/trunk@30800 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 01:18:23 +00:00
mcmullen%netscape.com
1e656b6d41 So much for that last touchup between building and committing...
git-svn-id: svn://10.0.0.236/trunk@30163 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:39:15 +00:00
mcmullen%netscape.com
a5c98aa5e2 Fix double-escaping problem (#4184)
git-svn-id: svn://10.0.0.236/trunk@30145 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 19:11:31 +00:00
mcmullen%netscape.com
7466c2717c Leakage and mismatch of allocate/free methods (patches submitted by Bruce Mitchener). Bug #5140.
git-svn-id: svn://10.0.0.236/trunk@29215 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-26 19:05:00 +00:00
mcmullen%netscape.com
fd9ab4313a Bug #4184. Before unescaping a path, call ReAllocData.
git-svn-id: svn://10.0.0.236/trunk@28946 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-23 21:32:57 +00:00
mcmullen%netscape.com
5b4a261d6f Corrected spelling in some comments.
git-svn-id: svn://10.0.0.236/trunk@28939 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-23 20:27:38 +00:00
dougt%netscape.com
df7ef34c00 Fixes Bug 5300 http://bugzilla.mozilla.org/show_bug.cgi?id=5300
git-svn-id: svn://10.0.0.236/trunk@28804 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-23 06:32:40 +00:00
mcmullen%netscape.com
7a5c8880e7 Correct a problem my last change to GetParent() introduced.
git-svn-id: svn://10.0.0.236/trunk@28281 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-20 19:09:22 +00:00
dougt%netscape.com
9be6e244a8 Now using PL_* functions in nsprPath()
ifdef'ing the deallocation of nsprPath()


git-svn-id: svn://10.0.0.236/trunk@27582 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-15 19:39:23 +00:00
mcmullen%netscape.com
e753d5b229 Fix backwards failure logic
git-svn-id: svn://10.0.0.236/trunk@27494 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-15 01:06:03 +00:00
bruce%cybersight.com
833f04ec8d Adding blank lines for native compilers.
git-svn-id: svn://10.0.0.236/trunk@27317 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-13 06:35:42 +00:00
dougt%netscape.com
88d01b020a Adding nsprPath class.
Removing existing check when creating subdirectories.


git-svn-id: svn://10.0.0.236/trunk@26903 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-10 00:29:20 +00:00
rickg%netscape.com
15e7886623 API cleanup for nsString
git-svn-id: svn://10.0.0.236/trunk@26288 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-05 08:06:54 +00:00
mcmullen%netscape.com
68c7ea92c4 Just added a divider comment.
git-svn-id: svn://10.0.0.236/trunk@25909 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-01 20:07:52 +00:00
dougt%netscape.com
39b5906dc3 Fixes off by one error.
git-svn-id: svn://10.0.0.236/trunk@25670 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-31 05:04:28 +00:00
bienvenu%netscape.com
6a77c85f36 fix problem with SetLeafName r+a=mcmullen
git-svn-id: svn://10.0.0.236/trunk@24676 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-22 19:15:30 +00:00
mcmullen%netscape.com
9f6d4d0fcd FIxing another unix problem.
git-svn-id: svn://10.0.0.236/trunk@24522 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-20 01:13:35 +00:00
mcmullen%netscape.com
a2a3982ee7 Bugs #3997, 3934
git-svn-id: svn://10.0.0.236/trunk@24495 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-19 23:09:39 +00:00
mcmullen%netscape.com
0e8563520b Fixes for bugs #3779,#2784. Member initialization of nsFileURL for windows compiler, escaping of url when made from path or spec, add file:// on macintosh when making a url from a spec. [bugs introduced when, for dp, I changed nsFilePath not to escape]. a=chofmann.
git-svn-id: svn://10.0.0.236/trunk@24214 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-16 19:12:51 +00:00
mcmullen%netscape.com
de8fc99c4f Upgrades, bugfixes (including nsFilePath no longer hex escaped). Features (including DiskSpaceAvailable)
git-svn-id: svn://10.0.0.236/trunk@24058 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-13 06:38:57 +00:00
mcmullen%netscape.com
6a5c89fa74 Fixed bustage with typo.
git-svn-id: svn://10.0.0.236/trunk@23576 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-10 21:41:43 +00:00
mcmullen%netscape.com
bdbf667fac Added GetModDate and GetFileSize. Fixed a crash with a strcmp of null.
git-svn-id: svn://10.0.0.236/trunk@23564 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-10 21:02:58 +00:00
dougt%netscape.com
d643c0b6d4 No longer shifting windows nsFileSpec's mPath to uppercase.
Now comparing without regard to case instead on windows.
Windows nsSpecialSystemDirectory will have all uppercase mPaths.


git-svn-id: svn://10.0.0.236/trunk@23552 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-10 20:07:10 +00:00
mcmullen%netscape.com
5d582ac9c0 Change assignment operator not to create dirs.
git-svn-id: svn://10.0.0.236/trunk@23466 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-10 02:50:16 +00:00
mcmullen%netscape.com
2b21b06cb7 Turning on dougt's special system directory stuff, and adding it to the Macintosh build. Fixed spurious leading slash on getting leaf name (win and unix). Adding dougt's equality test operator, too. Adding dougt's test code for all the above.
git-svn-id: svn://10.0.0.236/trunk@23385 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-09 22:33:36 +00:00
dougt%netscape.com
96bdde7c31 adding nsSpecialSystemDirectory.cpp to windows makefile.
Fixed MakeAllDirectory bug in nsFileSpec.cpp


git-svn-id: svn://10.0.0.236/trunk@22921 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-05 20:20:22 +00:00
alecf%netscape.com
2a1e455f1f fix linux -pedantic build - compiler confused by too much casting
git-svn-id: svn://10.0.0.236/trunk@22499 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-02 01:41:45 +00:00
mcmullen%netscape.com
9436817838 Fix Windows build errors
git-svn-id: svn://10.0.0.236/trunk@22387 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-28 02:51:53 +00:00
mcmullen%netscape.com
0a2a335945 Fix unix build errors
git-svn-id: svn://10.0.0.236/trunk@22386 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-28 02:17:55 +00:00
mcmullen%netscape.com
9e4dad31a3 Fix seek again so it resets eof. Allow ns*FileStream stack-based classes to be closed explicitly. Fix refcounting. Remove "close on destroy" kludge.
git-svn-id: svn://10.0.0.236/trunk@22383 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-28 01:36:48 +00:00
dougt%netscape.com
5c3d475c6d Remove #ifdef DEBUG
git-svn-id: svn://10.0.0.236/trunk@21990 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-26 00:14:57 +00:00
dougt%netscape.com
f3f6d856e0 Another fix to the build bustage.
git-svn-id: svn://10.0.0.236/trunk@21980 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-25 22:17:25 +00:00
dougt%netscape.com
a28665a754 This should make the tree go green. It, however, makes nsPersistentFileDescriptor broken if you pass an fsspec.
git-svn-id: svn://10.0.0.236/trunk@21979 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-25 22:04:50 +00:00
dougt%netscape.com
451b4db4af Merging branch BASE_19_FEB_99 to tip. These are extensive changes
to nsFileSpec and and nsFileStream.  See dougt@netscape.com or
John McMullen for futher information.


git-svn-id: svn://10.0.0.236/trunk@21977 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-25 20:49:47 +00:00
mscott%netscape.com
d86e09b16b Implement operator= for nsFilePath when given an nsFilePath. a=mcmullen...
git-svn-id: svn://10.0.0.236/trunk@21556 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-23 03:10:29 +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