Commit Graph

477 Commits

Author SHA1 Message Date
warren%netscape.com
e057760aeb Cleaned up, using NS_WITH_SERVICE
git-svn-id: svn://10.0.0.236/trunk@49093 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 10:05:06 +00:00
warren%netscape.com
f074880c8c Took out unused page manager.
git-svn-id: svn://10.0.0.236/trunk@49088 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 07:26:21 +00:00
bienvenu%netscape.com
6fbcbb3bfc fix 14544 pop move msg filters broken r=dougt a=chofman
git-svn-id: svn://10.0.0.236/trunk@48895 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 04:18:00 +00:00
waterson%netscape.com
605693835c #undef CreateDirectory to fix problem where winbase.h #define
CreateDirectory and makes it appear as if nsFileSpec has a
CreateDirectory[A|W] method.


git-svn-id: svn://10.0.0.236/trunk@48487 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 03:09:39 +00:00
dougt%netscape.com
d120266b38 removing const from nsIFile types
git-svn-id: svn://10.0.0.236/trunk@48407 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:48:30 +00:00
warren%netscape.com
3d8d35d25f Fixed warnings.
git-svn-id: svn://10.0.0.236/trunk@48377 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:57:21 +00:00
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
briano%netscape.com
945d83af9f General cleanup.
git-svn-id: svn://10.0.0.236/trunk@48156 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 02:12:56 +00:00
waterson%netscape.com
2c189eebdf Make nsFileSpecMac tough enough to deal with a Unix-style path with two or more forward slashes that are right next to each other; e.g., foo//bar/baz.html. Previously, it would convert this to foo::bar:baz.html, which is the Unix equivalent of foo/../bar/baz.html. Oops. Anyway, this keeps Mac from crashing on startup.
git-svn-id: svn://10.0.0.236/trunk@47943 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 07:03:09 +00:00
dp%netscape.com
9fb585ce8b Adding Set() to configure component directory and registry
git-svn-id: svn://10.0.0.236/trunk@47801 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 19:08:31 +00:00
dougt%netscape.com
f97c6eb22e bug 13396. It looks like the returned byte count was off on certain size
files.


git-svn-id: svn://10.0.0.236/trunk@47603 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 18:24:01 +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
warren%netscape.com
f54f77ad2a Fixed uninitialized return value.
git-svn-id: svn://10.0.0.236/trunk@47323 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 09:33:53 +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
cls%seawood.org
dbbf0c4eef Add -D_POSIX_SOURCE to DEFS to get rid of those useless 'index shadow' warnings. Add either -D_BSD_SOURCE or -D_XOPEN_SOURCE=500 to whichever Makefile.ins need it to accommodate for Posix' strictness. Add check for getopt.h for nsinstall.c.
git-svn-id: svn://10.0.0.236/trunk@47060 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-12 14:25:28 +00:00
rpotts%netscape.com
e472a65ea6 I've commented out this assert since I was hitting it *alot* after a clean build :-(
git-svn-id: svn://10.0.0.236/trunk@47049 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-12 09:00:34 +00:00
warren%netscape.com
65d4baad6d Added assertion for Open failing.
git-svn-id: svn://10.0.0.236/trunk@46993 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-11 23:48:07 +00:00
warren%netscape.com
7192e49585 Disabled the page manager until we have more time to make it work properly.
git-svn-id: svn://10.0.0.236/trunk@46890 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 23:34:12 +00:00
dveditz%netscape.com
f8e3f2c05b hoping this fixes dougt's bustage
git-svn-id: svn://10.0.0.236/trunk@46843 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 20:58:46 +00:00
dougt%netscape.com
4b0f769454 changing GetDiskSpaceAvailable to return a signed 64 bit value
git-svn-id: svn://10.0.0.236/trunk@46835 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 20:03:56 +00:00
duncan%be.com
b62fb98bb5 Fix int64 support in GetDiskSpaceAvailable, BeOS only fix.
git-svn-id: svn://10.0.0.236/trunk@46762 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 12:39:08 +00:00
warren%netscape.com
de60d2685c Removed NS_BASE_STREAM_EOF in favor of returning a count of 0 from Read to indicate EOF. Renamed GetLength to Available. Fixed a number of places where AppendElement's broken error code wasn't checked.
git-svn-id: svn://10.0.0.236/trunk@46637 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-09 22:05:05 +00:00
dougt%netscape.com
82ffcaa48a missed this file.
git-svn-id: svn://10.0.0.236/trunk@46604 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-09 19:43:26 +00:00
dougt%netscape.com
6c0c6d1084 fixing var name
git-svn-id: svn://10.0.0.236/trunk@46601 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-09 19:37:29 +00:00
dougt%netscape.com
66f1984420 nsFileSpec::GetDiskSpace now returns a PRUint64. (12479)
thanks to Chet Murphy <cmurphy@modelworks.com> for the windows code!


