229 Commits

Author SHA1 Message Date
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
scc%netscape.com
180949a473 all the changes are in, time to remove the #undef line so the traits class can do the right thing on platforms that support template specialization
git-svn-id: svn://10.0.0.236/trunk@37508 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-30 01:40:21 +00:00
shaver%netscape.com
364aea910c partial backout of scc's nsCOMPtr, attempting to revive Win32 build
git-svn-id: svn://10.0.0.236/trunk@37486 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-29 22:33:18 +00:00
scc%netscape.com
62fb8f7c1f added logic to test whether QueryInterface was actually required when it is ommitted, |nsISupports::GetIID()| --> |nsCOMTypeInfo<nsISupports>::GetIID()|, changed the scheme by which we compare with zero to a more robust mechanism, modified specialized |CallQueryInterface| to use the global version
git-svn-id: svn://10.0.0.236/trunk@37468 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-29 21:09:59 +00:00
scc%netscape.com
c66394589f do_QueryInterface(NULL, &error) now returns the appropriate error in |error|
git-svn-id: svn://10.0.0.236/trunk@37467 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-29 21:09:56 +00:00
scc%netscape.com
a2d0be4d64 |nsISupports::GetIID()| --> |nsCOMTypeInfo<nsISupports>::GetIID()|
git-svn-id: svn://10.0.0.236/trunk@37444 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-29 21:01:31 +00:00
scc%netscape.com
fd2d046e02 add traits class to solve multiple |GetIID()| problems
git-svn-id: svn://10.0.0.236/trunk@37421 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-29 20:11:57 +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
dp%netscape.com
d862fb2a9b Removing duplicate nsDebug.obj. Thanks to
<david.gardiner@unisa.edu.au> for pointing this out.


git-svn-id: svn://10.0.0.236/trunk@37252 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-28 22:23:04 +00:00
pollmann%netscape.com
d60509b4f9 Adding form submit observer interface for Wallet and Single Signon
git-svn-id: svn://10.0.0.236/trunk@36621 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-23 22:22:35 +00:00
ramiro%netscape.com
b0cc232d87 Add #ifdefs to make sure it only build on supported linux platforms.
git-svn-id: svn://10.0.0.236/trunk@36019 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-21 02:29:17 +00:00
ramiro%netscape.com
43674ab48e Make it work with gnu libc 2.1. On glibc 2.1, the Dl_info api defined in
<dlfcn.h> is only exposed __USE_GNU is defined.  I suppose its some kind of
standards adherence thing.


git-svn-id: svn://10.0.0.236/trunk@35664 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 04:55:36 +00:00
dveditz%netscape.com
6ee73b8ff9 Adding NS_RELEASE_THIS()
git-svn-id: svn://10.0.0.236/trunk@35631 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 03:28:25 +00:00