241 Commits

Author SHA1 Message Date
tbogard%aol.net
2957e9ac6e Fixed NS_ENSURE macros to use PR_BEGIN_MACRO and PR_END_MACRO. Also removed indentation before #.
git-svn-id: svn://10.0.0.236/trunk@44203 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 00:48:43 +00:00
scc%netscape.com
56d5ad0b43 got rid of |NS_IMPL_ISUPPORTS|, where possible, in favor of |NS_IMPL_ISUPPORTS0| or ...1 according to the specific use; got rid of |NS_DEFINE_IID| where possible, or where it should have been |NS_DEFINE_CID|; fixed bad implementations of |QueryInterface|, where possible. Built, tested apprunner, reviewed the changes with hyatt (since he was around to look) before checking in
git-svn-id: svn://10.0.0.236/trunk@44139 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 10:14:16 +00:00
scc%netscape.com
8850ce2142 fixed tabs
git-svn-id: svn://10.0.0.236/trunk@44138 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 10:07:16 +00:00
mccabe%netscape.com
f54a574f03 Replace manual method declarations in implementations of xpcom/ interfaces with NS_DECL_NSIFOO.
git-svn-id: svn://10.0.0.236/trunk@44056 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 11:25:50 +00:00
scc%netscape.com
3d123a8048 fixed ambiguous static cast in the NS_IMPL_QUERYINTERFACE2 case
git-svn-id: svn://10.0.0.236/trunk@44029 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 22:33:15 +00:00
jband%netscape.com
619c3e3df4 fix bustage due to ambiguity in use of static_cast
git-svn-id: svn://10.0.0.236/trunk@44027 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 22:03:39 +00:00
scc%netscape.com
256b8039a8 Bad merge left two copies of ...QUERYINTERFACE2. Sorry.
git-svn-id: svn://10.0.0.236/trunk@44023 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 20:39:59 +00:00
scc%netscape.com
70e5060219 Added NS_IMPL_QUERY_INTERFACE[01]; fixed NS_IMPL_QUERY_INTERFACE2; added NS_IMPL_ISUPPORTS[01]; can't fix NS_IMPL_QUERY_INTERFACE without changing a ton of files, so I'm checking in this partial fix first. Then people can help me switch us away from NS_IMPL_ISUPPORTS and NS_IMPL_QUERY_INTERFACE. Both are now deprecated.
git-svn-id: svn://10.0.0.236/trunk@44019 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 20:22:35 +00:00
scc%netscape.com
3d825c25a3 added license, fixed tabs
git-svn-id: svn://10.0.0.236/trunk@44016 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 20:07:27 +00:00
scc%netscape.com
ef87d21e39 added comments, fixed tabs
git-svn-id: svn://10.0.0.236/trunk@44015 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 20:06:52 +00:00
tbogard%aol.net
a74ab35457 XPCOM Cleanup: Fixed Aggregation macros in nsAgg.h to do aggregation correctly. Fixed usages and implementation of aggregation using these macros through out the tree.
git-svn-id: svn://10.0.0.236/trunk@43556 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 05:36:30 +00:00
tbogard%aol.net
591757e319 XPCOM Cleanup: Added macros to make checking arguments and state upon entering interface boundaries easier.
git-svn-id: svn://10.0.0.236/trunk@43555 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 05:32:15 +00:00
jband%netscape.com
4f057bd673 reserving NS_ERROR_MODULE_XPCONNECT
git-svn-id: svn://10.0.0.236/trunk@43442 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 02:08:26 +00:00
scc%netscape.com
c108d9dde2 renamed to QueryReferent, do_QueryReferent, etc.
git-svn-id: svn://10.0.0.236/trunk@43314 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 23:00:58 +00:00
danm%netscape.com
c35f4b3264 fix WeakReference exporting for Windows. a:chofmann r:scc.
git-svn-id: svn://10.0.0.236/trunk@43203 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 23:48:08 +00:00
warren%netscape.com
e2ab5c6f7e Removed useless nsIServiceManager.h
git-svn-id: svn://10.0.0.236/trunk@43180 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 08:13:52 +00:00
danm%netscape.com
35017bab4b synch declaration of NS_GetWeakReference with its implementation
git-svn-id: svn://10.0.0.236/trunk@43173 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 06:14:05 +00:00
warren%netscape.com
13be55fe4c Added GetGlobalAllocator.
git-svn-id: svn://10.0.0.236/trunk@43009 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 19:54:17 +00:00
dougt%netscape.com
1edf22a05f Commenting why I am using direct error codes rather than the module base with
and offset.