git-svn-id: svn://10.0.0.236/trunk@46590 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-09 19:20:35 +00:00
dougt%netscape.com
8d1ff9ee8b Adding buffered output to nsIFileStream.
Renaming nsIFile to nsIOpenFile.
commenting out a testcase in FilesTest.cpp which fails.  evil, i know.


git-svn-id: svn://10.0.0.236/trunk@46395 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-08 20:12:35 +00:00
brendan%mozilla.org
40bece4baa Use deadlock detecting nsAutoMonitors, etc., correctly.
git-svn-id: svn://10.0.0.236/trunk@46127 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-06 19:57:40 +00:00
driehuis%playbeing.org
39e631595e Unbreak the BSD/OS build. sys/mount.h drags in net/radix.h, which happens
to define a symbol called Free. Sigh. Clean up after net/radix.h.


git-svn-id: svn://10.0.0.236/trunk@46038 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-05 00:49:01 +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
bruce%cybersight.com
a5103b136d MacFileHelpers::EncodeMacPath() returns the result of an nsEscape() call, so all callers must nsCRT::free() the result instead of using delete[].
git-svn-id: svn://10.0.0.236/trunk@46013 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-04 17:09:06 +00:00
bruce%cybersight.com
1f08e07e26 Use nsAllocator. Some comments tweaked.
git-svn-id: svn://10.0.0.236/trunk@46010 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-04 16:33:12 +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
duncan%be.com
c725727628 A bunch of things to get the BeOS build to work. Mostly
BeOS specific fixes, except for the change to nsinstall.c
that ignores trailing "/." in the function mkdirs (as
creating a "." dir fails under BeOS).


git-svn-id: svn://10.0.0.236/trunk@45881 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 12:54:05 +00:00
dougt%netscape.com
1e7ceb2732 more changes from conversations with brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@45570 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 23:51:11 +00:00
cata%netscape.com
82b73ce0cc Fixing build warnings. Step 2: switch to use new method from the interface.
git-svn-id: svn://10.0.0.236/trunk@45546 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 22:50:50 +00:00
mscott%netscape.com
36df82089a Bug #9836 --> Unix only fix. When returning the temp directory, don't return /tmp/. Try to return the temp dir
specified by the unix environment variable: TMPDIR. If that variable isn't set, then use /tmp/.
a=sdagley


git-svn-id: svn://10.0.0.236/trunk@45421 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 02:37:55 +00:00
cyeh%netscape.com
c6342ee432 Remove IGNORE_MANIFEST=1. It doesn't do anything and it confuses people.
git-svn-id: svn://10.0.0.236/trunk@45379 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 00:54:34 +00:00
warren%netscape.com
90f71e2680 Made NS_BASE_STREAM_WOULD_BLOCK a failure code (for JS). Reduced socket transport buffer size. Fixed ABBA deadlock when calling OnEmpty in pipe code (bug#12870).
git-svn-id: svn://10.0.0.236/trunk@45357 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-31 21:47:30 +00:00
rjc%netscape.com
a744f7636b For Unix, don't return "." ".." or any file/directory that begins with a "."! Perhaps we should really end up having a preference that determines whether to return these "hidden" items or not.
git-svn-id: svn://10.0.0.236/trunk@45146 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-30 11:40:29 +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
mscott%netscape.com
b80311651e Bug #12638 --> Fix nsPipe2::GetLength to return the number of unread bytes in the pipe. r=warren, a=cyeh
git-svn-id: svn://10.0.0.236/trunk@44853 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-27 19:14:57 +00:00
warren%netscape.com
2b50803a43 Fixed bug that OnEmpty wasn't called. Fixed bug in Search (it would terminate prematurely on eof).
git-svn-id: svn://10.0.0.236/trunk@44803 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-27 10:32:45 +00:00
beard%netscape.com
6e47742ea0 plugged a memory leak in GetCString().
git-svn-id: svn://10.0.0.236/trunk@44715 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-27 03:47:43 +00:00
warren%netscape.com
87fff7df9f Reset cursors on Empty.
git-svn-id: svn://10.0.0.236/trunk@44587 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-26 00:25:43 +00:00
warren%netscape.com
011397fd0d Fixed QI bug that could cause the input stream to be closed too early.
git-svn-id: svn://10.0.0.236/trunk@44586 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-26 00:25:20 +00:00
dougt%netscape.com
2074d0de9b more changes based on feedback.
git-svn-id: svn://10.0.0.236/trunk@44463 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 06:11:14 +00:00
brendan%mozilla.org
d87f3f7b04 Massive spankage to capitalize C++ method and attribute name bindings, per
Architecture Item 6.3 (news://news.mozilla.org/37BA89CF.3823D6F9%40meer.net).


git-svn-id: svn://10.0.0.236/trunk@44456 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 05:26:25 +00:00