git-svn-id: svn://10.0.0.236/trunk@42987 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 18:19:57 +00:00
cls%seawood.org
6a502d3b0e Various fixes to let the tree compile with gcc 2.95:
String constants are now (const char *)s and must be explicitly cast to (char *).
operator new is expected to be empty or throw an expection instead of returning null. (ifdef'd for gcc 2.95+)
Stricter checks on register clobbering in embedded asm. (at least I think that's what it is)
Expects the main function to return int, not something similiar to it like PRInt32.

Still requires a tweak to remove -mno-486 from NSPR's *.mk files.


git-svn-id: svn://10.0.0.236/trunk@42646 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 06:01:31 +00:00
sspitzer%netscape.com
50ef97bffc fix warnings
git-svn-id: svn://10.0.0.236/trunk@42311 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 19:47:10 +00:00
jband%netscape.com
ba9ea18c13 adding PRUnichar as a type we can talk about in idl
git-svn-id: svn://10.0.0.236/trunk@42122 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 06:53:48 +00:00
vidur%netscape.com
82a8c8a756 Reserved IID for nsIDOMNSLocation
git-svn-id: svn://10.0.0.236/trunk@42058 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 23:17:16 +00:00
troy%netscape.com
f4302a9e0c Reserved IID for nsIFrameManager
git-svn-id: svn://10.0.0.236/trunk@42039 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 22:35:42 +00:00
scc%netscape.com
8a2956c416 experiment: I don't think it like the forward declaration
git-svn-id: svn://10.0.0.236/trunk@41968 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 10:44:12 +00:00
scc%netscape.com
80b34575a6 well, now it needs to include nsCOMPtr, since the header doesn't anymore
git-svn-id: svn://10.0.0.236/trunk@41967 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 08:34:17 +00:00
scc%netscape.com
b771e48bf1 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@41966 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 08:30:05 +00:00
scc%netscape.com
c796513d70 Moved the typedef to its own file: "nsWeakPtr.h". This avoids the circular includes problem and lets people #include just "nsWeakPtr.h" when they want an |nsWeakPtr|.
git-svn-id: svn://10.0.0.236/trunk@41965 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 08:15:31 +00:00
scc%netscape.com
ce7de850a7 OK, now only nsCOMPtr.h includes nsIWeakReference, and not the other way around. I'll probably have to make a header file just to contain the one-line typedef I moved.
git-svn-id: svn://10.0.0.236/trunk@41964 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 08:10:08 +00:00
scc%netscape.com
c17c627e25 Well, not everybody could do it just from the forward declared class. Yes, nsCOMPtr.h and nsIWeakReference.h include eachother, but it works anyway (they test for already being included).
git-svn-id: svn://10.0.0.236/trunk@41963 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 07:44:53 +00:00
scc%netscape.com
2e57a4c5d6 Added |do_QueryReference| for initializing/assigning from |nsWeakPtr|s. Also some fixes.
git-svn-id: svn://10.0.0.236/trunk@41960 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 07:21:39 +00:00
scc%netscape.com
894a6bb8cd Added nsWeakReference.h, .cpp in the appropriate places
git-svn-id: svn://10.0.0.236/trunk@41959 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 07:20:37 +00:00
scc%netscape.com
9f1efce3fd getting ready to build
git-svn-id: svn://10.0.0.236/trunk@41944 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 04:59:47 +00:00
scc%netscape.com
7213de2371 Added nsIWeakReference.idl
git-svn-id: svn://10.0.0.236/trunk@41939 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 03:48:04 +00:00
scc%netscape.com
abcca60995 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@41938 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 03:41:27 +00:00
duncan%be.com
77cf1f5a76 Cut down on the number of warnings in the BeOS build, HAVE_CPP_NEW_CASTS
is also defined in config-defs.h, like on XP_UNIX.
mcafee@netscape.com checked.


git-svn-id: svn://10.0.0.236/trunk@41326 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-27 21:22:56 +00:00
jband%netscape.com
c8367e70cd differentiate between Win32 x86 and NT Alpha for a few low level debug activities. From bob meader <bob@guiduck.com>
git-svn-id: svn://10.0.0.236/trunk@41012 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-24 22:00:00 +00:00
scc%netscape.com
0f698b683b Allow explicit disabling of |...TEST_DONTQUERY_CASES| and |...DEBUG_PTR_TYPES| on the command-line for problematic compilers like QNX et al. This allows me to fix the QNX build, and provide an answer to some people compiling with the Sun Workshop.
git-svn-id: svn://10.0.0.236/trunk@40696 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-22 21:09:49 +00:00
scc%netscape.com
547fe93c5a switching back to the stricter declaration of |nsDerivedSafe<T>::operator=()|. Since I removed |nsISupportsArray::operator=()|, all should be well. I left the old declaration in but commented out, just in case. I hope I don't have to conditionalize this wth an autoconf test. I've built this (with the help of several other people including mjudge, waqar, slamm, et al) on as many other platforms as I could. This declaration is intended to stop people from declaring an |operator=()| in their (XP)COM interface classes.
git-svn-id: svn://10.0.0.236/trunk@40688 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-22 20:03:42 +00:00
ramiro%netscape.com
be8479149c Landing timer move on windows.
git-svn-id: svn://10.0.0.236/trunk@39882 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-17 15:52:01 +00:00
brendan%mozilla.org
9fe426a54c - Fix possessive "its" misspelled as "it's".
- Use if statements rather than ?: with 0 "else part" after the : in macros
  whose bodies are statements anyway (and already protected by PR_BEGIN_MACRO
  and PR_END_MACRO).
- Such if statements test for non-null pointers, so the subsequent statements
  to null those pointers can move into the then parts -- there's no point in
  setting a null pointer to null again.


git-svn-id: svn://10.0.0.236/trunk@39842 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-17 03:32:39 +00:00
dougt%netscape.com
a061bba191 Fixing Bug 9976.
git-svn-id: svn://10.0.0.236/trunk@39719 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-16 18:15:14 +00:00
ramiro%netscape.com
2d4d9b6dc4 Add NS_TIMER import/export macros.
git-svn-id: svn://10.0.0.236/trunk@39712 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-16 17:48:12 +00:00
warren%netscape.com
84a03567fa Big changes for Necko load groups. Things are much happier now. Now images work (on pages, but not in chrome).
git-svn-id: svn://10.0.0.236/trunk@39678 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-16 11:14:36 +00:00
mccabe%netscape.com
61999b029b Remove vestiges of XPIDL_JS_STUBS (no longer used or implemented by xpidl-generated files.)
git-svn-id: svn://10.0.0.236/trunk@39610 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-16 01:20:03 +00:00
scc%netscape.com
10c019611e new feature lets you `see past' |nsISupports| in |nsCOMPtr|s. Now in the debugger (in debug versions only) you will see the actual type of the object. This is enabled by defining the preprocessor symbol |NSCAP_FEATURE_DEBUG_PTR_TYPES|. It cannot be turned on in non-debug builds. It is currently on in debug builds by default. It may become a feature that has to be enabled with a build command line switch.
NSCAP_FEATURE_ALLOW_RAW_POINTERS is now always the case and no longer optional; NSCAP_FEATURE_ALLOW_COMPARISONS is now always the case and no longer optional; cleaned up the previous definition and invocations of the |Assert_NoQueryNeeded| test.


git-svn-id: svn://10.0.0.236/trunk@39508 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-15 03:59:09 +00:00
scc%netscape.com
87179b94e7 switched over to _not_ using |__comobject|. Adjusted assembly to skip extra vtable header, and fixed inheritance in |nsISupports|
git-svn-id: svn://10.0.0.236/trunk@39496 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-15 03:02:01 +00:00
ramiro%netscape.com
9a0b13499f Checkin another chunk of Alex Larsson's non-exported symbol reduction
patch.  All changes protected by  MOZ_STRIP_NOT_EXPORTED.
These particular changes set the NS_EXPORT declarations as needed by
the linker.


git-svn-id: svn://10.0.0.236/trunk@38670 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-07 09:02:21 +00:00
mscott%netscape.com
24936d5848 Rewrite NS_IMPL_THREADSAFE_ADDREF and NS_IMPL_THREADSAFE_RELEASE in cross platform way instead of having separate
implementations for windows and everyone else. They are now written to use PR_AtomicIncrement and PR_AtomicDecrement.
this meant adding #include "pratom.h".

A side effect of this change is that no one needs to include "windows.h" in .cpp files which were implementing threadsafe
interfaces. You used to have to do this before with the old implementations.


git-svn-id: svn://10.0.0.236/trunk@38130 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-02 20:18:20 +00:00
jband%netscape.com
09ad481b2b quick fix for bug 9250 - assert on startup
git-svn-id: svn://10.0.0.236/trunk@37520 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-30 07:13:26 +00:00