Compare commits

..

1146 Commits

Author SHA1 Message Date
(no author)
ebc1a5bd97 This commit was manufactured by cvs2svn to create branch 'sonmi-greentree'.
git-svn-id: svn://10.0.0.236/branches/sonmi-greentree@102641 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-10 11:50:12 +00:00
kaie%netscape.com
844e15ee2e b=96018 r=jag
Fix wrong attribute name introduced by checkin on Friday


git-svn-id: svn://10.0.0.236/trunk@102640 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-10 11:50:11 +00:00
mcafee%netscape.com
07ffa554fe po/ChangeLog hack, for gettext bug
git-svn-id: svn://10.0.0.236/trunk@102639 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-10 09:07:29 +00:00
ben%netscape.com
17f0c9d48f Add some more code to the prototype resizable popup binding. Not complete yet, but unused.
Part of fix for 95401 - implement resizable popups.
r=jag, sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@102638 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-10 07:35:56 +00:00
ben%netscape.com
cbf8597d4f Add implementation for MoveTo method to nsMenuPopupFrame (exposed through nsIPopupBoxObject), etc.
Also change static mDismissalListener to sDismissalListener.
Part of fix for 95401
r=jag, sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@102637 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-10 07:34:54 +00:00
ben%netscape.com
558801a6ac Add |sizeTo| and |moveTo| methods to nsIPopupBoxObject, allow popups to have their automatic rollup, keyboard navigator and auto positioning functionality disabled.
Part of fix for 95401.
r=jag, sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@102636 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-10 07:33:33 +00:00
ben%netscape.com
15f9cf3f0e Add implementation for left, top, persist, ref, and datasources attributes on nsIDOMXULElement per XUL1.0 spec.
Part of fix for 95401 - implement resizable popups.
r=jag, sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@102635 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-10 07:32:20 +00:00
ben%netscape.com
8e75312333 Add left, top, persist, ref, and datasources attributes to nsIDOMXULElement per XUL1.0 spec.
Part of fix for 95401 - implement resizable popups.
r=jag, sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@102634 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-10 07:31:38 +00:00
leaf%mozilla.org
9026810a2f Automated update
git-svn-id: svn://10.0.0.236/trunk@102633 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-10 05:28:42 +00:00
cls%seawood.org
373451a083 Install LDAP headers into seperate ldap include dir.
Bug #98924 r=dmose


git-svn-id: svn://10.0.0.236/trunk@102632 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-10 05:17:41 +00:00
leaf%mozilla.org
53e59756d4 Automated update
git-svn-id: svn://10.0.0.236/trunk@102631 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-10 05:13:43 +00:00
cls%seawood.org
85334dd439 If building for 64bit target, pass --enable-64bit to NSPR as it does not do 64bit-autodetection. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@102630 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-10 04:58:38 +00:00
dougt%netscape.com
81ae60cfe7 fixes 98735. r=adamlock, sr=rpotts. Basic problem is that the first argument of NS_InitXPCOM2 was not returning an nsIServiceManager
git-svn-id: svn://10.0.0.236/trunk@102628 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-10 04:28:37 +00:00
mcafee%netscape.com
ad12d36dff Fixing some logic errors
git-svn-id: svn://10.0.0.236/trunk@102627 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-10 03:27:27 +00:00
jaggernaut%netscape.com
a86e757d5f Add "exthandler" and "mimetype" to REQUIRES line for dependency tracking builds.
git-svn-id: svn://10.0.0.236/trunk@102626 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-10 02:07:52 +00:00
oeschger%netscape.com
1f5fa2a738 adding help key for content updates, a=asa, bug=85925, r=cotter
git-svn-id: svn://10.0.0.236/trunk@102625 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-10 00:55:46 +00:00
darin%netscape.com
29bd0e8f8d backing out patch for bug 97528 due to regression/smoketest-blocker bug 98838.
git-svn-id: svn://10.0.0.236/trunk@102624 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-10 00:42:50 +00:00
ian%hixie.ch
d8bb2290c9 First stab at an e-mail output service. Also added support for checking addresses for validity and used that when creating a new account.
git-svn-id: svn://10.0.0.236/trunk@102623 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-09 21:02:33 +00:00
jfrancis%netscape.com
c52350e6b5 fixes 98543: backspace/delete was crossing table structure boundaries. Also fixed other flavors of this bug that had not been discovered yet.
r=fm; sr=kin


git-svn-id: svn://10.0.0.236/trunk@102622 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-09 20:57:46 +00:00
zach%zachlipton.com
ca5d6d78c2 Oops. Forgot to check this is.
git-svn-id: svn://10.0.0.236/trunk@102621 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-09 19:48:15 +00:00
ian%hixie.ch
f2c4a72d49 Reduced the ErrorContext from 2 to 1. 2 is too much.
git-svn-id: svn://10.0.0.236/trunk@102620 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-09 19:48:14 +00:00
ian%hixie.ch
e4abc2ef8a corrected a comment, corrected the spelling of a method call, and added a placeholder in 'login.failed' which will eventually have to be replaced by code which finds the list of contact methods.
git-svn-id: svn://10.0.0.236/trunk@102619 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-09 19:47:04 +00:00
ian%hixie.ch
447d63ebe4 Added ErrorContext to the Expat arguments so that well formedness errors are easier to track down.
git-svn-id: svn://10.0.0.236/trunk@102618 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-09 19:38:24 +00:00
ian%hixie.ch
06727db199 Corrected and improved some comments.
Corrected a problem with scope and the 'escape' attribute of <text> elements.
Renamed 'shrink' and 'expand' to the slightly more accurate 'flatten' and 'rounden'. (ahem)
Changed the ordering of symbol unescaping in roundening to be less (not?) susceptible to incorrect expansion.
Changed the ordering of symbol escaping in flattening to be consistent with the unescape order when roundening.
Made <text> trim one leading and one trailing newline in text nodes if xml:space="default" (makes COSES files neater).
Added a 'coses: original keys' hash to values whose keys are sanitised
Made the 'escape' values be lower case instead of upper case (makes COSES files neater).


git-svn-id: svn://10.0.0.236/trunk@102617 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-09 19:36:23 +00:00
ian%hixie.ch
bf75d78321 Corrected the SQL for 'SHOW COLUMNS FROM' so that it actually works...
git-svn-id: svn://10.0.0.236/trunk@102616 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-09 19:21:17 +00:00
ian%hixie.ch
67dc277de0 Added a string data source which gets the strings from a file instead of from the database, useful as a fallback.
git-svn-id: svn://10.0.0.236/trunk@102615 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-09 19:19:05 +00:00
ian%hixie.ch
8c9220bbac Made the error message printed when no string expander can be found more explicit (it now mentions the name and type of the string).
git-svn-id: svn://10.0.0.236/trunk@102614 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-09 19:08:58 +00:00
ian%hixie.ch
37f35ccfe7 Added a comment clarification.
git-svn-id: svn://10.0.0.236/trunk@102613 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-09 19:06:13 +00:00
ian%hixie.ch
d14ad445fd Changed the magic piping array so that it is more consistent by removing the special casing of when there is only one return value.
git-svn-id: svn://10.0.0.236/trunk@102612 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-09 19:04:37 +00:00
ian%hixie.ch
03f038f0c1 Added the message level number to the debug output to help gauge what level is useful.
git-svn-id: svn://10.0.0.236/trunk@102611 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-09 17:55:21 +00:00
ian%hixie.ch
c6af0b8abd Added header and stylistic note.
Clarified some of the text.
Made the use of quotes more consistent.
Wrote Chapter 5, "USING GET SERVICE".
Added an empty Chapter 10, "THE SERVICE REFERENCE".


git-svn-id: svn://10.0.0.236/trunk@102610 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-09 17:48:07 +00:00
sicking%bigfoot.com
f9ef17c1ea Fix bustage. gcc dosn't like function-results used as non-const argument.
git-svn-id: svn://10.0.0.236/trunk@102609 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-09 17:02:15 +00:00
sicking%bigfoot.com
6cafa71f04 Implement xsl:import. This dosn't implement any import precedence but gives us the infrastructure to do so.
b=78068 r=peterv sr=shaver


git-svn-id: svn://10.0.0.236/trunk@102608 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-09 16:09:57 +00:00
bernd.mielke%snafu.de
485411b457 Adding xhtml table testfiles to the regression tests not part of the build
git-svn-id: svn://10.0.0.236/trunk@102607 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-09 14:27:52 +00:00
jaggernaut%netscape.com
a1b3647d73 Bug 73353: clean up REQUIRES. r=cls
git-svn-id: svn://10.0.0.236/trunk@102606 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-09 13:36:07 +00:00
cls%seawood.org
3268fb198e Set MODULE so that headers are grouped properly.
git-svn-id: svn://10.0.0.236/trunk@102604 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-09 07:43:48 +00:00
jaggernaut%netscape.com
f6fb205f3f Bug 97328: switch XPIDL from nsAReadableString (and nsAWritableString) to const nsAString. r=cls, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@102603 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-09 07:17:17 +00:00
mkaply%us.ibm.com
eee9fc790b #98387
OS/2 only
Use getopt from mac LDAP so we can get rid of GPLed code


git-svn-id: svn://10.0.0.236/trunk@102601 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 22:37:24 +00:00
mcafee%netscape.com
0a62606bf3 Backing out my change to avoid pulling by date on branches, my assertion that this didn't work was incorrect. thanks to cls for figuring this out.
git-svn-id: svn://10.0.0.236/trunk@102600 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 22:31:24 +00:00
dp%netscape.com
ad73acbae3 Fixing build bustage.
git-svn-id: svn://10.0.0.236/trunk@102599 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 22:01:22 +00:00
bzbarsky%mit.edu
198ed50ec9 Bug 98663. Make Presshell not call InsertRule() on strings that contain
multiple rules.  r=dbaron, sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@102598 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 21:42:02 +00:00
cls%seawood.org
3ca2a3f334 Set MOZILLA_FIVE_HOME to use $binary dir on each loop
git-svn-id: svn://10.0.0.236/trunk@102597 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 21:37:06 +00:00
dp%netscape.com
eb731f9c5d bug# 98786 Eliminating url cloning r=gagan,sr=jst
git-svn-id: svn://10.0.0.236/trunk@102596 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 21:13:20 +00:00
attinasi%netscape.com
e2f7d9afcc Tweaked the existing CalcQuirkContainingBlockHeight method to allows for percentage based elements in deeply nested blocks, instead of just elements that are directly in the BODY. b=85016 r=karnaze sr=waterson
git-svn-id: svn://10.0.0.236/trunk@102595 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 20:09:08 +00:00
attinasi%netscape.com
82570cc02b Fix for image wrapping problems in table cells. b=97619 r=bernd sr=waterson
git-svn-id: svn://10.0.0.236/trunk@102594 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 19:26:34 +00:00
cls%seawood.org
25625e84ea Replace cat<<EOF with echos to avoid potential security risk with predictable /tmp files.
Thanks to Ashu Kulkarni <ashuk@eng.sun.com> for the patch.
Bug #98723 r=cls a=blizzard


git-svn-id: svn://10.0.0.236/trunk@102593 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 19:16:27 +00:00
pschwartau%netscape.com
f12f5af680 Trivial change to comment and whitespace.
git-svn-id: svn://10.0.0.236/trunk@102592 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 18:58:40 +00:00
dbaron%fas.harvard.edu
e59c2701d9 Make forward-compatible the DOCTYPE handling for determining whether to be in quirks mode or strict mode: properly parse the DOCTYPE declaration and use a list of known public identifiers that should trigger quirks. Remove some remnants of modes that no longer exist. b=55264 r=harishd sr=vidur
git-svn-id: svn://10.0.0.236/trunk@102591 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 18:37:19 +00:00
dbaron%fas.harvard.edu
0998d9523b Move trace-malloc readers from mozilla/xpcom/base/ to mozilla/tools/trace-malloc/. Add a --shutdown-leaks option to nsTraceMalloc to dump, to the file given as an argument to the option, information about allocations still live at shutdown. Add a new trace-malloc reader (leakstats.c) to print leak statistics. b=84831 r=jag sr=brendan
git-svn-id: svn://10.0.0.236/trunk@102590 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 18:29:24 +00:00
aaronl%netscape.com
7df41cc87e Reversing 82207 patch - mac problems.
git-svn-id: svn://10.0.0.236/trunk@102589 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 17:05:09 +00:00
aaronl%netscape.com
d45d392f62 Bug 82207. XUL Checkbox working with MSAA. r=jgaunt, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@102588 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 16:22:09 +00:00
andreas.otte%primus-online.de
306f3914a2 fix bug 94796 [code cleanup in nsURLHelper.cpp] remove nsURLEscape/nsURLUnescape from nsURLHelper and replace all usage with nsStdEscape/nsStdUnescape, r=ccarlen@netscape.com, sr=dougt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@102586 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 12:47:05 +00:00
cls%seawood.org
15b3554227 AIX linker requires that all symbols be resolved at link time so link against MOZ_COMPONENT_LIBS when building shared lib. Should fix tinderbox bustage.
git-svn-id: svn://10.0.0.236/trunk@102585 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 08:09:14 +00:00
leaf%mozilla.org
9fb6641e49 Automated update
git-svn-id: svn://10.0.0.236/trunk@102584 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 07:58:42 +00:00
cls%seawood.org
0e7879c814 Remove -DMOZ_MAIL_NEWS from build system.
Bug #66543 r=pavlov


git-svn-id: svn://10.0.0.236/trunk@102583 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 07:44:13 +00:00
cls%seawood.org
2f251f476b Updating module dependencies
git-svn-id: svn://10.0.0.236/trunk@102582 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 07:40:14 +00:00
blizzard%redhat.com
f2df3f8b5c Rewrite XRemote code. It sucks less now. Fixes bugs 62250, 66543, 84239, 89911, 90580, 94289, 98764. r=jag, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@102581 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 05:08:13 +00:00
blizzard%redhat.com
64c08dd915 Fix bug #98600. Handle the return of NS_ERROR_NO_CONTENT in the URI loader. mailto: urls shouldn't assert now. r=rpotts, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@102580 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 04:58:59 +00:00
cotter%netscape.com
8aadb7f32b revised Show Example bitmaps
git-svn-id: svn://10.0.0.236/trunk@102579 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 04:27:13 +00:00
cotter%netscape.com
b9a9d25ffe privacy & security help content updates per b=85925, for new reset master password dialog (b=96019) and related changes. a=asa, r=oeschger
git-svn-id: svn://10.0.0.236/trunk@102578 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 04:22:47 +00:00
mkaply%us.ibm.com
6a345da4df OS/2 and AIX bustage - use path.get()
Fix from dbaron
And since I am in here, I'm removing the IBM spam


git-svn-id: svn://10.0.0.236/trunk@102577 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 02:53:31 +00:00
mkaply%us.ibm.com
89f9578c8e Remove C++ style comment to fix OSF bustage
git-svn-id: svn://10.0.0.236/trunk@102576 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 02:46:22 +00:00
kaie%netscape.com
59964b4cc2 oops, fixing code per bug 96018
r=jag


git-svn-id: svn://10.0.0.236/trunk@102575 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 02:24:27 +00:00
nicolson%netscape.com
158dec054e More work on running an SSLSocket over a generic Socket. This is required
for JSSE compliance.


git-svn-id: svn://10.0.0.236/trunk@102574 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 01:53:38 +00:00
jaggernaut%netscape.com
5002e73042 Removing newlines (^M) to fix bustage.
git-svn-id: svn://10.0.0.236/trunk@102573 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 01:47:44 +00:00
naving%netscape.com
682421a488 fix whitespace from last checkin
git-svn-id: svn://10.0.0.236/trunk@102572 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 01:12:36 +00:00
sspitzer%netscape.com
727e138a05 fix for #98793. r=varada, sr=mscott. pre-cache the unread / read / flagged / unflagged thread pane images
so that they don't fail to show when you launch mail (because of bug #92512)


git-svn-id: svn://10.0.0.236/trunk@102571 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 01:09:18 +00:00
av%netscape.com
d07e1e546f Fix for bug 98285 -- adding possibility for plugins to access the service manager, r=beard, sr=vidur
git-svn-id: svn://10.0.0.236/trunk@102570 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 01:04:03 +00:00
jst%netscape.com
21fc764dbf Comment change only, sr=me
git-svn-id: svn://10.0.0.236/trunk@102569 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 00:53:38 +00:00
kaie%netscape.com
d943972f0f b=96018 r=ddrinan sr=blake
New "Reset Master Password" functionality, for users who have forgotten their password.


git-svn-id: svn://10.0.0.236/trunk@102568 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 00:52:21 +00:00
kaie%netscape.com
39c6379c87 b=96018 r=ddrinan sr=blake
New "Reset Master Password" functionality, for users who have forgotten their password.


git-svn-id: svn://10.0.0.236/trunk@102567 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 00:44:39 +00:00
naving%netscape.com
b8d8cdd0c1 98391 98470 r=bienvenu sr=sspitzer. Make rename folder work again for folders having
subfolders. Also make filters work for a local folder whose parent is renamed.


git-svn-id: svn://10.0.0.236/trunk@102566 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 00:40:05 +00:00
despotdaemon%netscape.com
bafa37bfb2 Pseudo-automatic update of changes made by mhein@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@102565 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 00:31:21 +00:00
av%netscape.com
8d0ac39f1b Fix for bug 98285 -- added a new value to the NPNVariable enum type to enable access to the service manager from plugins, r=beard, sr=vidur
git-svn-id: svn://10.0.0.236/trunk@102564 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 00:23:07 +00:00
vidur%netscape.com
381f948d15 Fix for bug 98597. The event held onto from the document's load handler was bogus by the time we sent it to the XMLHttpRequest's event listeners (DOM events have members that are stack-based and, despite being reference-counted objects, should not be held across a call. Instead we create a new event of our own for the XMLHttpRequest load. r=heikki, sr=jst
git-svn-id: svn://10.0.0.236/trunk@102563 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 00:18:45 +00:00
vidur%netscape.com
44736581ad Part of fix for bug 98597. Null checks so that accessing properties on a DOM event without an underlying PresContext doesn't crash. r=heikki, sr=jst
git-svn-id: svn://10.0.0.236/trunk@102562 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 00:16:04 +00:00
dp%netscape.com
4869247c4f bug# 96457 Fixing ReInit() to account for the new factory entry type
r=gagan, sr=jband


git-svn-id: svn://10.0.0.236/trunk@102561 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 00:01:03 +00:00
danm%netscape.com
826be1b5f2 restoring rev 1.11 (bug 97514 r=hyatt,pchen). the root cause of bug 98732 (and rev 1.12) has been fixed elsewhere (bug 98785).
git-svn-id: svn://10.0.0.236/trunk@102560 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 23:38:06 +00:00
danm%netscape.com
301323f895 restoring rev 1.159 (bug 97514 r=hyatt,pchen). the root cause of bug 98732 (and rev 1.160) has been fixed elsewhere (bug 98785).
git-svn-id: svn://10.0.0.236/trunk@102559 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 23:37:16 +00:00
danm%netscape.com
c2fbecce04 now _blank windows without a parent will actually open in a new window. wow. bugs like that shouldn't still exist. bug 98785 r=hyatt,rpotts
git-svn-id: svn://10.0.0.236/trunk@102558 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 23:24:34 +00:00
tao%netscape.com
b3adefd3b5 71517: Dynamically select platform jar in langxxxx.xpi.
(r=jbetak,sr=mscott). Build en-{win,unix}.jar on Mac.


git-svn-id: svn://10.0.0.236/trunk@102556 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 22:45:31 +00:00
darin%netscape.com
5ef7161975 mac project changes for bug 97528
git-svn-id: svn://10.0.0.236/trunk@102555 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 22:37:38 +00:00
darin%netscape.com
66747c911f fixes bug 97528 "1200 urls created on startup about:blank"
r=dp, sr=dougt


git-svn-id: svn://10.0.0.236/trunk@102554 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 22:32:50 +00:00
shanjian%netscape.com
9a550abb76 #90581 Cyrillic is not autodetected by nsIStringCharsetDetector
r= roy, sr=waterson


git-svn-id: svn://10.0.0.236/trunk@102553 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 22:28:38 +00:00
heikki%netscape.com
cd37d0dbd3 Not part of build. Test more stuff.
git-svn-id: svn://10.0.0.236/trunk@102552 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 22:09:06 +00:00
radha%netscape.com
cb733e6f90 Fix for bug 79063 r=rpotts sr=darin
git-svn-id: svn://10.0.0.236/trunk@102551 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 22:06:08 +00:00
cavin%netscape.com
a2c859066d Bug #98294: In nsImapService::DiscoverChildren(), make sure we have a consistent server hierarchy delimiter. r=sspitzer, sr=mscott.
Bug #98433: In nsImapService::GetListOfFoldersWithPath(), if the folder path contains 'INBOX' of any forms, we need to convert it to uppercase before finding it under the root folder. r=naving, sr=mscott.


git-svn-id: svn://10.0.0.236/trunk@102550 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 21:55:38 +00:00
rangansen%netscape.com
ef69772aa4 b=94026 r=rangansen sr=hewitt a=asa Changing UI string
git-svn-id: svn://10.0.0.236/trunk@102549 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 21:39:13 +00:00
svn%xmlterm.org
5ef4cb6e35 --NOT PART OF DEFAULT BUILD--
XMLterm changes only.
Major restructuring of the xmlterm build process. Split lineterm from xmlterm.
IDLified all interfaces (bug 69002). Eliminated printing to console in opt
builds (bug 78641)


git-svn-id: svn://10.0.0.236/trunk@102548 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 21:33:32 +00:00
rjesup%wgate.com
02ba8117de Bug 93999: 1-liner fix to unhork xlib (fix to typo by imot). r/sr=blake
via IRC


git-svn-id: svn://10.0.0.236/trunk@102547 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 21:32:54 +00:00
sonmi%netscape.com
bf5ff59388 took some machines out that are not in the commonly used environment now
git-svn-id: svn://10.0.0.236/trunk@102546 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 21:28:08 +00:00
sonmi%netscape.com
dbea0f6dea changes to eliminate the need for tortoise
git-svn-id: svn://10.0.0.236/trunk@102545 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 21:27:17 +00:00
sonmi%netscape.com
c41caab5bc changes reflecting the RE build area move
git-svn-id: svn://10.0.0.236/trunk@102544 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 21:25:16 +00:00
sonmi%netscape.com
be509fc071 added information about OS to the .nssqa file
git-svn-id: svn://10.0.0.236/trunk@102543 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 21:24:43 +00:00
sonmi%netscape.com
72130b9970 changed masterbuild etc. to reflect RE changes
git-svn-id: svn://10.0.0.236/trunk@102542 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 21:23:23 +00:00
mitesh%netscape.com
ca72868cd3 Fix for the regression caused by bug 92447
movinf request for the nsPrefService out of Init()
r=bnesse and sr=alecf


git-svn-id: svn://10.0.0.236/trunk@102540 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 21:12:41 +00:00
bryner%netscape.com
cbfe25d575 Bug 42313 - unable to scroll over iframes with mousewheel. We now
correctly bubble up the scroll to the parent document if the iframe is
unable to scroll (either because it isn't scrollable, or because we're
already at the top/bottom of it).  r=saari, sr=hyatt.


git-svn-id: svn://10.0.0.236/trunk@102539 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 21:00:57 +00:00
sspitzer%netscape.com
841c0f5106 remove ^Ms for varada. no bug. rs=bienvenu
git-svn-id: svn://10.0.0.236/trunk@102538 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 20:58:16 +00:00
sspitzer%netscape.com
e9470a3d39 backing out danm's changes for #97514, as they cause the regression bug #98732
a=heikki


git-svn-id: svn://10.0.0.236/trunk@102536 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 19:29:43 +00:00
wtc%netscape.com
99b1973ff0 Bugzilla bug 98741: replaced NPL by MPL/GPL.
Modified files: prerr.et prmkdir.bat pr/src/md/os2/objs.mk


git-svn-id: svn://10.0.0.236/trunk@102535 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 18:37:58 +00:00
wtc%netscape.com
11f1593318 Bugzilla bug 98741: removed the extra NPL header.
git-svn-id: svn://10.0.0.236/trunk@102534 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 18:28:31 +00:00
wtc%netscape.com
5b8e1cf962 Bugzilla bug 98741: changed the license URL to http://www.mozilla.org/MPL/.
Modified Files:
	pr/src/prvrsion.c lib/ds/plvrsion.c lib/libc/src/plvrsion.c
	lib/prstreams/plvrsion.c


git-svn-id: svn://10.0.0.236/trunk@102533 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 18:27:33 +00:00
locka%iol.ie
aecb361ff6 Fix for fallout in embedding from component/service manager merge. b=98721 r=ccarlen@netscape.com sr=blizzard@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@102532 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 18:05:50 +00:00
beard%netscape.com
ad548ee4ed [not part of build] Mac files for scriptable NPAPI plugin.
git-svn-id: svn://10.0.0.236/trunk@102529 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 15:54:40 +00:00
jaggernaut%netscape.com
4847353edd Bug 97571: Any <label> in <groupbox> becomes <caption> per XUL 1.0. r=ben, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@102528 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 14:23:21 +00:00
kaie%netscape.com
e5381ddaba b=87578 r=ssaux sr=blizzard
Changing one word in a user interface string


git-svn-id: svn://10.0.0.236/trunk@102527 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 14:23:19 +00:00
kaie%netscape.com
ec46d5529a b=97571 r=ben sr=hyatt
Checking in for jag


git-svn-id: svn://10.0.0.236/trunk@102526 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 14:19:18 +00:00
mkaply%us.ibm.com
1f4cc8ef09 #94055
r=saari, sr=blizzard
Make OS/2 go down WIN32 only #ifdef as well to fix tabbing issues


git-svn-id: svn://10.0.0.236/trunk@102525 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 12:19:55 +00:00
cls%seawood.org
86c34d2c2b Adding newline to end of file to fix hpux bustage
git-svn-id: svn://10.0.0.236/trunk@102524 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 11:00:48 +00:00
pavlov%netscape.com
699a6c2a09 fix for table 64bit lameness. bug 98686. r=gisburnd sr=jst
git-svn-id: svn://10.0.0.236/trunk@102522 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 09:58:16 +00:00
peterv%netscape.com
8da59ee228 Implement TreeWalker in DOM2-traversal.
b=82625, r=fabian, sr=jst


git-svn-id: svn://10.0.0.236/trunk@102521 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 09:32:00 +00:00
sicking%bigfoot.com
1f749a9c7d Implement TreeWalker in DOM2-traversal.
b=82625, r=fabian, sr=jst


git-svn-id: svn://10.0.0.236/trunk@102520 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 09:30:03 +00:00
cls%seawood.org
70e416b21b Update dependencies to handle static libs used by installer
git-svn-id: svn://10.0.0.236/trunk@102519 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 08:04:13 +00:00
cls%seawood.org
27a923b30f The AIX compiler cannot handle string literals inside of a triconditional statement so use named literals instead.
Thanks to David Baron <dbaron@fas.harvard.edu> for the patch.
Fixing tinderbox bustage.


git-svn-id: svn://10.0.0.236/trunk@102518 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 07:33:15 +00:00
despotdaemon%netscape.com
aa914a892c Pseudo-automatic update of changes made by jshin@pantheon.yale.edu.
git-svn-id: svn://10.0.0.236/trunk@102517 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 05:29:23 +00:00
leaf%mozilla.org
1b52bcee42 Automated update
git-svn-id: svn://10.0.0.236/trunk@102516 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 05:13:43 +00:00
cls%seawood.org
6c600f25bf Remove unused fullcircle build references.
Bug #98293 r=namachi


git-svn-id: svn://10.0.0.236/trunk@102515 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 04:59:44 +00:00
markh%activestate.com
01db5ffb50 Fix bug in makefile when building from Python binaries rather than Python sources
Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@102514 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 04:52:06 +00:00
jst%netscape.com
ab462ac543 Fixing bug 98292. Adding support for image.x and image.y for compatibility with NS4.x, r=jrgm@netscape.com, sr=blizzard@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@102511 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 04:00:37 +00:00
jaggernaut%netscape.com
3cec579db1 Bug 93071: Incorrect test in UnregisterComponent: we want to unregister if the registry name matches. r=bryner, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@102510 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 03:48:37 +00:00
rjesup%wgate.com
0202c4da49 Bug 96710: (try 2). Right() takes number-of-chars-to-return, not position.
r=jag, sr=jst


git-svn-id: svn://10.0.0.236/trunk@102509 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 03:44:33 +00:00
shanjian%netscape.com
eda91c291b #90595 Crash when switch to different Simplified Chinese IME a few times
r=yokoyama, sr=waterson


git-svn-id: svn://10.0.0.236/trunk@102508 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 03:43:07 +00:00
justdave%syndicomm.com
f0c275702c Fix for bug 98468: sample email regexp for username-only address changed from ^[^@]*$ to ^[^@]+$ and the default emailregexp changed from ^[^@]*@[^@]*\\.[^@]*$ to ^[^@]+@[^@]+\\.[^@]+$
Patch by Dave Miller <justdave@syndicomm.com>
r= jake@acutex.net x2


git-svn-id: svn://10.0.0.236/trunk@102507 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 03:25:33 +00:00
dbaron%fas.harvard.edu
d015d63bf1 Make getComputedStyle remove the extra default font that we add to the end of the font-family list so it returns the original computed value. b=94078 r=hyatt sr=jst
git-svn-id: svn://10.0.0.236/trunk@102506 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 02:28:10 +00:00
sspitzer%netscape.com
622ab66c0e move the unused 4.x mapi code to mozilla/mailnews/mapi/old to make room for the new mapi code coming.
rs=bienvneu


git-svn-id: svn://10.0.0.236/trunk@102505 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 02:14:34 +00:00
wtc%netscape.com
e5218cd198 Bugzilla bug 95836: Added _PR_CleanupIO() and made it call
_PR_CleanupFdCache().  PR_Cleanup() now calls _PR_CleanupIO() and does
not call _PR_CleanupFdCache() directly.
Modified files: primpl.h prio.c prinit.c ptio.c ptthread.c


git-svn-id: svn://10.0.0.236/trunk@102504 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 01:55:49 +00:00
relyea%netscape.com
f19270c4f2 Free the Pairs, not the previous values.
git-svn-id: svn://10.0.0.236/trunk@102502 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 01:34:18 +00:00
relyea%netscape.com
8cdfd556f7 Free the data, in the array, not the array;).
git-svn-id: svn://10.0.0.236/trunk@102501 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 01:33:22 +00:00
justdave%syndicomm.com
cc43b69ce0 refix for bug 91808: previous patch for this bug used an INNER JOIN construct in the SQL, which is not supported by the
minimum version of MySQL that we require.
Patch by Matthew Tuck <matty@chariot.net.au>
r= justdave x2


git-svn-id: svn://10.0.0.236/trunk@102500 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 01:32:13 +00:00
hyatt%netscape.com
8cdd4a4654 98337 fix (r/sr=danm,brendan), also fix for 96610 from jgaunt/aaronl (sr from me, just checking it in since aaronl is on vacation)
git-svn-id: svn://10.0.0.236/trunk@102499 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 01:26:00 +00:00
rjesup%wgate.com
4c270b21d7 Bug 93999: Minor bustage fix for HPUX (doesn't allow delete [] of void *);
dbaron looked it over and agrees.


git-svn-id: svn://10.0.0.236/trunk@102496 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 00:57:52 +00:00
bryner%netscape.com
f426319898 Removing obsolete file. r=cls.
git-svn-id: svn://10.0.0.236/trunk@102495 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 00:38:23 +00:00
pierre%netscape.com
53dfaf64c7 Bug 93371 (WRMB: Treat classes case insensitively in quirks mode). Back out ianh's patch in nsCSSParser.cpp and nsHTMLAttributes.cpp. Treat classes and IDs case insensitively as described in Bug 35522. r=glazman (+dbaron/jst) sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@102494 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 00:23:37 +00:00
wtc%netscape.com
a44592e2b8 Bugzilla bug 95817: destroy _pr_sleeplock in PR_Cleanup(). The patch is
contributed by jeff@NerdOne.com.
Modified files: prinit.c ptthread.c


git-svn-id: svn://10.0.0.236/trunk@102492 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 00:15:21 +00:00
wtc%netscape.com
40b3bff0fa Bugzilla bug 95773: Added _PR_CleanupEnv() and call it from PR_Cleanup().
The patch is contributed by jeff@NerdOne.com.
Modified files: primpl.h prenv.c prinit.c ptthread.c


git-svn-id: svn://10.0.0.236/trunk@102491 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 00:05:50 +00:00
sicking%bigfoot.com
c9f433c3dc Push and pop xslt-current node only when needed. Also evaluate xsl:with-param only once in an xsl:apply-templates.
b=97405, r=peterv, sr=jst


git-svn-id: svn://10.0.0.236/trunk@102489 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 00:04:02 +00:00
bryner%netscape.com
0d507fb37f Bug 98420 - nsIFontRetrieverService, nsIFontNameIterator, and nsIFontSizeIterator are obsolete. Also, some cleanup to nsWidgetsCID.h. r=pavlov, sr=blizzard.
git-svn-id: svn://10.0.0.236/trunk@102487 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 23:50:02 +00:00
relyea%netscape.com
71fc851f32 Change the keydb reset code from walking down deleting all the key entries to
closing the keydb and reopenning it truncated.


git-svn-id: svn://10.0.0.236/trunk@102486 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 23:23:42 +00:00
rjesup%wgate.com
f686201c7a Bug 97345: fixing bustage, checked wrong version in (without return).
git-svn-id: svn://10.0.0.236/trunk@102485 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 23:20:16 +00:00
beard%netscape.com
0051338311 [not part of build] fixes for bug #98382, r=av, allow building on Mac.
git-svn-id: svn://10.0.0.236/trunk@102484 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 23:18:07 +00:00
beard%netscape.com
b43f7e045a [not part of build] Mac files for scriptable NPAPI plugin.
git-svn-id: svn://10.0.0.236/trunk@102483 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 23:15:57 +00:00
vidur%netscape.com
795ea6cca5 Out parameters should be set to null to account for failure cases. r=jband, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@102481 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 23:05:21 +00:00
rjesup%wgate.com
5f20dbeac5 bug 93999: reduce number of image creations in gtk/xlib. Patch by imot
(Tomi.Leppikangas@oulu.fi).  r=pavlov, sr=brendan, r=bbaetz on c++ issues,
 jst said "check it in" on c++ issues.


git-svn-id: svn://10.0.0.236/trunk@102480 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 23:00:49 +00:00
rginda%netscape.com
62a5fb2141 - venkman only -
prepare for "group/ungroup" UI in the file list


git-svn-id: svn://10.0.0.236/trunk@102479 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 22:57:34 +00:00
rginda%netscape.com
af90d76aa3 - venkman only -
fix sort tests


git-svn-id: svn://10.0.0.236/trunk@102478 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 22:56:56 +00:00
rjesup%wgate.com
34bdbec8d4 bug 97345: insertion of <option>'s into <select> is very slow.
r=rods, sr=jst


git-svn-id: svn://10.0.0.236/trunk@102477 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 22:54:44 +00:00
pinkerton%netscape.com
b30e2850a9 allow changing of the label of a submenu. r=saari/sr=smfr/a=asa. bug# 97549.
git-svn-id: svn://10.0.0.236/trunk@102476 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 22:49:55 +00:00
waldemar%netscape.com
4d24ce62eb Split out parseFunctionExpression
git-svn-id: svn://10.0.0.236/trunk@102475 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 22:44:32 +00:00
waldemar%netscape.com
4937ee8e4d Added missing library
git-svn-id: svn://10.0.0.236/trunk@102474 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 22:31:29 +00:00
waldemar%netscape.com
3f0f2f0e97 Added missing files
git-svn-id: svn://10.0.0.236/trunk@102473 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 22:31:05 +00:00
rginda%netscape.com
08c69f7e45 - venkman only -
fix line ending split regexp to avoid the brain dead $ meta character (which considers \r\n to be TWO line endings.)


git-svn-id: svn://10.0.0.236/trunk@102472 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 22:29:14 +00:00
rginda%netscape.com
0ca89379fd - venkman only -
fix imput history regression


git-svn-id: svn://10.0.0.236/trunk@102471 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 22:28:09 +00:00
ccarlen%netscape.com
de5f8fea5c Fixing bustage - didn't remove file from both targets
git-svn-id: svn://10.0.0.236/trunk@102470 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 22:16:57 +00:00
mkaply%us.ibm.com
5521f4e839 OS/2 build bustage - thanks gerv
git-svn-id: svn://10.0.0.236/trunk@102469 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 22:10:51 +00:00
yokoyama%netscape.com
6c6445fd09 bug 91193
Makefile.win change. Correcting dll name
/r=ftang;/sr=waterson


git-svn-id: svn://10.0.0.236/trunk@102468 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 22:06:55 +00:00
rginda%netscape.com
086a4d9e61 bug 95534, r=brendan, sr=jband
fix semantics of JSTRAP_CONTINUE to prevent a debugger client from telling the engine to continue when we all know it'll proobably just crash.


git-svn-id: svn://10.0.0.236/trunk@102465 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 21:46:18 +00:00
naving%netscape.com
e6a794f445 95501 r/sr=bienvenu sr=mscott. Fix nsDocShell leaks for pop3 accts on start-up and shutdown.
git-svn-id: svn://10.0.0.236/trunk@102460 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 21:32:11 +00:00
jband%netscape.com
c25a7edcbb Slightly modify the WIN32 flags check to catch missing XP_WIN32 define also. Add a comment to help people tripping over this so that they can see what we are telling them to fix. See bug 65727. rs=jband
git-svn-id: svn://10.0.0.236/trunk@102459 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 21:26:08 +00:00
gerv%gerv.net
64eeb6482f Set start page override and home page to be http://www.mozilla.org/start , a page encouraging people to get involved with Mozilla. r,a=asa.
git-svn-id: svn://10.0.0.236/trunk@102458 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 21:24:43 +00:00
relyea%netscape.com
6ea5d224d7 For a search reload after the database has been cleared.
git-svn-id: svn://10.0.0.236/trunk@102456 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 21:20:16 +00:00
relyea%netscape.com
658b7a021a Don't reuse sessions that have already be closed.
git-svn-id: svn://10.0.0.236/trunk@102455 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 21:19:13 +00:00
relyea%netscape.com
ab5346358b Add option to reset the cert and key database.
git-svn-id: svn://10.0.0.236/trunk@102454 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 21:18:13 +00:00
relyea%netscape.com
96a8daf191 Fix Updating the slot in modutil.
Add option to dump the raw PKCS #11 strings.


git-svn-id: svn://10.0.0.236/trunk@102453 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 21:16:51 +00:00
relyea%netscape.com
523dee343c Export functions for Modutil (need to fix the names to be global!)
git-svn-id: svn://10.0.0.236/trunk@102452 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 21:15:09 +00:00
ccarlen%netscape.com
ef0da78764 removed nsServiceManager.cpp, nsRepository.cpp for dougt
git-svn-id: svn://10.0.0.236/trunk@102451 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 21:14:30 +00:00
relyea%netscape.com
2dcc708078 Allow modutil to get the raw pkcs #11 strings.
fix NSS_Init_NO_DB().


git-svn-id: svn://10.0.0.236/trunk@102450 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 21:14:06 +00:00
dougt%netscape.com
6abd1d51a4 Merge ServiceManager and ComponentManager. Bug 96457. r=dp@netscape.com, sr=wat
erson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@102449 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 21:13:11 +00:00
rjesup%wgate.com
8b0885ab65 bug 92573: VoidArray->AutoVoidArray changes for layout/*. r=kin, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@102448 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 21:11:44 +00:00
relyea%netscape.com
a85264d923 Fix Modutil delete.
add function to modutil to display raw pkcs #11 module strings


git-svn-id: svn://10.0.0.236/trunk@102447 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 21:08:44 +00:00
relyea%netscape.com
56d45b5359 1) fix bug in module deletion.
2) Add new function in modutil to desplay the raw PKCS #11 module strings


git-svn-id: svn://10.0.0.236/trunk@102446 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 21:06:39 +00:00
blizzard%redhat.com
fcaadca915 honor the running state of the xremote service. not part of the build.
git-svn-id: svn://10.0.0.236/trunk@102445 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 20:46:57 +00:00
blizzard%redhat.com
3a60039893 loading urls into the most recently used window works properly now and other cleanups. not part of the build.
git-svn-id: svn://10.0.0.236/trunk@102444 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 20:34:16 +00:00
kaie%netscape.com
eb20d6cd23 r=87578 r=ddrinan sr=blizzard
Enable a user to use (or switch to) an empty security password, i.e. no password at all.


git-svn-id: svn://10.0.0.236/trunk@102443 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 20:29:07 +00:00
shanjian%netscape.com
df5bf28667 #97516 crash in nsRenderingContextWin::GetWidth() in certain situation
r=rbs, sr=waterson


git-svn-id: svn://10.0.0.236/trunk@102442 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 20:21:59 +00:00
kaie%netscape.com
ee77cee24a b=93103 r=relyea/ddrinan sr=blizzard
Enable display of complete chains when viewing certificates.


git-svn-id: svn://10.0.0.236/trunk@102441 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 20:20:50 +00:00
hwaara%chello.se
1ed017745c #82104, "`Software Installation' alert is unneccessarily complicated".
r=dveditz, sr=blizzard.


git-svn-id: svn://10.0.0.236/trunk@102440 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 20:18:15 +00:00
blizzard%redhat.com
7a94ab9706 More work in progress. Added ping command and you can now open mail/news and browser windows remotely. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@102438 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 20:09:30 +00:00
varada%netscape.com
26d0fdafa3 fix for bug#82120;disable editable fields during sending of mail;r=cmanske;sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@102437 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 19:46:49 +00:00
rjesup%wgate.com
977fe6eac8 Bug 96710: Misuse of string.Mid() - uses should be string.Right().
r=kin, sr=jst


git-svn-id: svn://10.0.0.236/trunk@102436 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 19:38:20 +00:00
bnesse%netscape.com
2651ba14d0 Fix for bug 49776. Add additional bulletproofing to nsPrefBranch. r=mitesh, sr=alecfl.
git-svn-id: svn://10.0.0.236/trunk@102435 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 19:30:47 +00:00
hwaara%chello.se
1f6b8b786e #72203, optimize local search a bit by short-circuiting our evaluation code.
Original patch submitted by Michael Tiemann.

r=naving, sr=sspitzer.


git-svn-id: svn://10.0.0.236/trunk@102434 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 19:30:13 +00:00
rjesup%wgate.com
2e2ef60158 bug 97480: missing virtual in destructor in nsFontCache. r=bstell, sr=kin
git-svn-id: svn://10.0.0.236/trunk@102433 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 19:27:38 +00:00
hwaara%chello.se
58ad9ef22d #97834, checking in the final change to not mark a msg as read in the db if it already is...
r/sr=bienvenu, sspitzer


git-svn-id: svn://10.0.0.236/trunk@102431 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 19:20:49 +00:00
rjesup%wgate.com
3d0a34aaca Bug 92575: voidarray->autovoidarray changes in content/*, minus mChildren
changes in nsXULContentSink.cpp and nsGenericElement.cpp as per jst.
  r=hyatt r=pierre sr=jst


git-svn-id: svn://10.0.0.236/trunk@102430 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 19:16:03 +00:00
naving%netscape.com
13d658c059 96921 r=suresh sr=mscott, part of the fix that was not checked in.
git-svn-id: svn://10.0.0.236/trunk@102429 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 19:13:45 +00:00
waterson%netscape.com
b7c9fb7cd4 Bug 98456. Fix meta-modules on Linux. r=dp, sr=cls.
git-svn-id: svn://10.0.0.236/trunk@102428 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 19:13:41 +00:00
jband%netscape.com
2416ed1694 fix bug 96511. Meant #ifdef not #if. sr=brendan r=jband
git-svn-id: svn://10.0.0.236/trunk@102425 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 19:01:17 +00:00
cotter%netscape.com
a633ad4bb5 privacy & security help content update per b=85925, a=asa, r=oeschger
git-svn-id: svn://10.0.0.236/trunk@102424 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 18:55:28 +00:00
jgaunt%netscape.com
e7791d639e patch for bug 98101 patch from jband r=jgaunt sr=waterson
add OBJDIR to 2 makefile.win files


git-svn-id: svn://10.0.0.236/trunk@102423 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 18:48:40 +00:00
cotter%netscape.com
5611782025 privacy & security help content updates per b=85925, a=asa, r=oeschger
git-svn-id: svn://10.0.0.236/trunk@102422 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 18:46:13 +00:00
danm%netscape.com
73a2cec18e XULWindow no longer needs to cache the widget size mode. bug 96475 r=hyatt,pchen
git-svn-id: svn://10.0.0.236/trunk@102421 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 18:35:59 +00:00
danm%netscape.com
759e12d6fc remove bug 70283's optimization to persist window size state only if it (apparently) hasn't changed. bug 86955, 89740. also set a newly opened window's main widget's zoom state even if it's not yet visible. bug 96475 r=hyatt,pchen
git-svn-id: svn://10.0.0.236/trunk@102420 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 18:35:55 +00:00
danm%netscape.com
fd9c5602bd tell nsWindowWatcher about window creation/destruction so its enumerators will work. bug 97514 r=hyatt,pchen
git-svn-id: svn://10.0.0.236/trunk@102418 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 18:26:52 +00:00
attinasi%netscape.com
3742456a40 New testcase added. Not part of build
git-svn-id: svn://10.0.0.236/trunk@102417 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 18:18:48 +00:00
attinasi%netscape.com
30c0aaac9d New table layout regression test. Not part of build
git-svn-id: svn://10.0.0.236/trunk@102416 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 18:18:10 +00:00
kestes%walrus.com
9719c2f833 better documentation both internal and external. Reevaluate the steps
to make a build each iteration to allow builds to create time stamped output.
catch some errrors using eval so that they will appear in the tinderbox mail and not as fatal errors. Strip a few more 'dangerous variables' from the environment.


git-svn-id: svn://10.0.0.236/trunk@102415 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 18:15:53 +00:00
attinasi%netscape.com
cf6ab32fb9 Added table layout regression test for bug 97619. Not part of build
git-svn-id: svn://10.0.0.236/trunk@102414 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 17:49:46 +00:00
attinasi%netscape.com
52e9a07c29 New table layuout regression test: not part of build.
git-svn-id: svn://10.0.0.236/trunk@102413 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 17:40:55 +00:00
nboyd%atg.com
ea2f8a8c22 patch (with my modifications) from jj@mail.ahc.umn.edu:
It would be nice if the rhino shell would accept a URL as the source
for javascript.

I've added this feature to my local copy so that I can launch rhino
with js scripts using  JavaWebStart.

Below is a context diff of the changes I made to
toolsrc/org/mozilla/javascript/tools/shell/Main.java


git-svn-id: svn://10.0.0.236/trunk@102412 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 16:53:29 +00:00
dbaron%fas.harvard.edu
1d897716fd Fix topcrash bug 96563 by reading only the number of characters of string that we have, rather than double that number. r=pavlov sr=blizzard
git-svn-id: svn://10.0.0.236/trunk@102410 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 14:30:38 +00:00
bstell%netscape.com
cf763bcfc1 bug 97533, patch by dbaron@fas.harvard.edu, r=bstell, sr=blizzard
check return status from getIntPref


git-svn-id: svn://10.0.0.236/trunk@102409 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 14:22:08 +00:00
blizzard%redhat.com
43506cd4ce Fix bug #97851. Make sure that file permissions are set properly on the temporary file used for file uploads. r=pete, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@102407 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 13:25:15 +00:00
bzbarsky%mit.edu
bafa24e23a Re-fix bug 93977 and fix bug 98358 (lack of underlining on links). The
CSS parser parses "foo, bar { decls }" into two separate rules -- one
for foo and one for bar.  So ParseRule() has to return an array of
rules, not just a rule.  r=dbaron, sr=jst


git-svn-id: svn://10.0.0.236/trunk@102406 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 13:14:35 +00:00
jdunn%netscape.com
99fae25d41 fixing cement IRIX tinderbox bustage
git-svn-id: svn://10.0.0.236/trunk@102405 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 12:50:38 +00:00
jake%acutex.net
b9a3313a65 Fix for bug 30597 - Hyperlinking the number of votes was causing some confusion because it was such a small link, yet the most useful. Instead, we now have a link labeled "Show votes for this bug".
Patch by Matthew Tuck <matty@chariot.net.au>
r= louie@ximian.com, jake@acutex.net


git-svn-id: svn://10.0.0.236/trunk@102404 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 12:42:47 +00:00
leaf%mozilla.org
d1a74e42dd Automated update
git-svn-id: svn://10.0.0.236/trunk@102402 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 11:28:40 +00:00
katakai%japan.sun.com
529ec58458 bug 95258
Need to add a new extension to support Complex Text Layout
changing configure and configure.in
check for prabhat.hegde@sun.com
r=leaf sr=cls


git-svn-id: svn://10.0.0.236/trunk@102401 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 11:19:25 +00:00
pavlov%netscape.com
ee52ce4677 fixing warnings/build bustage from checkin a minute ago
git-svn-id: svn://10.0.0.236/trunk@102399 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 09:07:08 +00:00
pavlov%netscape.com
efc36dfc55 adding additional tests. part of sparcv9 work.. bug 91840. r=me/cls@seawood.org/rogerl rs=brendan
git-svn-id: svn://10.0.0.236/trunk@102397 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 08:27:43 +00:00
pavlov%netscape.com
9121ce11c0 Enabling the sparcv9 xptcall code. Bug 91840. r=me/cls@seawood.org/rogerl rs=brendan
git-svn-id: svn://10.0.0.236/trunk@102396 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 08:23:09 +00:00
glazman%netscape.com
99716e4ffe getComputedStyle answered for background-color #ffffff instead of transparent; b=97771, r=pierre, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@102395 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 08:20:50 +00:00
pavlov%netscape.com
dcf116656b Adding a few more comments about what is going on and fixing the couple of issues brought up by brendan. Work for bug 91840. not part of build
git-svn-id: svn://10.0.0.236/trunk@102394 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 08:18:24 +00:00
blizzard%redhat.com
28f2ef4767 More new X Remote work. This code is now in better shape than the original. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@102392 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 06:43:54 +00:00
jband%netscape.com
870c86ceaf fix bug 98450. We need to be calling OBJ_DROP_PROPERTY after OBJ_LOOKUP_PROPERTY. Also, this was refactored on dbradley's suggestion. sr=brendan r=dbradley
git-svn-id: svn://10.0.0.236/trunk@102391 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 06:29:19 +00:00
jst%netscape.com
b3062e8e60 Fixing leaks introduced by my fix for 91241. Breaking circular namespace manager -> XUL element factory -> namespace manager reference that kept one namespace manager and one XUL and XML element factory alive. sr=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@102390 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 06:18:31 +00:00
rpotts%netscape.com
32390b41d3 bug #98469 (r=pavlov, sr=jst). Using the _content window target sometimes fails...
git-svn-id: svn://10.0.0.236/trunk@102388 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 05:31:14 +00:00
naving%netscape.com
3100f77e68 98377 r/sr=bienvenu fix nsMsgMailNewsUrl mlk on copying local messages.
git-svn-id: svn://10.0.0.236/trunk@102386 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 04:41:03 +00:00
alecf%netscape.com
ab0aba9085 string changes for MOZ_TRACK_MODULE_DEPS - bug 98371 r=cls
git-svn-id: svn://10.0.0.236/trunk@102385 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 04:06:10 +00:00
mkaply%us.ibm.com
0bee895f7b No bug
r=mkaply, sr=blizzard
OS/2 only - Got these reversed - on OS/2, NEWFRAME is used at the end of a page, not the beginning


git-svn-id: svn://10.0.0.236/trunk@102384 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 04:01:45 +00:00
mkaply%us.ibm.com
3594d5d6bb No bug
r=mkaply, sr=blizzard
OS/2 only - code from javier - more font improvements - better scaling and text zoom for bitmap fonts


git-svn-id: svn://10.0.0.236/trunk@102383 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 04:00:07 +00:00
alecf%netscape.com
1a422e5b81 dumb
CVS :nd string makefile updates for 98371 r=cls----------------------------------------------------------------------


git-svn-id: svn://10.0.0.236/trunk@102380 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 03:56:35 +00:00
alecf%netscape.com
8e8f64c3fd adding MOZ_TRACK_MODULE_DEPS support to win32 build
the rest of the makefiles are not ready
for bug 98371
r=cls


git-svn-id: svn://10.0.0.236/trunk@102379 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 03:49:50 +00:00
stephend%netscape.com
4ef67e6533 Bug 98453. Use 'Mail & Newsgroups' consistently throughout the UI. r/sr=sspitzer@netscape.com
git-svn-id: svn://10.0.0.236/trunk@102378 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 03:41:10 +00:00
blizzard%redhat.com
194f563358 get mailto: links working, clean up a lot of debugging code. not part of the build.
git-svn-id: svn://10.0.0.236/trunk@102377 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 03:39:51 +00:00
bienvenu%netscape.com
a77f3b626f don't mark news msg read when reading it if it's already read original patch from hwaara, r=bienvenu sr=sspitzer 97834
git-svn-id: svn://10.0.0.236/trunk@102376 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 03:23:43 +00:00
bienvenu%netscape.com
0fefb8fc0a don't mark imap msg read when reading it if it's already read rs=sspitzer 97834
git-svn-id: svn://10.0.0.236/trunk@102375 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 03:21:29 +00:00
justdave%syndicomm.com
1cb991e0dc Fix for bug 42337: Adding the usual red box for errors uploading attachments.
Patch by Matthew Tuck <matty@chariot.net.au>
r= louie@ximian.com, justdave@syndicomm.com


git-svn-id: svn://10.0.0.236/trunk@102374 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 03:20:34 +00:00
nelsonb%netscape.com
44cf59d2ab Fix a crash. An attempt to move a sensitive key longer than 48 bytes
from one token to another will no longer crash.  Instead, it will fail
with the new error code SEC_ERROR_CANNOT_MOVE_SENSITIVE_KEY.  Bug 97887.
In addition, DHE key pairs are now generated with CKA_SENSITIVE false.


git-svn-id: svn://10.0.0.236/trunk@102373 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 03:00:39 +00:00
hyatt%netscape.com
36a8713c53 Missed another file from 93180.
git-svn-id: svn://10.0.0.236/trunk@102372 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 02:21:55 +00:00
justdave%syndicomm.com
9dabccd718 Fix for bug 69616: If you have tweakparams privs, the "Sanity check" link was listed with a group of items that said "Edit" so
it appeared as if you were going to edit the sanity checks if you clicked on it, when in fact you were going to run them.
This patch rewords the links so Sanity check is in a group by itself in the block of links on the right.
Patch by Matthew Tuck <matty@chariot.net.au>
r= justdave x2


git-svn-id: svn://10.0.0.236/trunk@102371 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 02:19:04 +00:00
hyatt%netscape.com
a6f8ebbafe Fix bustage.
git-svn-id: svn://10.0.0.236/trunk@102369 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 02:10:11 +00:00
brendan%mozilla.org
6d5f73866a Don't cache chrome scripts unless their master document URL is chrome too (we need the prototype cache to root the script objects; 98207, sr=jband&waterson, a=asa).
git-svn-id: svn://10.0.0.236/trunk@102368 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 02:01:40 +00:00
rginda%netscape.com
079b48a06f - venkman only -
fixing popup events


git-svn-id: svn://10.0.0.236/trunk@102367 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 01:54:53 +00:00
rginda%netscape.com
8c7d55aef9 - venkman only -
init xpconnect on the debugger's default context so that xpconnect can use it when it has to.  r=jband


git-svn-id: svn://10.0.0.236/trunk@102366 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 01:34:44 +00:00
av%netscape.com
c2b06c9bd5 Fixing bug 96804 -- isReplaced is not set for object frames created with <embed> tag, patch by timkoogleblowsgoats@yahoo.com, r=peterl, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@102365 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 01:26:14 +00:00
attinasi%netscape.com
e0458cee7d Two QuirkMode only fixes: 1) prevent bullets from getting resized with LI and 2) collapse margins for empty elements in BODY and table cells. b=97351 r=pierre sr=waterson b=97361 r=pierre sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@102363 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 01:22:55 +00:00
hyatt%netscape.com
7168876239 Adding stack testcase to the debug menu for 93180.
git-svn-id: svn://10.0.0.236/trunk@102362 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 01:09:35 +00:00
hyatt%netscape.com
f82ab97f32 Removing file for 93180.
git-svn-id: svn://10.0.0.236/trunk@102361 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 01:07:56 +00:00
hyatt%netscape.com
459bc5fe31 Fix for 93180. r-jag, sr=jst
git-svn-id: svn://10.0.0.236/trunk@102360 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 01:07:40 +00:00
rginda%netscape.com
ab633fa73d - venkman only -
strict mode fixes


git-svn-id: svn://10.0.0.236/trunk@102359 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 01:05:50 +00:00
rginda%netscape.com
d6b2dbf16d - venkman only -
remove debug spoo


git-svn-id: svn://10.0.0.236/trunk@102358 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 01:05:20 +00:00
rginda%netscape.com
e9b8b7e003 - venkman only -
record last stack depth. when the stack depth changes, we display a frame header in the console for single step mode.


git-svn-id: svn://10.0.0.236/trunk@102357 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 01:05:02 +00:00
rginda%netscape.com
d28982ed49 - venkman only -
strict mode fixes.


git-svn-id: svn://10.0.0.236/trunk@102356 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 01:04:01 +00:00
rginda%netscape.com
e6fd4e7ecc - venkman only -
move debugTrap code that may involve network activity from venkman-debugger.js to this file.
strict mode fixes.
fix outliner select events, which range checked against the wrong properties.


git-svn-id: svn://10.0.0.236/trunk@102355 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 01:03:06 +00:00
rginda%netscape.com
489e14dff4 - venkman only -
move calls that might involve network activity to *after* te enterNestedEventLoop() call so their requests go on the pushed thread.  The call is made after enterNestedEventLoop (which, by definition, blocks) via a setTimeout call.


git-svn-id: svn://10.0.0.236/trunk@102353 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 01:01:34 +00:00
rginda%netscape.com
06b249145d - venkman only -
strict mode fixes
remove some debugging spoo


git-svn-id: svn://10.0.0.236/trunk@102352 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 00:59:24 +00:00
nelsonb%netscape.com
9859fd8821 Detect Null pointer. Assert if null, else don't crash here. Bug 97887.
git-svn-id: svn://10.0.0.236/trunk@102351 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 00:49:39 +00:00
sfraser%netscape.com
b01c4aa84d Add an explicit search path to 'Carbon Support' first to ensure that we pick up CarbonLib 1.4, rather than the older version in Univeral Headers.
git-svn-id: svn://10.0.0.236/trunk@102350 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 00:46:38 +00:00
dp%netscape.com
7045611501 bug# 97528 Eliminating the extra Clone() on chrome urls. Plus
optimizing nsChromeRegistry::Canonify() to only SetSpec() if there is
a change. r=brendan,hyatt sr=waterson


git-svn-id: svn://10.0.0.236/trunk@102349 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 00:45:16 +00:00
yokoyama%netscape.com
7ff3a20943 Bug 96318:
Fixing accidental removal of nsIFontPackageService.
/r=ftang;/sr=waterson;/a=asa


git-svn-id: svn://10.0.0.236/trunk@102348 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 00:26:13 +00:00
bryner%netscape.com
ec6a6ca84a Removing obsolete/unused file. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@102347 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 00:08:42 +00:00
pschwartau%netscape.com
e4d5a55745 Trivial whitespace fix.
git-svn-id: svn://10.0.0.236/trunk@102344 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 23:35:07 +00:00
mitesh%netscape.com
c20c2c2a0e Fix for bug 97228 - multiple appends of email address
r=bnesse and sr=shaver


git-svn-id: svn://10.0.0.236/trunk@102343 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 23:25:54 +00:00
kaie%netscape.com
f2bf305181 b=97369 r=kaie sr=blizzard
Checking in for walk84


git-svn-id: svn://10.0.0.236/trunk@102342 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 23:22:31 +00:00
pschwartau%netscape.com
90d6d1ad55 Completely rethinking this testcase. Reduced test as much as possible, added try...catch blocks and for-loop to stress-test the code.
git-svn-id: svn://10.0.0.236/trunk@102341 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 23:21:33 +00:00
kaie%netscape.com
e6b2897694 b=78720 r=javi sr=blizzard
Checking in for walk84


git-svn-id: svn://10.0.0.236/trunk@102340 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 23:20:41 +00:00
despotdaemon%netscape.com
b53ccc277a Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@102339 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 23:19:39 +00:00
ducarroz%netscape.com
cfde140b23 Fix for bug 97256. Don't be case sensitive when checking for a RFC822 header!
Patch provided by Denis Antrushin <adu@sparc.spb.su>. R=ducarroz, SR=sspitzer


git-svn-id: svn://10.0.0.236/trunk@102338 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 23:04:55 +00:00
hwaara%chello.se
b8eeb24c68 #90774, "Up and Down should be 'Up Arrow' and 'Down Arrow'".
Patch by Neil <neil@parkwaycc.co.uk>.

r=rchen, sr=blizzard.


git-svn-id: svn://10.0.0.236/trunk@102336 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 22:59:15 +00:00
valeski%netscape.com
5bca1cb1dd fixing IRIX bustage. win line endings wound up in the new .h file. this diff converts them to raw line ending chars
git-svn-id: svn://10.0.0.236/trunk@102335 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 22:52:43 +00:00
bryner%netscape.com
4513ecc825 Bug 81398 -- tabbing doesn't go into out-of-flow frames. r=saari, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@102334 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 22:52:18 +00:00
jaggernaut%netscape.com
fa712547bb Bug 96721: Make nsAppRunner use WindowOpen instead of CreateTopLevelWindow, r=danm, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@102333 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 22:34:20 +00:00
sspitzer%netscape.com
70275e6d21 fix for #97585. if the user happens to have a directory for their sig file, don't go into
an infinite loop.  r=ducarroz, sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@102331 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 22:24:43 +00:00
blizzard%redhat.com
5569c2d112 More WIP on new X Remote code. Not part of the build. OpenURL() with and without arguments work now.
git-svn-id: svn://10.0.0.236/trunk@102330 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 21:48:23 +00:00
kaie%netscape.com
f759fc8db1 removing a fprintf(stderr) from my previous checkin
git-svn-id: svn://10.0.0.236/trunk@102329 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 21:34:38 +00:00
rginda%netscape.com
59d192da29 - venkman only -
turn off verbose debugging for me
push a thread event queue for necko before we enter a nested event loop


git-svn-id: svn://10.0.0.236/trunk@102328 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 21:29:59 +00:00
valeski%netscape.com
8db35965a8 r=dbaron, sr=dougt. 97667. nsIInterfaceRequestor is now frozen. nsIInterfaceRequestorUtils.h is now required if you want to use do_GetInterface() for convenience. The two were split because the stuff that is now in nsIInterfaceRequestorUtils.h wasn't ready for freezing. Also, .idl files should just contain interface defs anyway.
git-svn-id: svn://10.0.0.236/trunk@102327 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 21:28:38 +00:00
kaie%netscape.com
7b5cf182e5 Checking in for valeski. In case of problems you can reach me at kai.engert@gmx.de
r=dbaron, sr=dougt. 97667. nsIInterfaceRequestor is now frozen. nsIInterfaceRequestorUtils.h is now
required if you want to use do_GetInterface() for convenience. The two were split because the stuff
that is now in nsIInterfaceRequestorUtils.h wasn't ready for freezing. Also, .idl files should just
contain interface defs anyway.


git-svn-id: svn://10.0.0.236/trunk@102326 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 21:27:22 +00:00
jband%netscape.com
453d5271bf fix bug 97444. It is not good to patch a different fun into the frame. Let's safely shunt aside the callee frame instead. r=rogerl sr=brendan
git-svn-id: svn://10.0.0.236/trunk@102325 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 21:25:09 +00:00
pschwartau%netscape.com
737218a125 Improved accuracy of test, and added more cases.
git-svn-id: svn://10.0.0.236/trunk@102324 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 21:15:43 +00:00
aaronl%netscape.com
5f30f30f80 Bug 96473, added accessible.properties to Mac Build - r=tao, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@102323 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 21:13:54 +00:00
waterson%netscape.com
43c613727c Bug 55086. Change nsContainerFrame::PositionFrameView() to position child views. Eliminate the |aView| parameter from that method, because the view can be retrieved from the frame and need not be done by the caller. Eliminate the NS_FRAME_NO_MOVE_CHILD_VIEWS flag, which was read-only; i.e., never set by anyone. r=dbaron, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@102321 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 20:27:19 +00:00
locka%iol.ie
34ed787b7e Remove winEmbed from embedding dist. b=90614 r=rpotts@netscape.com sr=blizzatf@mozilla.org a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@102320 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 20:26:42 +00:00
sicking%bigfoot.com
03deb5c948 Make myAnchorElement.text return the same as NS4.x. Patch from Fabian Guisset (hidday@geocities.com).
b=85448, r=sicking, sr=jst


git-svn-id: svn://10.0.0.236/trunk@102319 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 20:20:50 +00:00
locka%iol.ie
c76cf87cf2 NOT PART OF BUILD. Fixed a couple of silly build breakages for when MOZ_ACTIVEX_PLUGIN_LIVECONNECT is not defined.
git-svn-id: svn://10.0.0.236/trunk@102318 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 20:10:04 +00:00
dsirnapalli%netscape.com
391db898b3 added two more test cases.
git-svn-id: svn://10.0.0.236/trunk@102317 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 19:25:49 +00:00
pschwartau%netscape.com
6d6f70b18b Warning suppression, plus getting date files into mac build
git-svn-id: svn://10.0.0.236/trunk@102316 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 18:38:17 +00:00
bienvenu%netscape.com
c0493c59e1 fix alignment of text following text boxes rs=sspitzer 97697
git-svn-id: svn://10.0.0.236/trunk@102315 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 18:31:36 +00:00
sspitzer%netscape.com
6214f4a8bb remove control Ms.
git-svn-id: svn://10.0.0.236/trunk@102314 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 18:30:23 +00:00
kin%netscape.com
91a6d5f254 Fix for bug #97387: WRMB:iframe with frameborder="no" does not work
Call ParseFrameborderValue() with value returned from InNavQuirksMode(),
instead of hardcoded PR_TRUE.

r=karnaze@netscape.com  sr=attinasi@netscape.com


git-svn-id: svn://10.0.0.236/trunk@102313 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 18:25:24 +00:00
bnesse%netscape.com
dec4d71678 Fix for bug 92447. Internalize loading of config file so it can be re-read if the preferences are reset. r=chipc, mitesh. sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@102312 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 18:22:10 +00:00
pschwartau%netscape.com
430684703a Adding comment regarding regress-97646-001-n.js, regress-97646-002-n.js
git-svn-id: svn://10.0.0.236/trunk@102311 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 17:47:11 +00:00
kaie%netscape.com
b52007e705 Trying to fix BeOS bustage
git-svn-id: svn://10.0.0.236/trunk@102310 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 17:35:47 +00:00
pschwartau%netscape.com
8153af34c7 Correcting comments at top of file, plus bug and summary values.
git-svn-id: svn://10.0.0.236/trunk@102309 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 17:13:14 +00:00
pschwartau%netscape.com
2ae8b14bf9 Correcting date at top of file.
git-svn-id: svn://10.0.0.236/trunk@102308 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 17:03:32 +00:00
pschwartau%netscape.com
b8f6189c5e Correcting comments at top of file, plus bug and summary values.
git-svn-id: svn://10.0.0.236/trunk@102307 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 17:01:03 +00:00
nboyd%atg.com
6544d41b2d Patch from Igor.
git-svn-id: svn://10.0.0.236/trunk@102303 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 16:54:37 +00:00
nboyd%atg.com
5c7eda79e4 Patch from jeffh@aiinet.com:
There is a bug in the JavaMembers class called to wrap a Java object.

In JavaMembers.lookup(), code was added to override the static type.  The
code works in the case of an Enumeration returning an Object which would
have to be casted to the appropriate type.

The code does not work when the static type is an interface.  In this case,
the interface class is the one which should be reflected, not a parent class
of the dynamic type.  A simple staticType.isInterface() check around the
parent traversal code fixes the problem.

Jeff


git-svn-id: svn://10.0.0.236/trunk@102302 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 16:52:39 +00:00
nboyd%atg.com
e899c924a5 Patch from jeffh@aiinet.com:
I have found a couple problems with running Rhino 1.5R2 in a heavily
multi-threaded environment.  The attached patches fix the problems.

- org.mozilla.javascript.optimizer.InvokerImpl - This class was accessing
the shared classNumber outside of the synchronized block.

- org.mozilla.javascript.optimizer.OptClassNameHelper - The reset method was
not synchronized.  It needs to be because the class using the classNames map
is synchronized and does not handle nulling of the variable while it's
looping on the map.

Jeff


git-svn-id: svn://10.0.0.236/trunk@102301 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 16:50:26 +00:00
nboyd%atg.com
82bb8039ec Update for new tests.
git-svn-id: svn://10.0.0.236/trunk@102300 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 16:48:31 +00:00
kaie%netscape.com
a18e083aff b=24847 r=dcone sr=attinasi
Implement printing of Landscape in Unix.
Contact me at kai.engert@gmx.de


git-svn-id: svn://10.0.0.236/trunk@102297 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 14:30:16 +00:00
karnaze%netscape.com
10f9310e62 bug 95688 - null check on base url which might fix the talkback reports. sr=kin, r=alexsavulov.
git-svn-id: svn://10.0.0.236/trunk@102295 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 14:05:01 +00:00
jaggernaut%netscape.com
1536b0881b Remove #define nsString2 nsString and #define nsAutoString2 nsAutoString and fix last few uses of them. r=dbradley, rs=scc
git-svn-id: svn://10.0.0.236/trunk@102294 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 12:42:54 +00:00
jaggernaut%netscape.com
54a31f5907 Bug 92581: [xlib] Implement Xlib error handler for Xlib-toolkit. Patch by Roland Mainz (aka gisburn) <Roland.Mainz@informatik.med.uni-giessen.de>, r=syd, sr=kin
git-svn-id: svn://10.0.0.236/trunk@102293 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 11:34:29 +00:00
jaggernaut%netscape.com
234588f481 Bug 98153: Remove SubsumeStr. r=dbaron, sr=scc
git-svn-id: svn://10.0.0.236/trunk@102292 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 10:46:45 +00:00
axel%pike.org
6fa04b04c1 bug 94834, without png and mng, DIRS was " ", r=pavlov, sr=jst
git-svn-id: svn://10.0.0.236/trunk@102291 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 08:48:54 +00:00
bryner%netscape.com
24e290ab05 Removing unused/obsolete file. r=pavlov.
git-svn-id: svn://10.0.0.236/trunk@102289 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 08:19:53 +00:00
bryner%netscape.com
66b6116e42 Bug 90886 - eStyleStruct_BorderPaddingShortcut is obsolete. r=jag, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@102288 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 08:09:45 +00:00
bryner%netscape.com
61da61b224 Bug 94491 - make the filepicker not allow multiple selection, since our filepicker API doesn't support it. r=jag, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@102287 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 08:06:09 +00:00
cls%seawood.org
02515d8bc5 Deactivate sidebar panels when the panel is not selected.
Special thanks to matt@netscape.com for providing this patch.
Bug #53239 r=cls sr=ben a=asa


git-svn-id: svn://10.0.0.236/trunk@102285 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 07:43:17 +00:00
mscott%netscape.com
1790afbb1b Adding prototype property file to project from mscott's mac. This is hyatt.
git-svn-id: svn://10.0.0.236/trunk@102284 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 07:39:38 +00:00
mscott%netscape.com
807f017cd5 File has been added to manifest for XBL brutal sharing. This is hyatt.
git-svn-id: svn://10.0.0.236/trunk@102283 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 07:39:11 +00:00
mscott%netscape.com
3570f28c34 Landing XBL brutal sharing from mscott's machine. This is hyatt. The bug has r/sr=hyatt,brendan.
git-svn-id: svn://10.0.0.236/trunk@102282 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 07:36:55 +00:00
bryner%netscape.com
e4db469fc4 Bug 85388 - Xprint prints transparent images with black background. Patch from Roland.Mainz@informatik.med.uni-giessen.de, r=jesup@wgate.com, sr=kin.
git-svn-id: svn://10.0.0.236/trunk@102281 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 07:29:26 +00:00
sspitzer%netscape.com
9aa04494aa update the icons for #88970 for marlon. r/sr=hewitt,sspitzer
git-svn-id: svn://10.0.0.236/trunk@102278 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 06:44:39 +00:00
sspitzer%netscape.com
1c17106ca0 landing new icons for modern skin for marlon. #92429 r=sspitzer, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@102277 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 06:43:12 +00:00
cls%seawood.org
725755040b Updating module dependencies caused by checkin for bug 29839 and/or bug 63408 .
git-svn-id: svn://10.0.0.236/trunk@102276 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 06:41:12 +00:00
sspitzer%netscape.com
afd84df604 landing new icons for modern skin for marlon. #92429
r=sspitzer, sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@102275 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 06:40:51 +00:00
cls%seawood.org
911a6f4163 Updating module dependencies caused by checkin for bug 97380
git-svn-id: svn://10.0.0.236/trunk@102273 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 06:37:42 +00:00
pschwartau%netscape.com
2a346d4ab4 Initial add. Regression test for bug 98306.
git-svn-id: svn://10.0.0.236/trunk@102272 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 06:27:25 +00:00
dougt%netscape.com
440e888df5 fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@102271 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 04:37:13 +00:00
jst%netscape.com
1ecab07c09 Fixing bug 62613, patch from Fabian <hidday@geocities.com>. CSSStyleDeclaration objects didn't support the array syntax in JS for calling the item() method. r=harishd@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@102270 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 04:35:21 +00:00
jst%netscape.com
5a93f1f248 Fixing compiler warning (i might be used uninitialized in this function)
git-svn-id: svn://10.0.0.236/trunk@102269 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 04:30:12 +00:00
jst%netscape.com
f26b002773 Fixing bug 95840. Speeding up global property access in JS. r=mstoltz@netscape.com, sr=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@102268 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 04:29:13 +00:00
jst%netscape.com
2de4e518a6 Fixing bug 91241. Don't use the service manager to get the element factory everty time it's needed, cache it per namespace id, we spent about 0.9% of startup getting the element factory service. r=dp@netscape.com, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@102267 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 04:20:54 +00:00
edburns%acm.org
753ec174c7 r=peterl
sr=waterson
a=asa


modules/plugin/base/src/nsIPluginInstanceOwner.h
modules/plugin/base/src/nsPluginHostImpl.cpp
modules/plugin/base/src/nsPluginHostImpl.h
modules/plugin/base/src/nsPluginViewer.cpp
modules/oji/src/nsJVMManager.cpp
modules/oji/src/nsJVMManager.h
layout/html/base/src/nsObjectFrame.cpp
xpfe/global/resources/locale/en-US/region.properties


Here's what I did to fix this bug.

I pestered Rick Potts about the problem of
nsIWebBrowserChrome->SetStatus() not being synchronous.  He fixed that
under bug 97227.

Taking advantage of Rick's fix to 97227, I modified
nsIPluginInstanceOwner to have new method, ShowStatus(const PRUnichar
*aStatusMsg).  This is necessary to allow for localized messages to be
posted from the plugin, such as "Starting plugin for type
application/x-java-vm" or "Beginnen steckbar für Art
application/x-java-vm".

I modified all the implementations of nsIPluginInstanceOwner:

  layout/html/base/src/nsObjectFrame.cpp
  modules/plugin/base/src/nsPluginViewer.cpp

I inserted a call to nsIPluginInstanceOwner->ShowStatus() at the part
just before the big "whole damn app freezes when starting java" thing
happens.

I also modifed nsJVMManager.cpp ShowJavaConsole() to do the same.  These
are the two places I know of now that can start java.


git-svn-id: svn://10.0.0.236/trunk@102266 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 03:58:34 +00:00
dougt%netscape.com
8e801f7f38 Upload Channel API changes. Bug 29839. r=darin@Netscape.com, sr=rpotts@netscape.com.
Also fixes bug 63408, not alerting when file-not-found. r/sr same as above


git-svn-id: svn://10.0.0.236/trunk@102265 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 03:52:26 +00:00
dougt%netscape.com
120f1da920 Trival change to fix 58792 submitted by jkobal@us.ibm.com
git-svn-id: svn://10.0.0.236/trunk@102264 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 03:51:38 +00:00
ccarlen%netscape.com
a51a68f739 Adding nsIUploadChannel.idl for dougt
git-svn-id: svn://10.0.0.236/trunk@102263 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 03:42:32 +00:00
dougt%netscape.com
466a519589 adding nsIUploadChannel to the build. r=darin, sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@102262 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 03:32:23 +00:00
dbaron%fas.harvard.edu
eb5b72dd4c Make the "browser.display.screen_resolution" pref work again. b=69205 r=bryner sr=waterson
git-svn-id: svn://10.0.0.236/trunk@102261 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 03:15:55 +00:00
dbaron%fas.harvard.edu
10a638521f Replace per-struct Check*Properties with property tables and account for the possibility of having an explicit 'inherit' value. b=91054 r=hyatt sr=waterson
git-svn-id: svn://10.0.0.236/trunk@102260 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 03:13:58 +00:00
blizzard%redhat.com
e152d59a63 Rev the serial number, remove some old patches. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@102259 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 03:06:01 +00:00
peterlubczynski%netscape.com
4ff5889753 Fix for not setting reflow state on object frame in printing case bug 97563 r=av sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@102257 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 02:45:48 +00:00
stephend%netscape.com
3ee98a68f6 Bug 48053. Remove sidebar-messenger* from the tree. r=cls, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@102256 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 02:43:37 +00:00
sspitzer%netscape.com
7c0740a860 fix for bug #98299. clean up fallout from #97487. rs=bienvenu
git-svn-id: svn://10.0.0.236/trunk@102255 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 02:20:41 +00:00
zach%zachlipton.com
ab18280466 Adding a test for safe system and exec calls. Part of this code by Dave.
git-svn-id: svn://10.0.0.236/trunk@102254 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 01:43:25 +00:00
rginda%netscape.com
c9da2557a6 - venkman only -
remove guessed function style, as this is now indicated by surrounding the function name in square brackets.


git-svn-id: svn://10.0.0.236/trunk@102253 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 01:41:07 +00:00
rginda%netscape.com
a6b55d6cbf - venkman only -
add formatting messages, remove fclear


git-svn-id: svn://10.0.0.236/trunk@102252 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 01:40:01 +00:00
rginda%netscape.com
5ffce21c70 - venkman only -
make dump tree function taka a param
remove bogus _cache dance
add matchesScriptRecord method to breakpoint record
only do the icode replacement if the breakpoint is enabled in addScriptRecord


git-svn-id: svn://10.0.0.236/trunk@102251 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 01:39:09 +00:00
rginda%netscape.com
60b571c7bc - venkman only -
remove unused messages
add used messages


git-svn-id: svn://10.0.0.236/trunk@102250 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 01:37:11 +00:00
rginda%netscape.com
f1de04bbc1 - venkman only -
change string concats to getMsg calls, to make bidi more better
don't duplicate setBreakpoints()s efforts by checking for matching files in onInputBreak
reimpliment onInputFBreak
remove onInputFClear.  future breakpoints can now be cleared wit the standard clear command.
remove dead onScriptCreated function


git-svn-id: svn://10.0.0.236/trunk@102249 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 01:36:44 +00:00
rginda%netscape.com
7b5157ac4c - venkman only -
dont pay attention to scripts without filenames
remove script from the script tree when it is unloaded
if a newly created script matches an existing breakpoint record, add that script to the breakpoint record.
remove obsoleted future breakpoint functions


git-svn-id: svn://10.0.0.236/trunk@102248 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 01:34:23 +00:00
rginda%netscape.com
ae5684e0f2 - venkman only -
remove fclear command, future breakpoints now share the same list as normal breakpoints.  the standard clear comman will suffice


git-svn-id: svn://10.0.0.236/trunk@102247 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 01:31:56 +00:00
rginda%netscape.com
453f11b043 - venkman only -
reset childIndex and parentRecord on a removed tree item


git-svn-id: svn://10.0.0.236/trunk@102246 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 01:30:59 +00:00
ftang%netscape.com
9324fd7c9f back out change of 56863 because it cause 98233
git-svn-id: svn://10.0.0.236/trunk@102244 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 01:21:27 +00:00
pschwartau%netscape.com
0fa3d563e6 Skipping two new tests that use non-EMCA functionality: toSource() and uneval().
git-svn-id: svn://10.0.0.236/trunk@102243 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 01:07:17 +00:00
bryner%netscape.com
d30e97109d Removing obsolete/unused file. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@102242 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 01:04:31 +00:00
rbs%maths.uq.edu.au
8cedb518ee Back-end to allow viewsource to toggle wrapping of long lines. b=22022 r=bzbarsky sr=jst
git-svn-id: svn://10.0.0.236/trunk@102241 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 01:02:58 +00:00
pschwartau%netscape.com
216a755d04 Improved readabilty. Improved accuracy of stripBraces() function.
git-svn-id: svn://10.0.0.236/trunk@102240 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 00:49:31 +00:00
bryner%netscape.com
e21ebf8cf6 Removing obsolete/unused file. Not part of the build. r=cls.
git-svn-id: svn://10.0.0.236/trunk@102239 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 00:48:43 +00:00
pschwartau%netscape.com
c1a88c8a50 This is more accurate. Also using sorting now, for definiteness in comparisons.
git-svn-id: svn://10.0.0.236/trunk@102238 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 00:46:24 +00:00
bryner%netscape.com
e988e3408f Bug 96438 - file name and type descriptions aren't aligned with fields. r=jag, sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@102237 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 00:39:00 +00:00
bryner%netscape.com
79e8b202e3 Oops -- missed adding this code from nsFileWidget. This should fix the beos bustage.
git-svn-id: svn://10.0.0.236/trunk@102236 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 00:17:04 +00:00
naving%netscape.com
5c336e927f 96921 r=suresh sr=mscott. fix mlk of nsSupportsArray elements because they were
being addref'ed twice.


git-svn-id: svn://10.0.0.236/trunk@102235 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 00:06:30 +00:00
bzbarsky%mit.edu
0f2651a119 Fix the nsIDOMMediaList interface to have the right properties. Make
media rules implement nsIDOMCSSMediaRule.  Fix insertRule() to be able
to insert into the middle of a rule list.  Fix issues with stylesheets
not getting dirtied when media lists are modified.  bug 93977,
r=pierre, sr=jst


git-svn-id: svn://10.0.0.236/trunk@102234 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 00:00:18 +00:00
stephend%netscape.com
283731508b Bug 94839. 'Open Web Location dialog shouldn't have an icon'. Patch by Bradley Hart <bhart00@yahoo.com>. r=hwaara, sr=ben
git-svn-id: svn://10.0.0.236/trunk@102232 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 23:40:33 +00:00
danm%netscape.com
32c574645c add new file nsAppShellWindowEnumerator. bug 96151 r=hyatt,sfraser
git-svn-id: svn://10.0.0.236/trunk@102231 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 23:30:58 +00:00
danm%netscape.com
5a76e32252 add new z-level enumerators. bug 96151 r=hyatt,sfraser
git-svn-id: svn://10.0.0.236/trunk@102230 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 23:30:46 +00:00
danm%netscape.com
487aa46a02 move window enumerators to new file; add new z-level enumerators. bug 96151 r=hyatt,sfraser
git-svn-id: svn://10.0.0.236/trunk@102229 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 23:30:41 +00:00
cls%seawood.org
a4d3cd95e7 Updating REQUIRES
git-svn-id: svn://10.0.0.236/trunk@102228 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 23:30:27 +00:00
danm%netscape.com
bffa3bd421 new implementation for window enumerators, including new z-level enumerators. bug 96151 r=hyatt,sfraser
git-svn-id: svn://10.0.0.236/trunk@102227 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 23:30:24 +00:00
naving%netscape.com
8458096beb 67836 r/sr=sspitzer. Use PL_strchr instead of PL_strstr for finding end of line.
git-svn-id: svn://10.0.0.236/trunk@102226 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 23:30:06 +00:00
cls%seawood.org
d984e53eff Update REQUIRES
git-svn-id: svn://10.0.0.236/trunk@102225 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 23:24:04 +00:00
naving%netscape.com
8f290007b2 97530 r=cavin sr=bienvenu. Save the filterlist if the destination folder for a
filter has been renamed/deleted.


git-svn-id: svn://10.0.0.236/trunk@102224 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 23:19:39 +00:00
av%netscape.com
72c385ca9f Fixing bug 86642 -- crash in DOMMimeTypeImpl::DOMMimeTypeImpl() when assigning fields missing from the plugin version stamp, r=peterl, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@102223 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 23:17:48 +00:00
danm%netscape.com
bda3afbc6a ignore width or height of 0 (as in 'width=') when opening windows. bug 67947 r=hyatt,joki
git-svn-id: svn://10.0.0.236/trunk@102222 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 23:14:31 +00:00
darin%netscape.com
1a25fee22d fixes bug 59016 "jpg don't display" r=gagan, sr=dougt
git-svn-id: svn://10.0.0.236/trunk@102221 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 23:11:46 +00:00
darin%netscape.com
f90e1af576 fixes bug 83526 "http should use fewer connections per server per page"
r=bbaetz sr=dougt,blizzard


git-svn-id: svn://10.0.0.236/trunk@102220 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 23:02:26 +00:00
blizzard%redhat.com
2ede81a925 Ongoing new X Remote Code. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@102219 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 23:01:23 +00:00
blizzard%redhat.com
198d4dc6fe Ongoing WIP for new X Remote code. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@102218 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 22:59:39 +00:00
naving%netscape.com
33de6f0e0b 98180 r/sr=sspitzer. Do not preflight the date pikcer w/ current date, if there is already an exisiting
date


git-svn-id: svn://10.0.0.236/trunk@102214 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 22:58:12 +00:00
bryner%netscape.com
f5ed2a3be4 Bug 47551 -- removing obsolete nsIFileSpecWithUI and nsIFileWidget. r=pavlov, sr=ben.
git-svn-id: svn://10.0.0.236/trunk@102213 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 22:56:38 +00:00
saari%netscape.com
4e08eef5ef checking in mac project changes for bryner, bug 47551
git-svn-id: svn://10.0.0.236/trunk@102212 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 22:54:02 +00:00
rogerl%netscape.com
6a5d50c542 Added setXXX funciton implementations.
git-svn-id: svn://10.0.0.236/trunk@102210 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 22:07:32 +00:00
rogerl%netscape.com
88a6e5c796 Added jsdate & prmjtime to build.
git-svn-id: svn://10.0.0.236/trunk@102209 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 21:10:21 +00:00
rogerl%netscape.com
9778122dbe Fix for apparent missing region compare in gcc version of basic_string.
git-svn-id: svn://10.0.0.236/trunk@102208 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 21:02:10 +00:00
relyea%netscape.com
2b8b0be222 Don't skip certs that are already in the database. We may have to tweak
with the trust bits.


git-svn-id: svn://10.0.0.236/trunk@102207 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 20:20:48 +00:00
relyea%netscape.com
2d76d3deb0 Allow 'importing' certificates that already exist in the database.
Use the import to change the trust flags on the given certificate.


git-svn-id: svn://10.0.0.236/trunk@102206 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 20:19:26 +00:00
mcgreer%netscape.com
eb6d8a3074 checkin for colin@theblakes.com, OpenVMS fix
r=javi,sr=cls,a=dbaron


git-svn-id: svn://10.0.0.236/trunk@102205 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 14:51:08 +00:00
dmose%netscape.com
1e4b9afa30 Bug 92135: shows source of autocomplete items in the mail compose window using icons in the dropdown (default match, local addressbook, remote addressbook). Allows (via hidden pref; off by default) for more sophisticated info about each address -- specific addrbook name, or random ldap attribute, like department). Also fixes minor LDAP autocomplete i18n regression introduced post 0.9.3 and found while testing. r=sspitzer; sr=hewitt; a=asa
git-svn-id: svn://10.0.0.236/trunk@102202 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 05:25:08 +00:00
zach%zachlipton.com
3254c8a684 Add a little 1; to the end of this.
git-svn-id: svn://10.0.0.236/trunk@102201 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 04:28:24 +00:00
pschwartau%netscape.com
1e55d91449 Initial add. Regression test for bug 96284.
git-svn-id: svn://10.0.0.236/trunk@102200 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 01:54:36 +00:00
serge%netscape.com
91130476f6 bug 69167; plugin load fails silently on library not found; r=av, sr=waterson, a=roc+moz
git-svn-id: svn://10.0.0.236/trunk@102199 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 23:04:53 +00:00
brendan%mozilla.org
802990f0a6 Ignore property found in non-native prototype (12367, sr=jband&shaver, a=asa).
git-svn-id: svn://10.0.0.236/trunk@102198 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 22:29:12 +00:00
zach%zachlipton.com
34e0aa80c0 Actually make the strict checking work.
git-svn-id: svn://10.0.0.236/trunk@102197 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 22:11:43 +00:00
zach%zachlipton.com
845e5fbbee add tests for use strict;
git-svn-id: svn://10.0.0.236/trunk@102196 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 22:04:09 +00:00
zach%zachlipton.com
90cc2fe587 Enforce -w. This file will also be used to enforce use strict;
git-svn-id: svn://10.0.0.236/trunk@102195 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 21:43:22 +00:00
zach%zachlipton.com
9f27644a48 Rename 1.t to 1compile.t as per bug 97976.
git-svn-id: svn://10.0.0.236/trunk@102193 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 20:17:40 +00:00
zach%zachlipton.com
7c0be6c517 Remove processmail from the list. It was causing problems with taint.
git-svn-id: svn://10.0.0.236/trunk@102192 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 19:39:37 +00:00
brendan%mozilla.org
4a1d0f0899 Fix toSource on exception objects so it uses toSource to generate properly-quoted, embedded string literals for message and filename (bug 96284, r=jband, sr=shaver, a=asa).
git-svn-id: svn://10.0.0.236/trunk@102191 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 19:36:24 +00:00
zach%zachlipton.com
488ccb60b0 Ok, really this time. This should work :)
git-svn-id: svn://10.0.0.236/trunk@102190 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 19:26:58 +00:00
zach%zachlipton.com
18717d4966 Backout of this to get things back to normal
git-svn-id: svn://10.0.0.236/trunk@102189 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 18:50:56 +00:00
zach%zachlipton.com
7a86f27c8a Use Support::Files for the test items.
No review needed at this time for tests as per Dave.


git-svn-id: svn://10.0.0.236/trunk@102188 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 18:35:19 +00:00
zach%zachlipton.com
9dd9a3fee4 Addition of Files.pm which will be used shortly by 1.t (soon to be 1compile.t) which contains the list of files to test. This is important so that we can bring it into other tests which check files for content, etc...
No review required for tests as of now as per Dave.


git-svn-id: svn://10.0.0.236/trunk@102187 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 18:33:03 +00:00
zach%zachlipton.com
b82047c7b9 Fix for bug 98024: t/1.t should use $^X instead of hard-coded path to perl.
Patch by ddkilzer@theracingworld.com (David D. Kilzer, ddk). Review by Zach Lipton (zach@zachlipton.com) no 2nd review required.


git-svn-id: svn://10.0.0.236/trunk@102186 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 17:58:53 +00:00
timeless%mac.com
7c2d9ca3dc Bugzilla Bug 89864 <SCRIPT LANGUAGE="JavaScript1.0"> gets ignored
r=dveditz, sr=brendan, a=asa


git-svn-id: svn://10.0.0.236/trunk@102185 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 16:09:58 +00:00
kaie%netscape.com
41dc386fdf b=76915 r=jag sr=hyatt a=blizzard
Fixing a text string.


git-svn-id: svn://10.0.0.236/trunk@102183 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 14:11:39 +00:00
pavlov%netscape.com
ff9e8ff3e0 fixing the annoying GDK-CRITICAL asserts on linux. bug 95160. r=bryner sr=hyatt a=asa
git-svn-id: svn://10.0.0.236/trunk@102182 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 08:21:37 +00:00
cls%seawood.org
56da280ff2 Add floating point support to sparcv9 xptcall implementation.
Bug #91840 r=pavlov [not part of the build and all that nonsense]


git-svn-id: svn://10.0.0.236/trunk@102181 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 01:47:32 +00:00
dbaron%fas.harvard.edu
2729f11757 Use the name mozpango rather than mozpng to avoid library name conflict with PNG library. b=97481 r=cls a=asa Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@102180 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 01:28:18 +00:00
justdave%syndicomm.com
e3c9d88972 Fix for bug 91808: Additional sanitycheck tests for the duplicates table.
Patch by Matthew Tuck <matty@chariot.net.au>
r= jake@acutex.net, caillon@returnzero.com


git-svn-id: svn://10.0.0.236/trunk@102179 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 01:08:05 +00:00
despotdaemon%netscape.com
8459a2c9a9 Pseudo-automatic update of changes made by alex.fritze@crocodile-clips.com.
git-svn-id: svn://10.0.0.236/trunk@102178 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-02 18:40:09 +00:00
dougt%netscape.com
6ab2a76e68 backing out my changes due to linux orangeness
git-svn-id: svn://10.0.0.236/trunk@102177 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-02 17:15:16 +00:00
dougt%netscape.com
161d8dd0c6 Fixes a crash when QI'ing on async xpcom event proxy. r=rpotts, sr=jband, a=blizzard
git-svn-id: svn://10.0.0.236/trunk@102176 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-02 05:53:28 +00:00
pavlov%netscape.com
438c6aaae7 change the st calls to stx since we're using extended words now.
git-svn-id: svn://10.0.0.236/trunk@102175 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-02 02:17:37 +00:00
pavlov%netscape.com
bde544332d learning to type.. (not part of build)
git-svn-id: svn://10.0.0.236/trunk@102174 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-02 00:27:28 +00:00
pavlov%netscape.com
7538d475be typo
git-svn-id: svn://10.0.0.236/trunk@102173 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-02 00:23:10 +00:00
pavlov%netscape.com
2edd59b33e cleaning up a little.. adding new xptcstubs v9 (not part of build)
git-svn-id: svn://10.0.0.236/trunk@102172 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-02 00:18:39 +00:00
pavlov%netscape.com
e4671f9078 adding xptcstubs for sparcv9 (64bit). not part of build
git-svn-id: svn://10.0.0.236/trunk@102171 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 23:48:04 +00:00
rginda%netscape.com
d95b9a0aca bug 88130, patch=jband, r=me,dbradley, sr=jst, a=brendan
clear exception state before and after calling out via xpconnect.
remove redundant exception clear from CallQueryInterfaceOnJSObject.


git-svn-id: svn://10.0.0.236/trunk@102170 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 22:47:47 +00:00
rginda%netscape.com
6602a81a2a - not built -
package new stack, project, and breakpoint icons
package new step over, step out, and stop toolbar icons


git-svn-id: svn://10.0.0.236/trunk@102168 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 18:51:51 +00:00
rginda%netscape.com
178a78dfe7 - not built -
add css for new step out, step over, stop buttons
change continue and step in commands to use the new png images
add css for breakpoint, script, and watch views


git-svn-id: svn://10.0.0.236/trunk@102167 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 18:49:40 +00:00
rginda%netscape.com
78971eaea0 - not built -
make links in error messages less ugly


git-svn-id: svn://10.0.0.236/trunk@102166 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 18:48:36 +00:00
rginda%netscape.com
dd815a80c1 - not built -
add strings for stack outliner, disable breakpoint, finish and next commands


git-svn-id: svn://10.0.0.236/trunk@102165 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 18:47:42 +00:00
rginda%netscape.com
1d72d63212 - not built -
new strings for step over, step out, stop commands
remove unused strings
add strings for script, source, and stack outliners


git-svn-id: svn://10.0.0.236/trunk@102164 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 18:46:48 +00:00
rginda%netscape.com
fd47134931 - not built -
hook up step out, step over, and stop commands
add outliners for new project, script, and stack views


git-svn-id: svn://10.0.0.236/trunk@102163 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 18:45:34 +00:00
rginda%netscape.com
6c3da8810b - not built -
brace/whitespace cleanup
implement leftPadString()


git-svn-id: svn://10.0.0.236/trunk@102162 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 18:44:18 +00:00
rginda%netscape.com
befb2d4235 - not built -
implement next, step out, and stop state commands
bring breakpoint implementation in line with the new breakpoint and script views
add destroy() method to tear down the debugger


git-svn-id: svn://10.0.0.236/trunk@102161 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 18:43:43 +00:00
rginda%netscape.com
acbb49532e - not built -
change tab width pref from "tab string" to numerical width
remove wordbreak pref (it's just a const now)


git-svn-id: svn://10.0.0.236/trunk@102160 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 18:41:53 +00:00
rginda%netscape.com
7ac4abc5c5 - not built -
change doctype to avoid quirks mode


git-svn-id: svn://10.0.0.236/trunk@102159 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 18:40:33 +00:00
rginda%netscape.com
ddac1964ab - not built -
implement new script, stack, and project views


git-svn-id: svn://10.0.0.236/trunk@102158 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 18:39:58 +00:00
rginda%netscape.com
6c41e5e130 - not built -
hookup new messages


git-svn-id: svn://10.0.0.236/trunk@102157 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 18:39:01 +00:00
rginda%netscape.com
34a846d24b - not built -
hook up next, stepout, finish, and stop commands
event handler work for the new project, script, and stack views


git-svn-id: svn://10.0.0.236/trunk@102156 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 18:37:49 +00:00
rginda%netscape.com
1a7855a477 - not built -
whitespace cleanup
use new TreeOView stuff, add breakpoint, project, and stack view support


git-svn-id: svn://10.0.0.236/trunk@102155 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 18:35:36 +00:00
rginda%netscape.com
2dcddedc75 - not built -
hook up finish and next commands


git-svn-id: svn://10.0.0.236/trunk@102154 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 18:32:30 +00:00
rginda%netscape.com
5fc1ce593d - not built -
add scrollTo to BasicOView
add generic tree outliner view support (TreeOView and TreeOViewRecord)


git-svn-id: svn://10.0.0.236/trunk@102153 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 18:31:48 +00:00
rginda%netscape.com
be35ff89fc - not built -
adding new icons


git-svn-id: svn://10.0.0.236/trunk@102152 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 18:28:24 +00:00
rginda%netscape.com
5b35893ef8 - not built -
adding tree outliner view test


git-svn-id: svn://10.0.0.236/trunk@102151 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 18:20:23 +00:00
blakeross%telocity.com
86c073e168 Long path causes helper app dialog to grow way too long (85173). Patch by Dean Tessman <dean_tessman@hotmail.com>. r=jag sr=blake a=asa
git-svn-id: svn://10.0.0.236/trunk@102150 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 18:12:45 +00:00
rginda%netscape.com
84b8ddf3ae -- not built --
exposing call hook functionality


git-svn-id: svn://10.0.0.236/trunk@102149 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 18:03:53 +00:00
rginda%netscape.com
a411916b1b -- not built --
whitespace cleanup


git-svn-id: svn://10.0.0.236/trunk@102148 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 18:01:28 +00:00
cls%seawood.org
7cc7e6af46 Add xprint ldflags to linking of gfx_xlib.
Thanks to Roland.Mainz@informatik.med.uni-giessen.de (Roland Mainz) for the patch.
Bug #97264 r=cls a=blizzard


git-svn-id: svn://10.0.0.236/trunk@102147 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 17:29:05 +00:00
cls%seawood.org
3736408869 Declare nsCOMPtrs outside of do-while loops to avoid gcc 2.x -O2 optimization bug.
Bug #96911 r=jfrancis sr=kin a=blizzard


git-svn-id: svn://10.0.0.236/trunk@102146 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 17:24:08 +00:00
blizzard%redhat.com
f7762a4e47 drop in updated patches. not part of the build.
git-svn-id: svn://10.0.0.236/trunk@102145 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 17:12:21 +00:00
cmanske%netscape.com
57d2e418fd Fixed not allowing '-' and '+' for font tag 'size' attribute in Advanced Edit dialog, b=88878, r=akkana, sr=shaver, a=asa
git-svn-id: svn://10.0.0.236/trunk@102144 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 14:14:36 +00:00
pavlov%netscape.com
aaaaa076b4 fixing some typos :) (NOT PART OF BUILD)
git-svn-id: svn://10.0.0.236/trunk@102143 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 08:02:48 +00:00
pavlov%netscape.com
a899539797 adding sparcv9 xptcall code for 64bit solaris with Sun Workshop/Forte compilers. not part of the build.
git-svn-id: svn://10.0.0.236/trunk@102142 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 07:57:33 +00:00
bnesse%netscape.com
c7838917a8 Fix for bug 37592. Implement about:config. Checking in for chipc. r=darin, hewitt, mstoltz,srilatha. sr=waterson. a=brendan.
git-svn-id: svn://10.0.0.236/trunk@102141 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 06:01:25 +00:00
mstoltz%netscape.com
6be1acfad8 59208 - Activate enumeration callback for window and document objects
and call security check to prevent cross-site enumeration. r=jst, sr=jband,
a=asa


git-svn-id: svn://10.0.0.236/trunk@102140 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 03:30:51 +00:00
justdave%syndicomm.com
ce6d26e5d3 Added a --verbose option to runtests.sh that the tinderbox scripts can use to get all the warnings and errors and whatnot into the build log. Also corrected several syntax and logic errors in the 1.t test file.
git-svn-id: svn://10.0.0.236/trunk@102139 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 03:06:15 +00:00
cls%seawood.org
53dd271077 Use PR_TRUE instead of true. Should fix OS/2 & AIX bustage.
git-svn-id: svn://10.0.0.236/trunk@102136 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 01:14:56 +00:00
rogerl%netscape.com
32a2685e57 Adding Date package.
git-svn-id: svn://10.0.0.236/trunk@102135 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 01:10:57 +00:00
mscott%netscape.com
3f16112777 Bug #97835 --> don't linkify words with @ signs in them unless they have a '.' somewhere after the space.
r=varada
sr=sspitzer
a=asa


git-svn-id: svn://10.0.0.236/trunk@102134 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 00:57:07 +00:00
gerv%gerv.net
7153c99508 Added units to font size pref panel and fixed visual glitch in DPI dropdown. Bug 89842 and bug 96339. r=bzbarsky, sr=blake, a=asa.
git-svn-id: svn://10.0.0.236/trunk@102133 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 00:18:20 +00:00
jake%acutex.net
67916924a4 Fix for bug 42810 - Bugzilla would choke if your product name contained a ' mark.
Patch by Christian Reis <kiko@async.com.br>
r= justdave@syndicomm.com, caillon@returnzero.com


git-svn-id: svn://10.0.0.236/trunk@102132 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 23:51:35 +00:00
zach%zachlipton.com
e9b4cc2993 Fix for bug 96603: Grammatical error in bug_status.html. Simple one word fix.
Patch by Christopher Aillon (caillon@returnzero.com). r1=Christian Reis (kiko@async.com.br),
r2=Zach Lipton (zach@zachlipton.com) though not really needed for this patch.


git-svn-id: svn://10.0.0.236/trunk@102131 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 23:37:36 +00:00
jst%netscape.com
cee6d8af23 Fixing bug 96489. tablerow.insertCell() not returning cell object, patch by Fabian <hidday@geocities.com>, r=peterv@netscape.com, sr=jst@netscape.com, a=blizzard@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@102130 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 23:31:31 +00:00
hewitt%netscape.com
1238729448 97487 - breaking up the mail css files, r=mscott, sr=sspitzer, a=asa
git-svn-id: svn://10.0.0.236/trunk@102129 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 23:31:29 +00:00
cotter%netscape.com
b3854ecb73 privacy & security help content updates per b=85925, a=asa, r=oeschger
git-svn-id: svn://10.0.0.236/trunk@102127 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 23:23:23 +00:00
bryner%netscape.com
f765adcc8e Bug 95556 - removing obsolete native textarea widget. r=jag, sr=blizzard, a=blizzard.
git-svn-id: svn://10.0.0.236/trunk@102126 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 23:10:11 +00:00
sspitzer%netscape.com
11fde75df3 97487 - breaking up the mail css files, r=mscott, sr=sspitzer, a=asa
git-svn-id: svn://10.0.0.236/trunk@102125 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 23:08:29 +00:00
av%netscape.com
c8299ff2f4 Removing no longer needed file in the sample code -- not part of the build
git-svn-id: svn://10.0.0.236/trunk@102124 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 23:04:14 +00:00
hewitt%netscape.com
f5b2b07d8b 97487 - breaking up the mail css files, r=mscott, sr=sspitzer, a=asa
git-svn-id: svn://10.0.0.236/trunk@102123 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 23:00:31 +00:00
av%netscape.com
a84571a019 Bug 97488 -- sample code to reflect new approach to scripting, not part of the build, patch by jband and av, r=av
git-svn-id: svn://10.0.0.236/trunk@102122 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 23:00:11 +00:00
yokoyama%netscape.com
f8474b312c Bug 40469:
Using proper UTF8toUCS2 converter
r/sr=vidur; /a=asa


git-svn-id: svn://10.0.0.236/trunk@102121 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 22:56:50 +00:00
sspitzer%netscape.com
7d9c68c6e2 97487 - breaking up the mail css files, r=mscott, sr=sspitzer, a=asa
git-svn-id: svn://10.0.0.236/trunk@102120 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 22:50:54 +00:00
varada%netscape.com
84aba2fece fix for regression 95041-new to field for compose window;r=prass;sr=sspitzer;a=asa
git-svn-id: svn://10.0.0.236/trunk@102119 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 22:48:10 +00:00
ftang%netscape.com
03ebccc4d6 fix bug 56863. r=blizzard sr=jst a=asa
make about:plugins localizable.


git-svn-id: svn://10.0.0.236/trunk@102118 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 22:47:53 +00:00
blizzard%redhat.com
4505a49947 Bug #95940. Make sure that the embed reload flags are in sync for the widget and the nsIWebNavigation interfaces in a backwards compatible way. r=valeski,sr=shaver, a=asa
git-svn-id: svn://10.0.0.236/trunk@102117 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 22:47:02 +00:00
ftang%netscape.com
9e6b40f91d fix 56863. r=blizzard sr=jst. add plugins.properties to the jar.mn
git-svn-id: svn://10.0.0.236/trunk@102116 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 22:46:28 +00:00
ftang%netscape.com
d340645616 fix bug 56863. add plugins.properties to the list. r=blizzard sr=jst
git-svn-id: svn://10.0.0.236/trunk@102115 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 22:44:17 +00:00
ftang%netscape.com
9b693fe654 fix bug 56863. r=blizzard sr=jst
not part of the build yet, won't break the tree


git-svn-id: svn://10.0.0.236/trunk@102114 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 22:43:11 +00:00
sspitzer%netscape.com
a4bce1013a removing dead editor files. these moved under mac and win a while ago. r/sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@102113 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 22:40:29 +00:00
hewitt%netscape.com
8edbad1afa 97487 - breaking up the mail css files, r=mscott, sr=sspitzer, a=asa
git-svn-id: svn://10.0.0.236/trunk@102112 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 22:37:44 +00:00
nicolson%netscape.com
ecb048a49e copyright notice.
git-svn-id: svn://10.0.0.236/trunk@102111 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 22:35:58 +00:00
hewitt%netscape.com
c6b3c28507 97487 - splitting up mail css files, r=mscott, sr=sspitzer, a=asa
git-svn-id: svn://10.0.0.236/trunk@102110 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 22:34:50 +00:00
sspitzer%netscape.com
05e11894fb breaking apart EditorToolbars.css into 3 files for performance reasons.
r=manske, sr=hewitt, a=asa #97487


git-svn-id: svn://10.0.0.236/trunk@102109 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 22:27:06 +00:00
hewitt%netscape.com
544c089c8b 97487 - splitting up mail css files, r=mscott, sr=sspitzer, a=asa
git-svn-id: svn://10.0.0.236/trunk@102108 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 22:20:37 +00:00
sspitzer%netscape.com
fedf03def5 breaking apart EditorToolbars.css into 3 files for performance reasons.
r=manske, sr=hewitt, a=asa #97487


git-svn-id: svn://10.0.0.236/trunk@102107 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 22:09:38 +00:00
sspitzer%netscape.com
db9465906c breaking apart EditorToolbars.css into 3 files for performance reasons.
r=manske, sr=hewitt, a=asa #97487


git-svn-id: svn://10.0.0.236/trunk@102106 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 22:04:19 +00:00
jband%netscape.com
25a16ec622 fix bug 97555. Need to get the correct value of staep into the iterator object when we fail during enumeration init. r=jst sr=brendan a=asa
git-svn-id: svn://10.0.0.236/trunk@102105 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 21:48:18 +00:00
waterson%netscape.com
e71914d177 Bug 97828. Be sure to create the static component loader before putting it into mLoaderData array. r=dp, sr=jband/sfraser, a=asa
git-svn-id: svn://10.0.0.236/trunk@102104 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 21:45:58 +00:00
myk%mozilla.org
ef156af3ff Fix for bug 97764: Fixes errant sending of mail on attachment changes to users who do not want to receive mail about their own changes.
Patch by Jake <jake@acutex.net>.
r=myk@mozilla.org; no second review needed.


git-svn-id: svn://10.0.0.236/trunk@102103 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 21:40:33 +00:00
cmanske%netscape.com
b4652869c1 Fixed getting fileBaseName and fileExtension parts of nsIOService::ExtactUrlPart(), b=97679, r=dougt, sr=darin, a=bizzard for drivers
git-svn-id: svn://10.0.0.236/trunk@102102 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 21:37:30 +00:00
sgehani%netscape.com
cdc4a6020c Show "homepage override URL" once every time milestone changes even for
existing profiles.

b=97220; r=jag,dveditz; sr=mscott; a=blizzard


git-svn-id: svn://10.0.0.236/trunk@102101 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 21:34:52 +00:00
brendan%mozilla.org
a30fcf3fcb Fix 97540, r=rginda, sr=jband, a=asa:
- The most significant fix, to keep JSStackFrame.spbase, the operand stack base pointer for an active frame, null except when there is an operand stack allocated and in use by js_Interpret.  Previously, spbase would point after args and local vars (if any), then advance upon allocation of the (possibly discontiguous) operand stack space.  This made for a fatal ambiguity: js_AllocStack, called by XPConnect, could not tell when there was allocated operand stack space above the frame's sp, which needs to be set to a known (JSVAL_VOID) state for exact GC to work.  Now, the GC doesn't have to mark any operand stack space for a frame whose spbase is null, and js_AllocStack doesn't need to void any unused space for such a frame.

- Fixes to reload the JSRuntime's callHook or executeHook after calling or executing, in case the debugger removes the hook.  In which case, it must clean up any dynamic memory held by hookData, but in any event, in which case the engine must not call the post-call or post-execute hook.

- While debugging with rginda, I was horrified to see his trivial testcase function, expressed as a lambda, fail to be invoked using the "inline_call" machinery in js_Interpret (which avoids js_Interpret recursion through js_Invoke for most JS functions).  The problem was a test of fun->flags == 0 conditioning the /* inline_call: */ code.  Since that test was written, at least one JSFUN_* flag (JSFUN_LAMBDA, used only for pretty-printing or accurate decompilation) has been added.  But all along, that test was an over-optimization (testing against 0 without &'ing certain flags), making for an accident waiting to happen -- which did happen.  The relevant flags are JSFUN_HEAVYWEIGHT (set by the compiler when a function calls eval, uses with, or otherwise needs an activation object for its scope; if lightweight, the compiler can see the function's scope and eliminate it via specialized bytecodes) and JSFUN_BOUND_METHOD (for Java method calls, where |this| binds statically to the instance, not dynamically to the calling expression reference's base object, as in JS).


git-svn-id: svn://10.0.0.236/trunk@102100 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 21:25:26 +00:00
heikki%netscape.com
1a511b33d0 Mac project change for bug 93574, nsLoggingSink and nsHTMLNullSink should not be a part of the optimized build.
git-svn-id: svn://10.0.0.236/trunk@102099 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 21:24:07 +00:00
harishd%netscape.com
f4d6d67500 96031 - Made LI's parent model to be flow entity. This would allow inline elements, such as I,B,FONT, etc., to contain LI such that bullets / numbers would also inherit the parent properties.
93574 -  nsLoggingSink and nsHTMLNullSink  should not be a part of the optimized build. Wrapped 'em under MOZ_DEBUG flag.
r=heikki, sr=vidur, a=asa.


git-svn-id: svn://10.0.0.236/trunk@102098 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 21:22:16 +00:00
loadrunner%betak.net
b46493006c bug 56304, HTML ja signature displays as garbage in the mail body, r=ducarroz, sr=sspitzer, a=asa
git-svn-id: svn://10.0.0.236/trunk@102097 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 21:06:18 +00:00
mstoltz%netscape.com
7bf513acb6 Bug 92061 - allow javascript: URLs to be targeted at about:blank windows.
Relaxing too-strict security policy. r=rginda, sr=jst, a=asa


git-svn-id: svn://10.0.0.236/trunk@102096 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 21:01:10 +00:00
varada%netscape.com
4d37cdc039 fix for 79053-regression- sendpage and sendlink should use correct identity;r,sr=sspitzer;a=asa;
git-svn-id: svn://10.0.0.236/trunk@102095 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 20:49:00 +00:00
oeschger%netscape.com
75ff308a3e tooltip text update, a=asa, b=96030, r=hewitt
git-svn-id: svn://10.0.0.236/trunk@102093 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 20:41:12 +00:00
evaughan%netscape.com
dfdd585293 b=83805
r=saari
sr=hyatt
a=dbaron

Fixes a divide by 0 bug in the scrollbar.


git-svn-id: svn://10.0.0.236/trunk@102092 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 20:37:56 +00:00
dcone%netscape.com
57698c0e11 b=97461 r=rods sr=attinasi a=chofmann. Look for null device and will exit with error if it is null
git-svn-id: svn://10.0.0.236/trunk@102091 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 20:15:34 +00:00
waterson%netscape.com
388df343a1 Bug 55086. Be sure to position child views, too! r=dbaron, sr=attinasi, a=blizzard.
git-svn-id: svn://10.0.0.236/trunk@102090 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 20:14:31 +00:00
mcafee%netscape.com
bcd21a2afd Fixing test for BuildTag, we weren't pulling by date in the normal case
git-svn-id: svn://10.0.0.236/trunk@102089 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 19:36:35 +00:00
peterlubczynski%netscape.com
f55b5f439b Patch to fix incorrect coordinates to first call of SetWindow(), bug 97656 r=av sr=attinasi a=asa
git-svn-id: svn://10.0.0.236/trunk@102088 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 18:28:04 +00:00
dp%netscape.com
7eaf054651 bug# 97770 fixing tree orange due to crash on unload
git-svn-id: svn://10.0.0.236/trunk@102087 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 17:45:51 +00:00
zach%zachlipton.com
cfad5a114f Adding runtests.sh and 1.t to start the testing suite. No bug has been
filed on this issue. NOT_PART_OF_BUILD.


git-svn-id: svn://10.0.0.236/trunk@102086 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 17:41:38 +00:00
cotter%netscape.com
e41a6630e1 security & privacy help content updates per b=85925, a=asa, r=oeschger
git-svn-id: svn://10.0.0.236/trunk@102082 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 12:17:32 +00:00
axel%pike.org
3a8484e179 fix for bug 97581, <xsl:variable name="foo" /> needs to be "", r=peterv, sr=jst, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@102081 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 08:55:04 +00:00
rpotts%netscape.com
991a9fc8f4 removed default value from FlushPendingEvents(...) boolean argument. This was introduced by the patch for bug #97227
git-svn-id: svn://10.0.0.236/trunk@102080 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 08:13:16 +00:00
mcafee%netscape.com
bde40d9113 Back to jrgm server, cowtools not ready yet. r=jrgm
git-svn-id: svn://10.0.0.236/trunk@102079 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 06:50:15 +00:00
pschwartau%netscape.com
aeb3e52231 Corrected testcase so it will work in Rhino as well as SpiderMonkey.
git-svn-id: svn://10.0.0.236/trunk@102078 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 06:10:13 +00:00
justdave%syndicomm.com
0a54592e93 Fix for bug 97721: Bugzilla now requires Perl 5.005 (previous requirement was Perl 5.004). This is due to the use of Template Toolkit for templatizing the pages for easier local customization. The new attachment tracker that was checked in earlier tonight uses the templates. Also included on this patch is a check for AppConfig, which is a prerequisite for Template Toolkit, because the Makefile.PL for Template Toolkit won't run without it, and it doesn't tell CPAN that it has prereqs, which causes confusion if you're installing from CPAN.
Patch by Dave Miller <justdave@syndicomm.com>
r= myk@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@102075 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 06:08:43 +00:00
justdave%syndicomm.com
4aaf91f5f6 Fix for bug 75840: syncshadowdb -syncall now properly shuts down Bugzilla during the sync process so mysql doesn't get overloaded while the tables are locked. This patch also adds some funtionality to the script to allow you to specify an alternate temp directory on the command line, in case you have a large database and need it made to a different filesystem for space reasons.
Patch by Dawn Endico <endico@mozilla.org> and Jake Steenhagen <jake@acutex.net>
r= justdave@syndicomm.com


git-svn-id: svn://10.0.0.236/trunk@102074 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 05:49:01 +00:00
nelsonb%netscape.com
611393a6b4 Allow the 5 new DHE cipher suites to be selected with the -c command line
option.  Facilitates testing of bug 95987.


git-svn-id: svn://10.0.0.236/trunk@102073 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 04:29:45 +00:00
dbaron%fas.harvard.edu
9a632e0396 Undoing backout of bug 97227 because valeski and rpotts insist. I guess drivers aren't doing approvals after all.
git-svn-id: svn://10.0.0.236/trunk@102072 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 04:28:26 +00:00
myk%mozilla.org
d3793613de Fix for bug 84338: initial implementation of attachment tracker, which lets users flag attachments with statuses.
Patch by Myk Melez <myk@mozilla.org>
r=justdave@syndicomm.com


git-svn-id: svn://10.0.0.236/trunk@102068 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 04:19:32 +00:00
cmanske%netscape.com
eef2c0d59c Fixed convert to table bugs in Composr, b=82404,82408,82409,96839 r=brade, sr=kin, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@102067 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 04:09:23 +00:00
mstoltz%netscape.com
626f878a47 Bug 92955 - Option to disable window.open from onLoad/onUnload event
handlers. r=harishd@netscape.com, sr=jst@netscape.com, a=brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@102066 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 04:06:39 +00:00
myk%mozilla.org
9f3ec3f125 Fix for bug 84338: initial implementation of attachment tracker, which lets users flag attachments with statuses.
Patch by Myk Melez <myk@mozilla.org>
r=justdave@syndicomm.com


git-svn-id: svn://10.0.0.236/trunk@102065 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 03:54:37 +00:00
dbaron%fas.harvard.edu
5f0d92745b Backing out unapproved checkin for bug 97227. a=brendan,blizzard
git-svn-id: svn://10.0.0.236/trunk@102064 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 03:45:20 +00:00
mkaply%us.ibm.com
985a1d4d1a #64594
r=mkaply, sr=blizzard, a=asa for drivers
OS/2 only - do the right thing when cancel is pressed in print dialog


git-svn-id: svn://10.0.0.236/trunk@102063 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 03:12:16 +00:00
kaie%netscape.com
7126aad3e7 b=94026 r=law sr=hewitt a=dbaron
Changing UI string


git-svn-id: svn://10.0.0.236/trunk@102062 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 03:10:35 +00:00
mkaply%us.ibm.com
8e0e9ddb1e No bug
r=mkaply, sr=blizzard, a=asa for drivers
OS/2 only - don't use bitmap fonts on printers


git-svn-id: svn://10.0.0.236/trunk@102061 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 03:10:26 +00:00
mkaply%us.ibm.com
6974a5b5ea #58637
r=mkaply, sr=blizzard, a=asa for drivers
OS/2 only - The best UTF-8/Unicode support we can do


git-svn-id: svn://10.0.0.236/trunk@102060 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 03:08:10 +00:00
mkaply%us.ibm.com
b365e44fd8 #62175
r=mkaply, sr=blizzard, a=asa for drivers
OS/2 only - Code from Javier - more font rewrite - better parsing of names


git-svn-id: svn://10.0.0.236/trunk@102059 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 03:06:33 +00:00
jst%netscape.com
6204690056 Fixing bug 82027, problems with accessing window.history[x] from JS. r=mstoltz@netscape.com, sr=jband@netscape.com a=dbaron@fas.harvard.edu
git-svn-id: svn://10.0.0.236/trunk@102058 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 02:36:45 +00:00
rpotts%netscape.com
d782201ee6 fixed typo from checkin for bug #97227
git-svn-id: svn://10.0.0.236/trunk@102057 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 02:30:34 +00:00
ddrinan%netscape.com
9efc75bd1f Checking in for rangansen. Bug 96646 - hardcoded string. r=ddrinan,sr=hewitt,a=dbaron
git-svn-id: svn://10.0.0.236/trunk@102056 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 02:30:27 +00:00
ddrinan%netscape.com
8bfb07662f Checking in for rangansen. Bug 94179 - password quality meter broken. r=jrgm,sr=hewitt,a=dbaron
git-svn-id: svn://10.0.0.236/trunk@102055 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 02:25:14 +00:00
ddrinan%netscape.com
7ea0de2780 Checking in for walk84. Bug 91799 - add align=center to fix layout problem. r=rangansen,sr=hewitt,a=dbaron
git-svn-id: svn://10.0.0.236/trunk@102054 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 02:15:48 +00:00
ddrinan%netscape.com
eab52123ee Check in for rangansen. Bug 91453 - double click on cert container text. r=ddrinan,sr=hewitt,a=dbaron
git-svn-id: svn://10.0.0.236/trunk@102053 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 02:10:00 +00:00
heikki%netscape.com
ed11ca9ba1 Bug 96459, bug 96307 and Bugscape 8288. Implement readyState and onreadystatechange members to enable progress indicators for download. Make it possible to call send() again in onload without crashing. Send load event only after everything done (was sent too early if XML errors). Make some functions throw error if called at the wrong time (match IE). Make it possible to build SOAP again (patch from peterv, r=heikki). r=harishd, sr=vidur, a=asa.
git-svn-id: svn://10.0.0.236/trunk@102052 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 00:59:19 +00:00
rpotts%netscape.com
cc3f3871a3 fix build bustage from bug #97227
git-svn-id: svn://10.0.0.236/trunk@102051 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 00:49:30 +00:00
myk%mozilla.org
4c13c0bada Fix for bug 26189: "cannot view images with lxr". The image-handling code was running too early and didn't have access to the "raw" URL parameter by which images get displayed.
Patch by Dawn Endico <endico@mozilla.org>
r=myk@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@102050 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 00:46:09 +00:00
bryner%netscape.com
8c02bfede8 Bug 97518 - for fast-update, do a regular checkout of NSS since it's on a static tag. r=cls, a=asa.
git-svn-id: svn://10.0.0.236/trunk@102049 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 00:36:37 +00:00
relyea%netscape.com
ec274578f2 Fix solaris build breakage: make functions in pk11pars.h static (at least until I can move them into their own library).
git-svn-id: svn://10.0.0.236/trunk@102048 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 00:34:55 +00:00
relyea%netscape.com
eaf7d30cd9 1) Add the necessary code so that AddModule functions again.
2) Add code to create secmod.db on the fly again.
3) Fix uninitialized structures so that we can switch to the fips token.

The results of this checkin should allow the fips tests to pass again.


git-svn-id: svn://10.0.0.236/trunk@102047 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 00:20:47 +00:00
hewitt%netscape.com
5ef12d98c6 74886 - need classic and modern icons for news message with attachment, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@102046 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 00:14:41 +00:00
hewitt%netscape.com
ddff7eadfe 83222 - offline:Mac - GUI - offline indicator hidden in message window, r=ben, sr=hyatt, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@102045 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 00:12:56 +00:00
hewitt%netscape.com
46796d6200 88970 - Need icons for newsgroup pane icons for messages which have been downloaded for offline use, r=blake, sr=sspitzer, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@102044 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 00:08:06 +00:00
mcafee%netscape.com
e306638d53 switching layout server. r=jrgm
git-svn-id: svn://10.0.0.236/trunk@102043 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 23:59:47 +00:00
rpotts%netscape.com
fc16d6b127 fix build bustage from bug #97227
git-svn-id: svn://10.0.0.236/trunk@102042 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 23:35:50 +00:00
dp%netscape.com
34845f7872 bug #97658 Fixing build blocker. fixing js components after component registry has been
created r=gagan


git-svn-id: svn://10.0.0.236/trunk@102041 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 22:59:12 +00:00
justdave%syndicomm.com
11464d9925 Fix for bug 96534: The version, component, and milestone select lists on the query page were slow to reflow when you changed the product in the first select list. This patch is a complete rewrite from scratch of the javascript used on query.cgi, which results in an approximately 700% speed increase in the reflow time when changing the selected product.
Patch by Chris Lahey <clahey@ximian.com> and Christian Reis <kiko@async.com.br>
Javascript changes r= caillon@returnzero.com, louie@ximian.com
Perl changes r= jake@acutex.net, justdave@syndicomm.com


git-svn-id: svn://10.0.0.236/trunk@102040 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 22:56:53 +00:00
rpotts%netscape.com
3d787fbce9 bug #97227 (r=valeski, sr=vidur). This patch makes all calls to nsIWebBrowserChrome::SetStatus(...) display synchronously.
git-svn-id: svn://10.0.0.236/trunk@102039 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 21:47:45 +00:00
mcgreer%netscape.com
2bf4000b2e fix problem with bad hashes
git-svn-id: svn://10.0.0.236/trunk@102037 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 21:07:26 +00:00
rayw%netscape.com
130c0de7d7 Fixed makefile so I can build idl under linux.
git-svn-id: svn://10.0.0.236/trunk@102036 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 20:39:36 +00:00
pschwartau%netscape.com
c9ad49f4ff Initial add.
git-svn-id: svn://10.0.0.236/trunk@102034 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 19:55:05 +00:00
mcgreer%netscape.com
df3bb306e1 make e-certify certs trusted
git-svn-id: svn://10.0.0.236/trunk@102032 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 19:12:52 +00:00
kestes%walrus.com
bea9dfe68d merge this sample with code I am really using, to demonstrate how to build
tar files for each build and use the -D in CVS.


git-svn-id: svn://10.0.0.236/trunk@102029 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 18:54:25 +00:00
mcgreer%netscape.com
babe2224c4 exchange e-certify roots on the tip
git-svn-id: svn://10.0.0.236/trunk@102028 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 18:51:32 +00:00
dp%netscape.com
dd5adbe141 bug# 96701 Using an array instead of hash table to store loader
data. Storing index into loader data array rather than allocating and
copying the type string. r=dougt, sr=jband, a=asa


git-svn-id: svn://10.0.0.236/trunk@102024 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 14:10:41 +00:00
mcafee%netscape.com
038f8175c7 Adding ifdef to turn JS dump() on w/o the need of a pref (96924). r=cls, sr=jst, a=asa
git-svn-id: svn://10.0.0.236/trunk@102023 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 08:07:07 +00:00
naving%netscape.com
13301d0e80 97246 r=suresh sr=mscott a=asa. check m_runningUrl for null because OnStopRequest may be called after
socket is closed.
97553 r=cavin sr=mscott a=asa. Increase the copy buffer size from 4k to 16K because fileTransport can
give us upto 16k, should make copying of local messages faster.


git-svn-id: svn://10.0.0.236/trunk@102022 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 06:09:06 +00:00
pierre%netscape.com
6598c447da Bug 40546"Background color of HTML mail not shown". Set the default color onto the HTML instead of the BODY because mailheader.css is loaded as an !important stylesheet. r=ducarroz/glazman/dbaron, a=asa
git-svn-id: svn://10.0.0.236/trunk@102021 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 06:03:52 +00:00
hyatt%netscape.com
827211d542 Fix for 97544, r/sr=blake,ben, a=asa
git-svn-id: svn://10.0.0.236/trunk@102020 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 05:37:16 +00:00
cmanske%netscape.com
6594d88dea Fixed not being able to use Insert Characters dialog after closing using 'X' to close window, b=96891, r=jrgm, sr=kin, a=asa
git-svn-id: svn://10.0.0.236/trunk@102018 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 05:25:58 +00:00
morse%netscape.com
c7021ee790 bug 95357, loss of data in password manager, r/sr=waterson,darin, a=asa
git-svn-id: svn://10.0.0.236/trunk@102017 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 05:23:14 +00:00
kaie%netscape.com
20829b8b2f b=95988 r=relyea sr=tor a=asa
Fix crash when viewing a certificate


git-svn-id: svn://10.0.0.236/trunk@102016 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 05:21:59 +00:00
waterson%netscape.com
245ff246c0 Fix more debug-only win32 bustage.
git-svn-id: svn://10.0.0.236/trunk@102015 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 04:42:01 +00:00
waterson%netscape.com
5b36300e85 Fix debug-only win32 bustage.
git-svn-id: svn://10.0.0.236/trunk@102014 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 04:33:27 +00:00
wtc%netscape.com
cdb805bcdc Bugzilla bug 97456: fixed build error on BSD/OS 4.3 (beta3). The patch
is contributed by lidl@pix.net.


git-svn-id: svn://10.0.0.236/trunk@102013 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 04:18:23 +00:00
mscott%netscape.com
a9e20ac54e Bug #97486 --> be sure to clear out the server prefs when deleting an smtp server
r=bhuvan
sr=sspitzer
a=asa


git-svn-id: svn://10.0.0.236/trunk@102011 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 03:32:44 +00:00
mkaply%us.ibm.com
0515fcc046 #97490
r=mkaply, sr=blizzard, a=asa for drivers
OS/2 only - Code from Javier - don't hardcode pixels to twips,
and don't draw 0 height or width rectangles


git-svn-id: svn://10.0.0.236/trunk@102009 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 03:22:24 +00:00
jake%acutex.net
41bed25910 Fix for bug 28736 - Bugmail will now show the summary for the bug that changed in the "This bug depends on bug X, which changed state" messages.
Patch by Matthew Tuck <matty@chariot.net.au>
r= jake@acutex.net


git-svn-id: svn://10.0.0.236/trunk@102007 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 03:14:24 +00:00
sdagley%netscape.com
5aab49194b Fix #71568 - Indicate if browser is running under Mac OS X in the UA string. r=pinkerton,sr=darin,a=asa
git-svn-id: svn://10.0.0.236/trunk@102006 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 02:58:03 +00:00
waterson%netscape.com
e410113dcd Bug 95675. Make sure server counts update after twisty open/close. Needed to remove container/member support from conflict set, too. Also, add a bunch of debugging junk. r=varga@utcru.sk, sr=hyatt, a=roc+moz
git-svn-id: svn://10.0.0.236/trunk@102005 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 02:29:05 +00:00
mstoltz%netscape.com
427c5f13ad New set of restrictions on the DOM in mailnews to prevent several
kinds of privacy attacks. Uses new wildcard policy functionality.
Fixes 87395 and 84545. r=harishd, sr=jst, a=asa.


git-svn-id: svn://10.0.0.236/trunk@102004 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 02:27:50 +00:00
waterson%netscape.com
536ed37947 Also need to export original NS_NewGenericModule() symbol.
git-svn-id: svn://10.0.0.236/trunk@102003 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 02:20:48 +00:00
despotdaemon%netscape.com
11fb7d65a4 Pseudo-automatic update of changes made by endico@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@102002 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 02:11:13 +00:00
despotdaemon%netscape.com
0e241ac7a2 Pseudo-automatic update of changes made by endico@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@102001 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 02:10:34 +00:00
despotdaemon%netscape.com
cc7682ee11 Pseudo-automatic update of changes made by endico@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@102000 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 02:04:20 +00:00
despotdaemon%netscape.com
ae57f21086 Pseudo-automatic update of changes made by endico@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@101999 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 02:03:26 +00:00
darin%netscape.com
87cb48a91b fixes bug 92675 "Half or less images load on www.businessweek.com / Links don't work"
r=bbaetz, sr=dougt, a=asa


git-svn-id: svn://10.0.0.236/trunk@101998 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 01:37:31 +00:00
darin%netscape.com
c07308d0f9 fixes bug 93924 "PAC - dnsResolve should have one-element cache"
patch=tingley@sundell.net r=bbaetz, sr=darin, a=roc+moz


git-svn-id: svn://10.0.0.236/trunk@101997 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 01:35:26 +00:00
hyatt%netscape.com
3cade25d40 CHecked in the wrong version of my patch for 71143. This is the one attached to the bug.
git-svn-id: svn://10.0.0.236/trunk@101996 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 01:27:37 +00:00
hyatt%netscape.com
d094e351ad CHecked in the wrong version of my patch for 71143. This is the one attached to the bug.
git-svn-id: svn://10.0.0.236/trunk@101995 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 01:27:21 +00:00
cls%seawood.org
37a108b0dc Update REQUIRES so that we do not accidentally build using the system headers of jpeg,zlib,png,mng when we are supposed to be building using the Mozilla copies of these libraries.
Bug #97386 r=mcafee a=dbaron


git-svn-id: svn://10.0.0.236/trunk@101994 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 01:14:45 +00:00
morse%netscape.com
d45aad079a bug 97414, localization of datestring in view->pageinfo window, r=pchen, sr=kin, a=asa
git-svn-id: svn://10.0.0.236/trunk@101993 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 00:37:57 +00:00
wtc%netscape.com
3f603986fe Bugzilla bug 95784: added _PR_CleanupLayerCache and call it from
PR_Cleanup.  The patch is contributed by jeff@NerdOne.com.
Modified files: primpl.h, prlayer.c, prinit.c, ptthread.c.


git-svn-id: svn://10.0.0.236/trunk@101992 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 00:35:00 +00:00
wtc%netscape.com
287d568a3b Bugzilla bug 95668: added _PR_CleanupThreads and call it from PR_Cleanup.
The patch is contributed by jeff@NerdOne.com.
Modified files: primpl.h, prinit.c, pruthr.c.


git-svn-id: svn://10.0.0.236/trunk@101991 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 23:52:14 +00:00
attinasi%netscape.com
7b0e78aec3 Trying to fix WIN32 bustage...
git-svn-id: svn://10.0.0.236/trunk@101990 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 23:51:38 +00:00
pschwartau%netscape.com
cd4a48b840 Trivial whitespace change.
git-svn-id: svn://10.0.0.236/trunk@101989 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 23:34:32 +00:00
pschwartau%netscape.com
f4b901f5b4 Initial add.
git-svn-id: svn://10.0.0.236/trunk@101988 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 23:20:16 +00:00
wtc%netscape.com
813386fc81 Bugzilla bug 95659: added _PR_CleanupStacks(), which is called from
PR_Cleanup().  The patch is contributed by jeff@NerdOne.com.
Modified files: primpl.h, prinit.c, prustack.c


git-svn-id: svn://10.0.0.236/trunk@101987 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 23:13:41 +00:00
attinasi%netscape.com
69aebe1a55 Inline images no longer break text runs. b=32191 r=bernd,dbaron sr=waterson a=asa(obod)
git-svn-id: svn://10.0.0.236/trunk@101986 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 22:59:09 +00:00
hyatt%netscape.com
d0cbdf337d Fix for 96920, r=pink, sr=ben, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@101983 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 22:33:18 +00:00
hyatt%netscape.com
298a4af017 fix for 71143. r=markh, sr=ben, a=roc
git-svn-id: svn://10.0.0.236/trunk@101981 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 22:31:38 +00:00
bnesse%netscape.com
36733ec112 Fix for bug 64964. Eliminate assertions by checking for 0 length string first. r=ccarlen, sr=sfraser,a=asa.
git-svn-id: svn://10.0.0.236/trunk@101980 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 22:26:37 +00:00
bnesse%netscape.com
928bf74900 Fix for bug 96514. Don't return bogus values from preferences when no default preference exists. patch=ccarlen, r=bnesse,sr=sfraser,a=dbaron.
git-svn-id: svn://10.0.0.236/trunk@101979 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 22:22:52 +00:00
sspitzer%netscape.com
4a56866680 fix for #97305. double clicking on folder pane scroll bar area can sometimes open
a new 3 pane.  r=varada, sr=mscott, a=asa


git-svn-id: svn://10.0.0.236/trunk@101978 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 22:14:18 +00:00
waterson%netscape.com
42e83067a0 Bug 96910. Restore NS_NewGenericModule() entry point for backwards compatibility. r=dougt, sr=jband, a=asa
git-svn-id: svn://10.0.0.236/trunk@101976 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 21:59:43 +00:00
pchen%netscape.com
3e7ec47037 bug 82983, r=jag, sr=ben, don't pass a name for bookmarks properties dialog so that we don't try to reuse an existing dialog, also set dialog as dependent so that properties dialogs will go away when the bookmarks window gets closed
git-svn-id: svn://10.0.0.236/trunk@101975 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 21:58:04 +00:00
justdave%syndicomm.com
9ad00e307b Bumping version to 2.15 for development
git-svn-id: svn://10.0.0.236/trunk@101972 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 21:41:50 +00:00
andreas.otte%primus-online.de
b4b6bc4e34 fix bug 85500 [Mozilla includes # anchors in GET URI in some cases] we were searching the first # from the right not the left to cut of the ref part of the requested uri. r=darin sr=rpotts a=dbaron
git-svn-id: svn://10.0.0.236/trunk@101971 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 21:39:21 +00:00
hwaara%chello.se
8920fbf77e #17943, "Messages sent later, are retrieved as READ status in POP account."
Checking this patch in for Chao Yu <chao.b.yu@intel.com>.

r=hwaara, sr=mscott, a=dbaron


git-svn-id: svn://10.0.0.236/trunk@101970 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 21:35:01 +00:00
pinkerton%netscape.com
836c5888a3 turn on extension filtering for fizzilla. allow packages to be chosen when filter is *. r=pchen/sr=sfraser/a=dbaron. bug# 91021
git-svn-id: svn://10.0.0.236/trunk@101969 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 21:34:14 +00:00
kin%netscape.com
6f9f127fbd Fix for bug 83607: too much backspace segfaults mozilla in textbox forms
Prevent GetPriorNode() and GetNextNode() from traversing above root
node when aCurrentNode is the rootNode.

r=brade@netscape.com  sr=sfraser@netscape.com  a=asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@101968 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 21:33:52 +00:00
pinkerton%netscape.com
e954753b82 bulletproof SetCursor() calls for osx. r=pchen/sr=sfraser/a=dbaron. bug 97302.
git-svn-id: svn://10.0.0.236/trunk@101967 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 21:33:17 +00:00
pschwartau%netscape.com
6940681e03 Removed a few hundred || conditions. See comment 2001-08-29 12:00 in bug 89443.
git-svn-id: svn://10.0.0.236/trunk@101964 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 20:37:58 +00:00
justdave%syndicomm.com
3c6be8b594 moving version to 2.14 (golden) to roll the tarball.
git-svn-id: svn://10.0.0.236/trunk@101962 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 19:52:13 +00:00
jake%acutex.net
8ca80bdde1 Updating release notes for 2.14
Release Notes written by Matthew Tuck <matty@chariot.net.au>
r= justdave@syndicomm.com, jake@acutex.net


git-svn-id: svn://10.0.0.236/trunk@101961 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 19:39:01 +00:00
barnboy%trilobyte.net
ddb8a37e26 Typo in perl modify string, added "#!" to /usr/bin/perl strings.
git-svn-id: svn://10.0.0.236/trunk@101960 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 18:13:42 +00:00
barnboy%trilobyte.net
7573dc0eaf Buncha' release updates. Moved all images to
./images so we don't have multiple copies of the
same image, fixed these doc bugs (in no particular order):
94949
97070
97071
97114
96498
95970
96677
94953
96501
96679
97068
97191
97192


git-svn-id: svn://10.0.0.236/trunk@101950 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 17:25:41 +00:00
kestes%walrus.com
e8e038399d *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@101949 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 16:07:08 +00:00
ccarlen%netscape.com
f541af3c70 Fixing senna requires bustage.
git-svn-id: svn://10.0.0.236/trunk@101948 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 15:33:31 +00:00
cmanske%netscape.com
d130aa6848 Fixed busted error message dialog and command handling in Composer ColorPicker, b=86697, r=brade, sr=kin, a=roc+moz
git-svn-id: svn://10.0.0.236/trunk@101947 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 14:04:40 +00:00
ccarlen%netscape.com
d182837840 Bug 86021 - Enable -turbo for multiple profiles. r=valeski, r=/sr=blake,waterson, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@101946 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 14:02:38 +00:00
pierre%netscape.com
cca63eef69 Bug 95336 "position CSS not recognized without units when element not in document". Set the parser in quirks mode when necessary in nsDOMCSSAttributeDeclaration::ParseDeclaration(). r=ianh/sr=jst/a=dbaron.
git-svn-id: svn://10.0.0.236/trunk@101945 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 08:00:12 +00:00
pierre%netscape.com
c2f7b875f6 Bug 39117 "[zoom]View Enlarge/Reduce Text Size doesn't work on mac". Calculate zoom in nsFontMetricsMac::GetNativeTextStyle() and remove disabling of menus in viewZoomOverlay. r=rbs, sr=sfraser, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@101944 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 07:52:02 +00:00
jband%netscape.com
63b2a966e4 attempt to fix HP-UX and and some other Unix bustages. r=cls
git-svn-id: svn://10.0.0.236/trunk@101943 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 07:24:39 +00:00
pschwartau%netscape.com
f102bc5794 Adding skips for two tests employing the non-ECMA toSource() and uneval() functions.
git-svn-id: svn://10.0.0.236/trunk@101942 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 06:14:38 +00:00
pschwartau%netscape.com
304fcc71e9 Initial add.
git-svn-id: svn://10.0.0.236/trunk@101941 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 05:59:52 +00:00
waterson%netscape.com
1b902b4f59 Fix static build bustage.
git-svn-id: svn://10.0.0.236/trunk@101940 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 05:28:12 +00:00
sdagley%netscape.com
e01c802869 Doh! Fixing build bustage due to my landing of fix for #89019. We have to have different targets for Carbon and Classic due to linkage issues with the OT libs OpenTransportAppPPC.o and OpenTptInetPPC.o that are required for Classic.
git-svn-id: svn://10.0.0.236/trunk@101939 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 04:58:11 +00:00
cotter%netscape.com
42de53c57a help update per b=85925, a=asa@mozilla.org, r=oeschger@netscape.com
git-svn-id: svn://10.0.0.236/trunk@101938 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 04:10:08 +00:00
cls%seawood.org
95f6d098e3 Update REQUIRES so that we do not accidentally build using the system headers of jpeg,zlib,png,mng when we are supposed to be building using the Mozilla copies of these libraries.
Bug #97386 r=mcafee a=dbaron


git-svn-id: svn://10.0.0.236/trunk@101936 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 03:29:44 +00:00
cotter%netscape.com
6535d71717 security & privacy help content corrections per b=85925, a=asa, r=oeschger
git-svn-id: svn://10.0.0.236/trunk@101935 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 03:27:32 +00:00
tao%netscape.com
58e0f58084 8124: default charset should be set in ja-unix.jar -> move this pref to
en-unix.jar.(r=jbetak,sr=sspitzer).


git-svn-id: svn://10.0.0.236/trunk@101934 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 03:00:27 +00:00
tao%netscape.com
6df38cd183 8120: intl.collationOption should be defined in ja-unix.jar
(r=jbetak,sr=mscott) move this pref to en-unix.jar.


git-svn-id: svn://10.0.0.236/trunk@101933 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 02:55:47 +00:00
tao%netscape.com
e144476998 8052: Available tab list on Sidebar customize tab is still US contents
after switching to JP region pack. (r=jbetak,sr=mscott)
use "intl.content.langcode" instead of u-a locale


git-svn-id: svn://10.0.0.236/trunk@101931 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 02:47:01 +00:00
tao%netscape.com
31f005482a 70099: Remove new MailNews dependency on Navigator.
(r=jbetak,sr=mscott,a=dbaron). move the url from browser to communicator.


git-svn-id: svn://10.0.0.236/trunk@101930 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 02:06:06 +00:00
mstoltz%netscape.com
83cf54c4fb bug 86799, adding support for wildcard security policies of the form
"capability.policy.group.*.property". Also added additional optimizations
and changed copy-initialization of NSCOMPtrs to direct initialization
throughout the file. r=harishd, sr=jst, a=asa.


git-svn-id: svn://10.0.0.236/trunk@101929 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 02:05:48 +00:00
hyatt%netscape.com
3b1387592b Fix for 95452. r/sr=ben,hewitt, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@101928 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 02:04:04 +00:00
tao%netscape.com
6a5880805d 90083: Restart message does not make sense when selecting new locale.
(r=jbetak, sr=mscott, a=dbaron) rephrase the message.


git-svn-id: svn://10.0.0.236/trunk@101925 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 00:53:00 +00:00
relyea%netscape.com
4473c66dd8 Fix Solaris (and probably others) runtime failures:
1) zero out the memory we used to create out module lists so they wind
up null terminated at the end.
	2) fix the lookup code for the secmod.db so that the '=' get properly removed.
	3) turn off attempts to do AddPermDB until we get the encode stuff working.


git-svn-id: svn://10.0.0.236/trunk@101922 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 23:37:22 +00:00
stephend%netscape.com
3289db6af8 Bug 94301. X-lib-port uses other fonts than GTK+-port. Patch by Roland.Mainz@informatik.med.uni-giessen.de (gisburn on irc) r=dbaron sr=tor a=asa on behalf of drivers
git-svn-id: svn://10.0.0.236/trunk@101921 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 23:12:50 +00:00
ddrinan%netscape.com
10f83cbdee Check in for tao. Bug 91217 - update locale version in package/locale provider registry. r=jbetak,sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@101919 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 22:39:13 +00:00
dp%netscape.com
61882a59bc bug #14889 Lazy loading wallet dll r=morse,gagan sr=jband a=asa
git-svn-id: svn://10.0.0.236/trunk@101918 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 22:32:03 +00:00
dp%netscape.com
0ad47f4806 bug #14889 CreateServicesFromCategory() moved into xpcom as part of
Lazy loading wallet dll r=morse,gagan sr=jband a=asa


git-svn-id: svn://10.0.0.236/trunk@101917 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 22:22:27 +00:00
mkaply%us.ibm.com
b58f40d033 #97368
r=pedemont sr=blizzard a=asa for drivers
OS/2 only - make printer code more friendly - like honoring return codes for instance


git-svn-id: svn://10.0.0.236/trunk@101916 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 22:08:39 +00:00
dp%netscape.com
b68a03456b bug #14889 Lazy loading wallet dll r=morse,gagan sr=jband a=asa
git-svn-id: svn://10.0.0.236/trunk@101915 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 22:05:30 +00:00
rginda%netscape.com
39016686cd - not built -
spruce up some comments
added, then comented out, jsdIDebuggerService::filterGlobalObject


git-svn-id: svn://10.0.0.236/trunk@101914 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 22:03:44 +00:00
rginda%netscape.com
f12cac4564 - not built -
whitespace tweakage


git-svn-id: svn://10.0.0.236/trunk@101913 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 22:02:28 +00:00
rginda%netscape.com
ccde950ed1 - not built -
don't allow gc's during script hooks if CAUTIOUS_SCRIPTHOOK is defined (which it is, by default.)  Should help with stability until we can fix the real problems.
Use JSVAL_ macros instead of JSD_* calls in jsdValue::GetJSType method, avoiding two c++ frames per call.


git-svn-id: svn://10.0.0.236/trunk@101912 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 22:02:07 +00:00
rginda%netscape.com
67a99ef7dc - not built -
modeline fix


git-svn-id: svn://10.0.0.236/trunk@101911 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 21:59:53 +00:00
jband%netscape.com
3311deca71 fix bug 96725. Avoid infinite recursion in call to QI'd xbl binding by avoiding the mutation of the interface set when the object implementing the interface is a wrappedJS around our wrappedNative's own JSObject. r=dbradley sr=hyatt a=brendan,hyatt,jband
git-svn-id: svn://10.0.0.236/trunk@101910 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 21:52:10 +00:00
jband%netscape.com
cfba8ab27e Restore old method order so that newer components implmenting this interface are still callable by 0.9.2/NS6.1 browsers. bug 96917. sr=vidur r=brendan a=drivers
git-svn-id: svn://10.0.0.236/trunk@101909 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 21:46:08 +00:00
wtc%netscape.com
9ebba0424d Bugzilla bug 94153: destroys the arena lock in PL_ArenaFinish. Also don't
need to hold the lock when destroying the arenas on the arena freelist.
The patch to destroy the arena lock was contributed by jeff@NerdOne.com.


git-svn-id: svn://10.0.0.236/trunk@101908 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 21:14:36 +00:00
pschwartau%netscape.com
cdda8b8a36 Adding two new utility functions.
git-svn-id: svn://10.0.0.236/trunk@101907 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 21:13:58 +00:00
shrutiv%netscape.com
d81341dac0 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@101906 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 21:10:28 +00:00
dcone%netscape.com
09d35e75a6 bug 12037. A small fix for a regression that was and r=peterl sr=attinasi and a=dbaron. I forgot to checkin the
check to see if I handled the print.  This fixes my regression.


git-svn-id: svn://10.0.0.236/trunk@101905 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 20:54:35 +00:00
rods%netscape.com
e5b30caae0 the dropdown will have a top border now.
Bug 88399 r=dcone sr=attinasi a=dbaron


git-svn-id: svn://10.0.0.236/trunk@101904 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 19:40:02 +00:00
wtc%netscape.com
f82e415e62 Bugzilla bug 54353: free the log modules at NSPR cleanup. Thanks to
jeff@NerdOne.com for the patch.


git-svn-id: svn://10.0.0.236/trunk@101902 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 18:37:55 +00:00
dougt%netscape.com
f6ef8a7991 fixes bug 96761 - prevents connection problems detected during RETR from continuing into CWD state. r=gagan. sr=darin. a=asa
git-svn-id: svn://10.0.0.236/trunk@101901 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 18:24:16 +00:00
kin%netscape.com
e07ae6bcd6 Fix for bug #96604: Deleting characters from some form input controls will allow altering page content
mozilla/editor/base/nsEditor.cpp
  mozilla/editor/base/nsEditor.h

    - Added IsRootNode() method.
    - Added calls to IsRootNode() in GetPriorNode() and GetNextNode()
      to prevent traversing above the root node.

r=jfrancis@netscape.com  sr=sfraser@netscape.com  a=asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@101900 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 18:21:12 +00:00
shanjian%netscape.com
c6f026ad1d #95490 ISO-2022-JP mail msgs use QP encoding for the escape sequence
r/sr=mscott, a=asa


git-svn-id: svn://10.0.0.236/trunk@101899 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 18:21:11 +00:00
briane%qnx.com
030b988eab PHOTON build only
fixes to work with the static build


git-svn-id: svn://10.0.0.236/trunk@101898 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 18:11:26 +00:00
briane%qnx.com
a62c442198 PHOTON build only
Fixes to work with the static builds


git-svn-id: svn://10.0.0.236/trunk@101897 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 18:10:49 +00:00
wtc%netscape.com
3f7f3c5d48 Bugzilla bug 96673: removed the unnecessary and non-portable initializers
for the sigaction structure.  Thanks rjesup@wgate.com (Randell Jesup) for
suggesting the fix.


git-svn-id: svn://10.0.0.236/trunk@101896 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 18:01:46 +00:00
justdave%syndicomm.com
600e37d512 Fixing a couple typoes
git-svn-id: svn://10.0.0.236/trunk@101895 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 17:55:14 +00:00
ddrinan%netscape.com
f87276dd08 Fix IRIX bustage caused by ^M in source
git-svn-id: svn://10.0.0.236/trunk@101894 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 16:58:13 +00:00
ddrinan%netscape.com
3a7ab53706 Fix IRIX bustage caused by ^M in source
git-svn-id: svn://10.0.0.236/trunk@101892 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 16:43:04 +00:00
ddrinan%netscape.com
74b3888a96 Fix IRIX bustage cause by ^M in source
git-svn-id: svn://10.0.0.236/trunk@101891 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 16:40:16 +00:00
rjesup%wgate.com
6672beeb05 Bug 94243. Follow-on patch for xlib by gisburn. r=dbaron, sr=jst, a=asa
git-svn-id: svn://10.0.0.236/trunk@101890 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 14:42:29 +00:00
cmanske%netscape.com
1a694fd9bf Fixed busted Table Props dialog, b=97140, r=brade, sr=kin, a=asa
git-svn-id: svn://10.0.0.236/trunk@101889 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 14:32:02 +00:00
mkaply%us.ibm.com
0a915d8ff1 #97166
r=mkaply, sr=blizzard, a=asa for drivers
OS/2 only - Code from aaronr - workaround crash using XCenter/XWorkplace


git-svn-id: svn://10.0.0.236/trunk@101888 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 13:18:24 +00:00
cls%seawood.org
de2e554156 Adding getter for mAlphaDepth to nsIImage.
Thanks to lordpixel@mac.com for the patch.
Bug #81353 r=pavlov sr=sfraser a=roc+moz


git-svn-id: svn://10.0.0.236/trunk@101887 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 10:04:59 +00:00
justdave%syndicomm.com
b5d1d62dc9 Re-fix for bug 87769: the original patch checked in for this prevented any votes from being changed at all. This corrects that so votes can be changed again while still trapping the error the original patch was designed to catch.
Patch by Christoper Aillon <caillon@returnzero.com>
r= justdave@syndicomm.com


git-svn-id: svn://10.0.0.236/trunk@101886 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 09:19:16 +00:00
leaf%mozilla.org
61788db74e Automated update
git-svn-id: svn://10.0.0.236/trunk@101885 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 08:43:47 +00:00
cls%seawood.org
4fd4bb42b5 Line up --help output
git-svn-id: svn://10.0.0.236/trunk@101884 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 08:39:23 +00:00
despotdaemon%netscape.com
2d41a899d2 Pseudo-automatic update of changes made by lsv@sparc.spb.su.
git-svn-id: svn://10.0.0.236/trunk@101883 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 08:34:15 +00:00
cls%seawood.org
2dc6cb6d6e Update list to reflect smime -> smimestb name change.
Bug #97152 r=bryner a=asa


git-svn-id: svn://10.0.0.236/trunk@101882 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 07:53:57 +00:00
cls%seawood.org
f1309b115e Escape ^ when calling grep as some shells interpret ^ instead of passing it to g
rep.
Thanks to dave@arsdigita.com (Drazen Kacar) for the patch.
Bug #96997 r=cls sr=wtc


git-svn-id: svn://10.0.0.236/trunk@101880 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 07:51:03 +00:00
leaf%mozilla.org
c2b91c8524 Automated update
git-svn-id: svn://10.0.0.236/trunk@101879 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 07:43:48 +00:00
cls%seawood.org
ef53031397 Prepend option to LDFLAGS instead of overriding it for solaris.
Remove explicit linking against libCrun for solaris.
Only update CFLAGS & LDFLAGS when testing zlib,jpeg,png &mng if the appropriate _DIR variable is set.
Bug #96993 r=bryner a=asa


git-svn-id: svn://10.0.0.236/trunk@101878 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 07:40:05 +00:00
brendan%mozilla.org
31c89047ff Patch to make FastLoad file removal clear state so file gets recreated by same session (68045, r=jrgm, sr=waterson, a=asa).
git-svn-id: svn://10.0.0.236/trunk@101877 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 07:08:36 +00:00
naving%netscape.com
2e2da5130a 94148 r=cavin sr=mscott a=dbaron. Make sure that we change the case only for Inbox to INBOX.
git-svn-id: svn://10.0.0.236/trunk@101875 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 06:01:42 +00:00
ddrinan%netscape.com
8bdf26c169 Bug 92475 - error msg for expired CRLs. r=bryner,sr=tor,a=asa
git-svn-id: svn://10.0.0.236/trunk@101874 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 05:13:23 +00:00
ssu%netscape.com
b6650473e2 fixing bug 97219 - win32 installer is no longer automatable. r=syd sr=mscott a=drivers@mozilla.org. affects win32 platforms only.
git-svn-id: svn://10.0.0.236/trunk@101873 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 05:09:02 +00:00
kaie%netscape.com
0931e8db2f b=97044 r=dbaron sr=ben a=asa
Fix topcrash by adding safety null checks and correcting a typo


git-svn-id: svn://10.0.0.236/trunk@101872 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 04:40:36 +00:00
naving%netscape.com
4d40990138 97204. r=suresh sr=mscott a=asa; Made it so that edit changes can be saved for mailnews filters.
git-svn-id: svn://10.0.0.236/trunk@101871 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 03:33:16 +00:00
thesteve%netscape.com
90ac18c4d7 Bug#81373 (mac static build)
links in "everything" else meta-Component for mac static builds;
and an empty `.o' for other builds.
r=jfrancis
sr=sfraser
a=asa on behalf of drivers


git-svn-id: svn://10.0.0.236/trunk@101869 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 02:02:44 +00:00
sfraser%netscape.com
5ce8c19837 Bug 62110 - initialize rv in nsLocalFile::SetPersistentDescriptor. Fixes multiple folders bug in mail on Mac OS X, and probably other bugs as well. r=pinkerton, sr=mscott, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@101868 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 01:57:20 +00:00
glazman%netscape.com
0c185f952a fix forFont element not removed in Composer; b=97083; r=brade,jfrancis; sr=kin; a=dbaron
git-svn-id: svn://10.0.0.236/trunk@101867 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 01:55:22 +00:00
mcafee%netscape.com
e21aea9ab1 Don't set date tag when branch tag is set. cvs currently only supports one tag.
git-svn-id: svn://10.0.0.236/trunk@101866 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 01:43:08 +00:00
rogerl%netscape.com
ce4e261b12 Fixed warning.
git-svn-id: svn://10.0.0.236/trunk@101865 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 00:52:16 +00:00
glazman%netscape.com
5ab3c3281f Fix for Text Style menu broken in Composer ; b=97108, r=brade,cmanske; sr=kin; a=chofmann
git-svn-id: svn://10.0.0.236/trunk@101864 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 00:51:07 +00:00
rogerl%netscape.com
6a52d594c8 Started adding Array[].
git-svn-id: svn://10.0.0.236/trunk@101863 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 00:44:19 +00:00
attinasi%netscape.com
dc345bf724 [Checkin for alexsavulov] Improvement on patch for bug 93363. Fix for layout problem where shrinkwrapping of floats ignores padding. b=95511 r=dbaron sr=attinasi a=roc+moz
git-svn-id: svn://10.0.0.236/trunk@101861 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 00:35:08 +00:00
thesteve%netscape.com
ac286bf41d Bug#81373
build script changes to support mac static build.
r=jfrancis
sr=sfraser
a=asa on behalf of drivers


git-svn-id: svn://10.0.0.236/trunk@101860 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 00:11:50 +00:00
thesteve%netscape.com
2147025111 Bug#81373 (mac static build)
this new file adds XML-DOM support to munge the
exported codewarrior project files.
r=jfrancis
sr=sfraser
a=asa on behalf of drivers


git-svn-id: svn://10.0.0.236/trunk@101859 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 00:01:40 +00:00
thesteve%netscape.com
5b93540e21 Bug#81373 (mac static build)
added static_build option
r=jfrancis
sr=sfraser
a=asa on behalf of drivers


git-svn-id: svn://10.0.0.236/trunk@101858 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 23:50:45 +00:00
thesteve%netscape.com
dc6e268d2d Bug#81373 (mac static build)
added nsStaticComponent.h
r=jfrancis
sr=sfraser
a=asa on behalf of drivers


git-svn-id: svn://10.0.0.236/trunk@101857 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 23:48:03 +00:00
thesteve%netscape.com
01b9e48abd Bug#81373 (mac static build)
fixed up access paths: get rid of :::dist:client[_debug]
r=jfrancis
sr=sfraser
a=asa on behalf of drivers


git-svn-id: svn://10.0.0.236/trunk@101856 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 23:45:59 +00:00
thesteve%netscape.com
f5a474ae29 Bug#81373 (mac static build)
add: link with nsStaticComponentLoader.cpp
r=jfrancis
sr=sfraser
a=asa on behalf of drivers


git-svn-id: svn://10.0.0.236/trunk@101855 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 23:43:23 +00:00
thesteve%netscape.com
9a8822fbaa Bug#81373 (mac static build)
landing mac static build.
r=jfrancis
sr=sfraser
a=asa on behalf of drivers


git-svn-id: svn://10.0.0.236/trunk@101854 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 23:36:11 +00:00
rods%netscape.com
9b5ed6bff4 Having it always size in Quirks mode, changing the sizing from clamping down to Nav 4.x size
to now obey border and padding.
Bug 96630, Bug 97139 r=dcone sr=attinasi a=dbaron


git-svn-id: svn://10.0.0.236/trunk@101853 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 23:28:24 +00:00
sonmi%netscape.com
4d30ac64aa added comments, fixed HOSTNAME problem
git-svn-id: svn://10.0.0.236/trunk@101852 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 23:27:37 +00:00
harishd%netscape.com
fd7d894075 96440 - Before reloading the document with the new charset we should completely shutoff the current load. nsMetaCharsetObserver::Notify() does indeed result in calling stopDocumentLoad() however it failed to ( accidently ) propagate the appropriate error message back to the parser. r=ftang,sr=kin,a=dbaron.
git-svn-id: svn://10.0.0.236/trunk@101851 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 23:22:52 +00:00
sonmi%netscape.com
1449b87db0 changed backward compatibility test directory
git-svn-id: svn://10.0.0.236/trunk@101850 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 23:11:05 +00:00
pschwartau%netscape.com
a2692d9a49 Punctuation correction in comment.
git-svn-id: svn://10.0.0.236/trunk@101849 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 22:57:25 +00:00
pschwartau%netscape.com
2d61cb4832 Initial add.
git-svn-id: svn://10.0.0.236/trunk@101848 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 22:55:57 +00:00
harishd%netscape.com
d5d2590d74 Parser regression test files.
** NOT PART OF THE BUILD **


git-svn-id: svn://10.0.0.236/trunk@101847 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 22:40:48 +00:00
mscott%netscape.com
d3525da5ab NOT PART OF THE BUILD YET.
Adding new interface for xbl brutal sharing. Bug #70647


git-svn-id: svn://10.0.0.236/trunk@101845 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 22:15:45 +00:00
serge%netscape.com
edfdb96c1d fix for 69167; plugin load fails silently on library not found; r=av, sr=waterson, a=roc+moz
git-svn-id: svn://10.0.0.236/trunk@101844 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 22:14:52 +00:00
tor%cs.brown.edu
51e6868194 Bug 89022 - image scaler should use a pixel inclusive measurement instead
of pixel centered.  r=pavlov, sr=brendan, a=asa


git-svn-id: svn://10.0.0.236/trunk@101843 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 22:10:56 +00:00
rogerl%netscape.com
1881298881 Fixed ++/-- operators to invoke unary '+' on operand. All handled by
bytecodegen now instead of in interpreter.


git-svn-id: svn://10.0.0.236/trunk@101842 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 21:33:54 +00:00
dbaron%fas.harvard.edu
107dbc9e85 Correct fix for 96414: the 'font' shorthand requires both size and face. r=rods sr=attinasi a=chofmann
Forgotten half of fix for 47149: make LABEL a normal inline element.  r=rods  sr=attinasi  a=asa


git-svn-id: svn://10.0.0.236/trunk@101841 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 20:56:12 +00:00
pschwartau%netscape.com
f8fcedd7c4 Some RegExp bugs have now been fixed in Rhino. Removing the testcases from the skip list.
git-svn-id: svn://10.0.0.236/trunk@101840 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 19:58:56 +00:00
despotdaemon%netscape.com
a8c2a581b8 Pseudo-automatic update of changes made by dkl@redhat.com.
git-svn-id: svn://10.0.0.236/trunk@101839 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 19:48:31 +00:00
despotdaemon%netscape.com
2f279a3235 Pseudo-automatic update of changes made by dmose@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@101838 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 19:33:44 +00:00
rogerl%netscape.com
6874619e54 Port of performance fixes from Monkey (see bug #85721).
Also, fixes for :
#91343, (non-latin1 fails for [\S])
#78156, (Unicode line terminator matching)
#87231, (/(A)?(A.*)/ didn't reset paren state for empty first match)


git-svn-id: svn://10.0.0.236/trunk@101837 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 18:03:19 +00:00
rods%netscape.com
ef8425d65f Oops, I didn't check in the right fix. I checked in some code I was using for debugging
Here is the fix/patch that was in Bug 96367 r=timeless sr=attinasi a=dbaron


git-svn-id: svn://10.0.0.236/trunk@101835 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 14:12:52 +00:00
rods%netscape.com
845510c32c Refixing style for buttons for fix Bug 96630
git-svn-id: svn://10.0.0.236/trunk@101834 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 13:59:37 +00:00
rods%netscape.com
3c1670a022 Using -moz-fixed for textareas, the size is not "hooked" to the browser's default fixed size now
but will be when fixed to -moz-fixed get put in for 0.9.5
Bug 96414 r=rbs sr=hyatt a=asa


git-svn-id: svn://10.0.0.236/trunk@101833 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 12:22:48 +00:00
rods%netscape.com
e9dffa5ce4 Uses Quirks sizing all the time and now obeys border and padding instead of clamping down to Nav 4.x sizing
Bug 96630 r=dcone sr=attinasi a=dbaron


git-svn-id: svn://10.0.0.236/trunk@101832 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 12:19:11 +00:00
rods%netscape.com
4511e22fcf Having it always size in Quirks mode, changing the sizing from clamping down to Nav 4.x size
to now obey border and padding.
Bug 96630 r=dcone sr=attinasi a=dbaron


git-svn-id: svn://10.0.0.236/trunk@101831 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 11:44:28 +00:00
jaggernaut%netscape.com
124172775b Bug 95621: ``[Xlib] Sync Xlib fontmetrics with GTK+ fontmetrics'', patch by Roland Mainz <Roland.Mainz@informatik.med.uni-giessen.de> aka gisburn, r=dbaron, sr=tor, a=roc+moz
git-svn-id: svn://10.0.0.236/trunk@101830 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 09:02:52 +00:00
darin%netscape.com
d2277d8aaf description of http implementation (initial cut)
git-svn-id: svn://10.0.0.236/trunk@101829 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 08:28:37 +00:00
cotter%netscape.com
f1970c193d ongoing security & privacy help content updates per b=85925, a=asa, r=oeschger
git-svn-id: svn://10.0.0.236/trunk@101828 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 07:18:39 +00:00
cotter%netscape.com
3a80d48da1 ongoing security & privacy help content updates per b=885925, a=asa, r=oeschger
git-svn-id: svn://10.0.0.236/trunk@101827 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 07:08:52 +00:00
loadrunner%betak.net
42d2e21624 96856 The order of JA character set name in Customize Character Coding dialog is not correct,
r=tao, sr=kin, a=dbaron


git-svn-id: svn://10.0.0.236/trunk@101826 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 06:47:53 +00:00
rjesup%wgate.com
b34b6c7f2d Bug 94569: Move xlib & xprint over to xxlibrgb* api. Patch by gisburn, I'm
just checking it in for him.  a=asa, r=jag, r=Tomi.Leppikangas@oulu.fi,
r=cls (Makefile changes), sr=kin


git-svn-id: svn://10.0.0.236/trunk@101825 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 06:45:49 +00:00
loadrunner%betak.net
d4c05757e4 bug 96859, The order of JA character set name in Editor Save As Charset dialog is not correct,
r=tao, sr=kin, a=dbaron


git-svn-id: svn://10.0.0.236/trunk@101824 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 06:41:57 +00:00
rjesup%wgate.com
288182f644 Bug 94243: VoidArray usage patch. a=asa sr=brendan r=waterson r=bienvenu
r=pierre r=jband/dbradley  Also fixes some whitespace issues.


git-svn-id: svn://10.0.0.236/trunk@101822 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 06:15:54 +00:00
brendan%mozilla.org
61cb4c1923 Path to make FastLoad file removal work on non-Unix systems (must close any streams on it first; 68045, r/sr=jrgm/shaver, a=asa).
git-svn-id: svn://10.0.0.236/trunk@101821 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 05:41:53 +00:00
dcone%netscape.com
fc4f3e761f bug=12037 r=peterl sr=attinasi a=dbaron fixed printout of transparent images to have a white transparent area instead of a black area
git-svn-id: svn://10.0.0.236/trunk@101819 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 02:55:38 +00:00
bbaetz%cs.mcgill.ca
56103b684e Add http regression test suite + harness. Requires python.
Not part of default pull or build.


git-svn-id: svn://10.0.0.236/trunk@101818 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 01:13:41 +00:00
naving%netscape.com
723f298ae7 96760 r=bienvenu sr=mscott a=dbaron. Fix nsMsgWindow leaks for pop3 accts when biff is turned on.
git-svn-id: svn://10.0.0.236/trunk@101817 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 00:31:52 +00:00
justdave%syndicomm.com
064b8f00e6 All code patches targetted for 2.14 have been checked in. Bumping version
number to 2.14rc to indicate release candidate status.


git-svn-id: svn://10.0.0.236/trunk@101816 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-26 23:06:45 +00:00
justdave%syndicomm.com
d595b24c15 Fix for bug 92266: Prevent dataloss in the bugs_activity table by wrapping
entries into additional entries if they're too long to fit.
Patch by Dave Miller <justdave@syndicomm.com>
r= jake@acutex.net


git-svn-id: svn://10.0.0.236/trunk@101815 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-26 22:58:34 +00:00
hwaara%chello.se
ab84b1dba4 #41719, "Filter UI: use 'untitled' when filter name not given"
Make it so new filters will have the default name "untitled filter", "untitled filter 2" etc. to avoid frustration for lazy people (who don't enter any name). :-)

r=doron, sr=ben, a=tor


git-svn-id: svn://10.0.0.236/trunk@101814 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-26 22:12:17 +00:00
hwaara%chello.se
69803d0366 #96957, "Sort order changed if you change thread-mode"
#79588, "Toggle View|Ignored Threads when in flat sort goes threaded."

Fix cases where we lost the thread-order and/or sort-order. For example, if you changed thread-mode to "View threads with unread", it would always switch the sort-order to be ascending.

r=doron, sr=ben, a=tor


git-svn-id: svn://10.0.0.236/trunk@101813 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-26 22:05:24 +00:00
dbaron%fas.harvard.edu
35e8a923ae Fix buffer overruns caused by incorrect porting of |char|-based code to |PRUnichar|. b=96764 r=bbaetz sr=brendan a=tor
git-svn-id: svn://10.0.0.236/trunk@101812 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-26 21:21:02 +00:00
jake%acutex.net
ca886b1282 Bug 96085 - bypassing group security checks using duplicate bugs
Patch by Christopher Aillon <christopher@aillon.com>
r= jake@acutex.net


git-svn-id: svn://10.0.0.236/trunk@101811 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-26 18:51:45 +00:00
dbaron%fas.harvard.edu
e5125b7d8c Make middle-click pasting put things in the right place by uncommenting code that ensures Y coordinate is more important than X coordinate and by making sure the code does the right thing in case of overlap. b=57913 r=bryner sr=kin a=chofmann
git-svn-id: svn://10.0.0.236/trunk@101810 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-26 18:33:57 +00:00
blakeross%telocity.com
fac53a669f no need to build/ship test autocomplete file. rs=ben a=asa via irc
git-svn-id: svn://10.0.0.236/trunk@101808 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-26 02:49:35 +00:00
mcgreer%netscape.com
be2ea89b08 another attempt to fix builds, function needs to be forward declared
git-svn-id: svn://10.0.0.236/trunk@101805 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 21:28:16 +00:00
mcgreer%netscape.com
0465e3f030 fix broken builds caused by checkin
git-svn-id: svn://10.0.0.236/trunk@101804 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 21:01:38 +00:00
bryner%netscape.com
c52b5b1916 Bug 94154 - focus textfield after directory change, and bug 92754 - clear directory selection on directory change. r=jag, sr=ben, a=dbaron.
git-svn-id: svn://10.0.0.236/trunk@101803 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 20:38:14 +00:00
jake%acutex.net
3796f581b4 Fix for bug 87769 - doeditvotes.cgi can nuke votes
Patch by Christopher Aillon <christopher@aillon.com>
r= jake@acutex.net


git-svn-id: svn://10.0.0.236/trunk@101802 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 18:53:31 +00:00
mkaply%us.ibm.com
2aa979c866 #92797
r=mkaply, sr=waterson, a=dbaron for drivers
Code from Maha Abou El-Rous - turn on cross platform Arabic Shaping


git-svn-id: svn://10.0.0.236/trunk@101801 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 12:52:30 +00:00
hyatt%netscape.com
73c873bf7c Fix linux bustage.
git-svn-id: svn://10.0.0.236/trunk@101800 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 06:44:46 +00:00
hyatt%netscape.com
880b78a482 Fix Mac bustage.
git-svn-id: svn://10.0.0.236/trunk@101799 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 06:42:37 +00:00
jaggernaut%netscape.com
0b77a4312a Part of bug 95475
git-svn-id: svn://10.0.0.236/trunk@101798 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 05:08:27 +00:00
pschwartau%netscape.com
ed5f1cc9be Technical change. Now test is accurate for Rhino as well as SpiderMonkey.
git-svn-id: svn://10.0.0.236/trunk@101797 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 05:01:50 +00:00
idk%eng.sun.com
1ad1e1d4db *not part of the build*
fix for 96935


git-svn-id: svn://10.0.0.236/trunk@101795 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 04:53:44 +00:00
jaggernaut%netscape.com
a1a0a0cbee One more for the speedracer bustage fix.
The problem is that the generated header contains the following bit:
  enum { MODIFICATION = 1U };
  enum { ADDITION = 2U };
  enum { REMOVAL = 3U };

So to speedracer's compiler, this line signals a potential programmer error:

PRInt32 modHint = modification ? nsIDOMMutationEvent::MODIFICATION : nsIDOMMutationEvent::ADDITION;

Apparently they value it like an error and not a warning.


git-svn-id: svn://10.0.0.236/trunk@101794 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 04:34:17 +00:00
jaggernaut%netscape.com
7dc4004e58 Fixing speedracer bustage. Not sure I like this, nor the reason why there's bustage in the first place. *grmbl*
git-svn-id: svn://10.0.0.236/trunk@101793 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 04:22:47 +00:00
jaggernaut%netscape.com
8f20bc9b54 Part of bug 95475.
git-svn-id: svn://10.0.0.236/trunk@101792 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 04:01:46 +00:00
jaggernaut%netscape.com
458c212d8b Fixing mac bustage.
git-svn-id: svn://10.0.0.236/trunk@101791 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 03:52:11 +00:00
racham%netscape.com
b802204244 Fixing bugs 84821 and 86992. Outgoing server panels are updated with correct user and server names instead of null values. Copies and Folders panel now fits all elements properly. r=ssu,naving sr=sspitzer a=roc+moz
git-svn-id: svn://10.0.0.236/trunk@101790 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 02:38:31 +00:00
hyatt%netscape.com
45af3d476f Fix for 95475. r=jag, sr=ben, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@101789 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 02:31:56 +00:00
hyatt%netscape.com
4f51638ef4 Fix for 95475. r=jag, sr=ben, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@101788 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 02:01:08 +00:00
idk%eng.sun.com
ad7d96c999 *not part of the build*
fix for 93888
a = ovk@sparc.spb.su
    jonsmirl@mediaone.net
r = jaggernaut@netscape.com
    idk@eng.sun.com


git-svn-id: svn://10.0.0.236/trunk@101787 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 01:32:15 +00:00
naving%netscape.com
4f4514acd4 95607 r=hwaara sr=bienvenu a=asa. Use nsCAutoString to avoid freeing mismatched memory.
git-svn-id: svn://10.0.0.236/trunk@101786 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 01:28:31 +00:00
pinkerton%netscape.com
82d4d6c55e remove #ifndef TARGET_CARBON since it's not needed. r=pchen/sr=sfraser/a=dbaron. bug# 96907.
git-svn-id: svn://10.0.0.236/trunk@101785 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 01:25:42 +00:00
mcafee%netscape.com
8b9153c578 startup test note
git-svn-id: svn://10.0.0.236/trunk@101784 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 01:09:38 +00:00
despotdaemon%netscape.com
9602278e24 Pseudo-automatic update of changes made by bmartin@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@101783 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 00:14:41 +00:00
jake%acutex.net
a4afec26d3 Fix for bug 95634 - Improvements to Param('voteremovedmail')
Patch by Matthew Tuck <matty@chariot.net.au>
r= jake@acutex.net


git-svn-id: svn://10.0.0.236/trunk@101782 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 00:12:12 +00:00
despotdaemon%netscape.com
641bfa7ace Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@101781 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 00:01:40 +00:00
vidur%netscape.com
bf7046a35b Fix for bug 96517. Fixing typo in NS_ISUPPORTS_IMPL_CI macros. r/sr=jband, brendan
git-svn-id: svn://10.0.0.236/trunk@101780 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 23:59:59 +00:00
darin%netscape.com
05e092f2d0 fixes bug 47041 "Unable to unregister an HTTP Notify listener"
r=bbaetz, sr=dougt, a=roc+moz


git-svn-id: svn://10.0.0.236/trunk@101779 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 22:27:06 +00:00
darin%netscape.com
556ee0cf4a fixes bug 95981 "Changes in background images on pages do not show on reload"
r/sr=rpotts,dougt a=roc+moz


git-svn-id: svn://10.0.0.236/trunk@101778 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 22:24:10 +00:00
morse%netscape.com
a2f243cd9c bug 92387, alignment problems in cookie and form manager, r=gemal, sr=hewitt, a=asa
git-svn-id: svn://10.0.0.236/trunk@101777 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 21:36:45 +00:00
ssu%netscape.com
4802a7cbda fixing bug 96801 - Win32 installer fails to detect if older mozilla is running. r=dveditz, sr=mscott, a=drivers@mozilla.org. not part of tinderbox builds. affects only windows platforms.
git-svn-id: svn://10.0.0.236/trunk@101776 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 21:32:29 +00:00
relyea%netscape.com
193baf4505 Land new PKCS #11 initialization code.
git-svn-id: svn://10.0.0.236/trunk@101775 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 21:16:48 +00:00
relyea%netscape.com
56a53bf5c3 Fix memory leak
git-svn-id: svn://10.0.0.236/trunk@101774 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 21:15:52 +00:00
av%netscape.com
47e21da3e9 Fixing 96528 -- crash on File/Exit with full page xpcom plugin, r=peterl, sr=attinasi, a=asa
git-svn-id: svn://10.0.0.236/trunk@101773 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 21:08:25 +00:00
av%netscape.com
0fc41edefe Adding missing file to the sample project, not part of the build
git-svn-id: svn://10.0.0.236/trunk@101772 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 21:03:50 +00:00
depstein%netscape.com
9f45520438 updated nsISHistory methods.
git-svn-id: svn://10.0.0.236/trunk@101771 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 21:03:15 +00:00
depstein%netscape.com
64dabd5a03 updating nsISHistory and nsIWebNav tests.
git-svn-id: svn://10.0.0.236/trunk@101770 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 20:05:45 +00:00
radha%netscape.com
328c8aa401 Fix for bug # 94926. assert in nsDocShell::SetTitle() r=adamlock sr=rpotts a=asa
git-svn-id: svn://10.0.0.236/trunk@101769 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 20:03:24 +00:00
nboyd%atg.com
e21b2a2198 Original problem in following mail. I implemented JDK1.1 compatibility and performance
improvements:

Subject:
        Rhino: Problem in NativeJavaMethod
   Date:
        Tue, 14 Aug 2001 10:23:35 +0200
   From:
        felix.meschberger@day.com
     To:
        Norris Boyd <nboyd@atg.com>




Hi Norris,

While working with wrapped Java classes we discovered a problem in
NativeJavaMethod : If the public method to be called is part of a
non-public class, the Sun Java VM throws an IllegalAccessException. This
bug in the Sun VM has been reported as Bug 4071593 to Sun, but has not been
resolved since....

I implemented a circumvention, for which I provide you the patch. I quickly
tested it, and it seems to work.

Regards
Felix

And here's the patch :

diff -w -r1.19 NativeJavaMethod.java
227a228,234
>        /**
>         * Due to a bug in Suns VM, public methods in private
>         * classes are not accessible by default (Sun Bug #4071593).
>         * We have to explicitly set the method accessible beforehand
>         */
>        meth.setAccessible(true);
>

-----------------------------------------------------------------
This message is a private communication. If you are not the intended
recipient, please do not read, copy, or use it, and do not disclose it
to others. Please notify the sender of the delivery error by replying to
this message, and then delete it from your system. Thank you.
The sender does not assume any liability for timely, trouble-free,
complete, virus free, secure, error free or uninterrupted arrival of
this e-mail. For verification please request a hard copy version.

mailto:felix.meschberger@day.com
http://www.day.com

Felix Meschberger
Development
Day Interactive AG
Steinenberg 21-23
4001 Basel
Switzerland

T  41 61 226 98 98
F  41 61 226 98 97


git-svn-id: svn://10.0.0.236/trunk@101768 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 20:01:49 +00:00
cmanske%netscape.com
c95183a711 Remove dialog utilities from editor c++ and nsIEditorShell interface (use nsIPromptService from JS instead). b=96649, r=brade, r=kin/sfraser, a=asa
git-svn-id: svn://10.0.0.236/trunk@101767 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 19:47:46 +00:00
mitesh%netscape.com
025e68f211 Fix for Bug 87661 - moving AutoConfig creation after reading of netscape.cfg
r=bnesse, sr=shaver and a=asa


git-svn-id: svn://10.0.0.236/trunk@101766 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 19:44:45 +00:00
cmanske%netscape.com
2bfa1db296 Fixed bad message dialog parent bug 96649, r=brade, sr=kin/sfraser, a=asa
git-svn-id: svn://10.0.0.236/trunk@101765 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 19:42:45 +00:00
chuang%netscape.com
e90eacf58d Bug96053 Executing a Query may not return an end-of-query,
fixed by john.marmion@ireland.sun.com., r=chuang, sr=mscott, a=asa


git-svn-id: svn://10.0.0.236/trunk@101764 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 19:34:50 +00:00
cmanske%netscape.com
beaee3a430 Fixed regression: Can't clear link via input field, b=96542, r=brade, sr=kin, a=asa
git-svn-id: svn://10.0.0.236/trunk@101763 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 19:32:36 +00:00
dsirnapalli%netscape.com
3ffab1967f renamed the image file.
git-svn-id: svn://10.0.0.236/trunk@101762 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 19:27:00 +00:00
mkaply%us.ibm.com
c5cc463b44 No bug
r=mkaply, a=asa for drivers
OS/2 ONLY - Code from Javier Pedemonte - more recovery from the libpr0n landing
This code makes all PNGs work and with it, all images should work on OS/2


git-svn-id: svn://10.0.0.236/trunk@101761 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 19:25:55 +00:00
jaggernaut%netscape.com
264679e48e Bug 96211: "Kill them darn js strict warnings", episode button.xml
Patch by Henrik Gemal <gemal@gemal.dk>, r=jag, sr=brendan, a=Asa


git-svn-id: svn://10.0.0.236/trunk@101760 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 18:54:28 +00:00
rpotts%netscape.com
da08e18b8e bug #96418 (r=valeski, sr=mscott). SaveAs dialog not shown when saving file...
git-svn-id: svn://10.0.0.236/trunk@101759 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 18:45:11 +00:00
brendan%mozilla.org
1fc56000f2 Fix all PL_strlen to be strlen, for 64-bit portability (shanmu's patch for 95838 generalized, sr=mscott&brendan, a=asa).
git-svn-id: svn://10.0.0.236/trunk@101758 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 18:38:30 +00:00
relyea%netscape.com
dadc39c1fb Memory leak fixes.
git-svn-id: svn://10.0.0.236/trunk@101757 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 18:34:34 +00:00
waterson%netscape.com
e9c570e73a Bug 96282. Make nsOutlinerRows::Last() work correctly when there are empty subtrees in the rows. r=varga, sr=kin, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@101756 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 18:28:15 +00:00
relyea%netscape.com
fb609dc013 BLAPI is complete below the PKCS #11 line, so should not call high level initialization functions.
git-svn-id: svn://10.0.0.236/trunk@101755 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 18:21:09 +00:00
relyea%netscape.com
af9c01bd19 1) Open database RW if we are encrypting so that the SDR key can be created.
2) Return an error code if we fail to open the database.
3) Initialize the database if it wasn't already


git-svn-id: svn://10.0.0.236/trunk@101754 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 18:20:07 +00:00
justdave%syndicomm.com
21573c54a7 Fix for bug 95235: variables with untrusted content were being echoed back to the user in error messages. Those variables are now run through html_quote() first.
Patch by Gavin Shelley <gavins@iplbath.com>
r= justdave@syndicomm.com


git-svn-id: svn://10.0.0.236/trunk@101751 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 17:32:25 +00:00
dbaron%fas.harvard.edu
15963ce5ed Fix FMR with a band-aid on top of a band-aid, at least until we figure this one out for real. b=93105 r=jag sr=attinasi a=asa
git-svn-id: svn://10.0.0.236/trunk@101750 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 14:00:49 +00:00
dbaron%fas.harvard.edu
96bf1bc30f Make LABEL act like an inline element rather than inline-block by removing lots of special (and not-well-tested) logic from nsLabelFrame and making it inherit from nsInlineFrame. This means LABEL will essentially always have 'display: inline', but it's hard to avoid that as long as form controls are implemented in frames rather than content. b=47149 r=rods sr=attinasi a=asa
git-svn-id: svn://10.0.0.236/trunk@101749 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 13:58:53 +00:00
dinglis%qnx.com
73f8705e3b NOT PART OF BUILD (Photon port only)
- added new prompt service
- new history resource.


git-svn-id: svn://10.0.0.236/trunk@101748 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 13:51:21 +00:00
bryner%netscape.com
5d1fb8258e Bug 85946 - file picker not resiz[e]able. Patch from colin@theblakes.com, r=bryner, sr=blake, a=asa.
git-svn-id: svn://10.0.0.236/trunk@101747 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 06:53:22 +00:00
bryner%netscape.com
5bb50b750e Bug 96434 - open folder in xp filepicker attempts a save instead of an open. r=jag, sr=shaver, a=dbaron.
git-svn-id: svn://10.0.0.236/trunk@101746 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 06:50:45 +00:00
nicolson%netscape.com
6b60ee7fd7 add getEncryptedPrivateKeyInfo.
git-svn-id: svn://10.0.0.236/trunk@101744 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 05:23:15 +00:00
nicolson%netscape.com
543f77a6c1 add NSPR wrapper around java socket.
git-svn-id: svn://10.0.0.236/trunk@101743 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 05:16:27 +00:00
nicolson%netscape.com
0996f8151f add types and ids for NSPR wrapper around java socket.
git-svn-id: svn://10.0.0.236/trunk@101742 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 05:15:18 +00:00
nicolson%netscape.com
4b77628768 Add getEncryptedPrivateKeyInfo.
git-svn-id: svn://10.0.0.236/trunk@101741 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 05:14:55 +00:00
nicolson%netscape.com
32327a46a2 add getEncryptedPrivateKeyInfo to CryptoStore.
git-svn-id: svn://10.0.0.236/trunk@101740 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 05:14:30 +00:00
syd%netscape.com
f503628d5c Add QuickLaunch panel to the installer. r=ssu,dveditz sr=mscott, a=asa. Bug is
87038


git-svn-id: svn://10.0.0.236/trunk@101739 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 05:00:02 +00:00
wtc%netscape.com
c263db4585 Bugzilla bug 94685: fixed compiler warnings.
git-svn-id: svn://10.0.0.236/trunk@101738 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 03:52:23 +00:00
kaie%netscape.com
b01bbfd7f9 b=96696 r=kaie sr=darin a=dbaron
adding missing init code
checking in for bbaetz


git-svn-id: svn://10.0.0.236/trunk@101737 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 03:40:48 +00:00
brendan%mozilla.org
d72ef6fca0 Check keyword version when scanning, not by installing different keywords on version selection (when starting to compile; bug 96562, r=rogerl, sr=shaver&jband, a=dbaron).
git-svn-id: svn://10.0.0.236/trunk@101736 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 03:32:31 +00:00
sonmi%netscape.com
b9a1bf76d1 fixed typo
git-svn-id: svn://10.0.0.236/trunk@101735 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 01:11:58 +00:00
mcafee%netscape.com
16e058789c Fix for rh7.1/jvm1.3.0 hang bug
git-svn-id: svn://10.0.0.236/trunk@101734 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 01:02:07 +00:00
sonmi%netscape.com
9169523452 added p/f for generating objsign cert bug 96743
git-svn-id: svn://10.0.0.236/trunk@101733 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 23:41:16 +00:00
rginda%netscape.com
d27d8f9332 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
set default nickname so it'll get saved


git-svn-id: svn://10.0.0.236/trunk@101732 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 22:12:43 +00:00
radha%netscape.com
7c3783e94d Fox for bug # 90098 and 83684 r=valeski sr=rpotts a=asa
git-svn-id: svn://10.0.0.236/trunk@101731 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 21:56:38 +00:00
radha%netscape.com
e9ee2beb7a Fix for bug 84519 r=adamlock sr=rpotts a=asa. history.go(toofar) gives problems to back/forward buttons
git-svn-id: svn://10.0.0.236/trunk@101730 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 21:55:57 +00:00
rginda%netscape.com
5b2f4793ab ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
move most of the rules to content/output-base.css; remianing rules are simple text style changes


git-svn-id: svn://10.0.0.236/trunk@101729 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 21:45:58 +00:00
rginda%netscape.com
9e4f2a2314 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
make current tab bold
add spacers after 4th and 8th tab so they're easy to map to Fn keys


git-svn-id: svn://10.0.0.236/trunk@101728 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 21:44:41 +00:00
rginda%netscape.com
05a1b303e4 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
add i18n strings for css, ping, and version commands


git-svn-id: svn://10.0.0.236/trunk@101727 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 21:43:11 +00:00
rginda%netscape.com
8c9d67fd23 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
add i18n strings for new context menu


git-svn-id: svn://10.0.0.236/trunk@101726 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 21:42:07 +00:00
rginda%netscape.com
54d5a78a1e ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
bump version number to 0.8.4
reduce max word length to 20
s/toolbar/tabstrip/
dont connect to default urls if we're supposed to go to a specific irc:// url
add quakenet
add mailto: and #Channel links
remove target attribute from links that don't need one
modify smiley insertion to be css friendly
implement tooltips
add dynamic css code, not used yet
fix parsing of empty irc:// urls (irc:, irc:/, and irc://)
focus input on startup and [esc]
implement dnd for content pane and links
add getURL method for the client object


git-svn-id: svn://10.0.0.236/trunk@101725 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 21:41:24 +00:00
rginda%netscape.com
6e0185c279 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
add initialScripts pref
remove old style prefs
add new "default style" pref


git-svn-id: svn://10.0.0.236/trunk@101724 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 21:35:45 +00:00
rginda%netscape.com
39dda15dc3 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
fix function names


git-svn-id: svn://10.0.0.236/trunk@101723 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 21:34:58 +00:00
rginda%netscape.com
c35890a6b2 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
add doctype to prevent quirks mode
add logic to take css file from querystring


git-svn-id: svn://10.0.0.236/trunk@101722 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 21:34:45 +00:00
rginda%netscape.com
d4b0f9ed57 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
load initial scripts at startup
rename toolbar functions to tabstrip
add support for content area context menu
implement css command
fix i18n string concatenation to use formats instead
imlement ping and version commands
add unknown ctcp handler
put list reply header with the list
add nickname in use during initial connect logic (append an _ until it works)
add ctcp ping reply handler


git-svn-id: svn://10.0.0.236/trunk@101721 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 21:33:59 +00:00
rginda%netscape.com
831a75fe95 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
add css, ping, voice commands
rename toolbar to tabstrip


git-svn-id: svn://10.0.0.236/trunk@101720 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 21:30:40 +00:00
rginda%netscape.com
de4053fc80 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
add tooltip and drag and drop related <script>s
add <command>s and <key>s for the new context menu
add popupset for tooltip
add content area context menu
tweak main menu layout
add class name and op/voice attributes for nick column in userlist
add drag and drop handlers for content area


git-svn-id: svn://10.0.0.236/trunk@101719 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 20:38:57 +00:00
rginda%netscape.com
cbb6d621f1 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
robustify dumpObjectTree()
whitespace cleanup
fix getStackTrace to get function name from the correct place


git-svn-id: svn://10.0.0.236/trunk@101718 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 20:33:24 +00:00
rginda%netscape.com
b31541f4f5 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
add getURL methods
add default parameter for CTCP PING
route ctcp replies properly


git-svn-id: svn://10.0.0.236/trunk@101717 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 20:31:07 +00:00
rginda%netscape.com
529ff78392 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
prepare to use sockets correctly, changes not used yet


git-svn-id: svn://10.0.0.236/trunk@101716 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 20:27:24 +00:00
rginda%netscape.com
f4d5d24d79 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
remove debug dump
pass URL to new window via window.openDialog argument, instead of query string.


git-svn-id: svn://10.0.0.236/trunk@101715 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 20:25:42 +00:00
rginda%netscape.com
061db8269e ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
fix whitespace, add new files to chatzilla.jar


git-svn-id: svn://10.0.0.236/trunk@101714 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 20:24:42 +00:00
rginda%netscape.com
59bb8d2956 ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
initial add of dark and light output styles


git-svn-id: svn://10.0.0.236/trunk@101713 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 20:24:02 +00:00
rginda%netscape.com
aa32193ffa ChatZilla changes only, bug 89713, r=samuel@sieb.net, a=asa
initial add of blank "dynamic" stylesheet, and base styles for output window.


git-svn-id: svn://10.0.0.236/trunk@101712 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 20:23:16 +00:00
dp%netscape.com
793d0d0caf bug# 96469 caching xbl service r=jag, sr=waterson, a=asa
git-svn-id: svn://10.0.0.236/trunk@101711 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 20:07:10 +00:00
darin%netscape.com
fd7138d231 workaround fix for blocker bug 96440 r=harishd, sr=vidur, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@101710 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 18:59:46 +00:00
darin%netscape.com
8957fc6413 backing out my patch for bug 95981 to fix blocker bug 96480
git-svn-id: svn://10.0.0.236/trunk@101709 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 18:58:25 +00:00
sonmi%netscape.com
90a4fd5b7e brought comments up to date
git-svn-id: svn://10.0.0.236/trunk@101708 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 18:46:44 +00:00
dbaron%fas.harvard.edu
bcd6d38e0f Fix warning / potential bustage. b=91794
git-svn-id: svn://10.0.0.236/trunk@101705 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 14:49:06 +00:00
bienvenu%netscape.com
8aa5b7d2d9 fix leak of undo transaction mgr and undo objects on window close r=naving, sr=sspitzer a=dbaron 96564
git-svn-id: svn://10.0.0.236/trunk@101704 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 14:36:55 +00:00
bienvenu%netscape.com
6426115aad implement offline undo of imap delete r=naving, sr=sspitzer a=asa 93128
git-svn-id: svn://10.0.0.236/trunk@101703 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 14:35:50 +00:00
barnboy%trilobyte.net
dca8acb15c Adding some pretty images for the Bugzilla Guide warning,
note, caution, and tip entries.


git-svn-id: svn://10.0.0.236/trunk@101702 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 14:30:20 +00:00
dbaron%fas.harvard.edu
a70babfcd5 Use the same information for max ascent/max descent (which is used for painting backgrounds) that we've been using all along for default line spacing (ascent/descent rather than max_bounds.ascent/max_bounds.descent), since max_bounds often gives extents larger than ascent/descent. Also clean up the metrics calculation a bit and clean up some debugging macros. b=91794 (also fixes 59825, 64807, 77067, 91776, and probably 89133) r=bstell sr=waterson a=tor
git-svn-id: svn://10.0.0.236/trunk@101701 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 13:44:06 +00:00
rods%netscape.com
ebbd7dca87 Disabling the auto radio seleciton and fixing a bug if it ever gets turned on
The bug is that when printing you don't want to do the auto default selection stuff because
it ends up calling into the DOM and changing the radios on the page.
Bug 96367 r=timeless sr=attinasi a=dbaron


git-svn-id: svn://10.0.0.236/trunk@101700 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 11:09:16 +00:00
mcafee%netscape.com
7bdb7f4da9 minor comment nit
git-svn-id: svn://10.0.0.236/trunk@101699 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 07:09:09 +00:00
kaie%netscape.com
f707b4e236 Fixing my checkin for bug 76915
git-svn-id: svn://10.0.0.236/trunk@101698 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 06:15:38 +00:00
kaie%netscape.com
11fac3f796 b=76915 r=dveditz sr=sfraser a=asa
Giving GUI feedback instead of crashing
Part 3 of 3 - changes to existing code


git-svn-id: svn://10.0.0.236/trunk@101697 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 05:25:15 +00:00
kaie%netscape.com
b2949675ed b=76915 r=dveditz sr=sfraser a=asa
Giving GUI feedback instead of crashing
Part 2 of 3 - changes to make files only


git-svn-id: svn://10.0.0.236/trunk@101696 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 05:23:21 +00:00
kaie%netscape.com
6bb8af13f6 b=76915 r=dveditz sr=sfraser a=asa
Giving GUI feedback instead of crashing
Part 1 of 3 - added files only


git-svn-id: svn://10.0.0.236/trunk@101695 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 05:20:33 +00:00
mscott%netscape.com
e8510a4778 Bug #92367--> fix a crash when closing a compose window while we are busy quoting. the fix is to cleanup some ref counting issues
using a combination of nsCOMPtr and nsWeakReferences
r=varada
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@101694 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 05:12:06 +00:00
mscott%netscape.com
35af079987 Bug #85825 --> don't resend messages which we weren't able to send when doing send later.
r=sspitzer
sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@101693 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 05:09:58 +00:00
kaie%netscape.com
2e54ff276a b=93617 r=dcone sr=attinasi a=asa
Fixing print dialog focus problem on Unix


git-svn-id: svn://10.0.0.236/trunk@101692 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 05:04:06 +00:00
mcafee%netscape.com
7f2241dd13 Set MOZILLA_FIVE_HOME for each build loop. reduce sleep time to 10sec for performance tests. debug printouts.
git-svn-id: svn://10.0.0.236/trunk@101691 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 04:59:55 +00:00
kaie%netscape.com
0c7b4f3098 b=95987 r=relyea sr=sfraser a=asa
Fixing SSL crash by disabling ciphers


git-svn-id: svn://10.0.0.236/trunk@101690 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 04:58:27 +00:00
kaie%netscape.com
29aef92599 b=79153 r=kaie sr=sfraser a=asa
Making the new feature actually work on Mac.


git-svn-id: svn://10.0.0.236/trunk@101689 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 04:39:25 +00:00
shanjian%netscape.com
e8bca10914 #45187 Inherit character coding does not work in <a href= xxxx target="new">
r = rpotts, sr=waterson, a=tor


git-svn-id: svn://10.0.0.236/trunk@101688 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 04:24:25 +00:00
waldemar%netscape.com
1b74aa96ce Removed type-expression
git-svn-id: svn://10.0.0.236/trunk@101687 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 04:22:56 +00:00
waldemar%netscape.com
99aeb2f52f Added more basic semantics
git-svn-id: svn://10.0.0.236/trunk@101686 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 04:22:24 +00:00
waldemar%netscape.com
4496362776 Added vector subtyping, support for & on unions of tags, and the nonempty operator
git-svn-id: svn://10.0.0.236/trunk@101685 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 04:21:18 +00:00
dcone%netscape.com
91859fd4e4 b=58002 r=dcone sr=attinasi r=rods a=asa. Fix radio buttons to print the correct setting.
git-svn-id: svn://10.0.0.236/trunk@101682 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 02:25:14 +00:00
brendan%mozilla.org
a76cace18d Avoid corrupting backpatch chains by checking for jump offset operand overflow (90445, khanson's patch with minor changes, sr=shaver&me, a=asa).
git-svn-id: svn://10.0.0.236/trunk@101681 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 02:07:07 +00:00
bienvenu%netscape.com
0878f16ccb fix crash reading an imap message rs=mscott, a=asa 96518
git-svn-id: svn://10.0.0.236/trunk@101680 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 02:04:43 +00:00
sspitzer%netscape.com
25946e9f42 fix for #96499, account central not being shown on start up, "read messages" not working if server collapsed
fix for #95358, folder pane sorting should be case insensitive
fix for #18343, newsgroups in the folder pane should be in newsrc order, not alphabetical order.

plus, some clean up.

r=racham, sr=bienvenu, a=asa


git-svn-id: svn://10.0.0.236/trunk@101679 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 01:10:05 +00:00
mcafee%netscape.com
e22ce8c658 Adding java test, whitespace cleanup
git-svn-id: svn://10.0.0.236/trunk@101678 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 01:06:35 +00:00
sfraser%netscape.com
6df210f43c Fix bug 96232, crash while typing if tooltip is showing. Add kung fu death grip on the nsMacWindow. r=pinkerton/brade, sr=brendan, a=drivers
git-svn-id: svn://10.0.0.236/trunk@101675 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 00:23:45 +00:00
pinkerton%netscape.com
bf647de1f0 rollup popups when a toplevel window hides. makes popups go away about the same time in destruction sequences as on win32. r=pchen/sr=sfraser/a=asa. bug 89373.
git-svn-id: svn://10.0.0.236/trunk@101674 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 00:23:30 +00:00
wtc%netscape.com
266995ef87 Bugzilla bug 94685: defining SECUTIL_NEW caused the wrong function
declaration (with PRFileDesc* as the first parameter) to be used and
hence a compiler warning.


git-svn-id: svn://10.0.0.236/trunk@101673 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 00:22:07 +00:00
wtc%netscape.com
8baf9712df Bugzilla bug 94685: added 'const' to eliminate compiler warning.
Modified files: install.c instsec.c


git-svn-id: svn://10.0.0.236/trunk@101670 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 00:10:00 +00:00
cmanske%netscape.com
fd5f0f38b8 Finish fixing Fixed Width bug 79200, r=brade, sr=sfraser, a=asa
git-svn-id: svn://10.0.0.236/trunk@101669 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 00:05:53 +00:00
wtc%netscape.com
2e28d51dbd Bugzilla bug 94685: deleted unused variable 'iter'.
git-svn-id: svn://10.0.0.236/trunk@101668 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 00:05:46 +00:00
wtc%netscape.com
91fb185586 Bugzilla bug 94685: added 'const' to eliminate a compiler warning.
git-svn-id: svn://10.0.0.236/trunk@101665 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 00:00:05 +00:00
mitesh%netscape.com
bd06551cdd Fix for Bug 95795 Timer on Linux doesn't work in AutoConfig
r=bnesse , sr=sfraser and a=asa


git-svn-id: svn://10.0.0.236/trunk@101664 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:58:12 +00:00
wtc%netscape.com
055cb216bc Bugzilla bug 94685: added 'const' to eliminate compiler warnings.
git-svn-id: svn://10.0.0.236/trunk@101663 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:55:53 +00:00
harishd%netscape.com
b4cb458835 56245 - Misplaced /FONT was closing out TABLE. I've added logic such that if a residual style tag ( inline element ) cannot contain a tag ( block element ) then it
cannot close it either. Which implies that the end tag is misplaced. Also, made userdefined tags to act as inline elements.
r=heikki,sr=vidur,a=tor.


git-svn-id: svn://10.0.0.236/trunk@101661 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:43:43 +00:00
javi%netscape.com
11a5994ba7 Remove PSM 1 file from repository.
git-svn-id: svn://10.0.0.236/trunk@101660 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:36:18 +00:00
javi%netscape.com
68c83acfed Remove PSM 1 files from repository.
git-svn-id: svn://10.0.0.236/trunk@101659 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:34:43 +00:00
wtc%netscape.com
fda93275b2 Bugzilla bug 94685: eliminated a compiler warning about unreferenced label
'retry'.


git-svn-id: svn://10.0.0.236/trunk@101658 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:25:54 +00:00
javi%netscape.com
984e133ae5 Remove PSM 1 files from repository
git-svn-id: svn://10.0.0.236/trunk@101657 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:25:25 +00:00
wtc%netscape.com
d82456cdd4 Bugzilla bug 94685: added missing 'case' in a switch statement. I have
to say that switch statement looks unusual.


git-svn-id: svn://10.0.0.236/trunk@101656 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:22:12 +00:00
javi%netscape.com
8acd9a2f2a Remove PSM 1 files from repository.
git-svn-id: svn://10.0.0.236/trunk@101655 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:17:12 +00:00
wtc%netscape.com
8790f9d8ae Bugzilla bug 94685: deleted the unreferenced label 'no_wrapped_key'.
git-svn-id: svn://10.0.0.236/trunk@101654 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:15:45 +00:00
javi%netscape.com
5e24ed3bb5 Remove PSM 1 files from repository
git-svn-id: svn://10.0.0.236/trunk@101653 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:08:46 +00:00
javi%netscape.com
b884dca0fd Removing PSM 1 files from repository.
git-svn-id: svn://10.0.0.236/trunk@101652 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:04:38 +00:00
javi%netscape.com
de4209c234 Removing old psm files
git-svn-id: svn://10.0.0.236/trunk@101651 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:03:22 +00:00
javi%netscape.com
102f8d04c2 Check to make sure we're still logged into a slot when trying
to re-use a client-auth session.


git-svn-id: svn://10.0.0.236/trunk@101649 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 22:50:26 +00:00
wtc%netscape.com
115f45b12d Bugzilla bug 94685: fixed compiler warnings. The patch is from
timeless@mac.com.
Modified Files:
    cmd/certcgi/certcgi.c cmd/pk12util/pk12util.c
    lib/certdb/certdb.c


git-svn-id: svn://10.0.0.236/trunk@101646 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 22:40:42 +00:00
pinkerton%netscape.com
f8df04c373 fix for strlen being called on a null string when there is no text to convert to the platform charset. r=pchen/sr=sfraser/a=asa. bug# 92755.
git-svn-id: svn://10.0.0.236/trunk@101645 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 22:21:43 +00:00
sspitzer%netscape.com
405829e2aa fix for blocker #96282. use SelectFolder() to select the inbox on the default account
on startup.  r=mscott,sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@101644 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 18:41:59 +00:00
mcgreer%netscape.com
0a4cd7d781 Move functions to 3.3.1 to avoid confustion (they are not 3.2.x functions!)
git-svn-id: svn://10.0.0.236/trunk@101642 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 16:26:07 +00:00
cls%seawood.org
0c8b34787a Removing dos newlines (^M) to fix irix bustage
git-svn-id: svn://10.0.0.236/trunk@101640 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 07:30:46 +00:00
cls%seawood.org
6032c63285 Fixing REQUIRES bustage
git-svn-id: svn://10.0.0.236/trunk@101639 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 07:11:45 +00:00
blakeross%telocity.com
2941635522 smart browsing pref pane polish. r/sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@101638 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 06:59:21 +00:00
ccarlen%netscape.com
5c3ef884fc Bug 89854 - Confirm migration dialog won't fit on small screen. r=racham/sr=ben
git-svn-id: svn://10.0.0.236/trunk@101637 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 06:54:01 +00:00
dveditz%netscape.com
0c3fb27ad6 bug 91519 regression fix
git-svn-id: svn://10.0.0.236/trunk@101636 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 05:56:16 +00:00
brendan%mozilla.org
5bd9bfb18a Checking in khanson's patch for bug 85112, based on joemansh@interl.net's algorithm (r=beard, sr=me).
git-svn-id: svn://10.0.0.236/trunk@101635 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 05:42:16 +00:00
loadrunner%betak.net
d8e621de9c bug 70341, Non-ASCII attachment filename is not MIME encoded if filename is short, or with no or other extensions
r=ducarroz
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@101634 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 05:34:22 +00:00
brendan%mozilla.org
8404f27930 Forget to include jsopcode.h.
git-svn-id: svn://10.0.0.236/trunk@101633 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 05:33:32 +00:00
markh%activestate.com
243cc35e4f Fix unicode handling for octet arrays, and finally fix the test suite
for Python 2.2.

Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@101632 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 05:33:05 +00:00
jfrancis%netscape.com
dc74067145 fixes:
bug 83918 - Not able to start a list (number or bullets) when using Bold style
bug 62347 - Selecting "Body Text" doesn't change style if in <pre> text that has <br>
bug 86476 - ubercaret appears on multi-line text block
bug 87882 - pasting text from one bullet to another yields extra bullet
---------------
r=sfraser; sr=kin


git-svn-id: svn://10.0.0.236/trunk@101631 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 05:32:44 +00:00
akkana%netscape.com
80d9d8aa50 94751: make validate use nsIFile so it will work on non-Unix platforms. r=bbaetz sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@101630 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 05:14:30 +00:00
ccarlen%netscape.com
29dc4f1588 Bug 92100 - When searching in frames, selection is visible in > 1 frame. r=valeski/sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@101629 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 05:14:15 +00:00
brendan%mozilla.org
97dea81da0 Support ref()++ etc. for native ref (75688) and fix exn_toSource (96284); sr=shaver&jband.
git-svn-id: svn://10.0.0.236/trunk@101627 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:59:28 +00:00
blakeross%telocity.com
b4e046129c minor polish for autocomplete prefs dialog. r=kerz sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@101626 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:42:32 +00:00
mkaply%us.ibm.com
32e8dc3056 #95651
r=mkaply, timeless a=blizzard
OS/2 only - code from Javier Pedemonte - fix Launch/Reveal behavior for Os/2


git-svn-id: svn://10.0.0.236/trunk@101624 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:33:17 +00:00
bryner%netscape.com
b8ce2ebf02 Removing this file since it's no longer needed.
git-svn-id: svn://10.0.0.236/trunk@101623 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:27:55 +00:00
karnaze%netscape.com
4072b4f8d3 bug 48827 - round column width to even pixel when calculating percent column. sr=attinasi,r=bernd
git-svn-id: svn://10.0.0.236/trunk@101622 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:24:10 +00:00
karnaze%netscape.com
1a0768b791 bug 60013 - make table with html width set to 0 behave like an auto table. sr=attinasi,r=bernd
git-svn-id: svn://10.0.0.236/trunk@101621 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:21:05 +00:00
karnaze%netscape.com
fd3fccbde9 bug 89315 - made CalculateRowHeights incremental by starting at a row other than the 1st. Row group dirty reflow passes in first reflowed row. sr=waterson,r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@101620 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:18:48 +00:00
markh%activestate.com
d25f7195de Remove an extra, incorrect comment I accidently left in.
Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@101619 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:16:37 +00:00
eddyk%netscape.com
ac060ce4e2 bug 75469: move <script><![CDATA] ... into a .js file
r=timeless sr=ben


git-svn-id: svn://10.0.0.236/trunk@101618 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:15:28 +00:00
markh%activestate.com
1a0a3e63cc Fix a subtle bug in the weak-reference support - the weak reference must
always be made against the "base" interface for the instance, not one
of the tear-offs (as the tear-off may have a shorter life than the base)

Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@101617 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:11:28 +00:00
markh%activestate.com
6f58a1ebcc Fix a bug when building on Windows from a binary install (rather than
from Python sources).
Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@101616 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:10:08 +00:00
javi%netscape.com
64c06e8edd Fix for bug 91407 r=ddrinan, sr=tor
Make downloading a CA cert mime type blob smart enough
to handle blobs with more than one cert.


git-svn-id: svn://10.0.0.236/trunk@101615 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:05:45 +00:00
bienvenu%netscape.com
0e4f103070 attempt to fix linux bustage
git-svn-id: svn://10.0.0.236/trunk@101614 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:04:02 +00:00
bienvenu%netscape.com
dcc8931e52 attempt to fix linux bustage
git-svn-id: svn://10.0.0.236/trunk@101613 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:03:37 +00:00
bienvenu%netscape.com
58772b052b attempt to fix linux bustage
git-svn-id: svn://10.0.0.236/trunk@101612 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:02:12 +00:00
mscott%netscape.com
d981b838a6 Bug #59787 --> when showing the start page, clear the force charset on the document viewer. Then when we switch back to showing a message
force it to be UTF-8 again. This fixes problems with I18N start pages which attempt to specify a meta charset.
r=naving
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@101611 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 03:57:56 +00:00
peterlubczynski%netscape.com
4933556d7a Fix for not opening bundles plugin resources on Mac fixing crashes (and tab clean up) bug 91988 r=bnesse sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@101610 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 03:55:53 +00:00
bienvenu%netscape.com
3914be8e45 fix 95601 crash after getting new pop mail before selecting pop inbox r=naving, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@101609 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 03:53:31 +00:00
hewitt%netscape.com
e49a6ab0ff 94870 - Autocomplete ignores history entires starting with www, r=dmose, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@101608 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 03:49:31 +00:00
hewitt%netscape.com
77db0135ff 89198 - add option to show comments column in autocomplete, r=blake, sr=ben
git-svn-id: svn://10.0.0.236/trunk@101607 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 03:47:04 +00:00
barnboy%trilobyte.net
305a7218e6 Big checkin of docs to resolve every
known outstanding doc bug! Yay release.
Still many things to fix. Aren't there always?


git-svn-id: svn://10.0.0.236/trunk@101604 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 03:44:35 +00:00
naving%netscape.com
6a8e0d6f5b 90640 r=bienvenu sr=sspitzer. Make the MarkFlagged filter action work for IMAP
git-svn-id: svn://10.0.0.236/trunk@101602 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 03:31:48 +00:00
sspitzer%netscape.com
6119b06110 fix for #96298. get "next unread" to work again now that we have switched to outliner.
when trying to "land" on folder, we need to make sure all the ancestors are "expanded".
r/sr=mscott,bienvenu


git-svn-id: svn://10.0.0.236/trunk@101601 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 03:24:52 +00:00
blakeross%telocity.com
64044fe4dc Fallout from box syntax changes. sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@101600 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 03:20:36 +00:00
blakeross%telocity.com
7bbe890752 Textfield for anon ftp password not same length as checkbox (94939). r=ben sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@101599 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 02:55:33 +00:00
blakeross%telocity.com
4ffc8ef645 Send Link and Send Page in Manage Bookmarks do nothing, and some history polish (73904). r=hewitt sr=ben
git-svn-id: svn://10.0.0.236/trunk@101598 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 02:52:30 +00:00
blakeross%telocity.com
553835824a fixing a minor typo, no bug, rs=hewitt
git-svn-id: svn://10.0.0.236/trunk@101597 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 02:49:22 +00:00
dbradley%netscape.com
85eba49665 Fix for bustage, remove extra paren from my patch
git-svn-id: svn://10.0.0.236/trunk@101595 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 01:53:43 +00:00
tao%netscape.com
5b60844ecd 91217: update locale version in package/locale provider registry.
r=jbetak,sr=sspitzer. 0.9.3 ->0.9.4


git-svn-id: svn://10.0.0.236/trunk@101594 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 01:52:23 +00:00
cmanske%netscape.com
7788779500 Added new input filter to restrict first character: b=88881, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@101593 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 01:49:36 +00:00
cmanske%netscape.com
51e74cc9eb Added text style to toggle 'TT' (fixed width) tag in Composer, b=79200, r=brade, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@101592 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 01:43:22 +00:00
leif%netscape.com
1342a2ecf3 Bug 85452, 100% CPU usage in LDAP autocomplete. r=dmose, sr=mscott,
patch=leif.


git-svn-id: svn://10.0.0.236/trunk@101591 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 01:30:19 +00:00
sspitzer%netscape.com
d0d081dc51 fix the fix for #87177. thanks to walk84 for pointing it out.
r=walk84, sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@101590 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 01:18:40 +00:00
jdunn%netscape.com
b97569864f fixing dcone's checkin
in a enum, certain compilers don't like when the
last item has a ',' so I removed it

Fixing messina's tbox bustage


git-svn-id: svn://10.0.0.236/trunk@101589 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 01:10:21 +00:00
javi%netscape.com
3dc7e75605 Fix for Bug 44042, checking in for Gervase Markham
r=javi, sr=bin

Fix up some confusing wording in security dialgs.


git-svn-id: svn://10.0.0.236/trunk@101588 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 01:06:56 +00:00
dbradley%netscape.com
4869c56528 Bug 93792: This is the part to make passing nsID by value illegal in xpidl without notxpcom, see bug for a better explanation. sr=brendan, r=jband
git-svn-id: svn://10.0.0.236/trunk@101587 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 01:04:26 +00:00
sspitzer%netscape.com
b5a1706ebb fix for #90781. clean up the confirm dialog when you cancel the account wizard
and you don't have any existing accounts.  thanks to bhart00@yahoo.com
for the patch.  r=racham, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@101585 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:56:21 +00:00
srilatha%netscape.com
2c0e523232 Fix for bug # 95047. removing dependency on csid.h
r=dbaron, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@101583 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:54:29 +00:00
mscott%netscape.com
933ccd9648 Bug #86773 --> string bundle fix up for signed messages. checking in for ducarroz
r=sspitzer
sr=mscott


git-svn-id: svn://10.0.0.236/trunk@101582 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:51:12 +00:00
srilatha%netscape.com
77622f1166 Fix for bug #95047. Removing dependency on csid.h
r=dbaron, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@101581 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:50:30 +00:00
stephend%netscape.com
fb03c5c83b Bug 88673. Cleaning up wording in history's prefs panel. Patch by Bradley Hart <bhart00@yahoo.com> r=jatin@netscape.com/timeless@mac.com sr=scc@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@101580 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:47:21 +00:00
darin%netscape.com
5ba03ff3ef fixes bug 95981 "Changes in background images on pages do not show on reload"
r=pavlov, sr=dougt


git-svn-id: svn://10.0.0.236/trunk@101579 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:46:08 +00:00
srilatha%netscape.com
3368ddf222 Fix for bug #87896. Hitting backspace creates bogus enty in the autompletion dropdown box. r=ducarroz, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@101578 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:41:20 +00:00
darin%netscape.com
c45df76363 fixes bug 90288 (part 2) "not honoring Pragma: no-cache from HTTP-EQUIV"
r=gagan, sr=dougt


git-svn-id: svn://10.0.0.236/trunk@101577 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:38:46 +00:00
darin%netscape.com
4570680930 fixes bug 90288 (part 1) "not honoring "Pragma: no-cache" from HTTP-EQUIV"
r=gagan, sr=dougt


git-svn-id: svn://10.0.0.236/trunk@101575 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:26:42 +00:00
darin%netscape.com
1d408a0e35 fixes bug 94811 "leaking sockets; nsISocketTransport::IsAlive not implemented reliably"
r=wtc, sr=dougt


git-svn-id: svn://10.0.0.236/trunk@101574 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:24:26 +00:00
pchen%netscape.com
377e9302d5 bug 91726, r=pinkerton, sr=sfraser, under carbon, Internet Config seems to return mappings with a null mime type string, if we see a null mime type string, set mime type in nsMimeInfo to octet-stream
git-svn-id: svn://10.0.0.236/trunk@101573 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:19:08 +00:00
danm%netscape.com
73d5550252 allow larger windows when sizing with the mouse. also moved standard-state calculation to nsMacWindow. some code by rjc@rjcdb.com. bugs 80431,95740 r=hyatt,pinkerton
git-svn-id: svn://10.0.0.236/trunk@101572 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:18:45 +00:00
dianesun%netscape.com
29c5504b82 Fix to bug 94961 (kB -> KB). r=buhvan, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@101571 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:17:55 +00:00
danm%netscape.com
2df78d7028 always adjust maximized ("standard") window size before zooming. some code by rjc@rjcdb.com. bugs 80431,95740 r=hyatt,pinkerton
git-svn-id: svn://10.0.0.236/trunk@101570 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:17:04 +00:00
dianesun%netscape.com
2c267c8f3c Fix to bug 94961 (kB -> KB). r=buvhan, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@101569 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:14:14 +00:00
dianesun%netscape.com
306136e548 Fix to bug (95201: disable Download/Sync) r=buhvan, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@101568 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:07:46 +00:00
loadrunner%betak.net
9d3611c19f bug 56304, HTML ja signature displays as garbage in the mail body
bug 91670, Signature file with the charset different from the system on
r=ducarroz, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@101566 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:02:01 +00:00
timeless%mac.com
729a18f51e 1.206 <cavin@netscape.com> 21 Aug 2001 11:39 checked in ^Ms while fixing Bug #68296
a=bustage,sheriffs#mozilla


git-svn-id: svn://10.0.0.236/trunk@101564 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 23:49:54 +00:00
stephend%netscape.com
5d52c1ab97 Attempt to fix rjesup's bustage. a=sheriff
git-svn-id: svn://10.0.0.236/trunk@101562 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 22:43:47 +00:00
dp%netscape.com
1c97d50450 bug 94883 nsCreateInstanceByContractID() performance improvement
git-svn-id: svn://10.0.0.236/trunk@101561 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 22:42:35 +00:00
dcone%netscape.com
19670eec75 b=73884 r=peterl sr=attinasi invert mode support added
git-svn-id: svn://10.0.0.236/trunk@101560 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 22:37:17 +00:00
mkaply%us.ibm.com
7a0c0a2b08 OS/2 will take this as well, thank you very much.
Fixes transparent PNGs on OS/2.


git-svn-id: svn://10.0.0.236/trunk@101559 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 22:29:25 +00:00
sspitzer%netscape.com
2947c88829 bulletproofing fix for #96291 to prevent crashing on the first autocomplete.
there is still a bug here, so #96291 will stay open.  sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@101557 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 22:16:42 +00:00
ftang%netscape.com
79feec38c3 new file for 90804. not part of the build yet
git-svn-id: svn://10.0.0.236/trunk@101556 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 22:14:56 +00:00
tor%cs.brown.edu
0d3c9ba521 Bug 84980 - zero out the color components of transparent pixels
in a binary alpha PNG on win32 before handing them off to libpr0n.
r=pavlov, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@101555 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 21:59:08 +00:00
mkaply%us.ibm.com
402f5c0a60 No bug
r=mkaply, a=blizzard
OS/2 only - Code from Dainis Jonitis - Fix fallout from imagelib removal
Add back in tiling support for OS/2


git-svn-id: svn://10.0.0.236/trunk@101554 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 21:56:36 +00:00
mkaply%us.ibm.com
9fe696d442 #95301
r=pedemonte, a=blizzard
OS/2 only - leaking presentation spaces


git-svn-id: svn://10.0.0.236/trunk@101553 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 21:53:46 +00:00
rjesup%wgate.com
9773ad26f7 bug 96289: mURLParsers cache wasn't. r=gagan@netscape.com,
sr=dougt@netscape.com


git-svn-id: svn://10.0.0.236/trunk@101552 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 21:49:04 +00:00
jj%netscape.com
bee31306ad bugscape #6794: updated 'vers' resources for Mozilla/Netscape installer
git-svn-id: svn://10.0.0.236/trunk@101551 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 21:43:53 +00:00
naving%netscape.com
79b33fc997 89698 r=robinf, jglick for alert wording changes.
git-svn-id: svn://10.0.0.236/trunk@101550 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 21:35:41 +00:00
sspitzer%netscape.com
8181258744 fix for #72869.
in the tree view (in subscribe) allow for multiple selection.
r/sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@101549 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 21:27:26 +00:00
bryner%netscape.com
efb03cfbd3 Bug 92210 - Window steals focus if you switch to another app during "Transferring data from...". r=saari, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@101548 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 21:18:45 +00:00
mozilla.BenB%bucksch.org
7fe6346c58 76359: Fixing regression: namespace for CSS in Modern broke the mail msg display layout, incl. quotes and prefs.
Some reformatting (both skins).
r/sr=Ben Goodger, r=blake, sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@101547 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 21:18:16 +00:00
pchen%netscape.com
a174005e00 bug 93195, r=brade, sr=sfraser, relax minimum macos requirement back to 8.5
git-svn-id: svn://10.0.0.236/trunk@101546 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 21:14:12 +00:00
naving%netscape.com
5c2ece1991 88251 r=bienvenu sr=sspitzer. Maintain the sort-order etc when emptying local trash.
git-svn-id: svn://10.0.0.236/trunk@101545 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 21:06:40 +00:00
brendan%mozilla.org
6abf5e7f73 Bit checkin for bug 68045, r/sr=waterson&shaver, second attempt. It all works
for me on optimized and debug gcc2.96, rh7.1.

- Better failure codes from nsXULPrototypeScript::Deserialize.

- Call nsXULDocument::AbortFastLoads after nsXULPrototypeScript::Serialize
  failure, instead of just nulling the FastLoad service's output stream.

- Expose nsXULDocument::AbortFastLoads via nsIXULPrototypeCache, for use from
  nsChromeProtocolHandler.cpp.  AbortFastLoads flushes the XUL cache now, for
  good measure.

- The needless "Current" adjective in nsIFastLoadService attribute and method
  names is no more.

- Add a do_GetFastLoadService() helper, to use CID instead of contractid, and
  to let the compiler consolidate the static inline CID.

- Add "nglayout.debug.checksum_xul_fastload_file" pref so people can do without
  the checksum verification step when reading a FastLoad file.

- Verify the FastLoad file checksum, by default.  Also, cache it in the FastLoad
  service so we don't recompute it when re-opening the FastLoad file as mailnews
  and other top-levels start up.  Fill the checksum cache in EndFastLoad, when
  the last pseudo-concurrent top-level finishes loading.

  My hope to compute the checksum while writing the FastLoad file ran afoul of
  misordered writes.  The old code to checksum the in-memory nsFastLoadHeader
  also was broken on little endian platforms.  Now all checksumming is done via
  a separate read pass over the complete file, save for the header's checksum
  field, which is summed as if it contained zero.

- Track and check FastLoad file dependencies.  This required groveling with a
  bunch of Necko interfaces in nsChromeProtocolHandler::NewChannel -- read it
  and weep.  Dependency checking, as well as checksum access and computation,
  use better-factored nsIFastLoad{File,Read,Write}Control interfaces.

- nsBufferedStream::Seek wasn't flushing the buffer when seeking backward
  within the buffer, but it must, because mCursor bounds the amount to write
  if the buffer contains the end of file.

- Add an unbufferedStream readonly attribute to nsIStreamBufferAccess, so we
  don't have to screw around with the bufferying layer when checksumming. Also
  implement nsIStreamBufferAccess in nsBufferedOutputStream.

- nsISeekableOutputStream was bogus, based on a bad state I had put the
  nsBufferedOutputStream code in on its way from being completely broken when
  you seek backwards outside of the buffer.  Removing this interface required
  using nsIFastLoadFileIO in nsFastLoadFileWriter, and it also required careful
  ordering of Close calls (the Reader must close after the Writer or Updater,
  so that the Reader's underlying, unbuffered input stream can be read by
  nsFastLoadFileWriter::Close to compute the checksum.

- Miscellaneous tab/indentation, comment typo, bracing, if( => if ( style,
  nsnull vs. 0, useless variable elimination, tortured control flow,
  AutoString instead of String, and gratuitous ; after nsISupportsUtils.h
  macro call cleanups.


git-svn-id: svn://10.0.0.236/trunk@101544 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 20:51:34 +00:00
chuang%netscape.com
63850355cc Bug 17476 Move/Copy menus should sort, r/sr=sspitzer, mscott
git-svn-id: svn://10.0.0.236/trunk@101543 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 20:41:33 +00:00
cotter%netscape.com
ec5fac7cdf ongoing security & privacy help content updates per b=85925, r=oeschger@netscape.com
git-svn-id: svn://10.0.0.236/trunk@101542 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 20:40:24 +00:00
hewitt%netscape.com
34ae532cda 63540 - make classic broken lock icon clearer
git-svn-id: svn://10.0.0.236/trunk@101541 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 20:40:08 +00:00
jat%princeton.edu
fd4eef96c5 Checking in for jesse. Replacing some eval() calls in chrome js with calls to parseInt() and new RegExp(). b=83314, r=mstoltz, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@101540 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 20:37:19 +00:00
andreas.otte%primus-online.de
a655de9c6e fix bug 84409 [Incorrect request for page components if main page URL contains ";" character] Implementing param support according to RFC 2396, r=dougt, sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@101539 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 20:35:01 +00:00
pavlov%netscape.com
f2d747d729 fix for bug 87739 r=dougt sr=darin
git-svn-id: svn://10.0.0.236/trunk@101538 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 20:17:22 +00:00
dp%netscape.com
ec2d360be6 Bug 94366 Reducing url object creations by not converting urls schemes
that done need conversion to absolute. r,sr=waterson


git-svn-id: svn://10.0.0.236/trunk@101537 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 20:09:20 +00:00
naving%netscape.com
725d0f7df9 89698 r=suresh sr=bienvenu; Check if the newName for folder to be renamed has hierarchyDelimiter, if
so throw an alert. Also did some clean up in nsImapStringBundle.


git-svn-id: svn://10.0.0.236/trunk@101536 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 20:04:00 +00:00
jj%netscape.com
c2561ef554 #93164: bump up mac version number to 0.9.3+ on the trunk
git-svn-id: svn://10.0.0.236/trunk@101535 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 19:49:54 +00:00
pavlov%netscape.com
1602a591a1 fixing indentation of {
git-svn-id: svn://10.0.0.236/trunk@101533 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 19:45:18 +00:00
dougt%netscape.com
f702a21dc6 fixes 95671, 96129. Caching control connections fixed, removing check against browser.enabled.cache, fixing double list response handling error. r= gordon, darin, sr= darin
git-svn-id: svn://10.0.0.236/trunk@101532 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 19:40:55 +00:00
timeless%mac.com
4b17af72b7 Bugzilla Bug 24515 Cant build XPCOM standalone
Bugzilla Bug 88747 nsCRT::atoi should be removed or fixed
Whoops, i contributed to xpcom standalone not working
patch by jband, r=dbaron, sr=brendan

This makes nsCRT::atoi in standalone assert and functionally NOP


git-svn-id: svn://10.0.0.236/trunk@101531 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 19:36:07 +00:00
bernd.mielke%snafu.de
f5274636fb handle captions and innertable frames identical if the containing block is to small,
bug 76726 r=karnaze sr=waterson


git-svn-id: svn://10.0.0.236/trunk@101530 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 19:31:53 +00:00
ftang%netscape.com
6b10e406d5 fix 91193. r=nhotta, sr=blizzard
add universialchardet.dll to the window installer packages


git-svn-id: svn://10.0.0.236/trunk@101529 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 19:16:35 +00:00
javi%netscape.com
de755f9415 Fix for Bug 92003, r=ddrinan, sr=mscott
If the client of SSL/TLS socket provider doesn't provide callbacks,
use the window watcher service to get an nsIPrompt or whatever
interface is requested.


git-svn-id: svn://10.0.0.236/trunk@101528 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 19:10:56 +00:00
dp%netscape.com
719083975b adapting to CreateInstancebyContractID() perf improvement
git-svn-id: svn://10.0.0.236/trunk@101527 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 19:07:26 +00:00
ftang%netscape.com
5257d4fa4b fix 92988. r=shanjian rs=ftang
add more fallback font face for Japanese


git-svn-id: svn://10.0.0.236/trunk@101526 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 19:01:40 +00:00
jaggernaut%netscape.com
1859a898c0 Bug 91884: postpone focus() calls from browser onload till after the window is shown. r=jrgm, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@101524 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 18:54:51 +00:00
harishd%netscape.com
41b05e57a0 96117 - Cache Observer service. r=dp, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@101523 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 18:46:46 +00:00
shanjian%netscape.com
c7216dd2df #95162 Auto-detect doesn't work on kinokuniya page
r=yokoyama sr=jst


git-svn-id: svn://10.0.0.236/trunk@101522 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 18:46:44 +00:00
rjesup%wgate.com
02427b265c bug 93830. patch by gisburn. r=dcone@netscape.com, r=timeless,
sr=waterson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@101521 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 18:43:55 +00:00
cavin%netscape.com
d51fea8551 Bug #68296: In SubscribeToFolder(), make sure we pass the right folder object to SubscribeFolder(). In PossibleImapMailbox(), set the correct delimiter for unsubscribed folders. r=bienvenu, sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@101520 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 18:39:46 +00:00
rjesup%wgate.com
ea72c243bc Bug 96132. ~nsTypedSelection misuses arrays. r=dbaron,
sr=jst@netscape.com sr=kin@netscape.com


git-svn-id: svn://10.0.0.236/trunk@101519 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 18:38:20 +00:00
cavin%netscape.com
b6a249a49e Bug #55774: In GetListOfFoldersWithPath(), make sure we pass the right folder object to DiscoverChildren(). r=bienvenu, sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@101518 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 18:38:02 +00:00
rjesup%wgate.com
a5c27c09f2 Bug 96137. Fix array accesses. r=pavlov@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@101517 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 18:34:40 +00:00
varada%netscape.com
bad97a6c43 fix for bug#79053-identity crisis mail compose;r=ducarroz;sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@101516 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 18:33:33 +00:00
rods%netscape.com
bd6fc5b878 Oops, left in a rule I used for testing.
It's removed.


git-svn-id: svn://10.0.0.236/trunk@101510 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 15:12:45 +00:00
dbaron%fas.harvard.edu
c9b9e16848 Fixing MOZ_TRACK_MODULE_DEPS bustage by adding pref to REQUIRES (for nsRuleNode.cpp).
git-svn-id: svn://10.0.0.236/trunk@101505 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 14:27:36 +00:00
morse%netscape.com
9aa7e24589 bug 84432, wallet menu items missing when inside certain frames, r=matt, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@101504 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 14:25:48 +00:00
kaie%netscape.com
8bee469992 addon for b=79153 rs=wtc@netscape.com
Fixes obvious portability error, moving thread starter function from C++ static method to C function.
No change in logic or functionality.
You can reach me at kai.engert@gmx.de


git-svn-id: svn://10.0.0.236/trunk@101503 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 14:22:11 +00:00
rods%netscape.com
48fbd4f113 Disabling Quirks sizing for form controls, it can be put back in via a pref
and uncommenting a line in quirk.css
Bug 91602 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@101502 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 14:01:55 +00:00
cmanske%netscape.com
845c66cf30 Fixed Doc title in Revert dialog message bug=96073, r=brade, sr=kin; Composer part of 'noshade' syntax bug 88761, r=kin, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@101501 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 13:45:01 +00:00
dbradley%netscape.com
7ddcdbae03 Bug 44989: the memory allocated via g_malloc() should be freed via g_free(). sr=blizzard, r=jst
git-svn-id: svn://10.0.0.236/trunk@101500 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 12:33:28 +00:00
dbradley%netscape.com
1582213550 Bug 83591: XPIDL does not store the file length in the header in XPT Files. sr=scc, r=jband
git-svn-id: svn://10.0.0.236/trunk@101499 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 12:29:34 +00:00
peterv%netscape.com
0893039a53 Adding null checks to fix crash. No bug. r=Pike, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@101498 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 09:14:51 +00:00
jst%netscape.com
f263b2fd0c Fixing bug 92272. Avoid malloc(0), patch mostly by mkaply@us.ibm.com. sr=me, r=nobody (trivial fix)
git-svn-id: svn://10.0.0.236/trunk@101497 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 09:02:22 +00:00
jst%netscape.com
474e77dd29 Fixing bug 95871. Making it possible to put null pointers in nsISupportArrays. r=pavlov@netscape.com, sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@101496 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 08:51:19 +00:00
rpotts%netscape.com
5478c3dde3 Fix warnings...
git-svn-id: svn://10.0.0.236/trunk@101495 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 08:13:04 +00:00
darin%netscape.com
a29a5f6d7f fixes bug 92563 "Bad comment in nsIInputStream?" r/sr=jst
git-svn-id: svn://10.0.0.236/trunk@101494 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 06:49:46 +00:00
stephend%netscape.com
c3a6298c89 Bug 40191. Bad 'connection refused' message. Patch by Jessico Blanco <jblanco@us.ibm.com> r=jglick@netscape.com/stephend@netscape.com sr=sspitzer@netscape.com
git-svn-id: svn://10.0.0.236/trunk@101493 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 06:43:46 +00:00
hyatt%netscape.com
d22f2c03ba Fix for 96179. r=sspitzer, sr=darin
git-svn-id: svn://10.0.0.236/trunk@101492 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 06:41:21 +00:00
rpotts%netscape.com
52ded30b9f bug #96029 (r=valeski, sr=mscott) Loading cnn.com caused the sav-as dialog to appear...
git-svn-id: svn://10.0.0.236/trunk@101491 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 06:26:59 +00:00
sspitzer%netscape.com
ededf45bdc backing out an accidental check in.
git-svn-id: svn://10.0.0.236/trunk@101490 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 06:26:51 +00:00
rpotts%netscape.com
78f013faba bug #92425 (r=adamlock, sr=jst). OnLoad() handler which executes a javascript URL causes an infinite loop...
git-svn-id: svn://10.0.0.236/trunk@101489 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 06:20:53 +00:00
sspitzer%netscape.com
acaa48c1b7 fix for #95457. the open / closed state of servers and folders in the folder pane
was not persisting across sessions.  I added a new attribute to outliner "statedatasource"
that you can set to use for state, otherwise, if you are "trusted" it will use the localstore.
if not trusted, it will use an in memory datasource, which will not persist across sessions.

r/sr=bienvenu for the mailnews part, r/sr=waterson for the content part.


git-svn-id: svn://10.0.0.236/trunk@101488 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 06:18:58 +00:00
blakeross%telocity.com
8025a894e1 More fallout from xul syntax changes. r=ben sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@101487 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 06:16:33 +00:00
hyatt%netscape.com
015c7b4e92 Fix for 95422. r/sr=the usuals (brendan et al)
git-svn-id: svn://10.0.0.236/trunk@101486 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 06:14:38 +00:00
blakeross%telocity.com
24f3afdd62 Removing files used for performance testing that shouldn't be part of default build. r=hewitt sr=ben
git-svn-id: svn://10.0.0.236/trunk@101485 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 06:14:21 +00:00
sspitzer%netscape.com
d16c4dec7a more mac bustage fixage. sr=waterson
git-svn-id: svn://10.0.0.236/trunk@101484 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 05:56:48 +00:00
waterson%netscape.com
d15b77ae3e Fix Mac build bustage.
git-svn-id: svn://10.0.0.236/trunk@101481 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 04:26:03 +00:00
sspitzer%netscape.com
f05d062183 fix for #96164.
don't make a connection to the news server when updating unread counts
if there are no groups.  r/sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@101480 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 04:17:27 +00:00
waterson%netscape.com
a7ccc20459 Attempt to fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@101479 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 03:30:03 +00:00
hewitt%netscape.com
20a39cba9b 93936 - die, 'work offline' text, die!, r=blake, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@101477 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 03:11:54 +00:00
hewitt%netscape.com
bb13ef3aef 95190 - buttons too tall, r=blake, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@101476 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 02:59:14 +00:00
dbaron%fas.harvard.edu
fdd5d25c83 fixing Mac bustage. b=45797
git-svn-id: svn://10.0.0.236/trunk@101475 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 02:58:44 +00:00
hewitt%netscape.com
11930ff64b 91430 - precache back and forward images, r=blake, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@101474 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 02:58:25 +00:00
brendan%mozilla.org
5f91bd99d8 Checking in shaver's patch for bug 78100, adding JS_GetExternalStringGCType (sr=brendan&jband).
git-svn-id: svn://10.0.0.236/trunk@101473 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 02:53:19 +00:00
kaie%netscape.com
2859af72c0 Fixes #88303
r=wtc@netscape.com rs=darin@netscape.com
You can reach me at kai.engert@gmx.de


git-svn-id: svn://10.0.0.236/trunk@101472 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 02:45:43 +00:00
dmose%netscape.com
894c700200 LDAP addressbook code cleanup changes from John Marmion <john.marmion@ireland.sun.com> for bug 17879 review. r=dmose@netscape.com; sr=mscott@netscape.com
git-svn-id: svn://10.0.0.236/trunk@101470 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 02:35:19 +00:00
saari%netscape.com
c3957a5361 I messed up my checkin for bug93521, I screwed up nesting when applying a patch that needed merging. Bah.
git-svn-id: svn://10.0.0.236/trunk@101469 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 02:27:34 +00:00
Xiaobin.Lu%eng.Sun.com
85ca40dcdb Fix for 77194 (liveconnect does not work for non-applet case)
r=edburns & beard sr=brendan


git-svn-id: svn://10.0.0.236/trunk@101468 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 02:23:24 +00:00
Xiaobin.Lu%eng.Sun.com
a6ddde9413 Fix for 77194 (liveconnect does not work for non-applet case)
r=edburns&beard sr=brendan


git-svn-id: svn://10.0.0.236/trunk@101467 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 02:11:10 +00:00
Xiaobin.Lu%eng.Sun.com
bdf0db8824 Fix for 77194 (liveconnect does not work for non-applet case)
r=edburns & beard sr=brendan


git-svn-id: svn://10.0.0.236/trunk@101466 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 02:04:12 +00:00
jband%netscape.com
71d7122618 bug 65727. Make it an error to not have XP_WIN defined if you are compiling on Win32. Too many people with their own build projects stumble into this hole. r=valeski sr=scc (turns out this was reviewed months ago and I neglected to check it in. My bad)
git-svn-id: svn://10.0.0.236/trunk@101465 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:59:55 +00:00
nicolson%netscape.com
3a78c98174 remove superfluous trace message.
git-svn-id: svn://10.0.0.236/trunk@101464 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:59:22 +00:00
Xiaobin.Lu%eng.Sun.com
b5a12dfb12 Fix for 77194 (liveconnect does not work for non applet case)
r=edburns & beard sr= brendan


git-svn-id: svn://10.0.0.236/trunk@101463 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:57:48 +00:00
dbaron%fas.harvard.edu
3485888237 Replace uses of deprecated NS_IMPL_ISUPPORTS and NS_IMPL_QUERYINTERFACE macros with NS_IMPL_{ISUPPORTS,QUERYINTERFACE}{1,0}. r=jag rs=brendan b=45797
git-svn-id: svn://10.0.0.236/trunk@101462 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:48:11 +00:00
waterson%netscape.com
a54036173e Bug 93100. Change NS_DECL_NSGETMODULE to be table driven so we can get at module ctor & dtor callbacks. Update meta-module and static-module stuff for this change, fix meta-module to not register stuff twice. r=cls,leaf
git-svn-id: svn://10.0.0.236/trunk@101461 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:47:31 +00:00
jst%netscape.com
9485c0e78a Fixing bug 95904. Comment changes only, patch mostly by drepper@cygnus.com.
git-svn-id: svn://10.0.0.236/trunk@101460 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:43:29 +00:00
waterson%netscape.com
e75b4e9d1a Bug 93100. Missed one file.
git-svn-id: svn://10.0.0.236/trunk@101458 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:25:10 +00:00
gerv%gerv.net
bf4b2f5e3e Bug 30208 - fix to avoid breaking gcc 2.7.2.3. Thanks to dbaron. r=dbaron, sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@101455 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:15:55 +00:00
rangansen%netscape.com
31382162ac Activating choice of smart card when new cert is requested
bug# 89972, r=javi, sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@101454 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:12:38 +00:00
rangansen%netscape.com
d633dc86c5 Activating view button in download cert
bug# 81257, r=javi, sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@101453 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:11:29 +00:00
rangansen%netscape.com
4ee328f248 Making delete crl work
bug# 95328, r=kaie, sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@101452 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:08:48 +00:00
rangansen%netscape.com
0e9e8ab353 Localizing access keys
bug# 95578, r=rangansen sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@101451 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:07:35 +00:00
rangansen%netscape.com
703cd83058 Making sure password strength is between 0 and 100
bug# 94179. r=ddrinan, sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@101450 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 00:59:20 +00:00
rangansen%netscape.com
b472d57a07 Makes the label appear on enable/disable fips button
Bug# 95683; r=ddrinan; sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@101449 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 00:57:20 +00:00
waterson%netscape.com
4e63322b10 Bug 93100. Change NS_DECL_NSGETMODULE to be table driven so we can get at module ctor & dtor callbacks. Update meta-module and static-module stuff for this change, fix meta-module to not register stuff twice. r=cls,leaf
git-svn-id: svn://10.0.0.236/trunk@101447 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 00:55:20 +00:00
locka%iol.ie
ecfed0d85b Fix for anchors that try and load content into a docshell that has already been destroyed. b=94229 r=ccarlen@netscape.com sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@101446 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 00:50:26 +00:00
aaronl%netscape.com
887b433600 Bug 96065. Active Accessibility text nodes should not be focusable. r=jgaunt, sr=brendan\
git-svn-id: svn://10.0.0.236/trunk@101445 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 00:47:07 +00:00
gerv%gerv.net
ad1e86251d Bug 96063 - the old method of doing this barfed on long URL strings.
git-svn-id: svn://10.0.0.236/trunk@101444 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 00:36:54 +00:00
mcafee%netscape.com
10c30f5782 moving cvsroot out to tinder-defaults.pl, getting rid of netscape default. Fixed a my variable so I can comment out the run_shell_command line for testing.
git-svn-id: svn://10.0.0.236/trunk@101443 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 22:45:25 +00:00
mcafee%netscape.com
c926aee195 minor stuff, comments, using right cvs command
git-svn-id: svn://10.0.0.236/trunk@101442 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 22:43:36 +00:00
sspitzer%netscape.com
903f3a55dc build changes for hyatt.
git-svn-id: svn://10.0.0.236/trunk@101441 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 21:58:04 +00:00
sspitzer%netscape.com
3d8afd2681 build changes for hyatt.
git-svn-id: svn://10.0.0.236/trunk@101439 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 21:52:15 +00:00
hyatt%netscape.com
b06293d4c4 Fix for 96042. r=dbaron, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@101437 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 21:42:14 +00:00
sonmi%netscape.com
8e4502355e took hardcoded reference to clio out
git-svn-id: svn://10.0.0.236/trunk@101436 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 21:25:56 +00:00
sonmi%netscape.com
0a71722bf1 changed handeling of $RSH - if already set keep value
RSH is needed to be set to the current installation of WinNT,
problems on multiboot machines if c:/winnt/system32/rsh is being used
when running the Win2K from d:
also problems with MKS and cygnus rsh


git-svn-id: svn://10.0.0.236/trunk@101435 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 20:50:17 +00:00
sonmi%netscape.com
2f0fef135d added OSF 5.1
git-svn-id: svn://10.0.0.236/trunk@101434 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 20:47:52 +00:00
myk%mozilla.org
063c2aa355 Fix for bug 96085: don't allow unauthorized users to access restricted bugs that do not have a QA contact.
Patch by Myk Melez <myk@mozilla.org>
r=Jake <jake@acutex.net>


git-svn-id: svn://10.0.0.236/trunk@101433 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 20:36:10 +00:00
dianesun%netscape.com
682ec4ea31 Fix for bug 87177. R=buhvan, SR=sspitzer
git-svn-id: svn://10.0.0.236/trunk@101432 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 19:09:39 +00:00
wtc%netscape.com
fdb50e4111 Bugzilla bug 95797: fixed a typo. Thanks to Joerg Brunsmann
<joerg_brunsmann@yahoo.de> for the bug report and patch.


git-svn-id: svn://10.0.0.236/trunk@101431 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 19:05:34 +00:00
kestes%walrus.com
3a338c583b current as of mon aug 20
git-svn-id: svn://10.0.0.236/trunk@101430 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 18:59:56 +00:00
kestes%walrus.com
fc856d74e9 catch io errors from storable and give better discriptions.
git-svn-id: svn://10.0.0.236/trunk@101429 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 18:57:12 +00:00
jst%netscape.com
c396d662a0 Followup to Attribute --> Attr renaming...
git-svn-id: svn://10.0.0.236/trunk@101428 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 09:03:25 +00:00
mkaply%us.ibm.com
ea433b853c No bug - NOT PART OF BUILD
Initial checkin of xpinstall wizard for OS/2


git-svn-id: svn://10.0.0.236/trunk@101427 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 04:00:19 +00:00
blakeross%telocity.com
5b74314f22 another missed case of renamed command method. rs=hyatt
git-svn-id: svn://10.0.0.236/trunk@101426 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 02:43:34 +00:00
hyatt%netscape.com
03ac984644 Fix for 96017. r-bryner, sr-blake
git-svn-id: svn://10.0.0.236/trunk@101425 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 00:36:52 +00:00
myk%mozilla.org
9d8541adf1 Fix for bug 95890: Correctly convert/record keyword changes in the bugs_activity table for keywords containing a plus sign or other
regular expression meta-characters.  Myk's first ever Bugzilla checkin!
Patch by Dave Miller <justdave@syndicomm.com> and Myk Melez <myk@mozilla.org>.
r=myk@mozilla.org,justdave@syndicomm.com


git-svn-id: svn://10.0.0.236/trunk@101424 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-19 18:26:21 +00:00
gerv%gerv.net
8a61e44563 Do not add "-- " if already present in .sig file. Attempt 2. Bug 30208. r=bratell, sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@101422 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-19 15:59:26 +00:00
varga%utcru.sk
3778ea3b2c Fix for 94652.
allow for no multiple select in outliner.
r=bryner, sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@101421 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-19 08:24:42 +00:00
blakeross%telocity.com
a3483b3aa9 add null check to prevent 6.1 topcrash (84832). r=saari sr=ben
git-svn-id: svn://10.0.0.236/trunk@101420 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-19 04:48:34 +00:00
wtc%netscape.com
540c9d67e4 Merged brendan's fix from NSPRPUB_CLIENT_BRANCH (now obsolete).
git-svn-id: svn://10.0.0.236/trunk@101419 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-19 01:22:59 +00:00
bryner%netscape.com
205255fdcd Bug 92879 - textbox select() causes window to steal focus. r=dbaron, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@101418 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 23:55:01 +00:00
hwaara%chello.se
75ce2b24db #67369, "Bcc: field doesn't change when switching From:"
Patch by kazhik@mozilla.gr.jp

r=varada, sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@101417 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 22:15:58 +00:00
wtc%netscape.com
16fc64dde5 fix unitialized key_type variable. Add asserts to it doesn't happen again.
git-svn-id: svn://10.0.0.236/trunk@101416 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 19:15:46 +00:00
dbaron%fas.harvard.edu
af4cfa0c47 Remove obsolete references to nsImageManager to fix build bustage after imglib1 removal.
git-svn-id: svn://10.0.0.236/trunk@101415 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 16:51:20 +00:00
dbaron%fas.harvard.edu
fec1844dd7 Remove obsolete references to nsImageManager to fix build bustage after imglib1 removal.
git-svn-id: svn://10.0.0.236/trunk@101414 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 16:43:50 +00:00
ccarlen%netscape.com
54c6894257 Bug 78498 - Carbonize PPEmbed. r=pinkerton/sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@101413 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 15:10:38 +00:00
markh%activestate.com
d1f00a5439 Fix a bug in interface flattening when an attribute was set before one
on the same interface was fetched.  Added test for this case too.

Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@101412 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 14:27:46 +00:00
dbaron%fas.harvard.edu
f45cbae471 Add CallGetInterface. b=92602 r=jag sr=scc
git-svn-id: svn://10.0.0.236/trunk@101411 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 14:15:07 +00:00
hwaara%chello.se
64a4ea989b #3745, "Must handle Followup-to: poster in news", part II; add an alert warning the user when followup-to: poster is being used, as per the GNKSA.
r=ducarroz, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@101410 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 12:19:49 +00:00
locka%iol.ie
b99fbdffe8 Added res/arrow.gif and res/arrowd.gif to embedding manifests to fix drawing problem with form combo boxes. b=95310 r=jeff@tcbnetworks.com sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@101409 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 10:18:09 +00:00
locka%iol.ie
00261ca7b8 Changed memory allocation and stack usage to be less brutal as the DOM is being walked. b=92534 r=rjesup@wgate.com sr=blizzard@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@101408 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 09:59:28 +00:00
bryner%netscape.com
bf9fa1fa2f Bug 66617 - if tabbing scrolls page, focus outline doesn't leave first link (second try). r=saari, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@101405 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 07:25:52 +00:00
sfraser%netscape.com
c3f049538f Fix the output file of the headers target, which is a dummy file used for dependency tracking. It was the same as that in AutoCompleteIDL.mcp, which caused these IDL-generated headers to not be created.
git-svn-id: svn://10.0.0.236/trunk@101400 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 04:27:05 +00:00
cls%seawood.org
8b17e5e0ca Making sure that we export & build LDAP before mailnews like we do on every other platform. This might fix the current bustage possibly related to bug #89198
git-svn-id: svn://10.0.0.236/trunk@101399 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 04:15:19 +00:00
jake%acutex.net
4d649ab63c Refixing bug 95875 - The code that breakes the typed in CC list into individual lists is now slightly more robust and allows perl to handle the splitting more efficiently (by using a space as the delimiter).
r= myk@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@101398 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 03:35:36 +00:00
dbaron%fas.harvard.edu
29b48554fd Fix accumulated P3P build bustage. b=75924 (and 62399) moa=harishd sr=tor
git-svn-id: svn://10.0.0.236/trunk@101397 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 03:05:48 +00:00
blakeross%telocity.com
f7df03c0cb First cut of drag and drop bookmark filing (53707: dragging a link onto bookmarks button should open menu; dragging over subfolders should open them). r=hewitt sr=ben
git-svn-id: svn://10.0.0.236/trunk@101396 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 02:44:35 +00:00
jaggernaut%netscape.com
df49ed7ff7 Fix mac bustage (I hope)
git-svn-id: svn://10.0.0.236/trunk@101394 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 02:12:35 +00:00
hyatt%netscape.com
a9b4d33720 Fix leaks. r=jag, sr=blake
git-svn-id: svn://10.0.0.236/trunk@101392 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 02:03:37 +00:00
ccarlen%netscape.com
7cfbc7bde4 Bug 78498 - Carbonize PPEmbed - adding new files. r=pinkerton/sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@101391 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 01:57:33 +00:00
justdave%syndicomm.com
1136151446 Fix for bug 95857: process_bugs.cgi sees blank address in cc: line (would show up as __UNKNOWN__)
Patch by Myk Melez <myk@mozilla.org>
r= justdave@syndicomm.com


git-svn-id: svn://10.0.0.236/trunk@101390 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 01:49:02 +00:00
dbaron%fas.harvard.edu
2049bb32c3 Add REQUIRES lines. b=75924 r=cls
git-svn-id: svn://10.0.0.236/trunk@101389 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 01:17:02 +00:00
syd%netscape.com
255b5688c7 Fix for 65672. Add CRC checking and single connection ftp to install.
r=dveditz, sr=mscott


git-svn-id: svn://10.0.0.236/trunk@101388 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 01:15:59 +00:00
dbaron%fas.harvard.edu
4e410a3ede Clean up makefile listings for extensions. b=75924 r=cls
git-svn-id: svn://10.0.0.236/trunk@101387 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 01:14:23 +00:00
dbaron%fas.harvard.edu
c4495112a3 At least list all the files we do have. b=75924 r=cls
git-svn-id: svn://10.0.0.236/trunk@101386 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 01:12:29 +00:00
dbaron%fas.harvard.edu
e8cd401a1c Add REQUIRES lines. b=75924 r=cls
git-svn-id: svn://10.0.0.236/trunk@101385 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 01:09:46 +00:00
dbaron%fas.harvard.edu
e05c7dff20 Add autoconf |Makefile.in|s. r=cls b=75924
git-svn-id: svn://10.0.0.236/trunk@101384 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 01:08:54 +00:00
dbaron%fas.harvard.edu
1f2556263d Fix makefile to work with objdir builds. b=75924 r=cls
git-svn-id: svn://10.0.0.236/trunk@101383 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 01:07:08 +00:00
hyatt%netscape.com
83bb56dc40 Fix for 94943. r=jag, sr=blake
git-svn-id: svn://10.0.0.236/trunk@101382 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 01:04:47 +00:00
thesteve%netscape.com
0319de1366 Bug #81373: landing the mac static build: making MailNews a meta-component.
This new file is Mac ONLY. Furthermore, it is specific to the mac static build, and CAN NOT break the existing mac builds.


git-svn-id: svn://10.0.0.236/trunk@101379 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 00:55:03 +00:00
thesteve%netscape.com
bacecdfe25 Bug #81373: landing the mac static build: making security a meta-component.
This new file is Mac ONLY. Furthermore, it is specific to the mac static build, and CAN NOT break the existing mac builds.


git-svn-id: svn://10.0.0.236/trunk@101378 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 00:54:03 +00:00
dmose%netscape.com
e2fb9a8f10 Update REQUIRES line to fix MOZ_TRACK_MODULE_DEPS bustage; the dependency on 'widget' might conceivably be avoidable, however.
git-svn-id: svn://10.0.0.236/trunk@101377 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 00:39:53 +00:00
av%netscape.com
e971f4e9e1 Fixing 73436 -- hiding platform specific calls in xp files, not part of the build, r=peterl
git-svn-id: svn://10.0.0.236/trunk@101376 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 00:13:37 +00:00
av%netscape.com
c3a92267af Fixing project file for the spy plugin reflecting new folder structure, not part of the build, r=av
git-svn-id: svn://10.0.0.236/trunk@101375 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 00:11:16 +00:00
cmanske%netscape.com
cd82b1c709 Add 'List Item' property menuitem by neil@parkwaycc.co.uk, b=95085, r=cmanske, sr=kin
git-svn-id: svn://10.0.0.236/trunk@101374 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 00:10:37 +00:00
dmose%netscape.com
bb7a2da9d4 Build ordering issues busted the clobber builds; forward declaring an interface and moving a #include around to fix.
git-svn-id: svn://10.0.0.236/trunk@101373 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 00:04:54 +00:00
rangansen%netscape.com
facf701071 Rolling back last change
git-svn-id: svn://10.0.0.236/trunk@101372 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 00:02:16 +00:00
rangansen%netscape.com
46e3a96ae3 Rolling back last change
git-svn-id: svn://10.0.0.236/trunk@101371 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 23:55:46 +00:00
dsirnapalli%netscape.com
6114c5757a Made some changes to put the test case on ngdriver.
git-svn-id: svn://10.0.0.236/trunk@101369 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 23:41:14 +00:00
rangansen%netscape.com
a9835bd5ed Changing xul window id to remove effect of persistence
bug# 95441, r=javi sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@101368 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 23:35:44 +00:00
rangansen%netscape.com
4fb0f4ca49 Changing dialog title
bug# 94026, r=rangansen. sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@101367 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 23:34:36 +00:00
heikki%netscape.com
57ec326731 Bug 15089, make XML parser error messages localizable. r=harishd,ftang, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@101364 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 23:27:20 +00:00
ian%hixie.ch
2fa1204013 Make the canvas background use the root element's frame's origin instead of the canvas frame's origin. Bug 46446; r=dcone, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@101363 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 23:26:29 +00:00
av%netscape.com
41c8b588ee Fixing 73430 -- removing MFC dependency from Windows project, not part of the build patch by timeless, r=av
git-svn-id: svn://10.0.0.236/trunk@101362 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 23:11:02 +00:00
akkana%netscape.com
877c882bea 92331: revert plaintext quote pref back to using pre. r=mcafee sr=blizzard
git-svn-id: svn://10.0.0.236/trunk@101361 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 23:00:41 +00:00
peterlubczynski%netscape.com
fdc7d9f811 Fix for crash on Mac when we don't have an mWidget, bug 83155 Browser crashes when trying to load html parameter test on mac, r=bnesse sr=waterson
git-svn-id: svn://10.0.0.236/trunk@101360 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:52:12 +00:00
sicking%bigfoot.com
5c701fdeff Fix default-priorities for patterns and priorities for templates.
b=84677 r=Pike sr=shaver


git-svn-id: svn://10.0.0.236/trunk@101359 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:42:16 +00:00
cmanske%netscape.com
19ddbf2e73 Fixed Advanced Editor dialog bugs (fixed warnings, user input filter rules, dynamic value menulist for particular attributes): bugs 86710, 86712, 86713, 86934, 88878, 88888, 88917, 88923, 88930, 88935, 89445, 92554 (includes help from stephend), r=brade (86713=rcassin, 92554=glazman), sr=kin; fix to 95085 by neil@parkwayscc.co.uk, r=cmanske, sr=kin
git-svn-id: svn://10.0.0.236/trunk@101358 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:41:52 +00:00
naving%netscape.com
58e1261023 95720 r/sr=bienvenu. Make minor change to pop3 NSPR_LOG
git-svn-id: svn://10.0.0.236/trunk@101357 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:38:26 +00:00
av%netscape.com
54b5c1e0ad Bug 73874 -- sample plugin (4.x scriptability), not part of the build, r=peterl
git-svn-id: svn://10.0.0.236/trunk@101356 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:36:46 +00:00
brade%netscape.com
61b6143771 not in the build
git-svn-id: svn://10.0.0.236/trunk@101355 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:34:11 +00:00
dmose%netscape.com
78ac63fcea Fix RFC 822 quoting for LDAP autocompleted display names (bug 89198). Fix works by creating a new "formatter" interface and implementing an addressbook-specific version of it which uses the mailnews quoting code to fix it up. Also provides infrastructure for setting the LDAP autocomplete dropdown comment field, and fixes some error-handling issues in the compose window code for setting up LDAP autocompletion. r=leif@netscape.com (backend changes), srilatha@netscape.com (compose window changes); sr=bienvenu@netscape.com'
git-svn-id: svn://10.0.0.236/trunk@101354 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:32:35 +00:00
dmose%netscape.com
956ad82821 Fix RFC 822 quoting for LDAP autocompleted display names (bug 89198). Fix works by creating a new "formatter" interface and implementing an addressbook-specific version of it which uses the mailnews quoting code to fix it up. Also provides infrastructure for setting the LDAP autocomplete dropdown comment field, and fixes some error-handling issues in the compose window code for setting up LDAP autocompletion. r=leif@netscape.com (backend changes), srilatha@netscape.com (compose window changes); sr=bienvenu@netscape.com
git-svn-id: svn://10.0.0.236/trunk@101353 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:32:28 +00:00
harishd%netscape.com
9a07a3e168 94903 - Don't forgot to resume parsing if loading external js fails.
r=heikki,sr=jst


git-svn-id: svn://10.0.0.236/trunk@101351 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:24:39 +00:00
av%netscape.com
ec4a2b1c71 Bug 73874 -- sample plugin (4.x scriptability), not part of the build, r=peterl
git-svn-id: svn://10.0.0.236/trunk@101350 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:23:41 +00:00
heikki%netscape.com
1dcce3a581 Bug 85554, xml-stylesheet PI should work only in prolog. r=peterv, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@101349 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:19:37 +00:00
loadrunner%betak.net
61e9fc5f07 bug 76444, JavaScript error when Adding Language in Preferences, r=jag, sr=blizzard
git-svn-id: svn://10.0.0.236/trunk@101348 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:17:56 +00:00
dcone%netscape.com
9647b47a8d b=91290 fix for printing regression tests r=karnaze sr=waterson
git-svn-id: svn://10.0.0.236/trunk@101347 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:16:17 +00:00
dcone%netscape.com
70733590f6 b=91290 fix for printing regression test. r=karnaze sr=waterson
git-svn-id: svn://10.0.0.236/trunk@101346 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:14:22 +00:00
sicking%bigfoot.com
06d6d324d4 Fix crash by makeing sure that no Expr objects are deleted until the entire transform is done.
b=91332 r=Pike sr=shaver


git-svn-id: svn://10.0.0.236/trunk@101345 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:12:07 +00:00
wtc%netscape.com
2bc7a42751 Added to support Tru64 Unix V5.1.
git-svn-id: svn://10.0.0.236/trunk@101344 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 22:03:33 +00:00
wtc%netscape.com
ab3cc687dd Bugzilla bug 82259: added the XP_OS2 case.
git-svn-id: svn://10.0.0.236/trunk@101341 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 20:58:05 +00:00
jake%acutex.net
e7597bc03e Fix for bug 95747 - CC List validation (for additions) wasn't happening until after the bug's changes were in the process of being commited. This caused problems if a typo was made in the e-mail address.
r= myk@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@101338 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 20:18:33 +00:00
waldemar%netscape.com
0f612cd98b Renamed a few semantic types. Added 'named' parameter attribute.
git-svn-id: svn://10.0.0.236/trunk@101337 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 20:04:04 +00:00
waldemar%netscape.com
0fff7a6ee9 Tags with fields are now depicted with the 'tuple' keyword instead of 'tag'
git-svn-id: svn://10.0.0.236/trunk@101336 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 20:03:11 +00:00
blizzard%redhat.com
ac9d1a4c2e Back out brendan's checkin to try and get linux starting up again.
git-svn-id: svn://10.0.0.236/trunk@101334 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 19:45:11 +00:00
waterson%netscape.com
2d8777b061 Oops. Cut too deep.
git-svn-id: svn://10.0.0.236/trunk@101333 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 19:40:45 +00:00
sonmi%netscape.com
2ba4ec7a94 removed AIX 32 bit and HP 32 bit
git-svn-id: svn://10.0.0.236/trunk@101330 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 18:34:05 +00:00
waterson%netscape.com
cbaa99ac97 Bug 95780. Rename locale.dll back to nslocale.dll so installer doesn't freak out.
git-svn-id: svn://10.0.0.236/trunk@101329 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 18:00:14 +00:00
javi%netscape.com
85681d6c82 Add NSS.prefix to the optimized target of NSSckbi.shlb
git-svn-id: svn://10.0.0.236/trunk@101328 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 17:29:57 +00:00
thayes%netscape.com
ac5431535c Bug 95531 - correct ref count on certificate in CMS (SMIME) recipient
handling.


git-svn-id: svn://10.0.0.236/trunk@101324 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 16:48:50 +00:00
vishy%netscape.com
4a46dcf20b bugscape 7843, there was a typo in bookmarks.xul, changed label to accesskey so that keyboard access works properly, sorry for no review but this is trivial
git-svn-id: svn://10.0.0.236/trunk@101320 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 14:46:52 +00:00
kaie%netscape.com
b5a29b81c7 #95334, adding mime types for download certificate revocation lists
r=ssaux@netscape.com sr=blizzard@mozilla.org
You can reach me at kai.engert@gmx.de


git-svn-id: svn://10.0.0.236/trunk@101319 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 14:44:35 +00:00
kaie%netscape.com
f92c6df558 #92131, SSL client authentication,
fixing memory leak, fixing crash, fixing spacing, adding extra space to layout
r=javi@netscape.com sr=blizzard@mozilla.org
You can reach me at kai.engert@gmx.de


git-svn-id: svn://10.0.0.236/trunk@101318 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 14:41:01 +00:00
despotdaemon%netscape.com
4cc466f6f1 Pseudo-automatic update of changes made by cls@seawood.org.
git-svn-id: svn://10.0.0.236/trunk@101317 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 14:33:14 +00:00
peterlubczynski%netscape.com
ffbd960a99 Fixing Carbon bustage (where is the carbon tinderbox?)
git-svn-id: svn://10.0.0.236/trunk@101313 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 14:30:45 +00:00
nboyd%atg.com
d78515b0e1 Subject:
Rhino: Problem in NativeJavaMethod
   Date:
        Tue, 14 Aug 2001 10:23:35 +0200
   From:
        felix.meschberger@day.com
     To:
        Norris Boyd <nboyd@atg.com>




Hi Norris,

While working with wrapped Java classes we discovered a problem in
NativeJavaMethod : If the public method to be called is part of a
non-public class, the Sun Java VM throws an IllegalAccessException. This
bug in the Sun VM has been reported as Bug 4071593 to Sun, but has not been
resolved since....

I implemented a circumvention, for which I provide you the patch. I quickly
tested it, and it seems to work.

Regards
Felix


git-svn-id: svn://10.0.0.236/trunk@101312 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 14:29:48 +00:00
dcone%netscape.com
a288b8f058 b=94546 r=peterl sr=attinasi. Fixed the printdialog so it is Modal for windows.
git-svn-id: svn://10.0.0.236/trunk@101308 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 14:11:05 +00:00
cmanske%netscape.com
19dab37d4e Remove reference to unused variables, b=86705, r=mjudge, sr=kin
git-svn-id: svn://10.0.0.236/trunk@101307 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 14:07:33 +00:00
cmanske%netscape.com
a7f2ac4447 Use href URL as link text in Link properties dialog, b=90230, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@101305 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 13:54:41 +00:00
wtc%netscape.com
1f779f80d2 Bugzilla bug 95744: handle the case that ENOTEMPTY and EEXIST have the
same value.  (They do on AIX 4.3.)


git-svn-id: svn://10.0.0.236/trunk@101302 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 13:31:15 +00:00
jake%acutex.net
c097cb3b32 Fix for bug 95731: "INSERT INTO shadowlog" failed because "Table 'shadowlog' not locked", fixed typo in lock tables command.
Patch by Myk Melez <myk@mozilla.org>
r= jake@acutex.net


git-svn-id: svn://10.0.0.236/trunk@101301 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 12:42:34 +00:00
leaf%mozilla.org
46984d96e6 Automated update
git-svn-id: svn://10.0.0.236/trunk@101300 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 12:13:57 +00:00
cls%seawood.org
4df6348887 Do not set initial variables to 0 unless you explicitly test using ifeq (1,$(var)) in the makefiles. gmake will treat variables set to 0 as defined.
git-svn-id: svn://10.0.0.236/trunk@101299 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 12:11:48 +00:00
cls%seawood.org
99b12b961f Use mozLock instead of flock() when building lists.
git-svn-id: svn://10.0.0.236/trunk@101298 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 12:06:03 +00:00
cls%seawood.org
a3454095af Pull using the NSPRPUB_PRE_4_2_CLIENT_BRANCH instead of the static tag.
r=leaf


git-svn-id: svn://10.0.0.236/trunk@101297 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 11:17:02 +00:00
justdave%syndicomm.com
b2c6ce4e69 Fix for bug 95743: the role-accessible checkboxes were getting cleared if a user with group access had to log in to make changes to a public bug.
Patch by Myk Melez <myk@mozilla.org>
r= justdave@syndicomm.com


git-svn-id: svn://10.0.0.236/trunk@101296 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 11:15:04 +00:00
brendan%mozilla.org
f6e26a3367 Don't resolve standard classes if JSRESOLVE_ASSIGNING (NOT PART OF BUILD).
git-svn-id: svn://10.0.0.236/trunk@101295 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 10:40:15 +00:00
brendan%mozilla.org
9bf59a0feb Checking in khanson's patch with whitespace cleanups for bug 89443, to avoid stack overflow on too many || operators in one expression (r=rogerl, sr=me).
git-svn-id: svn://10.0.0.236/trunk@101294 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 10:29:59 +00:00
brendan%mozilla.org
89a27dff8f Shrinking realloc can fail (95517, basic patch from epstein@tellme.com, r=brendan, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@101292 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 09:56:48 +00:00
bryner%netscape.com
6c440dcc36 Fixing SVG bustage.
git-svn-id: svn://10.0.0.236/trunk@101291 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 09:56:46 +00:00
bryner%netscape.com
7b3ce3a03b Fixing mathml bustage.
git-svn-id: svn://10.0.0.236/trunk@101290 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 09:54:04 +00:00
brendan%mozilla.org
cad980f881 - Better failure codes from nsXULPrototypeScript::Deserialize.
- Call nsXULDocument::AbortFastLoads after nsXULPrototypeScript::Serialize
  failure, instead of just nulling the FastLoad service's output stream.

- Expose nsXULDocument::AbortFastLoads via nsIXULPrototypeCache, for use from
  nsChromeProtocolHandler.cpp.  AbortFastLoads flushes the XUL cache now, for
  good measure.

- The needless "Current" adjective in nsIFastLoadService attribute and method
  names is no more.

- Add a do_GetFastLoadService() helper, to use CID instead of contractid, and
  to let the compiler consolidate the static inline CID.

- Add "nglayout.debug.checksum_xul_fastload_file" pref so people can do without
  the checksum verification step when reading a FastLoad file.

- Verify the FastLoad file checksum, by default.  Also, cache it in the FastLoad
  service so we don't recompute it when re-opening the FastLoad file as mailnews
  and other top-levels start up.  Fill the checksum cache in EndFastLoad, when
  the last pseudo-concurrent top-level finishes loading.

  My hope to compute the checksum while writing the FastLoad file ran afoul of
  misordered writes.  The old code to checksum the in-memory nsFastLoadHeader
  also was broken on little endian platforms.  Now all checksumming is done via
  a separate read pass over the complete file, save for the header's checksum
  field, which is summed as if it contained zero.

- Track and check FastLoad file dependencies.  This required groveling with a
  bunch of Necko interfaces in nsChromeProtocolHandler::NewChannel -- read it
  and weep.  Dependency checking, as well as checksum access and computation,
  use better-factored nsIFastLoad{File,Read,Write}Control interfaces.

- nsBufferedStream::Seek wasn't flushing the buffer when seeking backward
  within the buffer, but it must, because mCursor bounds the amount to write
  if the buffer contains the end of file.

- Add an unbufferedStream readonly attribute to nsIStreamBufferAccess, so we
  don't have to screw around with the bufferying layer when checksumming. Also
  implement nsIStreamBufferAccess in nsBufferedOutputStream.

- nsISeekableOutputStream was bogus, based on a bad state I had put the
  nsBufferedOutputStream code in on its way from being completely broken when
  you seek backwards outside of the buffer.  Removing this interface required
  using nsIFastLoadFileIO in nsFastLoadFileWriter, and it also required careful
  ordering of Close calls (the Writer or Updater must close after the Reader,
  so that the Reader's underlying, unbuffered input stream can be read by
  nsFastLoadFileWriter::Close to compute the checksum.

- Miscellaneous tab/indentation, comment typo, bracing, if( => if ( style,
  nsnull vs. 0, useless variable elimination, tortured control flow,
  AutoString instead of String, and gratuitous ; after nsISupportsUtils.h
  macro call cleanups.


git-svn-id: svn://10.0.0.236/trunk@101289 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 09:52:55 +00:00
bryner%netscape.com
89ad8fb4c6 Fixing mac bustage, I hope.
git-svn-id: svn://10.0.0.236/trunk@101288 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 09:44:54 +00:00
waterson%netscape.com
375fff5fe0 Stab at fixing OS/2 bustage.
git-svn-id: svn://10.0.0.236/trunk@101287 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 09:40:23 +00:00
bryner%netscape.com
fc0aad073f Fixing win32 bustage.
git-svn-id: svn://10.0.0.236/trunk@101286 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 09:09:27 +00:00
justdave%syndicomm.com
715a4d1008 Fix for bug 95731: "INSERT INTO shadowlog" failed because "Table 'shadowlog' not locked", fixed typo in lock tables command.
Patch by Myk Melez <myk@mozilla.org>
r= justdave@syndicomm.com


git-svn-id: svn://10.0.0.236/trunk@101285 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 08:38:54 +00:00
waterson%netscape.com
0a0078ba6a Bug 94831, redux. Fix windows static build stuff.
git-svn-id: svn://10.0.0.236/trunk@101284 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 08:38:26 +00:00
bryner%netscape.com
7da361b479 Bug 66835 - fix method hiding warnings by renaming some methods on nsIContent. r=jag, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@101283 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 08:14:14 +00:00
cls%seawood.org
7c473115e1 Removing hardcoded test for TestGtkEmbed as not all of our platforms build TestGtkEmbed by default
git-svn-id: svn://10.0.0.236/trunk@101282 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 08:12:31 +00:00
cls%seawood.org
bf0ad62e6b Stop pulling psm1. Bug #78975 r=leaf sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@101281 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 07:50:15 +00:00
waterson%netscape.com
556a7ee768 Bug 94831. Convert locale into a generic module. r/sr=nobody
git-svn-id: svn://10.0.0.236/trunk@101279 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 05:54:29 +00:00
waterson%netscape.com
d11171b5e7 Bug 94831. Convert locale stuff to generic module. r/sr=nobody: I am the devil.
git-svn-id: svn://10.0.0.236/trunk@101278 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 05:52:48 +00:00
jst%netscape.com
541f0e0bd9 Fixing bug 88151, anchor.accessKey wasn't working correctly. r=heikki@netscape.com, sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@101277 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 04:52:13 +00:00
rjesup%wgate.com
e55dbe1a1e Fix for evil win32 compiler to unhork build. sr=hyatt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@101274 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 04:46:35 +00:00
rjesup%wgate.com
eb7a5f2ca8 Checkin for buig 92641. Cuts 1000ish allocations from startup; doesn't dup schem as often. r=dougt@netscape.com sr=hyatt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@101273 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 04:01:38 +00:00
leaf%mozilla.org
b7f2f63bb9 Automated update
git-svn-id: svn://10.0.0.236/trunk@101272 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 03:13:56 +00:00
jgaunt%netscape.com
92c01c45b6 fix for bug 94768
r=smfr,leaf
sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@101271 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 03:13:07 +00:00
saari%netscape.com
0a7ae8e975 Fix for bug 93521, selections are sometimes grayed out. r=bryner, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@101268 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 02:38:41 +00:00
saari%netscape.com
64bddd3cc3 Fix for bug 82569, a simple null check to patch over a crash some people are seeing from talkback.
r=blake, sr=jst


git-svn-id: svn://10.0.0.236/trunk@101267 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 02:30:22 +00:00
leaf%mozilla.org
4f878214fe Automated update
git-svn-id: svn://10.0.0.236/trunk@101266 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 02:14:02 +00:00
waterson%netscape.com
5af445c54c modify mac project files for MOZ_TIMELINE tool, bug 78793
git-svn-id: svn://10.0.0.236/trunk@101265 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 02:04:20 +00:00
2662 changed files with 870828 additions and 5885 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,219 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* ex: set tabstop=8 softtabstop=2 shiftwidth=2 expandtab:
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (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.org code.
*
* 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):
*/
#ifndef nsFontMetricsGTK_h__
#define nsFontMetricsGTK_h__
#include "nsDeviceContextGTK.h"
#include "nsIFontMetrics.h"
#include "nsIFontEnumerator.h"
#include "nsFont.h"
#include "nsString.h"
#include "nsUnitConversion.h"
#include "nsIDeviceContext.h"
#include "nsCRT.h"
#include "nsCOMPtr.h"
#include "nsRenderingContextGTK.h"
#include "nsICharRepresentable.h"
#include <gdk/gdk.h>
#include <gdk/gdkx.h>
#undef FONT_HAS_GLYPH
#define FONT_HAS_GLYPH(map, char) IS_REPRESENTABLE(map, char)
typedef struct nsFontCharSetInfo nsFontCharSetInfo;
typedef gint (*nsFontCharSetConverter)(nsFontCharSetInfo* aSelf,
XFontStruct* aFont, const PRUnichar* aSrcBuf, PRInt32 aSrcLen,
char* aDestBuf, PRInt32 aDestLen);
struct nsFontCharSet;
struct nsFontFamily;
struct nsFontNode;
struct nsFontStretch;
class nsFontGTKUserDefined;
class nsFontMetricsGTK;
class nsFontGTK
{
public:
nsFontGTK();
virtual ~nsFontGTK();
NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW
void LoadFont(void);
PRBool IsEmptyFont(GdkFont*);
inline int SupportsChar(PRUnichar aChar)
{ return mFont && FONT_HAS_GLYPH(mMap, aChar); };
virtual GdkFont* GetGDKFont(void);
virtual PRBool GetGDKFontIs10646(void);
virtual gint GetWidth(const PRUnichar* aString, PRUint32 aLength) = 0;
virtual gint DrawString(nsRenderingContextGTK* aContext,
nsDrawingSurfaceGTK* aSurface, nscoord aX,
nscoord aY, const PRUnichar* aString,
PRUint32 aLength) = 0;
#ifdef MOZ_MATHML
// bounding metrics for a string
// remember returned values are not in app units
// - to emulate GetWidth () above
virtual nsresult
GetBoundingMetrics(const PRUnichar* aString,
PRUint32 aLength,
nsBoundingMetrics& aBoundingMetrics) = 0;
#endif
PRUint32* mMap;
nsFontCharSetInfo* mCharSetInfo;
char* mName;
nsFontGTKUserDefined* mUserDefinedFont;
PRUint16 mSize;
PRInt16 mBaselineAdjust;
protected:
GdkFont* mFont;
PRBool mAlreadyCalledLoadFont;
};
class nsFontMetricsGTK : public nsIFontMetrics
{
public:
nsFontMetricsGTK();
virtual ~nsFontMetricsGTK();
NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW
NS_DECL_ISUPPORTS
NS_IMETHOD Init(const nsFont& aFont, nsIAtom* aLangGroup,
nsIDeviceContext* aContext);
NS_IMETHOD Destroy();
NS_IMETHOD GetXHeight(nscoord& aResult);
NS_IMETHOD GetSuperscriptOffset(nscoord& aResult);
NS_IMETHOD GetSubscriptOffset(nscoord& aResult);
NS_IMETHOD GetStrikeout(nscoord& aOffset, nscoord& aSize);
NS_IMETHOD GetUnderline(nscoord& aOffset, nscoord& aSize);
NS_IMETHOD GetHeight(nscoord &aHeight);
NS_IMETHOD GetNormalLineHeight(nscoord &aHeight);
NS_IMETHOD GetLeading(nscoord &aLeading);
NS_IMETHOD GetEmHeight(nscoord &aHeight);
NS_IMETHOD GetEmAscent(nscoord &aAscent);
NS_IMETHOD GetEmDescent(nscoord &aDescent);
NS_IMETHOD GetMaxHeight(nscoord &aHeight);
NS_IMETHOD GetMaxAscent(nscoord &aAscent);
NS_IMETHOD GetMaxDescent(nscoord &aDescent);
NS_IMETHOD GetMaxAdvance(nscoord &aAdvance);
NS_IMETHOD GetFont(const nsFont *&aFont);
NS_IMETHOD GetLangGroup(nsIAtom** aLangGroup);
NS_IMETHOD GetFontHandle(nsFontHandle &aHandle);
virtual nsresult GetSpaceWidth(nscoord &aSpaceWidth);
nsFontGTK* FindFont(PRUnichar aChar);
nsFontGTK* FindUserDefinedFont(PRUnichar aChar);
nsFontGTK* FindStyleSheetSpecificFont(PRUnichar aChar);
nsFontGTK* FindStyleSheetGenericFont(PRUnichar aChar);
nsFontGTK* FindLangGroupPrefFont(nsIAtom* aLangGroup, PRUnichar aChar);
nsFontGTK* FindLangGroupFont(nsIAtom* aLangGroup, PRUnichar aChar, nsCString* aName);
nsFontGTK* FindAnyFont(PRUnichar aChar);
nsFontGTK* FindSubstituteFont(PRUnichar aChar);
nsFontGTK* SearchNode(nsFontNode* aNode, PRUnichar aChar);
nsFontGTK* TryAliases(nsCString* aName, PRUnichar aChar);
nsFontGTK* TryFamily(nsCString* aName, PRUnichar aChar);
nsFontGTK* TryNode(nsCString* aName, PRUnichar aChar);
nsFontGTK* TryNodes(nsAWritableCString &aFFREName, PRUnichar aChar);
nsFontGTK* TryLangGroup(nsIAtom* aLangGroup, nsCString* aName, PRUnichar aChar);
nsFontGTK* AddToLoadedFontsList(nsFontGTK* aFont);
nsFontGTK* PickASizeAndLoad(nsFontStretch* aStretch,
nsFontCharSetInfo* aCharSet,
PRUnichar aChar,
const char *aName);
static nsresult FamilyExists(const nsString& aFontName);
//friend struct nsFontGTK;
nsFontGTK **mLoadedFonts;
PRUint16 mLoadedFontsAlloc;
PRUint16 mLoadedFontsCount;
nsFontGTK *mSubstituteFont;
nsCStringArray mFonts;
PRUint16 mFontsIndex;
nsVoidArray mFontIsGeneric;
nsCAutoString mDefaultFont;
nsCString *mGeneric;
nsCOMPtr<nsIAtom> mLangGroup;
nsCAutoString mUserDefined;
PRUint8 mTriedAllGenerics;
PRUint8 mIsUserDefined;
protected:
void RealizeFont();
nsIDeviceContext *mDeviceContext;
nsFont *mFont;
nsFontGTK *mWesternFont;
nscoord mLeading;
nscoord mEmHeight;
nscoord mEmAscent;
nscoord mEmDescent;
nscoord mMaxHeight;
nscoord mMaxAscent;
nscoord mMaxDescent;
nscoord mMaxAdvance;
nscoord mXHeight;
nscoord mSuperscriptOffset;
nscoord mSubscriptOffset;
nscoord mStrikeoutSize;
nscoord mStrikeoutOffset;
nscoord mUnderlineSize;
nscoord mUnderlineOffset;
nscoord mSpaceWidth;
PRUint16 mPixelSize;
PRUint8 mStretchIndex;
PRUint8 mStyleIndex;
nsFontCharSetConverter mDocConverterType;
};
class nsFontEnumeratorGTK : public nsIFontEnumerator
{
public:
nsFontEnumeratorGTK();
NS_DECL_ISUPPORTS
NS_DECL_NSIFONTENUMERATOR
};
#endif

144
mozilla/nsprpub/Makefile.in Normal file
View File

@@ -0,0 +1,144 @@
#! gmake
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
MOD_DEPTH = .
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(MOD_DEPTH)/config/autoconf.mk
DIRS = config pr lib
ifdef MOZILLA_CLIENT
PR_CLIENT_BUILD = 1
PR_CLIENT_BUILD_UNIX = 1
endif
DIST_GARBAGE = config.cache config.log config.status
all:: config.status export
include $(topsrcdir)/config/rules.mk
config.status:: configure
ifeq ($(OS_ARCH),WINNT)
sh $(srcdir)/configure --no-create --no-recursion
else
./config.status --recheck && ./config.status
endif
#
# The -ll option of zip converts CR LF to LF.
#
ifeq ($(OS_ARCH),WINNT)
ZIP_ASCII_OPT = -ll
endif
ifdef PR_CLIENT_BUILD
export::
rm -r -f $(DIST)/../public/nspr
ifdef PR_CLIENT_BUILD_UNIX
rm -f $(dist_libdir)/libnspr.a
rm -f $(dist_bindir)/libnspr.$(DLL_SUFFIX)
endif
endif
# Delete config/autoconf.mk last because it is included by every makefile.
distclean::
@echo "cd pr/tests; $(MAKE) $@"
@$(MAKE) -C pr/tests $@
rm -f config/autoconf.mk
release::
echo $(BUILD_NUMBER) > $(RELEASE_DIR)/$(BUILD_NUMBER)/version.df
@if test -f imports.df; then \
echo "cp -f imports.df $(RELEASE_DIR)/$(BUILD_NUMBER)/imports.df"; \
cp -f imports.df $(RELEASE_DIR)/$(BUILD_NUMBER)/imports.df; \
else \
echo "echo > $(RELEASE_DIR)/$(BUILD_NUMBER)/imports.df"; \
echo > $(RELEASE_DIR)/$(BUILD_NUMBER)/imports.df; \
fi
cd $(RELEASE_DIR)/$(BUILD_NUMBER)/$(OBJDIR_NAME); \
rm -rf META-INF; mkdir META-INF; cd META-INF; \
echo "Manifest-Version: 1.0" > MANIFEST.MF; \
echo "" >> MANIFEST.MF; \
cd ..; rm -f mdbinary.jar; zip -r mdbinary.jar META-INF bin lib; \
rm -rf META-INF; \
cd include; \
rm -rf META-INF; mkdir META-INF; cd META-INF; \
echo "Manifest-Version: 1.0" > MANIFEST.MF; \
echo "" >> MANIFEST.MF; \
cd ..; rm -f mdheader.jar; zip $(ZIP_ASCII_OPT) -r mdheader.jar *; \
rm -rf META-INF
ifeq ($(OS_ARCH),WINNT)
@if test ! -d $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); then \
rm -rf $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); \
echo "making directory $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)"; \
config/prmkdir.bat $(MDIST_DOS)\\$(MOD_NAME)\\$(BUILD_NUMBER); \
fi
@if test ! -d $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); then \
rm -rf $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); \
echo "making directory $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME)"; \
config/prmkdir.bat $(MDIST_DOS)\\$(MOD_NAME)\\$(BUILD_NUMBER)\\$(RELEASE_OBJDIR_NAME); \
fi
else
@if test ! -d $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); then \
rm -rf $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); \
echo "making directory $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)"; \
$(NSINSTALL) -D $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); \
chmod 775 $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); \
fi
@if test ! -d $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); then \
rm -rf $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); \
echo "making directory $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME)"; \
$(NSINSTALL) -D $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); \
chmod 775 $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); \
fi
endif
cd $(RELEASE_DIR)/$(BUILD_NUMBER); \
cp -f version.df imports.df $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); \
chmod 664 $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/version.df; \
chmod 664 $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/imports.df; \
cd $(OBJDIR_NAME); \
cp -f mdbinary.jar $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); \
chmod 664 $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME)/mdbinary.jar; \
cd include; \
cp -f mdheader.jar $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); \
chmod 664 $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME)/mdheader.jar
depend:
@echo "NSPR20 has no dependencies. Skipped."

View File

@@ -0,0 +1,70 @@
#!/bin/perl
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2001 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
# -----------------------------------------------------------------
#
# explode.pl -- Unpack .jar files into bin, lib, include directories
#
# syntax: perl explode.pl
#
# Description:
# explode.pl unpacks the .jar files created by the NSPR build
# procedure.
#
# Suggested use: After copying the platform directories to
# /s/b/c/nspr20/<release>. CD to /s/b/c/nspr20/<release> and
# run explode.pl. This will unpack the jar files into bin, lib,
# include directories.
#
# -----------------------------------------------------------------
@dirs = `ls -d *.OBJ*`;
foreach $dir (@dirs) {
chop($dir);
if (-l $dir) {
print "Skipping symbolic link $dir\n";
next;
}
print "Unzipping $dir/mdbinary.jar\n";
system ("unzip", "-o", "$dir/mdbinary.jar",
"-d", "$dir");
system ("rm", "-rf", "$dir/META-INF");
mkdir "$dir/include", 0755;
print "Unzipping $dir/mdheader.jar\n";
system ("unzip", "-o", "-aa",
"$dir/mdheader.jar",
"-d", "$dir/include");
system ("rm", "-rf", "$dir/include/META-INF");
}
# --- end explode.pl ----------------------------------------------

View File

@@ -0,0 +1,73 @@
#!/bin/sh
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2001 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
# -----------------------------------------------------------------
# makeTargetDirs.sh -- Create target directories for building NSPR
#
# syntax: makeTargetDirs.sh
#
# Description:
# makeTargetDirs.sh creates a set of directories intended for use
# with NSPR's autoconf based build system.
#
# The enumerated directories are the same as those built for NSPR
# 4.1.1. Adjust as needed.
#
# -----------------------------------------------------------------
mkdir AIX4.3_64_DBG.OBJ
mkdir AIX4.3_64_OPT.OBJ
mkdir AIX4.3_DBG.OBJ
mkdir AIX4.3_OPT.OBJ
mkdir HP-UXB.11.00_64_DBG.OBJ
mkdir HP-UXB.11.00_64_OPT.OBJ
mkdir HP-UXB.11.00_DBG.OBJ
mkdir HP-UXB.11.00_OPT.OBJ
mkdir IRIX6.5_n32_PTH_DBG.OBJ
mkdir IRIX6.5_n32_PTH_OPT.OBJ
mkdir Linux2.2_x86_glibc_PTH_DBG.OBJ
mkdir Linux2.2_x86_glibc_PTH_OPT.OBJ
mkdir Linux2.4_x86_glibc_PTH_DBG.OBJ
mkdir Linux2.4_x86_glibc_PTH_OPT.OBJ
mkdir OSF1V4.0D_DBG.OBJ
mkdir OSF1V4.0D_OPT.OBJ
mkdir SunOS5.6_DBG.OBJ
mkdir SunOS5.6_OPT.OBJ
mkdir SunOS5.7_64_DBG.OBJ
mkdir SunOS5.7_64_OPT.OBJ
mkdir WIN954.0_DBG.OBJ
mkdir WIN954.0_DBG.OBJD
mkdir WIN954.0_OPT.OBJ
mkdir WINNT4.0_DBG.OBJ
mkdir WINNT4.0_DBG.OBJD
mkdir WINNT4.0_OPT.OBJ
# --- end makeTargetDirs.sh ---------------------------------------

View File

@@ -0,0 +1,207 @@
#! /bin/sh
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2001 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
# ------------------------------------------------------------------
# repackage.sh -- Repackage NSPR from /s/b/c to mozilla.org format
#
# syntax: repackage.sh
#
# Description:
# repackage.sh creates NSPR binary distributions for mozilla.org from
# the internal binary distributions in /share/builds/components/nspr20.
# There are reasons why we can't just push the internal binary distributions
# to mozilla.org. External developers prefer to use the common archive
# file format for their platforms, rather than the jar files we use internally.
#
# On Unix, we create a tar.gz file. On Windows, we create a zip file.
# For example: NSPR 4.1.1, these would be nspr-4.1.1.tar.gz and nspr-4.1.1.zip.
#
# When unpacked, nspr-4.1.1.tar.gz or nspr-4.1.1.zip should expand to a
# nspr-4.1.1 directory that contains three subdirectories: include, lib,
# and bin. The header files, with the correct line endings for the
# platform, are in nspr-4.1.1/include. The libraries are in nspr-4.1.1/lib.
# The executable programs are in nspr-4.1.1/bin.
#
# Note! Files written with Gnu tar are not readable by some non-Gnu
# versions. Sun, in particular.
#
#
#
#
# ------------------------------------------------------------------
#
# These variables should be modified for each NSPR release.
#
FROMTOP=/share/builds/components/nspr20/v4.1.1
TOTOP=./v4.1.1
NSPRDIR=nspr-4.1.1
SOURCETAG=NSPRPUB_RELEASE_4_1_1
#
# enumerate Unix object directories on /s/b/c
UNIX_OBJDIRS="
AIX4.3_64_DBG.OBJ
AIX4.3_64_OPT.OBJ
AIX4.3_DBG.OBJ
AIX4.3_OPT.OBJ
HP-UXB.11.00_64_DBG.OBJ
HP-UXB.11.00_64_OPT.OBJ
HP-UXB.11.00_DBG.OBJ
HP-UXB.11.00_OPT.OBJ
IRIX6.5_n32_PTH_DBG.OBJ
IRIX6.5_n32_PTH_OPT.OBJ
Linux2.2_x86_glibc_PTH_DBG.OBJ
Linux2.2_x86_glibc_PTH_OPT.OBJ
OSF1V4.0D_DBG.OBJ
OSF1V4.0D_OPT.OBJ
SunOS5.6_DBG.OBJ
SunOS5.6_OPT.OBJ
SunOS5.7_64_DBG.OBJ
SunOS5.7_64_OPT.OBJ
"
#
# enumerate Windows object directories on /s/b/c
WIN_OBJDIRS="
WIN954.0_DBG.OBJ
WIN954.0_DBG.OBJD
WIN954.0_OPT.OBJ
WINNT4.0_DBG.OBJ
WINNT4.0_DBG.OBJD
WINNT4.0_OPT.OBJ
"
#
# Create the destination directory.
#
echo "removing directory $TOTOP"
rm -rf $TOTOP
echo "creating directory $TOTOP"
mkdir -p $TOTOP
#
# Generate the tar.gz files for Unix platforms.
#
for OBJDIR in $UNIX_OBJDIRS; do
echo "removing directory $NSPRDIR"
rm -rf $NSPRDIR
echo "creating directory $NSPRDIR"
mkdir $NSPRDIR
echo "creating directory $NSPRDIR/include"
mkdir $NSPRDIR/include
echo "copying $FROMTOP/$OBJDIR/include"
cp -r $FROMTOP/$OBJDIR/include $NSPRDIR
echo "copying $FROMTOP/$OBJDIR/lib"
cp -r $FROMTOP/$OBJDIR/lib $NSPRDIR
echo "copying $FROMTOP/$OBJDIR/bin"
cp -r $FROMTOP/$OBJDIR/bin $NSPRDIR
echo "creating directory $TOTOP/$OBJDIR"
mkdir $TOTOP/$OBJDIR
echo "creating $TOTOP/$OBJDIR/$NSPRDIR.tar"
tar cvf $TOTOP/$OBJDIR/$NSPRDIR.tar $NSPRDIR
echo "gzipping $TOTOP/$OBJDIR/$NSPRDIR.tar"
gzip $TOTOP/$OBJDIR/$NSPRDIR.tar
done
#
# Generate the zip files for Windows platforms.
#
for OBJDIR in $WIN_OBJDIRS; do
echo "removing directory $NSPRDIR"
rm -rf $NSPRDIR
echo "creating directory $NSPRDIR"
mkdir $NSPRDIR
echo "creating directory $NSPRDIR/include"
mkdir $NSPRDIR/include
echo "creating directory $NSPRDIR/include/private"
mkdir $NSPRDIR/include/private
echo "creating directory $NSPRDIR/include/obsolete"
mkdir $NSPRDIR/include/obsolete
# copy headers and adjust unix line-end to Windows line-end
# Note: Watch out for the "sed" command line.
# when editing the command, take care to preserve the "^M" as the literal
# cntl-M character! in vi, use "cntl-v cntl-m" to enter it!
#
headers=`ls $FROMTOP/$OBJDIR/include/*.h`
for header in $headers; do
sed -e 's/$/
/g' $header > $NSPRDIR/include/`basename $header`
done
headers=`ls $FROMTOP/$OBJDIR/include/obsolete/*.h`
for header in $headers; do
sed -e 's/$/
/g' $header > $NSPRDIR/include/obsolete/`basename $header`
done
headers=`ls $FROMTOP/$OBJDIR/include/private/*.h`
for header in $headers; do
sed -e 's/$/
/g' $header > $NSPRDIR/include/private/`basename $header`
done
echo "copying $FROMTOP/$OBJDIR/lib"
cp -r $FROMTOP/$OBJDIR/lib $NSPRDIR
echo "copying $FROMTOP/$OBJDIR/bin"
cp -r $FROMTOP/$OBJDIR/bin $NSPRDIR
echo "creating directory $TOTOP/$OBJDIR"
mkdir $TOTOP/$OBJDIR
echo "creating $TOTOP/$OBJDIR/$NSPRDIR.zip"
zip -r $TOTOP/$OBJDIR/$NSPRDIR.zip $NSPRDIR
done
#
# package the source from CVS
#
echo "Packaging source"
echo "removing directory $NSPRDIR"
rm -rf $NSPRDIR
echo "creating directory $NSPRDIR"
mkdir $NSPRDIR
myWD=`pwd`
cd $NSPRDIR
echo "Pulling source from CVS with tag $SOURCETAG"
cvs co -r $SOURCETAG mozilla/nsprpub
cd $myWD
mkdir $TOTOP/src
echo "Creating source tar file: $TOTOP/src/$NSPRDIR.tar"
tar cvf $TOTOP/src/$NSPRDIR.tar $NSPRDIR
echo "gzip $TOTOP/src/$NSPRDIR.tar"
gzip $TOTOP/src/$NSPRDIR.tar
#
# Remove the working directory.
#

View File

@@ -0,0 +1,69 @@
#!/bin/sh
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2001 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
# -----------------------------------------------------------------
# symlinks.sh -- create links from NSPR builds
#
# syntax: symlinks.sh
#
# Description:
# symlinks.sh creates some symbolic links for NSPR build targets
# that are not actually build, but for which there are NSPR
# binaries suitable for running on the intended target. ... got
# that?
#
# Suggested use: After copying NSPR binaries to
# /s/b/c/nspr20/<platform> run symlinks.sh to create the links
# for all supported platforms.
#
# The symlinks in this script correspond to the NSPR 4.1.1
# release. Adjust as necessary.
#
# -----------------------------------------------------------------
ln -s SunOS5.6_DBG.OBJ SunOS5.7_DBG.OBJ
ln -s SunOS5.6_OPT.OBJ SunOS5.7_OPT.OBJ
ln -s SunOS5.6_DBG.OBJ SunOS5.8_DBG.OBJ
ln -s SunOS5.6_OPT.OBJ SunOS5.8_OPT.OBJ
ln -s SunOS5.7_64_DBG.OBJ SunOS5.8_64_DBG.OBJ
ln -s SunOS5.7_64_OPT.OBJ SunOS5.8_64_OPT.OBJ
ln -s OSF1V4.0D_DBG.OBJ OSF1V5.0_DBG.OBJ
ln -s OSF1V4.0D_OPT.OBJ OSF1V5.0_OPT.OBJ
ln -s WINNT4.0_DBG.OBJ WINNT5.0_DBG.OBJ
ln -s WINNT4.0_DBG.OBJD WINNT5.0_DBG.OBJD
ln -s WINNT4.0_OPT.OBJ WINNT5.0_OPT.OBJ
# --- end symlinks.sh ---------------------------------------------

1391
mozilla/nsprpub/build/autoconf/config.guess vendored Executable file

File diff suppressed because it is too large Load Diff

1373
mozilla/nsprpub/build/autoconf/config.sub vendored Executable file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,119 @@
#!/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

@@ -0,0 +1,171 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# Config stuff for AIX.
#
include $(MOD_DEPTH)/config/UNIX.mk
#
# XXX
# Temporary define for the Client; to be removed when binary release is used
#
ifdef MOZILLA_CLIENT
ifneq ($(USE_PTHREADS),1)
CLASSIC_NSPR = 1
endif
endif
#
# There are three implementation strategies available on AIX:
# pthreads, classic, and pthreads-user.
#
# On AIX 3.2, classic nspr is the default (and only) implementation
# strategy. On AIX 4.1 and later, the default is pthreads.
#
ifeq ($(OS_RELEASE),3.2)
CLASSIC_NSPR = 1
endif
ifeq ($(CLASSIC_NSPR),1)
PTHREADS_USER =
USE_PTHREADS =
IMPL_STRATEGY = _EMU
DEFINES += -D_PR_LOCAL_THREADS_ONLY
else
ifeq ($(PTHREADS_USER),1)
USE_PTHREADS =
IMPL_STRATEGY = _PTH_USER
else
USE_PTHREADS = 1
IMPL_STRATEGY = _PTH
endif
endif
# IPv6 support part of the standard AIX 4.3 release.
ifneq (,$(filter-out 3.2 4.1 4.2,$(OS_RELEASE)))
USE_IPV6 = 1
endif
ifeq ($(CLASSIC_NSPR),1)
CC = xlC
CCC = xlC
else
CC = xlC_r
CCC = xlC_r
endif
OS_CFLAGS = -qro -qroconst
ifeq ($(USE_64),1)
OBJECT_MODE = 64
export OBJECT_MODE
COMPILER_TAG = _64
else
COMPILER_TAG = _32
endif
CPU_ARCH = rs6000
RANLIB = ranlib
OS_CFLAGS += -DAIX -DSYSV
ifeq ($(CC),xlC_r)
OS_CFLAGS += -qarch=com
endif
ifneq ($(OS_RELEASE),3.2)
OS_CFLAGS += -DAIX_HAVE_ATOMIC_OP_H -DAIX_TIMERS
endif
ifeq (,$(filter-out 3.2 4.1,$(OS_RELEASE)))
ifndef USE_PTHREADS
OS_CFLAGS += -DAIX_RENAME_SELECT
endif
endif
ifeq (,$(filter-out 3.2 4.1,$(OS_RELEASE)))
OS_CFLAGS += -D_PR_NO_LARGE_FILES
else
OS_CFLAGS += -D_PR_HAVE_OFF64_T
endif
ifeq ($(OS_RELEASE),4.1)
OS_CFLAGS += -DAIX4_1
else
DSO_LDOPTS = -brtl -bM:SRE -bnoentry -bexpall
MKSHLIB = $(LD) $(DSO_LDOPTS)
ifeq ($(OS_RELEASE),4.3)
OS_CFLAGS += -DAIX4_3
endif
endif
# Have the socklen_t data type
ifeq ($(OS_RELEASE),4.3)
OS_CFLAGS += -DHAVE_SOCKLEN_T
endif
ifneq (,$(filter-out 3.2 4.1 4.2,$(OS_RELEASE)))
OS_CFLAGS += -DHAVE_FCNTL_FILE_LOCKING
endif
ifeq (,$(filter-out 4.2 4.3,$(OS_RELEASE)))
# On these OS revisions, localtime_r() is declared if _THREAD_SAFE
# is defined.
ifneq ($(CLASSIC_NSPR),1)
OS_CFLAGS += -DHAVE_POINTER_LOCALTIME_R
endif
endif
ifeq (,$(filter-out 4.3,$(OS_RELEASE)))
# On these OS revisions, gethostbyXXX() returns result in thread
# specific storage.
ifeq ($(USE_PTHREADS),1)
OS_CFLAGS += -D_PR_HAVE_THREADSAFE_GETHOST
endif
endif
#
# Special link info for constructing AIX programs. On AIX we have to
# statically link programs that use NSPR into a single .o, rewriting the
# calls to select to call "aix". Once that is done we then can
# link that .o with a .o built in nspr which implements the system call.
#
ifneq (,$(filter-out 3.2 4.1,$(OS_RELEASE)))
AIX_LINK_OPTS = -brtl -bnso -berok
else
AIX_LINK_OPTS = -bnso -berok
#AIX_LINK_OPTS = -bnso -berok -brename:.select,.wrap_select -brename:.poll,.wrap_poll -bI:/usr/lib/syscalls.exp
endif
AIX_WRAP = $(DIST)/lib/aixwrap.o
AIX_TMP = $(OBJDIR)/_aix_tmp.o

View File

@@ -0,0 +1,91 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# Config stuff for BSD/OS Unix.
#
include $(MOD_DEPTH)/config/UNIX.mk
ifeq (,$(filter-out 1.1 4.%,$(OS_RELEASE)))
CC = gcc -Wall -Wno-format
CCC = g++
else
CC = shlicc2
CCC = shlicc2
endif
RANLIB = ranlib
ifeq ($(USE_PTHREADS),1)
IMPL_STRATEGY = _PTH
DEFINES += -D_PR_NEED_PTHREAD_INIT
else
IMPL_STRATEGY = _EMU
DEFINES += -D_PR_LOCAL_THREADS_ONLY
endif
OS_CFLAGS = $(DSO_CFLAGS) -DBSDI -DHAVE_STRERROR -DNEED_BSDREGEX
ifeq (86,$(findstring 86,$(OS_TEST)))
CPU_ARCH = x86
endif
ifeq (sparc,$(findstring sparc,$(OS_TEST)))
CPU_ARCH = sparc
endif
ifeq ($(OS_RELEASE),2.1)
OS_CFLAGS += -D_PR_TIMESPEC_HAS_TS_SEC
endif
ifeq (,$(filter-out 1.1 2.1,$(OS_RELEASE)))
OS_CFLAGS += -D_PR_BSDI_JMPBUF_IS_ARRAY
else
OS_CFLAGS += -D_PR_SELECT_CONST_TIMEVAL -D_PR_BSDI_JMPBUF_IS_STRUCT
endif
NOSUCHFILE = /no-such-file
ifeq ($(OS_RELEASE),1.1)
OS_CFLAGS += -D_PR_STAT_HAS_ONLY_ST_ATIME -D_PR_NEED_H_ERRNO
else
OS_CFLAGS += -DHAVE_DLL -DUSE_DLFCN -D_PR_STAT_HAS_ST_ATIMESPEC
OS_LIBS = -ldl
ifeq (,$(filter-out 4.%,$(OS_RELEASE)))
MKSHLIB = $(CC) $(DSO_LDOPTS)
DSO_CFLAGS = -fPIC
DSO_LDOPTS = -shared -Wl,-soname,$(@:$(OBJDIR)/%.so=%.so)
else
MKSHLIB = $(LD) $(DSO_LDOPTS)
DSO_LDOPTS = -r
endif
endif

View File

@@ -0,0 +1,139 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
######################################################################
# Config stuff for BeOS (all architectures)
######################################################################
######################################################################
# Version-independent
######################################################################
DEFINES +=
XP_DEFINE = -DXP_BEOS
OBJ_SUFFIX = o
LIB_SUFFIX = a
DLL_SUFFIX = so
AR = ar cr $@
STRIP = strip
ifdef BUILD_OPT
DEFINES = -UDEBUG -DNDEBUG
OBJDIR_TAG = _OPT
else
DEFINES = -DDEBUG -UNDEBUG
OBJDIR_TAG = _DBG
endif
ifeq (PC,$(findstring PC,$(OS_TEST)))
CPU_ARCH = x86
CC = gcc
CCC = g++
LD = gcc
RANLIB = ranlib
DSO_LDOPTS = -nostart
PORT_FLAGS = -DHAVE_STRERROR
ifdef BUILD_OPT
OPTIMIZER = -O2
LDFLAGS += -s
else
OPTIMIZER = -gdwarf-2 -O0
endif
else
CPU_ARCH = ppc
CC = mwcc
CCC = mwcc
LD = mwld
RANLIB = ranlib
DSO_LDOPTS = -xms -export pragma \
-init _init_routine_ \
-term _term_routine_ \
-lroot -lnet \
/boot/develop/lib/ppc/glue-noinit.a \
/boot/develop/lib/ppc/init_term_dyn.o \
/boot/develop/lib/ppc/start_dyn.o
PORT_FLAGS = -DHAVE_STRERROR -D_POSIX_SOURCE
ifdef BUILD_OPT
OPTIMIZER = -O2
else
OPTIMIZER = -g -O0
endif
endif
CPU_ARCH_TAG = _$(CPU_ARCH)
OS_INCLUDES = -I- -I.
#G++INCLUDES = -I/usr/include/g++
PLATFORM_FLAGS = -DBeOS -DBEOS $(OS_INCLUDES)
OS_CFLAGS = $(DSO_CFLAGS) $(PLATFORM_FLAGS) $(PORT_FLAGS)
USE_BTHREADS = 1
MKSHLIB = $(LD) $(DSO_LDOPTS)
OBJDIR_NAME = $(OS_CONFIG)_$(CPU_ARCH)$(OBJDIR_TAG).OBJ
####################################################################
#
# One can define the makefile variable NSDISTMODE to control
# how files are published to the 'dist' directory. If not
# defined, the default is "install using relative symbolic
# links". The two possible values are "copy", which copies files
# but preserves source mtime, and "absolute_symlink", which
# installs using absolute symbolic links. The "absolute_symlink"
# option requires NFSPWD.
#
####################################################################
NSINSTALL = $(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall
ifeq ($(NSDISTMODE),copy)
# copy files, but preserve source mtime
INSTALL = $(NSINSTALL) -t
else
ifeq ($(NSDISTMODE),absolute_symlink)
# install using absolute symbolic links
INSTALL = $(NSINSTALL) -L `$(NFSPWD)`
else
# install using relative symbolic links
INSTALL = $(NSINSTALL) -R
endif
endif
define MAKE_OBJDIR
if test ! -d $(@D); then rm -rf $(@D); $(NSINSTALL) -D $(@D); fi
endef

View File

@@ -0,0 +1,63 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# Config stuff for Data General DG/UX
#
# Initial DG/UX port by Marc Fraioli <fraioli@dg-rtp.dg.com>
#
include $(MOD_DEPTH)/config/UNIX.mk
CC = gcc
CCC = g++
RANLIB = true
DEFINES += -D_PR_LOCAL_THREADS_ONLY
OS_CFLAGS = -DSVR4 -DSYSV -DDGUX -D_DGUX_SOURCE -D_POSIX4A_DRAFT6_SOURCE
MKSHLIB = $(LD) $(DSO_LDOPTS)
DSO_LDOPTS = -G
CPU_ARCH = x86
ARCH = dgux
NOSUCHFILE = /no-such-file
ifdef BUILD_OPT
OPTIMIZER = -O2
else
# -g would produce a huge executable.
OPTIMIZER =
endif

View File

@@ -0,0 +1,82 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# Config stuff for FreeBSD
#
include $(MOD_DEPTH)/config/UNIX.mk
CC = gcc
CCC = g++
RANLIB = ranlib
ifeq ($(OS_TEST),alpha)
CPU_ARCH = alpha
else
OS_REL_CFLAGS = -Di386
CPU_ARCH = x86
endif
CPU_ARCH_TAG = _$(CPU_ARCH)
OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -pipe $(THREAD_FLAG) -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
#
# The default implementation strategy for FreeBSD is pthreads.
#
ifeq ($(CLASSIC_NSPR),1)
IMPL_STRATEGY = _EMU
DEFINES += -D_PR_LOCAL_THREADS_ONLY
else
USE_PTHREADS = 1
IMPL_STRATEGY = _PTH
DEFINES += -D_THREAD_SAFE
THREAD_FLAG += -pthread
endif
ARCH = freebsd
MOZ_OBJFORMAT := $(shell test -x /usr/bin/objformat && /usr/bin/objformat || echo aout)
ifeq ($(MOZ_OBJFORMAT),elf)
DLL_SUFFIX = so
else
DLL_SUFFIX = so.1.0
endif
DSO_CFLAGS = -fPIC
DSO_LDOPTS = -Bshareable
MKSHLIB = $(LD) $(DSO_LDOPTS)
G++INCLUDES = -I/usr/include/g++

View File

@@ -0,0 +1,203 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# Config stuff for HP-UX
#
include $(MOD_DEPTH)/config/UNIX.mk
DLL_SUFFIX = sl
ifdef NS_USE_GCC
CC = gcc
CCC = g++
OS_CFLAGS =
COMPILER_TAG = _gcc
else
CC = cc -Ae
CCC = CC -ext
OS_CFLAGS = +ESlit
endif
RANLIB = echo
CPU_ARCH = hppa
OS_CFLAGS += $(DSO_CFLAGS) -DHPUX -D$(CPU_ARCH) -D_HPUX_SOURCE
#
# The header netdb.h on HP-UX 9 does not declare h_errno.
# On 10.10 and 10.20, netdb.h declares h_errno only if
# _XOPEN_SOURCE_EXTENDED is defined. So we need to declare
# h_errno ourselves.
#
ifeq ($(basename $(OS_RELEASE)),A.09)
OS_CFLAGS += -D_PR_NEED_H_ERRNO
endif
ifeq (,$(filter-out B.10.10 B.10.20,$(OS_RELEASE)))
OS_CFLAGS += -D_PR_NEED_H_ERRNO
endif
# Do we have localtime_r()? Does it return 'int' or 'struct tm *'?
ifeq (,$(filter-out B.10.10 B.10.20,$(OS_RELEASE)))
OS_CFLAGS += -DHAVE_INT_LOCALTIME_R
endif
ifeq (,$(filter-out B.10.30 B.11.00,$(OS_RELEASE)))
OS_CFLAGS += -DHAVE_POINTER_LOCALTIME_R
endif
#
# XXX
# Temporary define for the Client; to be removed when binary release is used
#
ifdef MOZILLA_CLIENT
CLASSIC_NSPR = 1
endif
#
# On HP-UX 9, the default (and only) implementation strategy is
# classic nspr.
#
# On HP-UX 10.10 and 10.20, the default implementation strategy is
# pthreads (actually DCE threads). Classic nspr is also available.
#
# On HP-UX 10.30 and 11.00, the default implementation strategy is
# pthreads. Classic nspr and pthreads-user are also available.
#
ifeq ($(basename $(OS_RELEASE)),A.09)
OS_CFLAGS += -DHPUX9
DEFAULT_IMPL_STRATEGY = _EMU
endif
ifeq ($(OS_RELEASE),B.10.01)
OS_CFLAGS += -DHPUX10
DEFAULT_IMPL_STRATEGY = _EMU
endif
ifeq ($(OS_RELEASE),B.10.10)
OS_CFLAGS += -DHPUX10 -DHPUX10_10
DEFAULT_IMPL_STRATEGY = _PTH
endif
ifeq ($(OS_RELEASE),B.10.20)
OS_CFLAGS += -DHPUX10 -DHPUX10_20
ifndef NS_USE_GCC
OS_CFLAGS += +DAportable +DS1.1
endif
DEFAULT_IMPL_STRATEGY = _PTH
endif
#
# On 10.30 and 11.00, we use the new ANSI C++ compiler aCC.
#
ifeq ($(OS_RELEASE),B.10.30)
ifndef NS_USE_GCC
CCC = /opt/aCC/bin/aCC -ext
OS_CFLAGS += +DAportable +DS1.1
endif
OS_CFLAGS += -DHPUX10 -DHPUX10_30
DEFAULT_IMPL_STRATEGY = _PTH
endif
# 11.00 is similar to 10.30.
ifeq ($(OS_RELEASE),B.11.00)
ifndef NS_USE_GCC
CCC = /opt/aCC/bin/aCC -ext
ifeq ($(USE_64), 1)
OS_CFLAGS += +DA2.0W +DS2.0
COMPILER_TAG = _64
else
OS_CFLAGS += +DAportable +DS2.0
COMPILER_TAG = _32
endif
endif
OS_CFLAGS += -DHPUX10 -DHPUX11 -D_LARGEFILE64_SOURCE -D_PR_HAVE_OFF64_T -DHAVE_FCNTL_FILE_LOCKING
DEFAULT_IMPL_STRATEGY = _PTH
endif
ifeq ($(DEFAULT_IMPL_STRATEGY),_EMU)
CLASSIC_NSPR = 1
endif
ifeq ($(DEFAULT_IMPL_STRATEGY),_PTH)
USE_PTHREADS = 1
IMPL_STRATEGY = _PTH
ifeq ($(CLASSIC_NSPR),1)
USE_PTHREADS =
IMPL_STRATEGY = _EMU
endif
ifeq ($(PTHREADS_USER),1)
USE_PTHREADS =
IMPL_STRATEGY = _PTH_USER
endif
endif
ifeq ($(CLASSIC_NSPR),1)
DEFINES += -D_PR_LOCAL_THREADS_ONLY
endif
ifeq (,$(filter-out A.09 B.10,$(basename $(OS_RELEASE))))
DEFINES += -D_PR_NO_LARGE_FILES
endif
#
# To use the true pthread (kernel thread) library on 10.30 and
# 11.00, we should define _POSIX_C_SOURCE to be 199506L.
# The _REENTRANT macro is deprecated.
#
ifdef USE_PTHREADS
ifeq (,$(filter-out B.10.10 B.10.20,$(OS_RELEASE)))
OS_CFLAGS += -D_REENTRANT -D_PR_DCETHREADS
else
OS_CFLAGS += -D_POSIX_C_SOURCE=199506L -D_PR_HAVE_THREADSAFE_GETHOST
endif
endif
ifdef PTHREADS_USER
OS_CFLAGS += -D_POSIX_C_SOURCE=199506L
endif
MKSHLIB = $(LD) $(DSO_LDOPTS)
DSO_LDOPTS = -b +h $(notdir $@)
# -fPIC or +Z generates position independent code for use in shared
# libraries.
ifdef NS_USE_GCC
DSO_CFLAGS = -fPIC
else
DSO_CFLAGS = +Z
endif

View File

@@ -0,0 +1,158 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# Config stuff for IRIX
#
include $(MOD_DEPTH)/config/UNIX.mk
#
# XXX
# Temporary define for the Client; to be removed when binary release is used
#
ifdef MOZILLA_CLIENT
ifneq ($(USE_PTHREADS),1)
CLASSIC_NSPR = 1
endif
endif
#
# On IRIX 5.x, classic nspr (user-level threads on top of sprocs)
# is the default (and only) implementation strategy.
#
# On IRIX 6.x and later, the default implementation strategy is
# pthreads. Classic nspr is also available.
#
ifeq ($(basename $(OS_RELEASE)),5)
CLASSIC_NSPR = 1
endif
ifeq ($(CLASSIC_NSPR),1)
IMPL_STRATEGY = _MxN
else
USE_PTHREADS = 1
USE_N32 = 1
IMPL_STRATEGY = _PTH
endif
ifdef NS_USE_GCC
CC = gcc
COMPILER_TAG = _gcc
AS = $(CC) -x assembler-with-cpp -D_ASM -mips2
ODD_CFLAGS = -Wall -Wno-format
ifdef BUILD_OPT
OPTIMIZER = -O6
endif
else
CC = cc
CCC = CC
ODD_CFLAGS = -fullwarn -xansi
ifdef BUILD_OPT
ifneq ($(USE_N32),1)
OPTIMIZER = -O -Olimit 4000
else
OPTIMIZER = -O -OPT:Olimit=4000
endif
endif
#
# The default behavior is still -o32 generation, hence the explicit tests
# for -n32 and -64 and implicitly assuming -o32. If that changes, ...
#
ifeq ($(basename $(OS_RELEASE)),6)
ODD_CFLAGS += -multigot
SHLIB_LD_OPTS = -no_unresolved
ifeq ($(USE_N32),1)
ODD_CFLAGS += -n32 -woff 1209
COMPILER_TAG = _n32
LDOPTS += -n32
SHLIB_LD_OPTS += -n32
ifeq ($(OS_RELEASE), 6_2)
LDOPTS += -Wl,-woff,85
SHLIB_LD_OPTS += -woff 85
endif
else
ifeq ($(USE_64),1)
ODD_CFLAGS += -64
COMPILER_TAG = _64
else
ODD_CFLAGS += -32
COMPILER_TAG = _o32
endif
endif
else
ODD_CFLAGS += -xgot
endif
endif
ODD_CFLAGS += -DSVR4 -DIRIX -DHAVE_FCNTL_FILE_LOCKING
CPU_ARCH = mips
RANLIB = /bin/true
# For purify
# XXX: should always define _SGI_MP_SOURCE
NOMD_OS_CFLAGS = $(ODD_CFLAGS) -D_SGI_MP_SOURCE
ifeq ($(OS_RELEASE),5.3)
OS_CFLAGS += -DIRIX5_3
endif
ifneq ($(basename $(OS_RELEASE)),5)
OS_CFLAGS += -D_PR_HAVE_SGI_PRDA_PROCMASK
endif
ifeq (,$(filter-out 6.5,$(OS_RELEASE)))
ifndef NS_USE_GCC
OS_CFLAGS += -mips3
endif
OS_CFLAGS += -D_PR_HAVE_GETPROTO_R -D_PR_HAVE_GETPROTO_R_POINTER
ifeq ($(USE_PTHREADS),1)
OS_CFLAGS += -D_PR_HAVE_GETHOST_R -D_PR_HAVE_GETHOST_R_POINTER
endif
endif
ifndef NO_MDUPDATE
OS_CFLAGS += $(NOMD_OS_CFLAGS) -MDupdate $(DEPENDENCIES)
else
OS_CFLAGS += $(NOMD_OS_CFLAGS)
endif
# -rdata_shared is an ld option that puts string constants and
# const data into the text segment, where they will be shared
# across processes and be read-only.
MKSHLIB = $(LD) $(SHLIB_LD_OPTS) -rdata_shared -shared -soname $(notdir $@)
DSO_LDOPTS = -elf -shared -all

View File

@@ -0,0 +1,131 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
######################################################################
# Config stuff for Linux (all architectures)
######################################################################
######################################################################
# Version-independent
######################################################################
include $(MOD_DEPTH)/config/UNIX.mk
#
# XXX
# Temporary define for the Client; to be removed when binary release is used
#
ifdef MOZILLA_CLIENT
ifneq ($(USE_PTHREADS),1)
CLASSIC_NSPR = 1
endif
endif
#
# The default implementation strategy for Linux is pthreads.
#
ifeq ($(CLASSIC_NSPR),1)
IMPL_STRATEGY = _EMU
DEFINES += -D_PR_LOCAL_THREADS_ONLY
else
USE_PTHREADS = 1
IMPL_STRATEGY = _PTH
DEFINES += -D_REENTRANT
endif
ifeq (86,$(findstring 86,$(OS_TEST)))
CPU_ARCH := x86
else
ifeq (,$(filter-out arm% sa110,$(OS_TEST)))
CPU_ARCH := arm
else
CPU_ARCH := $(OS_TEST)
endif
endif
CPU_ARCH_TAG = _$(CPU_ARCH)
CC = gcc
CCC = g++
RANLIB = ranlib
OS_INCLUDES =
G++INCLUDES = -I/usr/include/g++
PLATFORM_FLAGS = -ansi -Wall -pipe -DLINUX -Dlinux
PORT_FLAGS = -D_POSIX_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DHAVE_STRERROR -DHAVE_FCNTL_FILE_LOCKING
OS_CFLAGS = $(DSO_CFLAGS) $(PLATFORM_FLAGS) $(PORT_FLAGS)
######################################################################
# Version-specific stuff
######################################################################
ifeq ($(CPU_ARCH),alpha)
PLATFORM_FLAGS += -D_ALPHA_ -D__alpha -mieee
endif
ifeq ($(CPU_ARCH),x86)
PLATFORM_FLAGS += -Di386
endif
ifeq ($(CPU_ARCH),m68k)
#
# gcc on Linux/m68k either has a bug or triggers a code-sequence
# bug in the 68060 which causes gcc to crash. The simplest way to
# avoid this is to enable a minimum level of optimization.
#
ifndef BUILD_OPT
OPTIMIZER += -O
endif
PLATFORM_FLAGS += -m68020-40
endif
#
# Linux 2.x has shared libraries.
#
MKSHLIB = $(LD) $(DSO_LDOPTS) -soname $(notdir $@)
ifdef BUILD_OPT
OPTIMIZER = -O2
# invoke 'strip' on *.so files in optimized builds
STRIP = strip
endif
######################################################################
# Overrides for defaults in config.mk (or wherever)
######################################################################
######################################################################
# Other
######################################################################
DSO_CFLAGS = -fPIC
DSO_LDOPTS = -shared

View File

@@ -0,0 +1,143 @@
#! gmake
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
MOD_DEPTH = ..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(MOD_DEPTH)/config/autoconf.mk
# Indicate that this directory builds build tools.
INTERNAL_TOOLS = 1
# autoconf.mk must be deleted last (from the top-level directory)
# because it is included by every makefile.
DIST_GARBAGE = nsprincl.mk nsprincl.sh nspr-config
RELEASE_BINS = nspr-config
include $(topsrcdir)/config/config.mk
CSRCS = now.c
# This version hasn't been ported for us; the one in mozilla/config has
ifneq ($(OS_ARCH),OS2)
CSRCS += nsinstall.c
PLSRCS = nfspwd.pl
endif
ifeq (,$(filter-out WINNT OS2,$(OS_ARCH)))
PROG_SUFFIX = .exe
else
PROG_SUFFIX =
endif
# Temporary workaround to disable the generation of
# library build time because now.c uses the 'long long'
# data type that's not available on some platforms.
ifeq (,$(filter-out NEC NEXTSTEP QNX SCOOS UNIXWARE,$(OS_ARCH)))
DEFINES += -DOMIT_LIB_BUILD_TIME
endif
ifeq ($(OS_ARCH), IRIX)
ifeq ($(basename $(OS_RELEASE)),6)
ifndef NS_USE_GCC
ifeq ($(USE_N32),1)
XLDOPTS += -n32 -Wl,-woff,85
else
ifeq ($(USE_64),1)
XLDOPTS += -64
else
XLDOPTS += -32
endif
endif
endif
endif
endif
ifeq ($(OS_ARCH), HP-UX)
ifeq ($(USE_64),1)
XLDOPTS += +DA2.0W
endif
endif
ifeq ($(MOZ_OS2_TOOLS),EMX)
XCFLAGS = $(OS_CFLAGS)
ifeq ($(MOZ_OS2_EMX_OBJECTFORMAT),OMF)
XLDOPTS = -Zlinker /PM:VIO
endif
endif
ifeq ($(MOZ_OS2_TOOLS),PGCC)
XCFLAGS = $(OS_CFLAGS)
XLDOPTS = -Zlinker /PM:VIO
endif
include $(topsrcdir)/config/rules.mk
PROGS = $(OBJDIR)/now$(PROG_SUFFIX)
ifeq (,$(filter-out OS2 WINNT,$(OS_ARCH)))
TARGETS = $(PROGS)
else
PROGS += $(OBJDIR)/nsinstall$(PROG_SUFFIX)
TARGETS = $(PROGS) $(PLSRCS:.pl=)
endif
OUTOPTION = -o # end of the line
ifeq (,$(filter-out WINNT WIN95,$(OS_TARGET)))
OUTOPTION = /Fe
endif
# Redefine MAKE_OBJDIR for just this directory
define MAKE_OBJDIR
if test ! -d $(@D); then rm -rf $(@D); mkdir $(@D); else true; fi
endef
export:: $(TARGETS)
rm -f $(dist_bindir)/nspr-config
$(OBJDIR)/%$(PROG_SUFFIX): $(OBJDIR)/%.$(OBJ_SUFFIX)
@$(MAKE_OBJDIR)
ifeq ($(MOZ_OS2_TOOLS),VACPP)
$(LD) $(EXEFLAGS) $<
else
$(CC) $(XCFLAGS) $< $(XLDOPTS) $(OUTOPTION)$@
endif
real_install:: nspr.m4
$(NSINSTALL) -D $(DESTDIR)$(datadir)/aclocal
$(NSINSTALL) -t -m 0644 $< $(DESTDIR)$(datadir)/aclocal

View File

@@ -0,0 +1,97 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# Config stuff for NCR SVR4 MP-RAS
#
include $(MOD_DEPTH)/config/UNIX.mk
###
NS_USE_NATIVE = 1
# NS_USE_GCC = 1
export PATH:=$(PATH):/opt/ncc/bin
###
RANLIB = true
GCC_FLAGS_EXTRA = -pipe
DEFINES += -DSVR4 -DSYSV -DHAVE_STRERROR -DNCR -D_PR_LOCAL_THREADS_ONLY
ifeq (,$(filter-out 2.03,$(OS_RELEASE)))
DEFINES += -D_PR_STAT_HAS_ST_ATIM
else
DEFINES += -D_PR_STAT_HAS_ST_ATIM_UNION
endif
ifdef NS_USE_NATIVE
CC = cc
CCC = ncc
OS_CFLAGS = -Hnocopyr
#OS_LIBS = -L/opt/ncc/lib
else
#OS_LIBS =
endif
CCC = g++
#OS_LIBS += -lsocket -lnsl -ldl -lc
MKSHLIB = $(LD) $(DSO_LDOPTS)
#DSO_LDOPTS = -G -z defs
DSO_LDOPTS = -G
CPU_ARCH = x86
ARCH = ncr
NOSUCHFILE = /no-such-file
# now take care of default GCC (rus@5/5/97)
ifdef NS_USE_GCC
# if gcc-settings are redefined already - don't touch it
#
ifeq (,$(findstring gcc, $(CC)))
CC = gcc
CCC = g++
CXX = g++
COMPILER_TAG = _gcc
# always use -fPIC - some makefiles are still broken and don't distinguish
# situation when they build shared and static libraries
CFLAGS += -fPIC -Wall $(GCC_FLAGS_EXTRA)
#OS_LIBS += -L/usr/local/lib -lstdc++ -lg++ -lgcc
endif
endif
###

View File

@@ -0,0 +1,61 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# Config stuff for NEC Mips SYSV
#
include $(MOD_DEPTH)/config/UNIX.mk
CPU_ARCH = mips
ifdef NS_USE_GCC
CC = gcc
CCC = g++
else
CC = $(NSDEPTH)/build/hcc cc -Xa -KGnum=0 -KOlimit=4000
CCC = g++
endif
MKSHLIB = $(LD) $(DSO_LDOPTS)
RANLIB = /bin/true
DEFINES += -D_PR_LOCAL_THREADS_ONLY
OS_CFLAGS = $(ODD_CFLAGS) -DSVR4 -D__SVR4 -DNEC -Dnec_ews -DHAVE_STRERROR
OS_LIBS = -lsocket -lnsl -ldl $(LDOPTIONS)
LDOPTIONS = -lc -L/usr/ucblib -lucb
NOSUCHFILE = /no-such-file
DSO_LDOPTS = -G

View File

@@ -0,0 +1,74 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
######################################################################
# Config stuff for Sony NEWS-OS
######################################################################
######################################################################
# Version-independent
######################################################################
include $(MOD_DEPTH)/config/UNIX.mk
ARCH := sony
CPU_ARCH := mips
CC = cc
CCC = CC
RANLIB = /bin/true
OS_INCLUDES = -I/usr/include
G++INCLUDES =
#OS_LIBS = -lsocket -lnsl -lgen -lresolv
PLATFORM_FLAGS = -Xa -fullwarn -DSONY
PORT_FLAGS = -DSYSV -DSVR4 -D__svr4 -D__svr4__ -D_PR_LOCAL_THREADS_ONLY -DHAVE_SVID_GETTOD
OS_CFLAGS = $(PLATFORM_FLAGS) $(PORT_FLAGS)
######################################################################
# Version-specific stuff
######################################################################
######################################################################
# Overrides for defaults in config.mk (or wherever)
######################################################################
######################################################################
# Other
######################################################################
MKSHLIB = $(LD) $(DSO_LDOPTS)
DSO_LDOPTS = -G

View File

@@ -0,0 +1,68 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# Config stuff for NEXTSTEP
#
include $(MOD_DEPTH)/config/UNIX.mk
CC = cc
CCC = cc++
RANLIB = ranlib
OS_REL_CFLAGS = -D$(shell uname -p)
CPU_ARCH := $(shell uname -p)
# "Commons" are tentative definitions in a global scope, like this:
# int x;
# The meaning of a common is ambiguous. It may be a true definition:
# int x = 0;
# or it may be a declaration of a symbol defined in another file:
# extern int x;
# Use the -fno-common option to force all commons to become true
# definitions so that the linker can catch multiply-defined symbols.
# Also, common symbols are not allowed with Rhapsody dynamic libraries.
OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -Wall -fno-common -pipe -DNEXTSTEP -DHAVE_STRERROR -DHAVE_BSD_FLOCK -D_POSIX_SOURCE -traditional-cpp -posix
DEFINES += -D_PR_LOCAL_THREADS_ONLY
ARCH = $(CPU_ARCH)
# May override this with -bundle to create a loadable module.
#DSO_LDOPTS = -dynamiclib
#MKSHLIB = $(CC) -arch $(CPU_ARCH) $(DSO_LDOPTS)
DLL_SUFFIX = dylib

View File

@@ -0,0 +1,90 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1999-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
######################################################################
# Config stuff for Neutrino
######################################################################
include $(MOD_DEPTH)/config/UNIX.mk
#
# XXX
# Temporary define for the Client; to be removed when binary release is used
#
ifdef MOZILLA_CLIENT
ifneq ($(USE_PTHREADS),1)
CLASSIC_NSPR = 1
endif
endif
#
# The default implementation strategy for Linux is pthreads.
#
ifeq ($(CLASSIC_NSPR),1)
IMPL_STRATEGY = _EMU
DEFINES += -D_PR_LOCAL_THREADS_ONLY
else
USE_PTHREADS = 1
IMPL_STRATEGY = _PTH
DEFINES += -D_REENTRANT
endif
AR = qcc -Vgcc_ntox86 -M -a $@
CC = qcc -Vgcc_ntox86
LD = $(CC)
CCC = $(CC)
# Old Flags -DNO_REGEX -DSTRINGS_ALIGNED
OS_CFLAGS = -Wc,-Wall -Wc,-Wno-parentheses -DNTO \
-D_QNX_SOURCE -DHAVE_POINTER_LOCALTIME_R -shared
COMPILER_TAG = _qcc
MKSHLIB = qcc -Vgcc_ntox86 -shared -Wl,-h$(@:$(OBJDIR)/%.so=%.so) -M
RANLIB = ranlib
G++INCLUDES =
OS_LIBS =
EXTRA_LIBS = -lsocket
ifdef BUILD_OPT
OPTIMIZER = -O1
else
OPTIMIZER = -O1 -gstabs
endif
NOSUCHFILE = /no-such-file
GARBAGE += *.map

View File

@@ -0,0 +1,89 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# Config stuff for NetBSD
#
include $(MOD_DEPTH)/config/UNIX.mk
CC = gcc
CCC = g++
RANLIB = ranlib
ifndef OBJECT_FMT
OBJECT_FMT := $(shell if echo __ELF__ | $${CC:-cc} -E - | grep -q __ELF__ ; then echo a.out ; else echo ELF ; fi)
endif
OS_REL_CFLAGS =
ifeq (86,$(findstring 86,$(OS_TEST)))
CPU_ARCH = x86
else
CPU_ARCH = $(OS_TEST)
endif
OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -pipe -DNETBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
ifeq ($(USE_PTHREADS),1)
OS_LIBS = -lc_r
# XXX probably should define _THREAD_SAFE too.
else
OS_LIBS = -lc
DEFINES += -D_PR_LOCAL_THREADS_ONLY
endif
ARCH = netbsd
ifeq ($(OBJECT_FMT),ELF)
DLL_SUFFIX = so
else
DLL_SUFFIX = so.1.0
# XXX work around a bug in the a.out ld(1).
OS_LIBS =
endif
DSO_CFLAGS = -fPIC -DPIC
DSO_LDOPTS = -shared
ifeq ($(OBJECT_FMT),ELF)
DSO_LDOPTS +=-Wl,-soname,lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)
endif
ifdef LIBRUNPATH
#DSO_LDOPTS += -R$(LIBRUNPATH)
DSO_LDOPTS += -Wl,-R$(LIBRUNPATH)
endif
#MKSHLIB = $(LD) $(DSO_LDOPTS)
MKSHLIB = $(CC) $(DSO_LDOPTS)
G++INCLUDES = -I/usr/include/g++

View File

@@ -0,0 +1,171 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# Configuration common to all (supported) versions of OS/2
#
# OS_CFLAGS is the command line options for the compiler when
# building the .DLL object files.
# OS_EXE_CFLAGS is the command line options for the compiler
# when building the .EXE object files; this is for the test
# programs.
# the macro OS_CFLAGS is set to OS_EXE_CFLAGS inside of the
# makefile for the pr/tests directory. ... Hack.
# Specify toolset. Default to EMX.
ifeq ($(MOZ_OS2_TOOLS),VACPP)
XP_OS2_VACPP = 1
else
ifeq ($(MOZ_OS2_TOOLS),PGCC)
XP_OS2_EMX = 1
else
MOZ_OS2_TOOLS = EMX
XP_OS2_EMX = 1
endif
endif
ifeq ($(XP_OS2_EMX),1)
MOZ_EMXTAG = $(subst .,,$(MOZ_OS2_EMX_OBJECTFORMAT))
endif
#
# On OS/2 we proudly support gbash...
#
SHELL := GBASH.EXE
CC = icc -q -DXP_OS2 -N10
CCC = icc -q -DXP_OS2 -DOS2=4 -N10
LINK = -ilink
AR = -ilib /noignorecase /nologo /Out:$(subst /,\\,$@)
RANLIB = @echo RANLIB
BSDECHO = @echo BSDECHO
STRIP = @echo STRIP
NSINSTALL = nsinstall
INSTALL = $(NSINSTALL)
MAKE_OBJDIR = if test ! -d $(OBJDIR); then mkdir $(OBJDIR); fi
IMPLIB = implib -nologo -noignorecase
FILTER = cppfilt -b -p -q
RC = rc.exe
GARBAGE =
XP_DEFINE = -DXP_PC
LIB_SUFFIX = lib
DLL_SUFFIX = dll
OBJ_SUFFIX = obj
OS_CFLAGS = -W3 -Wcnd- -gm -gd+ -sd- -su4 -ge- -Mp
OS_EXE_CFLAGS = -W3 -Wcnd- -gm -gd+ -sd- -su4 -Mp
AR_EXTRA_ARGS =
ifdef BUILD_OPT
OPTIMIZER = -O+ -Oi
DEFINES = -UDEBUG -U_DEBUG -DNDEBUG
DLLFLAGS = -DLL -OUT:$@ -MAP:$(@:.dll=.map)
EXEFLAGS = -PMTYPE:VIO -OUT:$@ -MAP:$(@:.exe=.map) -nologo -NOE
OBJDIR_TAG = _OPT
else
OPTIMIZER = -Ti+ -DE
DEFINES = -DDEBUG -D_DEBUG -DDEBUGPRINTS
DLLFLAGS = -DEBUG -DLL -OUT:$@ -MAP:$(@:.dll=.map)
EXEFLAGS = -DEBUG -PMTYPE:VIO -OUT:$@ -MAP:$(@:.exe=.map) -nologo -NOE
OBJDIR_TAG = _DBG
LDFLAGS = -DEBUG
endif
DEFINES += -DOS2=4
DEFINES += -D_X86_
DEFINES += -D_PR_GLOBAL_THREADS_ONLY -DBSD_SELECT
# Name of the binary code directories
ifdef MOZ_LITE
OBJDIR_NAME = $(subst OS2,NAV,$(OS_CONFIG))_$(MOZ_OS2_TOOLS)$(MOZ_EMXTAG)$(OBJDIR_TAG).OBJ
else
OBJDIR_NAME = $(OS_CONFIG)_$(MOZ_OS2_TOOLS)$(MOZ_EMXTAG)$(OBJDIR_TAG).OBJ
endif
OS_DLLFLAGS = -nologo -DLL -FREE -NOE
ifdef XP_OS2_VACPP
OS_LIBS = so32dll.lib tcp32dll.lib
DEFINES += -DXP_OS2_VACPP -DTCPV40HDRS
else
CC = gcc
CCC = gcc
LINK = gcc
RC = rc.exe
FILTER = emxexp
IMPLIB = emximp -o
# Determine which object format to use. Two choices:
# a.out and omf. We default to omf.
ifeq ($(MOZ_OS2_EMX_OBJECTFORMAT), A.OUT)
AR = ar -q $@
LIB_SUFFIX = a
else
OMF_FLAG = -Zomf
AR = emxomfar r $@
LIB_SUFFIX = lib
endif
OS_LIBS = -lsocket -lemxio
DEFINES += -DXP_OS2 -DXP_OS2_EMX -DOS2EMX_PLAIN_CHAR
OS_CFLAGS = $(OMF_FLAG) -Wall -Wno-unused -Zmtd
OS_EXE_CFLAGS = $(OMF_FLAG) -Wall -Wno-unused -Zmtd
OS_DLLFLAGS = $(OMF_FLAG) -Zmt -Zdll -Zcrtdll -o $@
ifeq ($(MOZ_OS2_EMX_OBJECTFORMAT),OMF)
EXEFLAGS += -Zlinker /DE
endif
ifdef BUILD_OPT
OPTIMIZER = -O3
DLLFLAGS =
EXEFLAGS = -Zmtd -o $@
else
OPTIMIZER = -g #-s
DLLFLAGS = -g #-s
EXEFLAGS = -g $(OMF_FLAG) -Zmtd -L$(DIST)/lib -o $@ # -s
ifeq ($(MOZ_OS2_EMX_OBJECTFORMAT),OMF)
EXEFLAGS += -Zlinker /DE
endif
endif
AR_EXTRA_ARGS =
endif

View File

@@ -0,0 +1,122 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# Config stuff for DEC OSF/1
#
#
# The Bourne shell (sh) on OSF1 doesn't handle "set -e" correctly,
# which we use to stop LOOP_OVER_DIRS submakes as soon as any
# submake fails. So we use the Korn shell instead.
#
SHELL := /usr/bin/ksh
include $(MOD_DEPTH)/config/UNIX.mk
#
# XXX
# Temporary define for the Client; to be removed when binary release is used
#
ifdef MOZILLA_CLIENT
ifneq ($(USE_PTHREADS),1)
CLASSIC_NSPR = 1
endif
endif
#
# Prior to OSF1 V4.0, classic nspr is the default (and only) implementation
# strategy.
#
# On OSF1 V4.0, pthreads is the default implementation strategy.
# Classic nspr is also available.
#
ifeq (,$(filter-out V2.0 V3.2,$(OS_RELEASE)))
CLASSIC_NSPR = 1
endif
ifeq ($(CLASSIC_NSPR), 1)
IMPL_STRATEGY = _EMU
DEFINES += -D_PR_LOCAL_THREADS_ONLY
else
USE_PTHREADS = 1
IMPL_STRATEGY = _PTH
endif
CC = cc $(NON_LD_FLAGS) -std1
ifneq ($(OS_RELEASE),V2.0)
CC += -readonly_strings
endif
# The C++ compiler cxx has -readonly_strings on by default.
CCC = cxx
RANLIB = /bin/true
CPU_ARCH = alpha
ifdef BUILD_OPT
OPTIMIZER += -Olimit 4000
endif
NON_LD_FLAGS = -ieee_with_inexact
OS_CFLAGS = -DOSF1 -D_REENTRANT
ifneq (,$(filter-out V2.0 V3.2,$(OS_RELEASE)))
OS_CFLAGS += -DOSF1_HAVE_MACHINE_BUILTINS_H
endif
ifneq (,$(filter-out V2.0 V3.2,$(OS_RELEASE)))
OS_CFLAGS += -DHAVE_FCNTL_FILE_LOCKING
endif
ifeq (,$(filter-out V2.0 V3.2,$(OS_RELEASE)))
OS_CFLAGS += -DHAVE_INT_LOCALTIME_R
else
OS_CFLAGS += -DHAVE_POINTER_LOCALTIME_R
endif
ifeq (,$(filter-out V4.0%,$(OS_RELEASE)))
OS_CFLAGS += -DOSF1V4_MAP_PRIVATE_BUG
endif
ifeq ($(USE_PTHREADS),1)
OS_CFLAGS += -pthread
ifneq (,$(filter-out V2.0 V3.2,$(OS_RELEASE)))
OS_CFLAGS += -D_PR_HAVE_THREADSAFE_GETHOST
endif
endif
# The command to build a shared library on OSF1.
MKSHLIB = ld -shared -all -expect_unresolved "*" -soname $(notdir $@)
DSO_LDOPTS = -shared

View File

@@ -0,0 +1,78 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# Config stuff for OpenBSD
#
include $(MOD_DEPTH)/config/UNIX.mk
CC = gcc
CCC = g++
RANLIB = ranlib
OS_REL_CFLAGS =
ifeq (86,$(findstring 86,$(OS_TEST)))
CPU_ARCH = x86
else
CPU_ARCH = $(OS_TEST)
endif
OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -pipe $(THREAD_FLAG) -DOPENBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
ifeq ($(USE_PTHREADS),1)
THREAD_FLAG += -pthread
# XXX probably should define _THREAD_SAFE too.
else
DEFINES += -D_PR_LOCAL_THREADS_ONLY
endif
ARCH = openbsd
DLL_SUFFIX = so.1.0
DSO_CFLAGS = -fPIC
DSO_LDOPTS = -Bshareable
ifeq ($(OS_TEST),alpha)
DSO_LDOPTS = -shared
endif
ifeq ($(OS_TEST),mips)
DSO_LDOPTS = -shared
endif
ifeq ($(OS_TEST),pmax)
DSO_LDOPTS = -shared
endif
MKSHLIB = $(LD) $(DSO_LDOPTS)
G++INCLUDES = -I/usr/include/g++

View File

@@ -0,0 +1,67 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# Config stuff for Compaq OpenVMS
#
include $(MOD_DEPTH)/config/UNIX.mk
ifdef INTERNAL_TOOLS
CC = c89
CCC = cxx
OPTIMIZER = -O
else
CC = ccc
CCC = ccc
endif
RANLIB = /bin/true
CPU_ARCH_TAG = _$(CPU_ARCH)
OS_CFLAGS = -DVMS -DVMS_AS_IS -Wc,names=\(short,as\) \
-DGENERIC_PTHREAD_REDEFINES -D_SOCKADDR_LEN
OS_CXXFLAGS = -DVMS -DVMS_AS_IS -Wc,names=\(short,as\) \
-DGENERIC_PTHREAD_REDEFINES -D_SOCKADDR_LEN
#
# XCFLAGS are the only CFLAGS that are used during a link operation. Defining
# OPTIMIZER in XCFLAGS means that each compilation line gets OPTIMIZER
# included twice, but at least we get OPTIMIZER included in the link
# operations; and OpenVMS needs it!
#
XCFLAGS += $(OPTIMIZER)
# The command to build a shared library in POSIX on OpenVMS.
MKSHLIB = vmsld $(OPTIMIZER)

View File

@@ -0,0 +1,57 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
######################################################################
# Config stuff for QNX.
######################################################################
include $(MOD_DEPTH)/config/UNIX.mk
CPU_ARCH = x86
ifndef NS_USE_GCC
CC = cc
CCC = cc
endif
RANLIB = true
G++INCLUDES =
OS_LIBS =
XLDOPTS = -lunix
OS_CFLAGS = -DQNX -Di386 -D_PR_LOCAL_THREADS_ONLY -D_PR_NEED_H_ERRNO
#IMPL_STRATEGY = _EMU
NOSUCHFILE = /no-such-file
GARBAGE = $(wildcard *.err)

View File

@@ -0,0 +1,83 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# Config stuff for Rhapsody
#
include $(MOD_DEPTH)/config/UNIX.mk
#
# The default implementation strategy for Rhapsody is pthreads.
#
ifeq ($(CLASSIC_NSPR),1)
IMPL_STRATEGY = _EMU
DEFINES += -D_PR_LOCAL_THREADS_ONLY
else
USE_PTHREADS = 1
IMPL_STRATEGY = _PTH
endif
CC = cc
CCC = c++
RANLIB = ranlib
ifeq (86,$(findstring 86,$(OS_TEST)))
OS_REL_CFLAGS = -mno-486 -Di386
CPU_ARCH = i386
else
OS_REL_CFLAGS = -Dppc
CPU_ARCH = ppc
endif
# "Commons" are tentative definitions in a global scope, like this:
# int x;
# The meaning of a common is ambiguous. It may be a true definition:
# int x = 0;
# or it may be a declaration of a symbol defined in another file:
# extern int x;
# Use the -fno-common option to force all commons to become true
# definitions so that the linker can catch multiply-defined symbols.
# Also, common symbols are not allowed with Rhapsody dynamic libraries.
OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -Wmost -fno-common -pipe -DRHAPSODY -DHAVE_STRERROR -DHAVE_BSD_FLOCK
ARCH = rhapsody
# May override this with -bundle to create a loadable module.
DSO_LDOPTS = -dynamiclib -compatibility_version 1 -current_version 1 -all_load
MKSHLIB = $(CC) -arch $(CPU_ARCH) $(DSO_LDOPTS)
DLL_SUFFIX = dylib
G++INCLUDES = -I/usr/include/g++

View File

@@ -0,0 +1,63 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# Config stuff for SCO OpenServer for x86.
# SCO OpenServer 5, based on SVR3.2, is intended for small to
# medium customers.
#
include $(MOD_DEPTH)/config/UNIX.mk
CC = cc -b elf -KPIC
CCC = $(NSDEPTH)/build/hcpp CC +.cpp +w
RANLIB = /bin/true
DEFINES += -D_PR_LOCAL_THREADS_ONLY
#
# -DSCO - Changes to Netscape source (consistent with AIX, LINUX, etc..)
# -Dsco - Needed for /usr/include/X11/*
#
OS_CFLAGS = -DSYSV -D_SVID3 -DHAVE_STRERROR -D_PR_NEED_H_ERRNO -DSCO -Dsco
#OS_LIBS = -lpmapi -lsocket -lc
MKSHLIB = $(LD) $(DSO_LDOPTS)
CPU_ARCH = x86
ARCH = sco
NOSUCHFILE = /no-such-file
BSDECHO = /bin/echo
DSO_LDOPTS = -b elf -G

View File

@@ -0,0 +1,108 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# Config stuff for SNI SINIX (aka ReliantUNIX)
#
include $(MOD_DEPTH)/config/UNIX.mk
ifeq (86,$(findstring 86,$(OS_TEST)))
CPU_ARCH = x86
else
CPU_ARCH = mips
endif
CPU_ARCH_TAG = _$(CPU_ARCH)
# use gcc -tf-
NS_USE_GCC = 1
ifeq ($(NS_USE_GCC),1)
## gcc-2.7.2 homebrewn
CC = gcc
COMPILER_TAG = _gcc
CCC = g++
AS = $(CC) -x assembler-with-cpp
ifeq ($(CPU_ARCH),mips)
LD = gld
endif
ODD_CFLAGS = -Wall -Wno-format
ifeq ($(CPU_ARCH),mips)
# The -pipe flag only seems to work on the mips version of SINIX.
ODD_CFLAGS += -pipe
endif
ifdef BUILD_OPT
OPTIMIZER = -O
#OPTIMIZER = -O6
endif
MKSHLIB = $(LD) -G -z defs -h $(@:$(OBJDIR)/%.so=%.so)
#DSO_LDOPTS = -G -Xlinker -Blargedynsym
else
## native compiler (CDS++ 1.0)
CC = /usr/bin/cc
CCC = /usr/bin/CC
AS = /usr/bin/cc
#ODD_CFLAGS = -fullwarn -xansi
ODD_CFLAGS =
ifdef BUILD_OPT
#OPTIMIZER = -Olimit 4000
OPTIMIZER = -O -F Olimit,4000
endif
MKSHLIB = $(LD) -G -z defs -h $(@:$(OBJDIR)/%.so=%.so)
#DSO_LDOPTS = -G -W l,-Blargedynsym
endif
ifeq ($(CPU_ARCH),x86)
DEFINES += -Di386
endif
ODD_CFLAGS += -DSVR4 -DSNI -DRELIANTUNIX -Dsinix -DHAVE_SVID_GETTOD
# On SINIX 5.43, need to define IP_MULTICAST in order to get the
# IP multicast macro and struct definitions in netinet/in.h.
# (SINIX 5.42 does not have IP multicast at all.)
ifeq ($(OS_RELEASE),5.43)
ODD_CFLAGS += -DIP_MULTICAST
endif
RANLIB = /bin/true
# For purify
NOMD_OS_CFLAGS = $(ODD_CFLAGS)
# we do not have -MDupdate ...
OS_CFLAGS = $(NOMD_OS_CFLAGS)
OS_LIBS = -lsocket -lnsl -lresolv -ldl -lc
NOSUCHFILE = /no-such-file
DEFINES += -D_PR_LOCAL_THREADS_ONLY

View File

@@ -0,0 +1,42 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# Config stuff for SunOS.
# 4 and 5 are vastly different, so we use 2 different files.
#
ifeq ($(basename $(OS_RELEASE)),4.1)
include $(MOD_DEPTH)/config/SunOS4.mk
else
include $(MOD_DEPTH)/config/SunOS5.mk
endif

View File

@@ -0,0 +1,68 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# Config stuff for SunOS4.1
#
include $(MOD_DEPTH)/config/UNIX.mk
# SunOS 4 _requires_ that shared libs have a version number.
# XXX FIXME: Version number should use NSPR_VERSION_NUMBER?
DLL_SUFFIX = so.1.0
CC = gcc
CCC = g++
COMPILER_TAG = _gcc
RANLIB = ranlib
CPU_ARCH = sparc
DEFINES += -D_PR_LOCAL_THREADS_ONLY
# Purify doesn't like -MDupdate
NOMD_OS_CFLAGS = -Wall -Wno-format -DSUNOS4
ifdef NO_MDUPDATE
OS_CFLAGS = $(DSO_CFLAGS) $(NOMD_OS_CFLAGS)
else
OS_CFLAGS = $(DSO_CFLAGS) $(NOMD_OS_CFLAGS) -MDupdate $(DEPENDENCIES)
endif
MKSHLIB = $(LD) $(DSO_LDOPTS)
NOSUCHFILE = /no-such-file
DSO_LDOPTS =
# -fPIC generates position-independent code for use in a shared library.
DSO_CFLAGS = -fPIC

View File

@@ -0,0 +1,196 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# Config stuff for SunOS 5.x on sparc and x86
#
include $(MOD_DEPTH)/config/UNIX.mk
#
# XXX
# Temporary define for the Client; to be removed when binary release is used
#
ifdef MOZILLA_CLIENT
ifneq ($(USE_PTHREADS),1)
LOCAL_THREADS_ONLY = 1
endif
ifndef NS_USE_NATIVE
NS_USE_GCC = 1
endif
endif
#
# The default implementation strategy on Solaris is pthreads.
# Global threads only and local threads only are also available.
#
ifeq ($(GLOBAL_THREADS_ONLY),1)
IMPL_STRATEGY = _NATIVE
DEFINES += -D_PR_GLOBAL_THREADS_ONLY
else
ifeq ($(LOCAL_THREADS_ONLY),1)
IMPL_STRATEGY = _EMU
DEFINES += -D_PR_LOCAL_THREADS_ONLY
else
USE_PTHREADS = 1
IMPL_STRATEGY = _PTH
endif
endif
ifdef NS_USE_GCC
CC = gcc -Wall
CCC = g++ -Wall
ASFLAGS += -Wa,-P
COMPILER_TAG = _gcc
ifdef NO_MDUPDATE
OS_CFLAGS = $(NOMD_OS_CFLAGS)
else
OS_CFLAGS = $(NOMD_OS_CFLAGS) -MDupdate $(DEPENDENCIES)
endif
else
CC = cc -xstrconst
CCC = CC -Qoption cg -xstrconst
ASFLAGS += -Wa,-P
OS_CFLAGS = $(NOMD_OS_CFLAGS)
#
# If we are building for a release, we want to put all symbol
# tables in the debug executable or share library instead of
# the .o files, so that our clients can run dbx on the debug
# library without having the .o files around.
#
ifdef BUILD_NUMBER
ifndef BUILD_OPT
OS_CFLAGS += -xs
endif
endif
endif
ifeq ($(USE_64),1)
ifndef INTERNAL_TOOLS
ifndef NS_USE_GCC
CC += -xarch=v9
CCC += -xarch=v9
endif
endif
COMPILER_TAG = _64
else
COMPILER_TAG = _32
endif
RANLIB = echo
OS_DEFINES = -DSVR4 -DSYSV -D__svr4 -D__svr4__ -DSOLARIS -DHAVE_FCNTL_FILE_LOCKING
ifeq ($(OS_TEST),i86pc)
CPU_ARCH = x86
OS_DEFINES += -Di386
# The default debug format, DWARF (-g), is not supported by gcc
# on i386-ANY-sysv4/solaris, but the stabs format is. It is
# assumed that the Solaris assembler /usr/ccs/bin/as is used.
# If your gcc uses GNU as, you do not need the -Wa,-s option.
ifndef BUILD_OPT
ifdef NS_USE_GCC
OPTIMIZER = -Wa,-s -gstabs
endif
endif
else
CPU_ARCH = sparc
endif
CPU_ARCH_TAG = _$(CPU_ARCH)
ifeq (5.5,$(findstring 5.5,$(OS_RELEASE)))
OS_DEFINES += -DSOLARIS2_5
else
ifeq (,$(filter-out 5.3 5.4,$(OS_RELEASE)))
OS_DEFINES += -D_PR_NO_LARGE_FILES
else
OS_DEFINES += -D_PR_HAVE_OFF64_T
# The lfcompile64(5) man page on Solaris 2.6 says:
# For applications that do not wish to conform to the POSIX or
# X/Open specifications, the 64-bit transitional interfaces
# are available by default. No compile-time flags need to be
# set.
# But gcc 2.7.2.x fails to define _LARGEFILE64_SOURCE by default.
# The native compiler, gcc 2.8.x, and egcs don't have this problem.
ifdef NS_USE_GCC
OS_DEFINES += -D_LARGEFILE64_SOURCE
endif
endif
endif
ifneq ($(LOCAL_THREADS_ONLY),1)
OS_DEFINES += -D_REENTRANT -DHAVE_POINTER_LOCALTIME_R
endif
# Purify doesn't like -MDupdate
NOMD_OS_CFLAGS = $(DSO_CFLAGS) $(OS_DEFINES) $(SOL_CFLAGS)
MKSHLIB = $(LD) $(DSO_LDOPTS)
# ld options:
# -G: produce a shared object
# -z defs: no unresolved symbols allowed
DSO_LDOPTS = -G -h $(notdir $@)
# -KPIC generates position independent code for use in shared libraries.
# (Similarly for -fPIC in case of gcc.)
ifdef NS_USE_GCC
DSO_CFLAGS = -fPIC
else
DSO_CFLAGS = -KPIC
endif
NOSUCHFILE = /no-such-file
#
# Library of atomic functions for UltraSparc systems
#
# The nspr makefiles build ULTRASPARC_LIBRARY (which contains assembly language
# implementation of the nspr atomic functions for UltraSparc systems) in addition
# to libnspr.so. (The actual name of the library is
# lib$(ULTRASPARC_LIBRARY)$(MOD_VERSION).so
#
# The actual name of the filter-library, recorded in libnspr.so, is set to the
# value of $(ULTRASPARC_FILTER_LIBRARY).
# For an application to use the assembly-language implementation, a link should be
# made so that opening ULTRASPARC_FILTER_LIBRARY results in opening
# ULTRASPARC_LIBRARY. This indirection requires the user to explicitly set up
# library for use on UltraSparc systems, thereby helping to avoid using it by
# accident on non-UltraSparc systems.
# The directory containing the ultrasparc libraries should be in LD_LIBRARY_PATH.
#
ifeq ($(OS_TEST),sun4u)
ULTRASPARC_LIBRARY = ultrasparc
ULTRASPARC_FILTER_LIBRARY = libatomic.so
DSO_LDOPTS += -f $(ULTRASPARC_FILTER_LIBRARY)
endif

View File

@@ -0,0 +1,92 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
PR_UNIXOS = 1
XP_DEFINE = -DXP_UNIX
OBJ_SUFFIX = o
LIB_SUFFIX = a
DLL_SUFFIX = so
AR = ar cr $@
STRIP = true
ifdef BUILD_OPT
OPTIMIZER = -O
DEFINES = -UDEBUG -DNDEBUG
OBJDIR_TAG = _OPT
else
OPTIMIZER = -g
DEFINES = -DDEBUG -UNDEBUG -DDEBUG_$(shell whoami)
OBJDIR_TAG = _DBG
endif
# Name of the binary code directories
ifdef MOZILLA_CLIENT
OBJDIR_NAME = $(OS_CONFIG)$(CPU_ARCH_TAG)$(OBJDIR_TAG).OBJ
else
OBJDIR_NAME = $(OS_CONFIG)$(CPU_ARCH_TAG)$(COMPILER_TAG)$(IMPL_STRATEGY)$(OBJDIR_TAG).OBJ
endif
MKDEPEND_DIR = $(DEPTH)/config/mkdepend
MKDEPEND = $(MKDEPEND_DIR)/$(OBJDIR_NAME)/mkdepend
MKDEPENDENCIES = $(OBJDIR)/depend.mk
####################################################################
#
# One can define the makefile variable NSDISTMODE to control
# how files are published to the 'dist' directory. If not
# defined, the default is "install using relative symbolic
# links". The two possible values are "copy", which copies files
# but preserves source mtime, and "absolute_symlink", which
# installs using absolute symbolic links. The "absolute_symlink"
# option requires NFSPWD.
#
####################################################################
NSINSTALL = $(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall
ifeq ($(NSDISTMODE),copy)
# copy files, but preserve source mtime
INSTALL = $(NSINSTALL) -t
else
ifeq ($(NSDISTMODE),absolute_symlink)
# install using absolute symbolic links
INSTALL = $(NSINSTALL) -L `$(NFSPWD)`
else
# install using relative symbolic links
INSTALL = $(NSINSTALL) -R
endif
endif
define MAKE_OBJDIR
if test ! -d $(@D); then rm -rf $(@D); $(NSINSTALL) -D $(@D); else true; fi
endef

View File

@@ -0,0 +1,71 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# Config stuff for SCO UnixWare
# UnixWare is intended for high-end enterprise customers.
# UnixWare 2.1 and 2.1.1 are based on SVR4. (2.1.2 is a maintenance
# release.)
# UnixWare 7 (codename Gemini) is based on what SCO calls SVR5.
# The somewhat odd version number 7 was chosen to suggest that
# UnixWare 2 + OpenServer 5 = UnixWare 7
#
include $(MOD_DEPTH)/config/UNIX.mk
ifeq (,$(filter-out 2.1,$(OS_RELEASE)))
CC = $(NSDEPTH)/build/hcc cc
CCC = $(NSDEPTH)/build/hcpp CC
else
CC = cc
CCC = CC
endif
RANLIB = true
DEFINES += -D_PR_LOCAL_THREADS_ONLY
OS_CFLAGS = -DSVR4 -DSYSV -DUNIXWARE
ifeq (,$(filter-out 2.1,$(OS_RELEASE)))
OS_CFLAGS += -D_PR_NO_LARGE_FILES
else
OS_CFLAGS += -D_LARGEFILE64_SOURCE -D_PR_HAVE_OFF64_T -D_PR_HAVE_SOCKADDR_LEN
endif
MKSHLIB = $(LD) $(DSO_LDOPTS)
DSO_LDOPTS = -G
CPU_ARCH = x86
ARCH = sco
NOSUCHFILE = /no-such-file

View File

@@ -0,0 +1,176 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# Configuration common to all versions of Windows NT
# and Windows 95.
#
#
# Client build: make sure we use the shmsdos.exe under $(MOZ_TOOLS).
# $(MOZ_TOOLS_FLIPPED) is $(MOZ_TOOLS) with all the backslashes
# flipped, so that gmake won't interpret them as escape characters.
#
ifdef PR_CLIENT_BUILD_WINDOWS
SHELL := $(MOZ_TOOLS_FLIPPED)/bin/shmsdos.exe
endif
CC = cl
CCC = cl
LINK = link
AR = lib -NOLOGO -OUT:"$@"
RANLIB = echo
BSDECHO = echo
STRIP = echo
NSINSTALL = nsinstall
INSTALL = $(NSINSTALL)
define MAKE_OBJDIR
if test ! -d $(@D); then rm -rf $(@D); $(NSINSTALL) -D $(@D); fi
endef
RC = rc.exe
GARBAGE = $(OBJDIR)/vc20.pdb $(OBJDIR)/vc40.pdb
XP_DEFINE = -DXP_PC
OBJ_SUFFIX = obj
LIB_SUFFIX = lib
DLL_SUFFIX = dll
OS_CFLAGS = -W3 -nologo -GF -Gy
ifdef BUILD_OPT
OS_CFLAGS += -MD
OPTIMIZER = -O2
DEFINES = -UDEBUG -U_DEBUG -DNDEBUG
DLLFLAGS = -OUT:"$@"
OBJDIR_TAG = _OPT
# Add symbolic information for use by a profiler
ifdef MOZ_PROFILE
OPTIMIZER += -Z7
DLLFLAGS += -DEBUG -DEBUGTYPE:CV
LDFLAGS += -DEBUG -DEBUGTYPE:CV
endif
else
#
# Define USE_DEBUG_RTL if you want to use the debug runtime library
# (RTL) in the debug build
#
ifdef USE_DEBUG_RTL
OS_CFLAGS += -MDd
else
OS_CFLAGS += -MD
endif
OPTIMIZER = -Od -Z7
#OPTIMIZER = -Zi -Fd$(OBJDIR)/ -Od
DEFINES = -DDEBUG -D_DEBUG -UNDEBUG
DLLFLAGS = -DEBUG -DEBUGTYPE:CV -OUT:"$@"
ifdef GLOWCODE
DLLFLAGS = -DEBUG -DEBUGTYPE:both -INCLUDE:_GlowCode -OUT:"$@"
endif
OBJDIR_TAG = _DBG
LDFLAGS = -DEBUG -DEBUGTYPE:CV
#
# When PROFILE=1 is defined, set the compile and link options
# to build targets for use by the ms-win32 profiler
#
ifdef PROFILE
LDFLAGS += -PROFILE -MAP
DLLFLAGS += -PROFILE -MAP
endif
endif
DEFINES += -DWIN32
#
# On Win95, we use the TlsXXX() interface by default because that
# allows us to load the NSPR DLL dynamically at run time.
# If you want to use static thread-local storage (TLS) for better
# performance, build the NSPR library with USE_STATIC_TLS=1.
#
ifeq ($(USE_STATIC_TLS),1)
DEFINES += -D_PR_USE_STATIC_TLS
endif
#
# NSPR uses both fibers and static thread-local storage
# (i.e., __declspec(thread) variables) on NT. We need the -GT
# flag to turn off certain compiler optimizations so that fibers
# can use static TLS safely.
#
# Also, we optimize for Pentium (-G5) on NT.
#
ifeq ($(OS_TARGET),WINNT)
OS_CFLAGS += -GT
ifeq ($(CPU_ARCH),x86)
OS_CFLAGS += -G5
endif
DEFINES += -DWINNT
else
DEFINES += -DWIN95 -D_PR_GLOBAL_THREADS_ONLY
endif
ifeq ($(CPU_ARCH),x86)
DEFINES += -D_X86_
else
ifeq ($(CPU_ARCH),MIPS)
DEFINES += -D_MIPS_
else
ifeq ($(CPU_ARCH),ALPHA)
DEFINES += -D_ALPHA_=1
else
CPU_ARCH = processor_is_undefined
endif
endif
endif
# Name of the binary code directories
ifeq ($(CPU_ARCH),x86)
CPU_ARCH_TAG =
else
CPU_ARCH_TAG = $(CPU_ARCH)
endif
ifdef USE_DEBUG_RTL
OBJDIR_SUFFIX = OBJD
else
OBJDIR_SUFFIX = OBJ
endif
OBJDIR_NAME = $(OS_CONFIG)$(CPU_ARCH_TAG)$(OBJDIR_TAG).$(OBJDIR_SUFFIX)
OS_DLLFLAGS = -nologo -DLL -SUBSYSTEM:WINDOWS -PDB:NONE

View File

@@ -0,0 +1,38 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# Config stuff for WIN95
#
include $(MOD_DEPTH)/config/WIN32.mk

View File

@@ -0,0 +1,38 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# Config stuff for WINNT
#
include $(MOD_DEPTH)/config/WIN32.mk

View File

@@ -0,0 +1,286 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#######################################################################
# Master "Core Components" macros for getting the OS architecture #
#######################################################################
#
# Important internal static macros
#
OS_ARCH := $(subst /,_,$(shell uname -s))
OS_RELEASE := $(shell uname -r)
OS_TEST := $(shell uname -m)
#
# Tweak the default OS_ARCH and OS_RELEASE macros as needed.
#
ifeq ($(OS_ARCH),AIX)
OS_RELEASE := $(shell uname -v).$(shell uname -r)
endif
ifeq ($(OS_ARCH),BSD_386)
OS_ARCH := BSD_OS
endif
ifeq ($(OS_ARCH),dgux)
OS_ARCH := DGUX
endif
ifeq ($(OS_ARCH),IRIX64)
OS_ARCH := IRIX
endif
ifeq ($(OS_ARCH),UNIX_SV)
ifneq ($(findstring NCR,$(shell grep NCR /etc/bcheckrc | head -1 )),)
OS_ARCH := NCR
else
OS_ARCH := UNIXWARE
OS_RELEASE := $(shell uname -v)
endif
endif
ifeq ($(OS_ARCH),Mac OS)
OS_ARCH := Rhapsody
endif
ifeq ($(OS_ARCH),Darwin)
OS_ARCH := Rhapsody
endif
ifeq ($(OS_ARCH),ncr)
OS_ARCH := NCR
endif
# This is the only way to correctly determine the actual OS version on NCR boxes.
ifeq ($(OS_ARCH),NCR)
OS_RELEASE := $(shell awk '{print $$3}' /etc/.relid | sed 's/^\([0-9]\)\(.\)\(..\)\(.*\)$$/\2.\3/')
endif
ifeq ($(OS_ARCH),UNIX_System_V)
OS_ARCH := NEC
endif
ifneq (,$(findstring POSIX_for_OpenVMS,$(OS_ARCH)))
OS_ARCH := OpenVMS
CPU_ARCH := $(shell uname -Wh)
OS_RELEASE := $(shell uname -v)
endif
ifeq ($(OS_ARCH),QNX)
ifeq ($(OS_RELEASE),6.00)
OS_ARCH := NTO
OS_RELEASE := _$(OS_TEST)$(OS_RELEASE)
else
OS_RELEASE := $(shell uname -v | sed 's/^\([0-9]\)\([0-9]*\)$$/\1.\2/')
endif
endif
ifeq ($(OS_ARCH),SCO_SV)
OS_ARCH := SCOOS
OS_RELEASE := 5.0
endif
ifeq ($(OS_ARCH),SINIX-N)
OS_ARCH := SINIX
endif
ifeq ($(OS_ARCH),SINIX-Y)
OS_ARCH := SINIX
endif
ifeq ($(OS_ARCH),SINIX-Z)
OS_ARCH := SINIX
endif
# SINIX changes name to ReliantUNIX with 5.43
ifeq ($(OS_ARCH),ReliantUNIX-N)
OS_ARCH := SINIX
endif
ifeq ($(OS_ARCH),UnixWare)
OS_ARCH := UNIXWARE
OS_RELEASE := $(shell uname -v)
endif
#
# Handle FreeBSD 2.2-STABLE and Linux 2.0.30-osfmach3
#
ifeq (,$(filter-out Linux FreeBSD,$(OS_ARCH)))
OS_RELEASE := $(shell echo "$(OS_RELEASE)" | sed 's/-.*//')
endif
#
# Distinguish between OSF1 V4.0B and V4.0D
#
ifeq ($(OS_ARCH)$(OS_RELEASE),OSF1V4.0)
OS_VERSION := $(shell uname -v)
ifeq ($(OS_VERSION),564)
OS_RELEASE := V4.0B
endif
ifeq ($(OS_VERSION),878)
OS_RELEASE := V4.0D
endif
endif
#
# Handle uname variants for OS/2.
#
ifeq ($(OS_ARCH),OS_2)
OS_ARCH := OS2
OS_RELEASE := 4.0
endif
#######################################################################
# Master "Core Components" macros for getting the OS target #
#######################################################################
#
# Note: OS_TARGET should be specified on the command line for gmake.
# When OS_TARGET=WIN95 is specified, then a Windows 95 target is built.
# The difference between the Win95 target and the WinNT target is that
# the WinNT target uses Windows NT specific features not available
# in Windows 95. The Win95 target will run on Windows NT, but (supposedly)
# at lesser performance (the Win95 target uses threads; the WinNT target
# uses fibers).
#
# When OS_TARGET=WIN16 is specified, then a Windows 3.11 (16bit) target
# is built. See: win16_3.11.mk for lots more about the Win16 target.
#
# If OS_TARGET is not specified, it defaults to $(OS_ARCH), i.e., no
# cross-compilation.
#
#
# The following hack allows one to build on a WIN95 machine (as if
# s/he were cross-compiling on a WINNT host for a WIN95 target).
# It also accomodates for MKS's uname.exe. If you never intend
# to do development on a WIN95 machine, you don't need this hack.
#
ifeq ($(OS_ARCH),WIN95)
OS_ARCH := WINNT
OS_TARGET := WIN95
endif
ifeq ($(OS_ARCH),Windows_95)
OS_ARCH := Windows_NT
OS_TARGET := WIN95
endif
ifeq ($(OS_ARCH),Windows_98)
OS_ARCH := Windows_NT
OS_TARGET := WIN95
endif
ifeq ($(OS_ARCH),CYGWIN_95-4.0)
OS_ARCH := CYGWIN_NT-4.0
OS_TARGET := WIN95
endif
ifeq ($(OS_ARCH),CYGWIN_98-4.10)
OS_ARCH := CYGWIN_NT-4.0
OS_TARGET := WIN95
endif
ifeq ($(OS_ARCH),OS2)
OS_ARCH := OS2
OS_TARGET := OS2
endif
#
# On WIN32, we also define the variable CPU_ARCH.
#
ifeq ($(OS_ARCH), WINNT)
ifneq ($(subst /,_,$(shell uname -s)),OS_2)
CPU_ARCH := $(shell uname -p)
else
CPU_ARCH := $(shell uname -m)
endif
ifeq ($(CPU_ARCH),I386)
CPU_ARCH = x86
endif
else
#
# If uname -s returns "Windows_NT", we assume that we are using
# the uname.exe in MKS toolkit.
#
# The -r option of MKS uname only returns the major version number.
# So we need to use its -v option to get the minor version number.
# Moreover, it doesn't have the -p option, so we need to use uname -m.
#
ifeq ($(OS_ARCH), Windows_NT)
OS_ARCH = WINNT
OS_MINOR_RELEASE := $(shell uname -v)
ifeq ($(OS_MINOR_RELEASE),00)
OS_MINOR_RELEASE = 0
endif
OS_RELEASE := $(OS_RELEASE).$(OS_MINOR_RELEASE)
CPU_ARCH := $(shell uname -m)
#
# MKS's uname -m returns "586" on a Pentium machine.
#
ifneq (,$(findstring 86,$(CPU_ARCH)))
CPU_ARCH = x86
endif
else
#
# If uname -s returns "CYGWIN_NT-4.0", we assume that we are using
# the uname.exe in the Cygwin tools.
#
ifeq (CYGWIN_NT,$(findstring CYGWIN_NT,$(OS_ARCH)))
OS_RELEASE := $(patsubst CYGWIN_NT-%,%,$(OS_ARCH))
OS_ARCH = WINNT
CPU_ARCH := $(shell uname -m)
#
# Cygwin's uname -m returns "i686" on a Pentium Pro machine.
#
ifneq (,$(findstring 86,$(CPU_ARCH)))
CPU_ARCH = x86
endif
else
#
# Prior to the Beta 20 release, Cygwin was called GNU-Win32.
# If uname -s returns "CYGWIN32/NT", we assume that we are using
# the uname.exe in the GNU-Win32 tools.
#
ifeq ($(OS_ARCH), CYGWIN32_NT)
OS_ARCH = WINNT
CPU_ARCH := $(shell uname -m)
#
# GNU-Win32's uname -m returns "i686" on a Pentium Pro machine.
#
ifneq (,$(findstring 86,$(CPU_ARCH)))
CPU_ARCH = x86
endif
endif
endif
endif
endif
ifndef OS_TARGET
OS_TARGET := $(OS_ARCH)
endif
ifeq ($(OS_TARGET), WIN95)
OS_RELEASE := 4.0
endif
ifeq ($(OS_TARGET), WIN16)
OS_RELEASE :=
# OS_RELEASE := _3.11
endif
OS_CONFIG := $(OS_TARGET)$(OS_RELEASE)

View File

@@ -0,0 +1,112 @@
# -*- Mode: Makefile -*-
INCLUDED_AUTOCONF_MK = 1
USE_AUTOCONF = 1
@SHELL_OVERRIDE@
MOZILLA_CLIENT = @MOZILLA_CLIENT@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
includedir = @includedir@/nspr
libdir = @libdir@
datadir = @datadir@
dist_prefix = @dist_prefix@
dist_bindir = @dist_bindir@
dist_includedir = @dist_includedir@/nspr
dist_libdir = @dist_libdir@
DIST = $(dist_prefix)
RELEASE_OBJDIR_NAME = @RELEASE_OBJDIR_NAME@
OBJDIR_NAME = @OBJDIR_NAME@
OBJDIR = @OBJDIR@
OBJ_SUFFIX = @OBJ_SUFFIX@
LIB_SUFFIX = @LIB_SUFFIX@
DLL_SUFFIX = @DLL_SUFFIX@
ASM_SUFFIX = @ASM_SUFFIX@
MOD_NAME = @NSPR_MODNAME@
MOD_MAJOR_VERSION = @MOD_MAJOR_VERSION@
MOD_MINOR_VERSION = @MOD_MINOR_VERSION@
MOD_REVISION_VERSION = @MOD_REVISION_VERSION@
LIBNSPR = @LIBNSPR@
LIBPLC = @LIBPLC@
CROSS_COMPILE = @CROSS_COMPILE@
BUILD_OPT = @MOZ_OPTIMIZE@
USE_CPLUS = @USE_CPLUS@
USE_IPV6 = @USE_IPV6@
USE_N32 = @USE_N32@
USE_64 = @USE_64@
GC_LEAK_DETECTOR = @GC_LEAK_DETECTOR@
ENABLE_STRIP = @ENABLE_STRIP@
USE_PTHREADS = @USE_PTHREADS@
USE_BTHREADS = @USE_BTHREADS@
PTHREADS_USER = @USE_USER_PTHREADS@
CLASSIC_NSPR = @USE_NSPR_THREADS@
AS = @AS@
ASFLAGS = @ASFLAGS@
CC = @CC@
CCC = @CXX@
NS_USE_GCC = @GNU_CC@
AR = @AR@
AR_FLAGS = @AR_FLAGS@
LD = @LD@
RANLIB = @RANLIB@
PERL = @PERL@
DLLTOOL = @DLLTOOL@
WINDRES = @WINDRES@
RC = @RC@
STRIP = @STRIP@
NSINSTALL = @NSINSTALL@
FILTER = @FILTER@
IMPLIB = @IMPLIB@
OS_CPPFLAGS = @CPPFLAGS@
OS_CFLAGS = $(OS_CPPFLAGS) @CFLAGS@ $(DSO_CFLAGS)
OS_CXXFLAGS = $(OS_CPPFLAGS) @CXXFLAGS@ $(DSO_CFLAGS)
OS_LIBS = @OS_LIBS@
OS_LDFLAGS = @LDFLAGS@
OS_DLLFLAGS = @OS_DLLFLAGS@
DLLFLAGS = @DLLFLAGS@
EXEFLAGS = @EXEFLAGS@
OPTIMIZER = @OPTIMIZER@
MKSHLIB = @MKSHLIB@
DSO_CFLAGS = @DSO_CFLAGS@
DSO_LDOPTS = @DSO_LDOPTS@
RESOLVE_LINK_SYMBOLS = @RESOLVE_LINK_SYMBOLS@
HOST_CC = @HOST_CC@
HOST_CFLAGS = @HOST_CFLAGS@
DEFINES = @DEFINES@ @DEFS@
MDCPUCFG_H = @MDCPUCFG_H@
PR_MD_CSRCS = @PR_MD_CSRCS@
PR_MD_ASFILES = @PR_MD_ASFILES@
PR_MD_ARCH_DIR = @PR_MD_ARCH_DIR@
CPU_ARCH = @CPU_ARCH@
OS_TARGET = @OS_TARGET@
OS_ARCH = @OS_ARCH@
OS_RELEASE = @OS_RELEASE@
OS_TEST = @OS_TEST@
NOSUCHFILE = @NOSUCHFILE@
AIX_LINK_OPTS = @AIX_LINK_OPTS@
MOZ_OBJFORMAT = @MOZ_OBJFORMAT@
ULTRASPARC_LIBRARY = @ULTRASPARC_LIBRARY@
ULTRASPARC_FILTER_LIBRARY = @ULTRASPARC_FILTER_LIBRARY@
OBJECT_MODE = @OBJECT_MODE@
ifdef OBJECT_MODE
export OBJECT_MODE
endif

View File

@@ -0,0 +1,148 @@
#! gmake
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
# Configuration information for building in the NSPR source module
# Define an include-at-most-once-flag
NSPR_CONFIG_MK = 1
#
# The variable definitions in this file are inputs to NSPR's
# build system. This file, if present, is included at the
# beginning of config.mk.
#
# For example:
#
# BUILD_OPT=1
# USE_PTHREADS=1
# NS_USE_GCC=
#
ifndef topsrcdir
topsrcdir=$(MOD_DEPTH)
endif
ifndef srcdir
srcdir=.
endif
NFSPWD = $(MOD_DEPTH)/config/nfspwd
CFLAGS = $(CC_ONLY_FLAGS) $(OPTIMIZER) $(OS_CFLAGS)\
$(XP_DEFINE) $(DEFINES) $(INCLUDES) $(XCFLAGS)
CCCFLAGS = $(CCC_ONLY_FLAGS) $(OPTIMIZER) $(OS_CFLAGS)\
$(XP_DEFINE) $(DEFINES) $(INCLUDES) $(XCFLAGS)
# For purify
NOMD_CFLAGS = $(CC_ONLY_FLAGS) $(OPTIMIZER) $(NOMD_OS_CFLAGS)\
$(XP_DEFINE) $(DEFINES) $(INCLUDES) $(XCFLAGS)
NOMD_CCFLAGS = $(CCC_ONLY_FLAGS) $(OPTIMIZER) $(NOMD_OS_CFLAGS)\
$(XP_DEFINE) $(DEFINES) $(INCLUDES) $(XCFLAGS)
LDFLAGS = $(OS_LDFLAGS)
define MAKE_OBJDIR
if test ! -d $(@D); then rm -rf $(@D); $(NSINSTALL) -D $(@D); fi
endef
LINK_DLL = $(LD) $(OS_DLLFLAGS) $(DLLFLAGS)
ifneq (,$(filter WINNT OS2, $(OS_ARCH)))
INSTALL = $(NSINSTALL)
else
ifeq ($(NSDISTMODE),copy)
# copy files, but preserve source mtime
INSTALL = $(NSINSTALL) -t
else
ifeq ($(NSDISTMODE),absolute_symlink)
# install using absolute symbolic links
INSTALL = $(NSINSTALL) -L `$(NFSPWD)`
else
# install using relative symbolic links
INSTALL = $(NSINSTALL) -R
endif
endif
endif # WINNT || OS2
DEPENDENCIES = $(OBJDIR)/.md
ifdef BUILD_DEBUG_GC
DEFINES += -DDEBUG_GC
endif
GARBAGE += $(DEPENDENCIES) core $(wildcard core.[0-9]*)
DIST_GARBAGE += Makefile
####################################################################
#
# The NSPR-specific configuration
#
####################################################################
DEFINES += -DFORCE_PR_LOG
ifeq ($(_PR_NO_CLOCK_TIMER),1)
DEFINES += -D_PR_NO_CLOCK_TIMER
endif
ifeq ($(USE_PTHREADS), 1)
DEFINES += -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM
endif
ifeq ($(PTHREADS_USER), 1)
DEFINES += -DPTHREADS_USER -UHAVE_CVAR_BUILT_ON_SEM
endif
ifeq ($(USE_IPV6),1)
DEFINES += -D_PR_INET6
endif
####################################################################
#
# Configuration for the release process
#
####################################################################
MDIST = /m/dist
ifeq ($(OS_ARCH),WINNT)
MDIST = //helium/dist
MDIST_DOS = $(subst /,\\,$(MDIST))
endif
# RELEASE_DIR is ns/dist/<module name>
RELEASE_DIR = $(MOD_DEPTH)/dist/release/$(MOD_NAME)
RELEASE_INCLUDE_DIR = $(RELEASE_DIR)/$(BUILD_NUMBER)/$(OBJDIR_NAME)/include
RELEASE_BIN_DIR = $(RELEASE_DIR)/$(BUILD_NUMBER)/$(OBJDIR_NAME)/bin
RELEASE_LIB_DIR = $(RELEASE_DIR)/$(BUILD_NUMBER)/$(OBJDIR_NAME)/lib

View File

@@ -0,0 +1,155 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
/* libc_r.h -- macros, defines, etc. to make using reentrant libc calls */
/* a bit easier. This was initially done for AIX pthreads, */
/* but should be usable for anyone... */
/* Most of these use locally defined space instead of static library space. */
/* Because of this, we use the _INIT_R to declare/allocate space (stack), */
/* and the plain routines to actually do it..._WARNING_: avoid allocating */
/* memory wherever possible. Memory allocation is fairly expensive, at */
/* least on AIX...use arrays instead (which allocate from the stack.) */
/* I know the names are a bit strange, but I wanted to be fairly certain */
/* that we didn't have any namespace corruption...in general, the inits are */
/* R_<name>_INIT_R(), and the actual calls are R_<name>_R(). */
#ifndef _LIBC_R_H
#define _LIBC_R_H
/************/
/* strtok */
/************/
#define R_STRTOK_INIT_R() \
char *r_strtok_r=NULL
#define R_STRTOK_R(return,source,delim) \
return=strtok_r(source,delim,&r_strtok_r)
#define R_STRTOK_NORET_R(source,delim) \
strtok_r(source,delim,&r_strtok_r)
/**************/
/* strerror */
/**************/
#define R_MAX_STRERROR_LEN_R 8192 /* Straight from limits.h */
#define R_STRERROR_INIT_R() \
char r_strerror_r[R_MAX_STRERROR_LEN_R]
#define R_STRERROR_R(val) \
strerror_r(val,r_strerror_r,R_MAX_STRERROR_LEN_R)
/*****************/
/* time things */
/*****************/
#define R_ASCTIME_INIT_R() \
char r_asctime_r[26]
#define R_ASCTIME_R(val) \
asctime_r(val,r_asctime_r)
#define R_CTIME_INIT_R() \
char r_ctime_r[26]
#define R_CTIME_R(val) \
ctime_r(val,r_ctime_r)
#define R_GMTIME_INIT_R() \
struct tm r_gmtime_r
#define R_GMTIME_R(time) \
gmtime_r(time,&r_gmtime_r)
#define R_LOCALTIME_INIT_R() \
struct tm r_localtime_r
#define R_LOCALTIME_R(val) \
localtime_r(val,&r_localtime_r)
/***********/
/* crypt */
/***********/
#include <crypt.h>
#define R_CRYPT_INIT_R() \
CRYPTD r_cryptd_r; \
bzero(&r_cryptd_r,sizeof(CRYPTD))
#define R_CRYPT_R(pass,salt) \
crypt_r(pass,salt,&r_cryptd_r)
/**************/
/* pw stuff */
/**************/
#define R_MAX_PW_LEN_R 1024
/* The following must be after the last declaration, but */
/* before the first bit of code... */
#define R_GETPWNAM_INIT_R(pw_ptr) \
struct passwd r_getpwnam_pw_r; \
char r_getpwnam_line_r[R_MAX_PW_LEN_R]; \
pw_ptr = &r_getpwnam_pw_r
#define R_GETPWNAM_R(name) \
getpwnam_r(name,&r_getpwnam_pw_r,r_getpwnam_line_r,R_MAX_PW_LEN_R)
/*******************/
/* gethost stuff */
/*******************/
#define R_GETHOSTBYADDR_INIT_R() \
struct hostent r_gethostbyaddr_r; \
struct hostent_data r_gethostbyaddr_data_r
#define R_GETHOSTBYADDR_R(addr,len,type,xptr_ent) \
bzero(&r_gethostbyaddr_r,sizeof(struct hostent)); \
bzero(&r_gethostbyaddr_data_r,sizeof(struct hostent_data)); \
xptr_ent = &r_gethostbyaddr_r; \
if (gethostbyaddr_r(addr,len,type, \
&r_gethostbyaddr_r,&r_gethostbyaddr_data_r) == -1) { \
xptr_ent = NULL; \
}
#define R_GETHOSTBYNAME_INIT_R() \
struct hostent r_gethostbyname_r; \
struct hostent_data r_gethostbyname_data_r
#define R_GETHOSTBYNAME_R(name,xptr_ent) \
bzero(&r_gethostbyname_r,sizeof(struct hostent)); \
bzero(&r_gethostbyname_data_r,sizeof(struct hostent_data)); \
xptr_ent = &r_gethostbyname_r; \
if (gethostbyname_r(name, \
&r_gethostbyname_r,&r_gethostbyname_data_r) == -1) { \
xptr_ent = NULL; \
}
#endif /* _LIBC_R_H */

View File

@@ -0,0 +1,40 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# Module description file
#
# A module is also called a component or a subsystem.
MOD_NAME = nspr20
MOD_VERSION = 4

View File

@@ -0,0 +1,46 @@
#! perl
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
require "fastcwd.pl";
$_ = &fastcwd;
if (m@^/[uh]/@o || s@^/tmp_mnt/@/@o) {
print("$_\n");
} elsif ((($user, $rest) = m@^/usr/people/(\w+)/(.*)@o)
&& readlink("/u/$user") eq "/usr/people/$user") {
print("/u/$user/$rest\n");
} else {
chop($host = `hostname`);
print("/h/$host$_\n");
}

View File

@@ -0,0 +1,129 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
#include <stdio.h>
#include <stdlib.h>
#if defined(VMS)
#include <sys/timeb.h>
#elif defined(XP_UNIX) || defined(XP_OS2_EMX) || defined(XP_BEOS)
#include <sys/time.h>
#elif defined(WIN32) || defined(XP_OS2_VACPP)
#include <sys/timeb.h>
#else
#error "Architecture not supported"
#endif
int main(int argc, char **argv)
{
#if defined(OMIT_LIB_BUILD_TIME)
/*
* Some platforms don't have any 64-bit integer type
* such as 'long long'. Because we can't use NSPR's
* PR_snprintf in this program, it is difficult to
* print a static initializer for PRInt64 (a struct).
* So we print nothing. The makefiles that build the
* shared libraries will detect the empty output string
* of this program and omit the library build time
* in PRVersionDescription.
*/
#elif defined(VMS)
long long now;
struct timeb b;
ftime(&b);
now = b.time;
now *= 1000000;
now += (1000 * b.millitm);
fprintf(stdout, "%Ld", now);
#elif defined(XP_UNIX) || defined(XP_OS2_EMX) || defined(XP_BEOS)
long long now;
struct timeval tv;
#ifdef HAVE_SVID_GETTOD
gettimeofday(&tv);
#else
gettimeofday(&tv, NULL);
#endif
now = ((1000000LL) * tv.tv_sec) + (long long)tv.tv_usec;
#if defined(OSF1)
fprintf(stdout, "%ld", now);
#elif defined(BEOS) && defined(__POWERPC__)
fprintf(stdout, "%Ld", now); /* Metroworks on BeOS PPC */
#else
fprintf(stdout, "%lld", now);
#endif
#elif defined(WIN32)
__int64 now;
struct timeb b;
ftime(&b);
now = b.time;
now *= 1000000;
now += (1000 * b.millitm);
fprintf(stdout, "%I64d", now);
#elif defined(XP_OS2_VACPP)
/* no long long or i64 so we use a string */
#include <string.h>
char buf[24];
char tbuf[7];
time_t now;
long mtime;
int i;
struct timeb b;
ftime(&b);
now = b.time;
_ltoa(now, buf, 10);
mtime = b.millitm * 1000;
if (mtime == 0){
++now;
strcat(buf, "000000");
} else {
_ltoa(mtime, tbuf, 10);
for (i = strlen(tbuf); i < 6; ++i)
strcat(buf, "0");
strcat(buf, tbuf);
}
fprintf(stdout, "%s", buf);
#else
#error "Architecture not supported"
#endif
return 0;
} /* main */
/* now.c */

View File

@@ -0,0 +1,583 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
/*
** Netscape portable install command.
**
** Brendan Eich, 7/20/95
*/
#include <stdio.h> /* OSF/1 requires this before grp.h, so put it first */
#include <assert.h>
#include <fcntl.h>
#include <grp.h>
#include <pwd.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <utime.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <errno.h>
#include <stdarg.h>
#ifdef USE_REENTRANT_LIBC
#include "libc_r.h"
#endif /* USE_REENTRANT_LIBC */
#include "pathsub.h"
#define HAVE_FCHMOD
#if defined(BEOS)
#undef HAVE_FCHMOD
#endif
/*
* Does getcwd() take NULL as the first argument and malloc
* the result buffer?
*/
#if !defined(RHAPSODY) && !defined(NEXTSTEP) && !defined(VMS)
#define GETCWD_CAN_MALLOC
#endif
#ifdef NEXTSTEP
#include <bsd/libc.h>
/*
** balazs.pataki@sztaki.hu: The getcwd is broken in NEXTSTEP (returns 0),
** when called on a mounted fs. Did anyone notice this? Here's an ugly
** workaround ...
*/
#define getcwd(b,s) my_getcwd(b,s)
static char *
my_getcwd (char *buf, size_t size)
{
FILE *pwd = popen("pwd", "r");
char *result = fgets(buf, size, pwd);
if (result) {
buf[strlen(buf)-1] = '\0';
}
pclose (pwd);
return buf;
}
#endif /* NEXTSTEP */
#ifdef LINUX
#include <getopt.h>
#endif
#if defined(SCO) || defined(UNIXWARE) || defined(SNI) || defined(NCR) || defined(NEC) || defined(NEXTSTEP)
#if !defined(S_ISLNK) && defined(S_IFLNK)
#define S_ISLNK(a) (((a) & S_IFMT) == S_IFLNK)
#endif
#endif
#if defined(SNI)
extern int fchmod(int fildes, mode_t mode);
#endif
#ifdef QNX
#define d_ino d_stat.st_ino
#endif
static void
usage(void)
{
fprintf(stderr,
"usage: %s [-C cwd] [-L linkprefix] [-m mode] [-o owner] [-g group]\n"
" %*s [-DdltR] file [file ...] directory\n",
program, (int)strlen(program), "");
exit(2);
}
static int
mkdirs(char *path, mode_t mode)
{
char *cp;
struct stat sb;
int res;
while (*path == '/' && path[1] == '/')
path++;
while ((cp = strrchr(path, '/')) && cp[1] == '\0')
*cp = '\0';
if (cp && cp != path) {
*cp = '\0';
if ((stat(path, &sb) < 0 || !S_ISDIR(sb.st_mode)) &&
mkdirs(path, mode) < 0) {
return -1;
}
*cp = '/';
}
res = mkdir(path, mode);
if ((res != 0) && (errno == EEXIST))
return 0;
else
return res;
}
static uid_t
touid(char *owner)
{
struct passwd *pw;
uid_t uid;
char *cp;
pw = getpwnam(owner);
if (pw)
return pw->pw_uid;
uid = strtol(owner, &cp, 0);
if (uid == 0 && cp == owner)
fail("cannot find uid for %s", owner);
return uid;
}
static gid_t
togid(char *group)
{
struct group *gr;
gid_t gid;
char *cp;
gr = getgrnam(group);
if (gr)
return gr->gr_gid;
gid = strtol(group, &cp, 0);
if (gid == 0 && cp == group)
fail("cannot find gid for %s", group);
return gid;
}
int
main(int argc, char **argv)
{
int onlydir, dodir, dolink, dorelsymlink, dotimes, opt, len, lplen, tdlen, bnlen, exists, fromfd, tofd, cc, wc;
mode_t mode = 0755;
char *linkprefix, *owner, *group, *cp, *cwd, *todir, *toname, *name, *base, *linkname, *bp, buf[BUFSIZ];
uid_t uid;
gid_t gid;
struct stat sb, tosb;
struct utimbuf utb;
program = argv[0];
cwd = linkname = linkprefix = owner = group = 0;
onlydir = dodir = dolink = dorelsymlink = dotimes = lplen = 0;
while ((opt = getopt(argc, argv, "C:DdlL:Rm:o:g:t")) != EOF) {
switch (opt) {
case 'C':
cwd = optarg;
break;
case 'D':
onlydir = 1;
break;
case 'd':
dodir = 1;
break;
case 'l':
dolink = 1;
break;
case 'L':
linkprefix = optarg;
lplen = strlen(linkprefix);
dolink = 1;
break;
case 'R':
dolink = dorelsymlink = 1;
break;
case 'm':
mode = strtoul(optarg, &cp, 8);
if (mode == 0 && cp == optarg)
usage();
break;
case 'o':
owner = optarg;
break;
case 'g':
group = optarg;
break;
case 't':
dotimes = 1;
break;
default:
usage();
}
}
argc -= optind;
argv += optind;
if (argc < 2 - onlydir)
usage();
todir = argv[argc-1];
if ((stat(todir, &sb) < 0 || !S_ISDIR(sb.st_mode)) &&
mkdirs(todir, 0777) < 0) {
fail("cannot make directory %s", todir);
}
if (onlydir)
return 0;
if (!cwd) {
#ifdef GETCWD_CAN_MALLOC
cwd = getcwd(0, PATH_MAX);
#else
cwd = malloc(PATH_MAX + 1);
cwd = getcwd(cwd, PATH_MAX);
#endif
}
xchdir(todir);
#ifdef GETCWD_CAN_MALLOC
todir = getcwd(0, PATH_MAX);
#else
todir = malloc(PATH_MAX + 1);
todir = getcwd(todir, PATH_MAX);
#endif
tdlen = strlen(todir);
xchdir(cwd);
tdlen = strlen(todir);
uid = owner ? touid(owner) : -1;
gid = group ? togid(group) : -1;
while (--argc > 0) {
name = *argv++;
len = strlen(name);
base = xbasename(name);
bnlen = strlen(base);
toname = (char*)xmalloc(tdlen + 1 + bnlen + 1);
sprintf(toname, "%s/%s", todir, base);
exists = (lstat(toname, &tosb) == 0);
if (dodir) {
/* -d means create a directory, always */
if (exists && !S_ISDIR(tosb.st_mode)) {
(void) unlink(toname);
exists = 0;
}
if (!exists && mkdir(toname, mode) < 0)
fail("cannot make directory %s", toname);
if ((owner || group) && chown(toname, uid, gid) < 0)
fail("cannot change owner of %s", toname);
} else if (dolink) {
if (*name == '/') {
/* source is absolute pathname, link to it directly */
linkname = 0;
} else {
if (linkprefix) {
/* -L implies -l and prefixes names with a $cwd arg. */
len += lplen + 1;
linkname = (char*)xmalloc(len + 1);
sprintf(linkname, "%s/%s", linkprefix, name);
} else if (dorelsymlink) {
/* Symlink the relative path from todir to source name. */
linkname = (char*)xmalloc(PATH_MAX);
if (*todir == '/') {
/* todir is absolute: skip over common prefix. */
lplen = relatepaths(todir, cwd, linkname);
strcpy(linkname + lplen, name);
} else {
/* todir is named by a relative path: reverse it. */
reversepath(todir, name, len, linkname);
xchdir(cwd);
}
len = strlen(linkname);
}
name = linkname;
}
/* Check for a pre-existing symlink with identical content. */
if (exists &&
(!S_ISLNK(tosb.st_mode) ||
readlink(toname, buf, sizeof buf) != len ||
strncmp(buf, name, len) != 0)) {
(void) (S_ISDIR(tosb.st_mode) ? rmdir : unlink)(toname);
exists = 0;
}
if (!exists && symlink(name, toname) < 0)
fail("cannot make symbolic link %s", toname);
#ifdef HAVE_LCHOWN
if ((owner || group) && lchown(toname, uid, gid) < 0)
fail("cannot change owner of %s", toname);
#endif
if (linkname) {
free(linkname);
linkname = 0;
}
} else {
/* Copy from name to toname, which might be the same file. */
fromfd = open(name, O_RDONLY);
if (fromfd < 0 || fstat(fromfd, &sb) < 0)
fail("cannot access %s", name);
if (exists && (!S_ISREG(tosb.st_mode) || access(toname, W_OK) < 0))
(void) (S_ISDIR(tosb.st_mode) ? rmdir : unlink)(toname);
tofd = open(toname, O_CREAT | O_WRONLY, 0666);
if (tofd < 0)
fail("cannot create %s", toname);
bp = buf;
while ((cc = read(fromfd, bp, sizeof buf)) > 0) {
while ((wc = write(tofd, bp, cc)) > 0) {
if ((cc -= wc) == 0)
break;
bp += wc;
}
if (wc < 0)
fail("cannot write to %s", toname);
}
if (cc < 0)
fail("cannot read from %s", name);
if (ftruncate(tofd, sb.st_size) < 0)
fail("cannot truncate %s", toname);
if (dotimes) {
utb.actime = sb.st_atime;
utb.modtime = sb.st_mtime;
if (utime(toname, &utb) < 0)
fail("cannot set times of %s", toname);
}
#ifdef HAVE_FCHMOD
if (fchmod(tofd, mode) < 0)
#else
if (chmod(toname, mode) < 0)
#endif
fail("cannot change mode of %s", toname);
if ((owner || group) && fchown(tofd, uid, gid) < 0)
fail("cannot change owner of %s", toname);
/* Must check for delayed (NFS) write errors on close. */
if (close(tofd) < 0)
fail("cannot write to %s", toname);
close(fromfd);
}
free(toname);
}
free(cwd);
free(todir);
return 0;
}
/*
** Pathname subroutines.
**
** Brendan Eich, 8/29/95
*/
char *program;
void
fail(char *format, ...)
{
int error;
va_list ap;
#ifdef USE_REENTRANT_LIBC
R_STRERROR_INIT_R();
#endif
error = errno;
fprintf(stderr, "%s: ", program);
va_start(ap, format);
vfprintf(stderr, format, ap);
va_end(ap);
if (error)
#ifdef USE_REENTRANT_LIBC
R_STRERROR_R(errno);
fprintf(stderr, ": %s", r_strerror_r);
#else
fprintf(stderr, ": %s", strerror(errno));
#endif
putc('\n', stderr);
exit(1);
}
char *
getcomponent(char *path, char *name)
{
if (*path == '\0')
return 0;
if (*path == '/') {
*name++ = '/';
} else {
do {
*name++ = *path++;
} while (*path != '/' && *path != '\0');
}
*name = '\0';
while (*path == '/')
path++;
return path;
}
#ifdef UNIXWARE_READDIR_BUFFER_TOO_SMALL
/* Sigh. The static buffer in Unixware's readdir is too small. */
struct dirent * readdir(DIR *d)
{
static struct dirent *buf = NULL;
#define MAX_PATH_LEN 1024
if(buf == NULL)
buf = (struct dirent *) malloc(sizeof(struct dirent) + MAX_PATH_LEN)
;
return(readdir_r(d, buf));
}
#endif
char *
ino2name(ino_t ino, char *dir)
{
DIR *dp;
struct dirent *ep;
char *name;
dp = opendir("..");
if (!dp)
fail("cannot read parent directory");
for (;;) {
if (!(ep = readdir(dp)))
fail("cannot find current directory");
if (ep->d_ino == ino)
break;
}
name = xstrdup(ep->d_name);
closedir(dp);
return name;
}
void *
xmalloc(size_t size)
{
void *p = malloc(size);
if (!p)
fail("cannot allocate %u bytes", size);
return p;
}
char *
xstrdup(char *s)
{
return strcpy((char*)xmalloc(strlen(s) + 1), s);
}
char *
xbasename(char *path)
{
char *cp;
while ((cp = strrchr(path, '/')) && cp[1] == '\0')
*cp = '\0';
if (!cp) return path;
return cp + 1;
}
void
xchdir(char *dir)
{
if (chdir(dir) < 0)
fail("cannot change directory to %s", dir);
}
int
relatepaths(char *from, char *to, char *outpath)
{
char *cp, *cp2;
int len;
char buf[NAME_MAX];
assert(*from == '/' && *to == '/');
for (cp = to, cp2 = from; *cp == *cp2; cp++, cp2++)
if (*cp == '\0')
break;
while (cp[-1] != '/')
cp--, cp2--;
if (cp - 1 == to) {
/* closest common ancestor is /, so use full pathname */
len = strlen(strcpy(outpath, to));
if (outpath[len] != '/') {
outpath[len++] = '/';
outpath[len] = '\0';
}
} else {
len = 0;
while ((cp2 = getcomponent(cp2, buf)) != 0) {
strcpy(outpath + len, "../");
len += 3;
}
while ((cp = getcomponent(cp, buf)) != 0) {
sprintf(outpath + len, "%s/", buf);
len += strlen(outpath + len);
}
}
return len;
}
void
reversepath(char *inpath, char *name, int len, char *outpath)
{
char *cp, *cp2;
char buf[NAME_MAX];
struct stat sb;
cp = strcpy(outpath + PATH_MAX - (len + 1), name);
cp2 = inpath;
while ((cp2 = getcomponent(cp2, buf)) != 0) {
if (strcmp(buf, ".") == 0)
continue;
if (strcmp(buf, "..") == 0) {
if (stat(".", &sb) < 0)
fail("cannot stat current directory");
name = ino2name(sb.st_ino, "..");
len = strlen(name);
cp -= len + 1;
strcpy(cp, name);
cp[len] = '/';
free(name);
xchdir("..");
} else {
cp -= 3;
strncpy(cp, "../", 3);
xchdir(buf);
}
}
strcpy(outpath, cp);
}

View File

@@ -0,0 +1,116 @@
#!/bin/sh
prefix=@prefix@
exec_prefix=@exec_prefix@
exec_prefix_set=no
major_version=@MOD_MAJOR_VERSION@
minor_version=@MOD_MINOR_VERSION@
revision_version=@MOD_REVISION_VERSION@
usage()
{
cat <<EOF
Usage: nspr-config [OPTIONS] [LIBRARIES]
Options:
[--prefix[=DIR]]
[--exec-prefix[=DIR]]
[--version]
[--libs]
[--cflags]
Libraries:
nspr
plc
plds
EOF
exit $1
}
if test $# -eq 0; then
usage 1 1>&2
fi
lib_nspr=yes
lib_plc=yes
lib_plds=yes
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--prefix=*)
prefix=$optarg
if test $exec_prefix_set = no ; then
exec_prefix=$optarg
fi
;;
--prefix)
echo_prefix=yes
;;
--exec-prefix=*)
exec_prefix=$optarg
exec_prefix_set=yes
;;
--exec-prefix)
echo_exec_prefix=yes
;;
--version)
echo ${major_version}.${minor_version}.${revision_version}
;;
--cflags)
echo_cflags=yes
;;
--libs)
echo_libs=yes
;;
nspr)
lib_nspr=yes
;;
plc)
lib_plc=yes
;;
plds)
lib_plds=yes
;;
*)
usage 1 1>&2
;;
esac
shift
done
if test "$echo_prefix" = "yes"; then
echo $prefix
fi
if test "$echo_exec_prefix" = "yes"; then
echo $exec_prefix
fi
if test "$echo_cflags" = "yes"; then
echo -I${prefix}/include/nspr
fi
if test "$echo_libs" = "yes"; then
libdirs=-L${exec_prefix}/lib
if test -n "$lib_plds"; then
libdirs="$libdirs -lplds${major_version}"
fi
if test -n "$lib_plc"; then
libdirs="$libdirs -lplc${major_version}"
fi
if test -n "$lib_nspr"; then
libdirs="$libdirs -lnspr${major_version}"
fi
os_ldflags="@LDFLAGS@"
for i in $os_ldflags ; do
if echo $i | grep \^-L >/dev/null; then
libdirs="$libdirs $i"
fi
done
echo $libdirs @OS_LIBS@
fi

View File

@@ -0,0 +1,67 @@
# -*- tab-width: 4; -*-
# Configure paths for NSPR
# Public domain - Chris Seawood <cls@seawood.org> 2001-04-05
# Based upon gtk.m4 (also PD) by Owen Taylor
dnl AM_PATH_NSPR([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
dnl Test for NSPR, and define NSPR_CFLAGS and NSPR_LIBS
AC_DEFUN(AM_PATH_NSPR,
[dnl
AC_ARG_WITH(nspr-prefix,
[ --with-nspr-prefix=PFX Prefix where NSPR is installed],
nspr_config_prefix="$withval",
nspr_config_prefix="")
AC_ARG_WITH(nspr-exec-prefix,
[ --with-nspr-exec-prefix=PFX
Exec prefix where NSPR is installed],
nspr_config_exec_prefix="$withval",
nspr_config_exec_prefix="")
if test -n "$nspr_config_exec_prefix"; then
nspr_config_args="$nspr_config_args --exec-prefix=$nspr_config_exec_prefix"
if test -z "$NSPR_CONFIG"; then
NSPR_CONFIG=$nspr_config_exec_prefix/bin/nspr-config
fi
fi
if test -n "$nspr_config_prefix"; then
nspr_config_args="$nspr_config_args --prefix=$nspr_config_prefix"
if test -z "$NSPR_CONFIG"; then
NSPR_CONFIG=$nspr_config_prefix/bin/nspr-config
fi
fi
unset ac_cv_path_NSPR_CONFIG
AC_PATH_PROG(NSPR_CONFIG, nspr-config, no)
min_nspr_version=ifelse([$1], ,4.0.0,$1)
AC_MSG_CHECKING(for NSPR - version >= $min_nspr_version (skipping))
no_nspr=""
if test "$NSPR_CONFIG" = "no"; then
no_nspr="yes"
else
NSPR_CFLAGS=`$NSPR_CONFIG $nspr_config_args --cflags`
NSPR_LIBS=`$NSPR_CONFIG $nspr_config_args --libs`
dnl Skip version check for now
nspr_config_major_version=`$NSPR_CONFIG $nspr_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
nspr_config_minor_version=`$NSPR_CONFIG $nspr_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
nspr_config_micro_version=`$NSPR_CONFIG $nspr_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
fi
if test -z "$no_nspr"; then
AC_MSG_RESULT(yes)
ifelse([$2], , :, [$2])
else
AC_MSG_RESULT(no)
fi
AC_SUBST(NSPR_CFLAGS)
AC_SUBST(NSPR_LIBS)
])

View File

@@ -0,0 +1,5 @@
# Include in Makefiles to define NSPR variables
NSPR_VERSION = @NSPR_VERSION@
NSPR_LIB = -lnspr@NSPR_VERSION@
NSPR_EXTRA_LIBS = @EXTRA_LIBS@

View File

@@ -0,0 +1,5 @@
# Include in shell scripts to define NSPR variables
NSPR_VERSION=@NSPR_VERSION@
NSPR_LIB=-lnspr$NSPR_VERSION
NSPR_EXTRA_LIBS="@EXTRA_LIBS@"

View File

@@ -0,0 +1,75 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
#ifndef pathsub_h___
#define pathsub_h___
/*
** Pathname subroutines.
**
** Brendan Eich, 8/29/95
*/
#include <limits.h>
#include <sys/types.h>
#if SUNOS4
#include "../pr/include/md/sunos4.h"
#endif
#ifndef PATH_MAX
#define PATH_MAX 1024
#endif
/*
* Just prevent stupidity
*/
#undef NAME_MAX
#define NAME_MAX 256
extern char *program;
extern void fail(char *format, ...);
extern char *getcomponent(char *path, char *name);
extern char *ino2name(ino_t ino, char *dir);
extern void *xmalloc(size_t size);
extern char *xstrdup(char *s);
extern char *xbasename(char *path);
extern void xchdir(char *dir);
/* Relate absolute pathnames from and to returning the result in outpath. */
extern int relatepaths(char *from, char *to, char *outpath);
/* XXX changes current working directory -- caveat emptor */
extern void reversepath(char *inpath, char *name, int len, char *outpath);
#endif /* pathsub_h___ */

View File

@@ -0,0 +1,41 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
/*
* A dummy header file that is a dependency for all the object files.
* Used to force a full recompilation of NSPR in Mozilla's Tinderbox
* depend builds. See comments in rules.mk.
*/
#error "Do not include this header file."

View File

@@ -0,0 +1,34 @@
REM
REM The contents of this file are subject to the Mozilla Public
REM License Version 1.1 (the "License"); you may not use this file
REM except in compliance with the License. You may obtain a copy of
REM the License at http://www.mozilla.org/MPL/
REM
REM Software distributed under the License is distributed on an "AS
REM IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
REM implied. See the License for the specific language governing
REM rights and limitations under the License.
REM
REM The Original Code is the Netscape Portable Runtime (NSPR).
REM
REM The Initial Developer of the Original Code is Netscape
REM Communications Corporation. Portions created by Netscape are
REM Copyright (C) 1998-2000 Netscape Communications Corporation. All
REM Rights Reserved.
REM
REM Contributor(s):
REM
REM Alternatively, the contents of this file may be used under the
REM terms of the GNU General Public License Version 2 or later (the
REM "GPL"), in which case the provisions of the GPL are applicable
REM instead of those above. If you wish to allow use of your
REM version of this file only under the terms of the GPL and not to
REM allow others to use your version of this file under the MPL,
REM indicate your decision by deleting the provisions above and
REM replace them with the notice and other provisions required by
REM the GPL. If you do not delete the provisions above, a recipient
REM may use your version of this file under either the MPL or the
REM GPL.
REM
mkdir %1

View File

@@ -0,0 +1,449 @@
#! gmake
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
################################################################################
# We have a 4 pass build process:
#
# Pass 1. export - Create generated headers and stubs. Publish public headers to
# dist/<arch>/include.
#
# Pass 2. libs - Create libraries. Publish libraries to dist/<arch>/lib.
#
# Pass 3. all - Create programs.
#
# Pass 4. install - Publish programs to dist/<arch>/bin.
#
# Parameters to this makefile (set these before including):
#
# a)
# TARGETS -- the target to create
# (defaults to $LIBRARY $PROGRAM)
# b)
# DIRS -- subdirectories for make to recurse on
# (the 'all' rule builds $TARGETS $DIRS)
# c)
# CSRCS -- .c files to compile
# (used to define $OBJS)
# d)
# PROGRAM -- the target program name to create from $OBJS
# ($OBJDIR automatically prepended to it)
# e)
# LIBRARY -- the target library name to create from $OBJS
# ($OBJDIR automatically prepended to it)
#
################################################################################
ifndef topsrcdir
topsrcdir=$(MOD_DEPTH)
endif
ifndef srcdir
srcdir=.
endif
ifndef NSPR_CONFIG_MK
include $(topsrcdir)/config/config.mk
endif
ifdef USE_AUTOCONF
ifdef CROSS_COMPILE
ifdef INTERNAL_TOOLS
CC=$(HOST_CC)
CCC=$(HOST_CXX)
CFLAGS=$(HOST_CFLAGS)
CXXFLAGS=$(HOST_CXXFLAGS)
endif
endif
endif
#
# This makefile contains rules for building the following kinds of
# libraries:
# - LIBRARY: a static (archival) library
# - SHARED_LIBRARY: a shared (dynamic link) library
# - IMPORT_LIBRARY: an import library, used only on Windows and OS/2
#
# The names of these libraries can be generated by simply specifying
# LIBRARY_NAME and LIBRARY_VERSION.
#
ifdef LIBRARY_NAME
ifeq (,$(filter-out WINNT OS2,$(OS_ARCH)))
#
# Win95, Win16, and OS/2 require library names conforming to the 8.3 rule.
# other platforms do not.
#
ifeq (,$(filter-out WIN95 OS2,$(OS_TARGET)))
LIBRARY = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION)_s.$(LIB_SUFFIX)
SHARED_LIBRARY = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)
IMPORT_LIBRARY = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION).$(LIB_SUFFIX)
else
LIBRARY = $(OBJDIR)/lib$(LIBRARY_NAME)$(LIBRARY_VERSION)_s.$(LIB_SUFFIX)
SHARED_LIBRARY = $(OBJDIR)/lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)
IMPORT_LIBRARY = $(OBJDIR)/lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(LIB_SUFFIX)
endif
else
LIBRARY = $(OBJDIR)/lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(LIB_SUFFIX)
ifeq ($(OS_ARCH)$(OS_RELEASE), AIX4.1)
SHARED_LIBRARY = $(OBJDIR)/lib$(LIBRARY_NAME)$(LIBRARY_VERSION)_shr.a
else
ifdef MKSHLIB
SHARED_LIBRARY = $(OBJDIR)/lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)
endif
endif
endif
endif
ifndef TARGETS
ifeq (,$(filter-out WINNT OS2,$(OS_ARCH)))
TARGETS = $(LIBRARY) $(SHARED_LIBRARY) $(IMPORT_LIBRARY)
else
TARGETS = $(LIBRARY) $(SHARED_LIBRARY)
endif
endif
#
# OBJS is the list of object files. It can be constructed by
# specifying CSRCS (list of C source files) and ASFILES (list
# of assembly language source files).
#
ifndef OBJS
OBJS = $(addprefix $(OBJDIR)/,$(CSRCS:.c=.$(OBJ_SUFFIX))) \
$(addprefix $(OBJDIR)/,$(ASFILES:.$(ASM_SUFFIX)=.$(OBJ_SUFFIX)))
endif
ifeq ($(OS_ARCH), WINNT)
OBJS += $(RES)
endif
ifeq ($(MOZ_OS2_TOOLS),VACPP)
EXTRA_LIBS := $(patsubst -l%,$(DIST)/lib/%.$(LIB_SUFFIX),$(EXTRA_LIBS))
endif
ALL_TRASH = $(TARGETS) $(OBJS) $(filter-out . .., $(OBJDIR)) LOGS TAGS $(GARBAGE) \
$(NOSUCHFILE) \
so_locations
ifdef DIRS
LOOP_OVER_DIRS = \
@for d in $(DIRS); do \
if test -d $$d; then \
set -e; \
echo "cd $$d; $(MAKE) $@"; \
$(MAKE) -C $$d $@; \
set +e; \
else \
echo "Skipping non-directory $$d..."; \
fi; \
done
endif
################################################################################
all:: export
export::
+$(LOOP_OVER_DIRS)
libs:: export
install:: export
clean::
rm -rf $(OBJS) so_locations $(NOSUCHFILE) $(GARBAGE)
+$(LOOP_OVER_DIRS)
clobber::
rm -rf $(OBJS) $(TARGETS) $(filter-out . ..,$(OBJDIR)) $(GARBAGE) so_locations $(NOSUCHFILE)
+$(LOOP_OVER_DIRS)
realclean clobber_all::
rm -rf $(wildcard *.OBJ *.OBJD) dist $(ALL_TRASH)
+$(LOOP_OVER_DIRS)
distclean::
rm -rf $(wildcard *.OBJ *.OBJD) dist $(ALL_TRASH) $(DIST_GARBAGE)
+$(LOOP_OVER_DIRS)
real_install:: $(RELEASE_BINS) $(RELEASE_HEADERS) $(RELEASE_LIBS)
ifdef RELEASE_BINS
$(NSINSTALL) -t -m 0755 $(RELEASE_BINS) $(DESTDIR)$(bindir)
endif
ifdef RELEASE_HEADERS
$(NSINSTALL) -t -m 0644 $(RELEASE_HEADERS) $(DESTDIR)$(includedir)
endif
ifdef RELEASE_LIBS
$(NSINSTALL) -t -m 0755 $(RELEASE_LIBS) $(DESTDIR)$(libdir)
endif
+$(LOOP_OVER_DIRS)
release:: export
ifdef RELEASE_BINS
@echo "Copying executable programs and scripts to release directory"
@if test -z "$(BUILD_NUMBER)"; then \
echo "BUILD_NUMBER must be defined"; \
false; \
else \
true; \
fi
@if test ! -d $(RELEASE_BIN_DIR); then \
rm -rf $(RELEASE_BIN_DIR); \
$(NSINSTALL) -D $(RELEASE_BIN_DIR);\
else \
true; \
fi
cp $(RELEASE_BINS) $(RELEASE_BIN_DIR)
endif
ifdef RELEASE_LIBS
@echo "Copying libraries to release directory"
@if test -z "$(BUILD_NUMBER)"; then \
echo "BUILD_NUMBER must be defined"; \
false; \
else \
true; \
fi
@if test ! -d $(RELEASE_LIB_DIR); then \
rm -rf $(RELEASE_LIB_DIR); \
$(NSINSTALL) -D $(RELEASE_LIB_DIR);\
else \
true; \
fi
cp $(RELEASE_LIBS) $(RELEASE_LIB_DIR)
endif
ifdef RELEASE_HEADERS
@echo "Copying header files to release directory"
@if test -z "$(BUILD_NUMBER)"; then \
echo "BUILD_NUMBER must be defined"; \
false; \
else \
true; \
fi
@if test ! -d $(RELEASE_HEADERS_DEST); then \
rm -rf $(RELEASE_HEADERS_DEST); \
$(NSINSTALL) -D $(RELEASE_HEADERS_DEST);\
else \
true; \
fi
cp $(RELEASE_HEADERS) $(RELEASE_HEADERS_DEST)
endif
+$(LOOP_OVER_DIRS)
alltags:
rm -f TAGS tags
find . -name dist -prune -o \( -name '*.[hc]' -o -name '*.cp' -o -name '*.cpp' \) -print | xargs etags -a
find . -name dist -prune -o \( -name '*.[hc]' -o -name '*.cp' -o -name '*.cpp' \) -print | xargs ctags -a
$(NFSPWD):
cd $(@D); $(MAKE) $(@F)
$(PROGRAM): $(OBJS)
@$(MAKE_OBJDIR)
ifeq ($(OS_ARCH),WINNT)
$(CC) $(OBJS) -Fe$@ -link $(LDFLAGS) $(OS_LIBS) $(EXTRA_LIBS)
else
ifeq ($(MOZ_OS2_TOOLS),VACPP)
$(CC) $(OBJS) -Fe$@ $(LDFLAGS) $(OS_LIBS) $(EXTRA_LIBS)
else
$(CC) -o $@ $(CFLAGS) $(OBJS) $(LDFLAGS)
endif
endif
ifdef ENABLE_STRIP
$(STRIP) $@
endif
$(LIBRARY): $(OBJS)
@$(MAKE_OBJDIR)
rm -f $@
ifeq ($(MOZ_OS2_TOOLS),VACPP)
$(AR) $(subst /,\\,$(OBJS)) $(AR_FLAGS)
else
$(AR) $(AR_FLAGS) $(OBJS) $(AR_EXTRA_ARGS)
endif
$(RANLIB) $@
ifeq ($(OS_TARGET), OS2)
$(IMPORT_LIBRARY): $(SHARED_LIBRARY)
$(IMPLIB) $@ $(SHARED_LIBRARY).def
endif
$(SHARED_LIBRARY): $(OBJS)
@$(MAKE_OBJDIR)
rm -f $@
ifeq ($(OS_ARCH)$(OS_RELEASE), AIX4.1)
echo "#!" > $(OBJDIR)/lib$(LIBRARY_NAME)_syms
nm -B -C -g $(OBJS) \
| awk '/ [T,D] / {print $$3}' \
| sed -e 's/^\.//' \
| sort -u >> $(OBJDIR)/lib$(LIBRARY_NAME)_syms
$(LD) $(XCFLAGS) -o $@ $(OBJS) -bE:$(OBJDIR)/lib$(LIBRARY_NAME)_syms \
-bM:SRE -bnoentry $(OS_LIBS) $(EXTRA_LIBS)
else # AIX 4.1
ifeq ($(OS_ARCH), WINNT)
$(LINK_DLL) -MAP $(DLLBASE) $(DLL_LIBS) $(EXTRA_LIBS) $(OBJS)
else
ifeq ($(OS_ARCH),OS2)
# append ( >> ) doesn't seem to be working under OS/2 gmake. Run through OS/2 shell instead.
@cmd /C "echo LIBRARY $(notdir $(basename $(SHARED_LIBRARY))) INITINSTANCE TERMINSTANCE >$@.def"
@cmd /C "echo PROTMODE >>$@.def"
@cmd /C "echo CODE LOADONCALL MOVEABLE DISCARDABLE >>$@.def"
@cmd /C "echo DATA PRELOAD MOVEABLE MULTIPLE NONSHARED >>$@.def"
@cmd /C "echo EXPORTS >>$@.def"
@cmd /C "$(FILTER) $(LIBRARY) | grep -v _DLL_InitTerm >>$@.def"
$(LINK_DLL) $(DLLBASE) $(OBJS) $(OS_LIBS) $(EXTRA_LIBS) $@.def
else # OS2
ifeq ($(OS_TARGET), OpenVMS)
@if test ! -f $(OBJDIR)/VMSuni.opt; then \
echo "Creating universal symbol option file $(OBJDIR)/VMSuni.opt";\
create_opt_uni $(OBJS); \
fi
$(MKSHLIB) -o $@ $(OBJS) $(EXTRA_LIBS) $(OBJDIR)/VMSuni.opt
else # OpenVMS
$(MKSHLIB) $(OBJS) $(EXTRA_LIBS)
endif # OpenVMS
endif # OS2
endif # WINNT
endif # AIX 4.1
ifdef ENABLE_STRIP
$(STRIP) $@
endif
ifeq (,$(filter-out WINNT OS2,$(OS_ARCH)))
$(RES): $(RESNAME)
@$(MAKE_OBJDIR)
ifeq ($(OS_TARGET),OS2)
$(RC) -DOS2 -r $< $@
else
# The resource compiler does not understand the -U option.
$(RC) $(filter-out -U%,$(DEFINES)) $(INCLUDES) -Fo$@ $<
endif
@echo $(RES) finished
endif
$(OBJDIR)/%.$(OBJ_SUFFIX): %.cpp
@$(MAKE_OBJDIR)
ifeq ($(OS_ARCH), WINNT)
$(CCC) -Fo$@ -c $(CCCFLAGS) $<
else
ifeq ($(MOZ_OS2_TOOLS),VACPP)
$(CCC) -Fo$@ -c $(CCCFLAGS) $<
else
$(CCC) -o $@ -c $(CCCFLAGS) $<
endif
endif
WCCFLAGS1 = $(subst /,\\,$(CFLAGS))
WCCFLAGS2 = $(subst -I,-i=,$(WCCFLAGS1))
WCCFLAGS3 = $(subst -D,-d,$(WCCFLAGS2))
$(OBJDIR)/%.$(OBJ_SUFFIX): %.c
@$(MAKE_OBJDIR)
ifeq ($(OS_ARCH), WINNT)
$(CC) -Fo$@ -c $(CFLAGS) $<
else
ifeq ($(MOZ_OS2_TOOLS),VACPP)
$(CC) -Fo$@ -c $(CFLAGS) $<
else
$(CC) -o $@ -c $(CFLAGS) $<
endif
endif
$(OBJDIR)/%.$(OBJ_SUFFIX): %.s
@$(MAKE_OBJDIR)
$(AS) -o $@ $(ASFLAGS) -c $<
ifeq ($(MOZ_OS2_TOOLS),VACPP)
$(OBJDIR)/%.$(OBJ_SUFFIX): %.asm
@$(MAKE_OBJDIR)
$(AS) -Fdo:./$(OBJDIR) $(ASFLAGS) $<
endif
%.i: %.c
$(CC) -C -E $(CFLAGS) $< > $*.i
%: %.pl
rm -f $@; cp $< $@; chmod +x $@
#
# HACK ALERT
#
# The only purpose of this rule is to pass Mozilla's Tinderbox depend
# builds (http://tinderbox.mozilla.org/showbuilds.cgi). Mozilla's
# Tinderbox builds NSPR continuously as part of the Mozilla client.
# Because NSPR's make depend is not implemented, whenever we change
# an NSPR header file, the depend build does not recompile the NSPR
# files that depend on the header.
#
# This rule makes all the objects depend on a dummy header file.
# Touch this dummy header file to force the depend build to recompile
# everything.
#
# This rule should be removed when make depend is implemented.
#
DUMMY_DEPEND_H = $(topsrcdir)/config/prdepend.h
$(filter $(OBJDIR)/%.$(OBJ_SUFFIX),$(OBJS)): $(OBJDIR)/%.$(OBJ_SUFFIX): $(DUMMY_DEPEND_H)
# END OF HACK
################################################################################
# Special gmake rules.
################################################################################
#
# Re-define the list of default suffixes, so gmake won't have to churn through
# hundreds of built-in suffix rules for stuff we don't need.
#
.SUFFIXES:
.SUFFIXES: .a .$(OBJ_SUFFIX) .c .cpp .s .h .i .pl
#
# Fake targets. Always run these rules, even if a file/directory with that
# name already exists.
#
.PHONY: all alltags clean export install libs realclean release
#
# List the target pattern of an implicit rule as a dependency of the
# special target .PRECIOUS to preserve intermediate files made by
# implicit rules whose target patterns match that file's name.
# (See GNU Make documentation, Edition 0.51, May 1996, Sec. 10.4,
# p. 107.)
#
.PRECIOUS: $(OBJDIR)/%.$(OBJ_SUFFIX)

View File

@@ -0,0 +1,116 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#
# win16_3.11.mk -- Make configuration for Win16
#
# This file configures gmake to build the Win16 variant of
# NSPR 2.0. This file has the function of two files commonly
# used on other platforms, for example: winnt.mk and
# winnt4.0.mk. ... The packaging is easier and there is only
# one variant of the Win16 target.
#
# Win16 is built using the Watcom C/C++ version 11.0
# compiler. You gotta set up the compiler first. Follow the
# directions in the manual (Ha! ... really, its not a
# problem). The Watcom compiler depends on a few environment
# variables; these environment variables define where the
# compiler components are installed; they must be set before
# running the make.
#
# Notes:
# OS_CFLAGS is the command line options for the compiler when
# building the .DLL object files.
# OS_EXE_CFLAGS is the command line options for the compiler
# when building the .EXE object files; this is for the test
# programs.
# the macro OS_CFLAGS is set to OS_EXE_CFLAGS inside of the
# makefile for the pr/tests directory. ... Hack.
#
# USE_WATCOM_DEBUG_DATA environment variable causes the
# watcom compiler flag to be set to -hw (otherwise
# it is set to -hc (codeview debug data)) for debug builds.
#
# -- configuration -----------------------------------------
CC = wcc
CCC = wcl
LINK = wlink
AR = wlib -q $@
RC = wrc.exe /r /dWIN16=1 /bt=windows
RANLIB = echo
BSDECHO = echo
STRIP = echo
NSINSTALL = nsinstall
INSTALL = $(NSINSTALL)
MAKE_OBJDIR = mkdir $(OBJDIR)
XP_DEFINE = -DXP_PC
OBJ_SUFFIX = obj
LIB_SUFFIX = lib
DLL_SUFFIX = dll
ifdef BUILD_OPT
OBJDIR_TAG = _O
OPTIMIZER = -oneatx -oh -oi -ei -3 -fpi87 -fp3 -s
else
ifdef USE_WATCOM_DEBUG_DATA
OPTIMIZER = -d2 -hw -s -DDEBUG
DEBUGTYPE = watcom
else
OPTIMIZER = -d2 -hc -s -DDEBUG
DEBUGTYPE = codeview
endif
OBJDIR_TAG = _D
endif
# XXX FIXME: I doubt we use this. It is redundant with
# SHARED_LIBRARY.
ifdef DLL
DLL := $(addprefix $(OBJDIR)/, $(DLL))
endif
CPU_ARCH = x86
OS_CFLAGS = -ml -3 -bd -zc -zu -bt=windows -d_X86_ -dWIN16 -d_WINDLL
OS_EXE_CFLAGS = -ml -3 -bt=windows -d_X86_ -dWIN16
OS_LIB_FLAGS = -c -iro -n
# Name of the binary code directories
OBJDIR_NAME = $(OS_CONFIG)$(OBJDIR_TAG).OBJ
OS_DLL_OPTION = CASEEXACT
OS_DLLFLAGS =
OS_LIBS =
W16_EXPORTS = #

5741
mozilla/nsprpub/configure vendored Executable file

File diff suppressed because it is too large Load Diff

2285
mozilla/nsprpub/configure.in Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,92 @@
#!gmake
# -*- Mode: Makefile -*-
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 2001 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
ifndef MOZ_SRC_FLIPPED
$(error MOZ_SRC_FLIPPED is not set)
endif
ifndef MOZ_TOP
MOZ_TOP=mozilla
endif
MOZ_DIST_FLIPPED = $(MOZ_SRC_FLIPPED)/mozilla/dist
ifdef MOZ_DEBUG
MOZ_OBJDIR = WIN32_D.OBJ
else
MOZ_OBJDIR = WIN32_O.OBJ
endif
NSPR_CONFIGURE := ../configure \
--with-mozilla \
--with-dist-prefix=$(MOZ_DIST_FLIPPED) \
--with-dist-bindir=$(MOZ_DIST_FLIPPED)/$(MOZ_OBJDIR)/bin \
--with-dist-libdir=$(MOZ_DIST_FLIPPED)/$(MOZ_OBJDIR)/lib
ifeq (,$(MOZ_DEBUG))
NSPR_CONFIGURE := $(NSPR_CONFIGURE) --enable-optimize --disable-debug
endif
define MAKE_OBJDIR
if test ! -d $(@D) ; then rm -rf $(@D) ; nsinstall -D $(@D) ; fi
endef
all:: build_all
# Argh. nmake keeps the cwd from cmd to cmd and gmake does not
# Furthermore, shmsdos doesn't support '&&' so there's a chance the
# 'cd' could fail and configure would be run in the wrong dir
#
$(MOZ_OBJDIR)/config.status: configure configure.in
@$(MAKE_OBJDIR)
cd $(MOZ_OBJDIR)/ ; \
sh $(NSPR_CONFIGURE)
build_all: $(MOZ_OBJDIR)/config.status check_old
gmake -C $(MOZ_OBJDIR)
clobber_all: $(MOZ_OBJDIR)/config.status check_old
gmake -C $(MOZ_OBJDIR) clobber_all
distclean: check_old
rm -rf WIN32_D.OBJ WIN32_O.OBJ
check_old:
@if test -f Makefile; then gmake distclean; fi

View File

@@ -0,0 +1,52 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#! gmake
MOD_DEPTH = ..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(MOD_DEPTH)/config/autoconf.mk
export NSPR20=1
include $(topsrcdir)/config/config.mk
DIRS = ds libc
include $(topsrcdir)/config/rules.mk
export:: $(TARGETS)

View File

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

View File

@@ -0,0 +1,171 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#! gmake
MOD_DEPTH = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(MOD_DEPTH)/config/autoconf.mk
include $(topsrcdir)/config/config.mk
INCLUDES = -I$(dist_includedir) -I$(topsrcdir)/pr/include
CSRCS = \
plarena.c \
plhash.c \
plvrsion.c \
$(NULL)
HEADERS = \
plarenas.h \
plarena.h \
plhash.h \
$(NULL)
HEADERS := $(addprefix $(srcdir)/, $(HEADERS))
ifeq ($(OS_ARCH), WINNT)
DLLBASE=/BASE:0x30000000
RES=$(OBJDIR)/plds.res
RESNAME=plds.rc
OS_LIBS = user32.lib
endif # WINNT
ifeq ($(OS_ARCH), AIX)
ifeq ($(CLASSIC_NSPR),1)
OS_LIBS = -lc
else
OS_LIBS = -lc_r
endif
endif
ifeq ($(OS_ARCH),IRIX)
OS_LIBS = -lc
endif
EXTRA_LIBS = $(LIBNSPR)
# On NCR and SCOOS, we can't link with extra libraries when
# we build a shared library. If we do so, the linker doesn't
# complain, but we would run into weird problems at run-time.
# Therefore on these platforms, we link just the .o files.
ifeq ($(OS_ARCH),NCR)
EXTRA_LIBS =
endif
ifeq ($(OS_ARCH),SCOOS)
EXTRA_LIBS =
endif
ifdef RESOLVE_LINK_SYMBOLS
EXTRA_LIBS += $(OS_LIBS)
endif
LIBRARY_NAME = plds
LIBRARY_VERSION = $(MOD_MAJOR_VERSION)
RELEASE_HEADERS = $(HEADERS)
RELEASE_HEADERS_DEST = $(RELEASE_INCLUDE_DIR)
RELEASE_LIBS = $(TARGETS)
include $(topsrcdir)/config/rules.mk
#
# Version information generation (begin)
#
ECHO = echo
TINC = $(OBJDIR)/_pl_bld.h
PROD = $(notdir $(SHARED_LIBRARY))
NOW = $(MOD_DEPTH)/config/$(OBJDIR)/now
SH_DATE = $(shell date "+%Y-%m-%d %T")
SH_NOW = $(shell $(NOW))
ifeq ($(OS_ARCH), WINNT)
SUF = i64
else
SUF = LL
endif
GARBAGE += $(TINC)
$(TINC):
@$(MAKE_OBJDIR)
@$(ECHO) '#define _BUILD_STRING "$(SH_DATE)"' > $(TINC)
@if test ! -z "$(SH_NOW)"; then \
$(ECHO) '#define _BUILD_TIME $(SH_NOW)$(SUF)' >> $(TINC); \
else \
true; \
fi
@$(ECHO) '#define _PRODUCTION "$(PROD)"' >> $(TINC)
$(OBJDIR)/plvrsion.$(OBJ_SUFFIX): plvrsion.c $(TINC)
ifeq ($(OS_ARCH), WINNT)
$(CC) -Fo$@ -c $(CFLAGS) -I$(OBJDIR) $<
else
ifeq ($(MOZ_OS2_TOOLS), VACPP)
$(CC) -Fo$@ -c $(CFLAGS) -I$(OBJDIR) $<
else
$(CC) -o $@ -c $(CFLAGS) -I$(OBJDIR) $<
endif
endif
#
# Version information generation (end)
#
#
# The Client build wants the shared libraries in $(dist_bindir),
# so we also install them there.
#
export:: $(TARGETS)
$(INSTALL) -m 444 $(HEADERS) $(dist_includedir)
$(INSTALL) -m 444 $(TARGETS) $(dist_libdir)
ifdef SHARED_LIBRARY
ifeq ($(OS_ARCH),HP-UX)
$(INSTALL) -m 755 $(SHARED_LIBRARY) $(dist_libdir)
$(INSTALL) -m 755 $(SHARED_LIBRARY) $(dist_bindir)
else
$(INSTALL) -m 444 $(SHARED_LIBRARY) $(dist_bindir)
endif
endif
ifeq ($(MOZ_BITS),16)
$(INSTALL) -m 444 $(HEADERS) $(MOZ_INCL)
$(INSTALL) -m 444 $(TARGETS) $(MOZ_DIST)/lib
$(INSTALL) -m 444 $(TARGETS) $(MOZ_DIST)/bin
endif

View File

@@ -0,0 +1,428 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
/*
* Lifetime-based fast allocation, inspired by much prior art, including
* "Fast Allocation and Deallocation of Memory Based on Object Lifetimes"
* David R. Hanson, Software -- Practice and Experience, Vol. 20(1).
*/
#include <stdlib.h>
#include <string.h>
#include "plarena.h"
#include "prmem.h"
#include "prbit.h"
#include "prlog.h"
#include "prlock.h"
#include "prinit.h"
static PLArena *arena_freelist;
#ifdef PL_ARENAMETER
static PLArenaStats *arena_stats_list;
#define COUNT(pool,what) (pool)->stats.what++
#else
#define COUNT(pool,what) /* nothing */
#endif
#define PL_ARENA_DEFAULT_ALIGN sizeof(double)
static PRLock *arenaLock;
static PRCallOnceType once;
/*
** InitializeArenas() -- Initialize arena operations.
**
** InitializeArenas() is called exactly once and only once from
** LockArena(). This function creates the arena protection
** lock: arenaLock.
**
** Note: If the arenaLock cannot be created, InitializeArenas()
** fails quietly, returning only PR_FAILURE. This percolates up
** to the application using the Arena API. He gets no arena
** from PL_ArenaAllocate(). It's up to him to fail gracefully
** or recover.
**
*/
static PRStatus InitializeArenas( void )
{
PR_ASSERT( arenaLock == NULL );
arenaLock = PR_NewLock();
if ( arenaLock == NULL )
return PR_FAILURE;
else
return PR_SUCCESS;
} /* end ArenaInitialize() */
static PRStatus LockArena( void )
{
PRStatus rc = PR_CallOnce( &once, InitializeArenas );
if ( PR_FAILURE != rc )
PR_Lock( arenaLock );
return(rc);
} /* end LockArena() */
static void UnlockArena( void )
{
PR_Unlock( arenaLock );
return;
} /* end UnlockArena() */
PR_IMPLEMENT(void) PL_InitArenaPool(
PLArenaPool *pool, const char *name, PRUint32 size, PRUint32 align)
{
#if defined(XP_MAC)
#pragma unused (name)
#endif
if (align == 0)
align = PL_ARENA_DEFAULT_ALIGN;
pool->mask = PR_BITMASK(PR_CeilingLog2(align));
pool->first.next = NULL;
pool->first.base = pool->first.avail = pool->first.limit =
(PRUword)PL_ARENA_ALIGN(pool, &pool->first + 1);
pool->current = &pool->first;
pool->arenasize = size;
#ifdef PL_ARENAMETER
memset(&pool->stats, 0, sizeof pool->stats);
pool->stats.name = strdup(name);
pool->stats.next = arena_stats_list;
arena_stats_list = &pool->stats;
#endif
}
/*
** PL_ArenaAllocate() -- allocate space from an arena pool
**
** Description: PL_ArenaAllocate() allocates space from an arena
** pool.
**
** First, try to satisfy the request from arenas starting at
** pool->current.
**
** If there is not enough space in the arena pool->current, try
** to claim an arena, on a first fit basis, from the global
** freelist (arena_freelist).
**
** If no arena in arena_freelist is suitable, then try to
** allocate a new arena from the heap.
**
** Returns: pointer to allocated space or NULL
**
** Notes: The original implementation had some difficult to
** solve bugs; the code was difficult to read. Sometimes it's
** just easier to rewrite it. I did that. larryh.
**
** See also: bugzilla: 45343.
**
*/
PR_IMPLEMENT(void *) PL_ArenaAllocate(PLArenaPool *pool, PRUint32 nb)
{
PLArena *a;
char *rp; /* returned pointer */
PR_ASSERT((nb & pool->mask) == 0);
nb = (PRUword)PL_ARENA_ALIGN(pool, nb); /* force alignment */
/* attempt to allocate from arenas at pool->current */
{
a = pool->current;
do {
if ( a->avail +nb <= a->limit ) {
pool->current = a;
rp = (void *)a->avail;
a->avail += nb;
return rp;
}
} while( NULL != (a = a->next) );
}
/* attempt to allocate from arena_freelist */
{
PLArena *p; /* previous pointer, for unlinking from freelist */
/* lock the arena_freelist. Make access to the freelist MT-Safe */
if ( PR_FAILURE == LockArena())
return(0);
for ( a = p = arena_freelist; a != NULL ; p = a, a = a->next ) {
if ( a->base +nb <= a->limit ) {
if ( p == arena_freelist )
arena_freelist = a->next;
else
p->next = a->next;
UnlockArena();
a->avail = a->base;
rp = (void *)a->avail;
a->avail += nb;
/* the newly allocated arena is linked after pool->current
* and becomes pool->current */
a->next = pool->current->next;
pool->current->next = a;
pool->current = a;
if ( NULL == pool->first.next )
pool->first.next = a;
return(rp);
}
}
UnlockArena();
}
/* attempt to allocate from the heap */
{
PRUint32 sz = PR_MAX(pool->arenasize, nb);
sz += sizeof *a + pool->mask; /* header and alignment slop */
a = (PLArena*)PR_MALLOC(sz);
if ( NULL != a ) {
a->limit = (PRUword)a + sz;
a->base = a->avail = (PRUword)PL_ARENA_ALIGN(pool, a + 1);
rp = (void *)a->avail;
a->avail += nb;
/* the newly allocated arena is linked after pool->current
* and becomes pool->current */
a->next = pool->current->next;
pool->current->next = a;
pool->current = a;
if ( NULL == pool->first.next )
pool->first.next = a;
PL_COUNT_ARENA(pool,++);
COUNT(pool, nmallocs);
return(rp);
}
}
/* we got to here, and there's no memory to allocate */
return(NULL);
} /* --- end PL_ArenaAllocate() --- */
PR_IMPLEMENT(void *) PL_ArenaGrow(
PLArenaPool *pool, void *p, PRUint32 size, PRUint32 incr)
{
void *newp;
PL_ARENA_ALLOCATE(newp, pool, size + incr);
if (newp)
memcpy(newp, p, size);
return newp;
}
/*
* Free tail arenas linked after head, which may not be the true list head.
* Reset pool->current to point to head in case it pointed at a tail arena.
*/
static void FreeArenaList(PLArenaPool *pool, PLArena *head, PRBool reallyFree)
{
PLArena **ap, *a;
ap = &head->next;
a = *ap;
if (!a)
return;
#ifdef DEBUG
do {
PR_ASSERT(a->base <= a->avail && a->avail <= a->limit);
a->avail = a->base;
PL_CLEAR_UNUSED(a);
} while ((a = a->next) != 0);
a = *ap;
#endif
if (reallyFree) {
do {
*ap = a->next;
PL_CLEAR_ARENA(a);
PL_COUNT_ARENA(pool,--);
PR_DELETE(a);
} while ((a = *ap) != 0);
} else {
/* Insert the whole arena chain at the front of the freelist. */
do {
ap = &(*ap)->next;
} while (*ap);
LockArena();
*ap = arena_freelist;
arena_freelist = a;
head->next = 0;
UnlockArena();
}
pool->current = head;
}
PR_IMPLEMENT(void) PL_ArenaRelease(PLArenaPool *pool, char *mark)
{
PLArena *a;
for (a = pool->first.next; a; a = a->next) {
if (PR_UPTRDIFF(mark, a->base) < PR_UPTRDIFF(a->avail, a->base)) {
a->avail = (PRUword)PL_ARENA_ALIGN(pool, mark);
FreeArenaList(pool, a, PR_FALSE);
return;
}
}
}
PR_IMPLEMENT(void) PL_FreeArenaPool(PLArenaPool *pool)
{
FreeArenaList(pool, &pool->first, PR_FALSE);
COUNT(pool, ndeallocs);
}
PR_IMPLEMENT(void) PL_FinishArenaPool(PLArenaPool *pool)
{
FreeArenaList(pool, &pool->first, PR_TRUE);
#ifdef PL_ARENAMETER
{
PLArenaStats *stats, **statsp;
if (pool->stats.name)
PR_DELETE(pool->stats.name);
for (statsp = &arena_stats_list; (stats = *statsp) != 0;
statsp = &stats->next) {
if (stats == &pool->stats) {
*statsp = stats->next;
return;
}
}
}
#endif
}
PR_IMPLEMENT(void) PL_CompactArenaPool(PLArenaPool *ap)
{
#if XP_MAC
#pragma unused (ap)
#if 0
PRArena *curr = &(ap->first);
while (curr) {
reallocSmaller(curr, curr->avail - (uprword_t)curr);
curr->limit = curr->avail;
curr = curr->next;
}
#endif
#endif
}
PR_IMPLEMENT(void) PL_ArenaFinish()
{
PLArena *a, *next;
for (a = arena_freelist; a; a = next) {
next = a->next;
PR_DELETE(a);
}
arena_freelist = NULL;
if (arenaLock) {
PR_DestroyLock(arenaLock);
arenaLock = NULL;
}
}
#ifdef PL_ARENAMETER
PR_IMPLEMENT(void) PL_ArenaCountAllocation(PLArenaPool *pool, PRUint32 nb)
{
pool->stats.nallocs++;
pool->stats.nbytes += nb;
if (nb > pool->stats.maxalloc)
pool->stats.maxalloc = nb;
pool->stats.variance += nb * nb;
}
PR_IMPLEMENT(void) PL_ArenaCountInplaceGrowth(
PLArenaPool *pool, PRUint32 size, PRUint32 incr)
{
pool->stats.ninplace++;
}
PR_IMPLEMENT(void) PL_ArenaCountGrowth(
PLArenaPool *pool, PRUint32 size, PRUint32 incr)
{
pool->stats.ngrows++;
pool->stats.nbytes += incr;
pool->stats.variance -= size * size;
size += incr;
if (size > pool->stats.maxalloc)
pool->stats.maxalloc = size;
pool->stats.variance += size * size;
}
PR_IMPLEMENT(void) PL_ArenaCountRelease(PLArenaPool *pool, char *mark)
{
pool->stats.nreleases++;
}
PR_IMPLEMENT(void) PL_ArenaCountRetract(PLArenaPool *pool, char *mark)
{
pool->stats.nfastrels++;
}
#include <math.h>
#include <stdio.h>
PR_IMPLEMENT(void) PL_DumpArenaStats(FILE *fp)
{
PLArenaStats *stats;
double mean, variance;
for (stats = arena_stats_list; stats; stats = stats->next) {
if (stats->nallocs != 0) {
mean = (double)stats->nbytes / stats->nallocs;
variance = fabs(stats->variance / stats->nallocs - mean * mean);
} else {
mean = variance = 0;
}
fprintf(fp, "\n%s allocation statistics:\n", stats->name);
fprintf(fp, " number of arenas: %u\n", stats->narenas);
fprintf(fp, " number of allocations: %u\n", stats->nallocs);
fprintf(fp, " number of free arena reclaims: %u\n", stats->nreclaims);
fprintf(fp, " number of malloc calls: %u\n", stats->nmallocs);
fprintf(fp, " number of deallocations: %u\n", stats->ndeallocs);
fprintf(fp, " number of allocation growths: %u\n", stats->ngrows);
fprintf(fp, " number of in-place growths: %u\n", stats->ninplace);
fprintf(fp, "number of released allocations: %u\n", stats->nreleases);
fprintf(fp, " number of fast releases: %u\n", stats->nfastrels);
fprintf(fp, " total bytes allocated: %u\n", stats->nbytes);
fprintf(fp, " mean allocation size: %g\n", mean);
fprintf(fp, " standard deviation: %g\n", sqrt(variance));
fprintf(fp, " maximum allocation size: %u\n", stats->maxalloc);
}
}
#endif /* PL_ARENAMETER */

View File

@@ -0,0 +1,209 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
#ifndef plarena_h___
#define plarena_h___
/*
* Lifetime-based fast allocation, inspired by much prior art, including
* "Fast Allocation and Deallocation of Memory Based on Object Lifetimes"
* David R. Hanson, Software -- Practice and Experience, Vol. 20(1).
*
* Also supports LIFO allocation (PL_ARENA_MARK/PL_ARENA_RELEASE).
*/
#include "prtypes.h"
#include "plarenas.h"
PR_BEGIN_EXTERN_C
typedef struct PLArena PLArena;
struct PLArena {
PLArena *next; /* next arena for this lifetime */
PRUword base; /* aligned base address, follows this header */
PRUword limit; /* one beyond last byte in arena */
PRUword avail; /* points to next available byte */
};
#ifdef PL_ARENAMETER
typedef struct PLArenaStats PLArenaStats;
struct PLArenaStats {
PLArenaStats *next; /* next in arenaStats list */
char *name; /* name for debugging */
PRUint32 narenas; /* number of arenas in pool */
PRUint32 nallocs; /* number of PL_ARENA_ALLOCATE() calls */
PRUint32 nreclaims; /* number of reclaims from freeArenas */
PRUint32 nmallocs; /* number of malloc() calls */
PRUint32 ndeallocs; /* number of lifetime deallocations */
PRUint32 ngrows; /* number of PL_ARENA_GROW() calls */
PRUint32 ninplace; /* number of in-place growths */
PRUint32 nreleases; /* number of PL_ARENA_RELEASE() calls */
PRUint32 nfastrels; /* number of "fast path" releases */
PRUint32 nbytes; /* total bytes allocated */
PRUint32 maxalloc; /* maximum allocation size in bytes */
PRFloat64 variance; /* size variance accumulator */
};
#endif
struct PLArenaPool {
PLArena first; /* first arena in pool list */
PLArena *current; /* arena from which to allocate space */
PRUint32 arenasize; /* net exact size of a new arena */
PRUword mask; /* alignment mask (power-of-2 - 1) */
#ifdef PL_ARENAMETER
PLArenaStats stats;
#endif
};
/*
* If the including .c file uses only one power-of-2 alignment, it may define
* PL_ARENA_CONST_ALIGN_MASK to the alignment mask and save a few instructions
* per ALLOCATE and GROW.
*/
#ifdef PL_ARENA_CONST_ALIGN_MASK
#define PL_ARENA_ALIGN(pool, n) (((PRUword)(n) + PL_ARENA_CONST_ALIGN_MASK) \
& ~PL_ARENA_CONST_ALIGN_MASK)
#define PL_INIT_ARENA_POOL(pool, name, size) \
PL_InitArenaPool(pool, name, size, PL_ARENA_CONST_ALIGN_MASK + 1)
#else
#define PL_ARENA_ALIGN(pool, n) (((PRUword)(n) + (pool)->mask) & ~(pool)->mask)
#endif
#define PL_ARENA_ALLOCATE(p, pool, nb) \
PR_BEGIN_MACRO \
PLArena *_a = (pool)->current; \
PRUint32 _nb = PL_ARENA_ALIGN(pool, nb); \
PRUword _p = _a->avail; \
PRUword _q = _p + _nb; \
if (_q > _a->limit) \
_p = (PRUword)PL_ArenaAllocate(pool, _nb); \
else \
_a->avail = _q; \
p = (void *)_p; \
PL_ArenaCountAllocation(pool, nb); \
PR_END_MACRO
#define PL_ARENA_GROW(p, pool, size, incr) \
PR_BEGIN_MACRO \
PLArena *_a = (pool)->current; \
PRUint32 _incr = PL_ARENA_ALIGN(pool, incr); \
PRUword _p = _a->avail; \
PRUword _q = _p + _incr; \
if (_p == (PRUword)(p) + PL_ARENA_ALIGN(pool, size) && \
_q <= _a->limit) { \
_a->avail = _q; \
PL_ArenaCountInplaceGrowth(pool, size, incr); \
} else { \
p = PL_ArenaGrow(pool, p, size, incr); \
} \
PL_ArenaCountGrowth(pool, size, incr); \
PR_END_MACRO
#define PL_ARENA_MARK(pool) ((void *) (pool)->current->avail)
#define PR_UPTRDIFF(p,q) ((PRUword)(p) - (PRUword)(q))
#ifdef DEBUG
#define PL_FREE_PATTERN 0xDA
#define PL_CLEAR_UNUSED(a) (PR_ASSERT((a)->avail <= (a)->limit), \
memset((void*)(a)->avail, PL_FREE_PATTERN, \
(a)->limit - (a)->avail))
#define PL_CLEAR_ARENA(a) memset((void*)(a), PL_FREE_PATTERN, \
(a)->limit - (PRUword)(a))
#else
#define PL_CLEAR_UNUSED(a)
#define PL_CLEAR_ARENA(a)
#endif
#define PL_ARENA_RELEASE(pool, mark) \
PR_BEGIN_MACRO \
char *_m = (char *)(mark); \
PLArena *_a = (pool)->current; \
if (PR_UPTRDIFF(_m, _a->base) <= PR_UPTRDIFF(_a->avail, _a->base)) { \
_a->avail = (PRUword)PL_ARENA_ALIGN(pool, _m); \
PL_CLEAR_UNUSED(_a); \
PL_ArenaCountRetract(pool, _m); \
} else { \
PL_ArenaRelease(pool, _m); \
} \
PL_ArenaCountRelease(pool, _m); \
PR_END_MACRO
#ifdef PL_ARENAMETER
#define PL_COUNT_ARENA(pool,op) ((pool)->stats.narenas op)
#else
#define PL_COUNT_ARENA(pool,op)
#endif
#define PL_ARENA_DESTROY(pool, a, pnext) \
PR_BEGIN_MACRO \
PL_COUNT_ARENA(pool,--); \
if ((pool)->current == (a)) (pool)->current = &(pool)->first; \
*(pnext) = (a)->next; \
PL_CLEAR_ARENA(a); \
free(a); \
(a) = 0; \
PR_END_MACRO
#ifdef PL_ARENAMETER
#include <stdio.h>
PR_EXTERN(void) PL_ArenaCountAllocation(PLArenaPool *pool, PRUint32 nb);
PR_EXTERN(void) PL_ArenaCountInplaceGrowth(
PLArenaPool *pool, PRUint32 size, PRUint32 incr);
PR_EXTERN(void) PL_ArenaCountGrowth(
PLArenaPool *pool, PRUint32 size, PRUint32 incr);
PR_EXTERN(void) PL_ArenaCountRelease(PLArenaPool *pool, char *mark);
PR_EXTERN(void) PL_ArenaCountRetract(PLArenaPool *pool, char *mark);
PR_EXTERN(void) PL_DumpArenaStats(FILE *fp);
#else /* !PL_ARENAMETER */
#define PL_ArenaCountAllocation(ap, nb) /* nothing */
#define PL_ArenaCountInplaceGrowth(ap, size, incr) /* nothing */
#define PL_ArenaCountGrowth(ap, size, incr) /* nothing */
#define PL_ArenaCountRelease(ap, mark) /* nothing */
#define PL_ArenaCountRetract(ap, mark) /* nothing */
#endif /* !PL_ARENAMETER */
PR_END_EXTERN_C
#endif /* plarena_h___ */

View File

@@ -0,0 +1,112 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions requiored by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
#if defined(PLARENAS_H)
#else /* defined(PLARENAS_H) */
#define PLARENAS_H
PR_BEGIN_EXTERN_C
typedef struct PLArenaPool PLArenaPool;
/*
** Allocate an arena pool as specified by the parameters.
**
** This is equivelant to allocating the space yourself and then
** calling PL_InitArenaPool().
**
** This function may fail (and return a NULL) for a variety of
** reasons. The reason for a particular failure can be discovered
** by calling PR_GetError().
*/
#if 0 /* Not implemented */
PR_EXTERN(PLArenaPool*) PL_AllocArenaPool(
const char *name, PRUint32 size, PRUint32 align);
#endif
/*
** Destroy an arena pool previously allocated by PL_AllocArenaPool().
**
** This function may fail if the arena is not empty and the caller
** wishes to check for empty upon descruction.
*/
#if 0 /* Not implemented */
PR_EXTERN(PRStatus) PL_DestroyArenaPool(PLArenaPool *pool, PRBool checkEmpty);
#endif
/*
** Initialize an arena pool with the given name for debugging and metering,
** with a minimum size per arena of size bytes.
**/
PR_EXTERN(void) PL_InitArenaPool(
PLArenaPool *pool, const char *name, PRUint32 size, PRUint32 align);
/*
** Finish using arenas, freeing all memory associated with them.
**/
PR_EXTERN(void) PL_ArenaFinish(void);
/*
** Free the arenas in pool. The user may continue to allocate from pool
** after calling this function. There is no need to call PL_InitArenaPool()
** again unless PL_FinishArenaPool(pool) has been called.
**/
PR_EXTERN(void) PL_FreeArenaPool(PLArenaPool *pool);
/*
** Free the arenas in pool and finish using it altogether.
**/
PR_EXTERN(void) PL_FinishArenaPool(PLArenaPool *pool);
/*
** Compact all of the arenas in a pool so that no space is wasted.
**/
PR_EXTERN(void) PL_CompactArenaPool(PLArenaPool *pool);
/*
** Friend functions used by the PL_ARENA_*() macros.
**/
PR_EXTERN(void *) PL_ArenaAllocate(PLArenaPool *pool, PRUint32 nb);
PR_EXTERN(void *) PL_ArenaGrow(
PLArenaPool *pool, void *p, PRUint32 size, PRUint32 incr);
PR_EXTERN(void) PL_ArenaRelease(PLArenaPool *pool, char *mark);
PR_END_EXTERN_C
#endif /* defined(PLARENAS_H) */
/* plarenas */

View File

@@ -0,0 +1,99 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
#include "prinit.h"
#include <winver.h>
#define MY_LIBNAME "plds"
#define MY_FILEDESCRIPTION "PLDS Library"
#define STRINGIZE(x) #x
#define STRINGIZE2(x) STRINGIZE(x)
#define PR_VMAJOR_STR STRINGIZE2(PR_VMAJOR)
#ifdef _DEBUG
#define MY_DEBUG_STR " (debug)"
#define MY_FILEFLAGS_1 VS_FF_DEBUG
#else
#define MY_DEBUG_STR ""
#define MY_FILEFLAGS_1 0x0L
#endif
#if PR_BETA
#define MY_FILEFLAGS_2 MY_FILEFLAGS_1|VS_FF_PRERELEASE
#else
#define MY_FILEFLAGS_2 MY_FILEFLAGS_1
#endif
#ifdef WINNT
#define MY_FILEOS VOS_NT_WINDOWS32
#define MY_INTERNAL_NAME "lib" MY_LIBNAME PR_VMAJOR_STR
#else
#define MY_FILEOS VOS__WINDOWS32
#define MY_INTERNAL_NAME MY_LIBNAME PR_VMAJOR_STR
#endif
/////////////////////////////////////////////////////////////////////////////
//
// Version-information resource
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION PR_VMAJOR,PR_VMINOR,PR_VPATCH,0
PRODUCTVERSION PR_VMAJOR,PR_VMINOR,PR_VPATCH,0
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS MY_FILEFLAGS_2
FILEOS MY_FILEOS
FILETYPE VFT_DLL
FILESUBTYPE 0x0L // not used
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904B0" // Lang=US English, CharSet=Unicode
BEGIN
VALUE "CompanyName", "Netscape Communications Corporation\0"
VALUE "FileDescription", MY_FILEDESCRIPTION MY_DEBUG_STR "\0"
VALUE "FileVersion", PR_VERSION "\0"
VALUE "InternalName", MY_INTERNAL_NAME "\0"
VALUE "LegalCopyright", "Copyright \251 1996-2000 Netscape Communications Corporation\0"
VALUE "OriginalFilename", MY_INTERNAL_NAME ".dll\0"
VALUE "ProductName", "Netscape Portable Runtime\0"
VALUE "ProductVersion", PR_VERSION "\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END

View File

@@ -0,0 +1,538 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
/*
* PL hash table package.
*/
#include "plhash.h"
#include "prbit.h"
#include "prlog.h"
#include "prmem.h"
#include "prtypes.h"
#include <stdlib.h>
#include <string.h>
/* Compute the number of buckets in ht */
#define NBUCKETS(ht) (1 << (PL_HASH_BITS - (ht)->shift))
/* The smallest table has 16 buckets */
#define MINBUCKETSLOG2 4
#define MINBUCKETS (1 << MINBUCKETSLOG2)
/* Compute the maximum entries given n buckets that we will tolerate, ~90% */
#define OVERLOADED(n) ((n) - ((n) >> 3))
/* Compute the number of entries below which we shrink the table by half */
#define UNDERLOADED(n) (((n) > MINBUCKETS) ? ((n) >> 2) : 0)
/*
** Stubs for default hash allocator ops.
*/
static void * PR_CALLBACK
DefaultAllocTable(void *pool, PRSize size)
{
#if defined(XP_MAC)
#pragma unused (pool)
#endif
return PR_MALLOC(size);
}
static void PR_CALLBACK
DefaultFreeTable(void *pool, void *item)
{
#if defined(XP_MAC)
#pragma unused (pool)
#endif
PR_Free(item);
}
static PLHashEntry * PR_CALLBACK
DefaultAllocEntry(void *pool, const void *key)
{
#if defined(XP_MAC)
#pragma unused (pool,key)
#endif
return PR_NEW(PLHashEntry);
}
static void PR_CALLBACK
DefaultFreeEntry(void *pool, PLHashEntry *he, PRUintn flag)
{
#if defined(XP_MAC)
#pragma unused (pool)
#endif
if (flag == HT_FREE_ENTRY)
PR_Free(he);
}
static PLHashAllocOps defaultHashAllocOps = {
DefaultAllocTable, DefaultFreeTable,
DefaultAllocEntry, DefaultFreeEntry
};
PR_IMPLEMENT(PLHashTable *)
PL_NewHashTable(PRUint32 n, PLHashFunction keyHash,
PLHashComparator keyCompare, PLHashComparator valueCompare,
const PLHashAllocOps *allocOps, void *allocPriv)
{
PLHashTable *ht;
PRSize nb;
if (n <= MINBUCKETS) {
n = MINBUCKETSLOG2;
} else {
n = PR_CeilingLog2(n);
if ((PRInt32)n < 0)
return 0;
}
if (!allocOps) allocOps = &defaultHashAllocOps;
ht = (PLHashTable*)((*allocOps->allocTable)(allocPriv, sizeof *ht));
if (!ht)
return 0;
memset(ht, 0, sizeof *ht);
ht->shift = PL_HASH_BITS - n;
n = 1 << n;
#if defined(WIN16)
if (n > 16000) {
(*allocOps->freeTable)(allocPriv, ht);
return 0;
}
#endif /* WIN16 */
nb = n * sizeof(PLHashEntry *);
ht->buckets = (PLHashEntry**)((*allocOps->allocTable)(allocPriv, nb));
if (!ht->buckets) {
(*allocOps->freeTable)(allocPriv, ht);
return 0;
}
memset(ht->buckets, 0, nb);
ht->keyHash = keyHash;
ht->keyCompare = keyCompare;
ht->valueCompare = valueCompare;
ht->allocOps = allocOps;
ht->allocPriv = allocPriv;
return ht;
}
PR_IMPLEMENT(void)
PL_HashTableDestroy(PLHashTable *ht)
{
PRUint32 i, n;
PLHashEntry *he, *next;
const PLHashAllocOps *allocOps = ht->allocOps;
void *allocPriv = ht->allocPriv;
n = NBUCKETS(ht);
for (i = 0; i < n; i++) {
for (he = ht->buckets[i]; he; he = next) {
next = he->next;
(*allocOps->freeEntry)(allocPriv, he, HT_FREE_ENTRY);
}
}
#ifdef DEBUG
memset(ht->buckets, 0xDB, n * sizeof ht->buckets[0]);
#endif
(*allocOps->freeTable)(allocPriv, ht->buckets);
#ifdef DEBUG
memset(ht, 0xDB, sizeof *ht);
#endif
(*allocOps->freeTable)(allocPriv, ht);
}
/*
** Multiplicative hash, from Knuth 6.4.
*/
#define GOLDEN_RATIO 0x9E3779B9U
PR_IMPLEMENT(PLHashEntry **)
PL_HashTableRawLookup(PLHashTable *ht, PLHashNumber keyHash, const void *key)
{
PLHashEntry *he, **hep, **hep0;
PLHashNumber h;
#ifdef HASHMETER
ht->nlookups++;
#endif
h = keyHash * GOLDEN_RATIO;
h >>= ht->shift;
hep = hep0 = &ht->buckets[h];
while ((he = *hep) != 0) {
if (he->keyHash == keyHash && (*ht->keyCompare)(key, he->key)) {
/* Move to front of chain if not already there */
if (hep != hep0) {
*hep = he->next;
he->next = *hep0;
*hep0 = he;
}
return hep0;
}
hep = &he->next;
#ifdef HASHMETER
ht->nsteps++;
#endif
}
return hep;
}
/*
** Same as PL_HashTableRawLookup but doesn't reorder the hash entries.
*/
PR_IMPLEMENT(PLHashEntry **)
PL_HashTableRawLookupConst(PLHashTable *ht, PLHashNumber keyHash,
const void *key)
{
PLHashEntry *he, **hep;
PLHashNumber h;
#ifdef HASHMETER
ht->nlookups++;
#endif
h = keyHash * GOLDEN_RATIO;
h >>= ht->shift;
hep = &ht->buckets[h];
while ((he = *hep) != 0) {
if (he->keyHash == keyHash && (*ht->keyCompare)(key, he->key)) {
break;
}
hep = &he->next;
#ifdef HASHMETER
ht->nsteps++;
#endif
}
return hep;
}
PR_IMPLEMENT(PLHashEntry *)
PL_HashTableRawAdd(PLHashTable *ht, PLHashEntry **hep,
PLHashNumber keyHash, const void *key, void *value)
{
PRUint32 i, n;
PLHashEntry *he, *next, **oldbuckets;
PRSize nb;
/* Grow the table if it is overloaded */
n = NBUCKETS(ht);
if (ht->nentries >= OVERLOADED(n)) {
oldbuckets = ht->buckets;
#if defined(WIN16)
if (2 * n > 16000)
return 0;
#endif /* WIN16 */
nb = 2 * n * sizeof(PLHashEntry *);
ht->buckets = (PLHashEntry**)
((*ht->allocOps->allocTable)(ht->allocPriv, nb));
if (!ht->buckets) {
ht->buckets = oldbuckets;
return 0;
}
memset(ht->buckets, 0, nb);
#ifdef HASHMETER
ht->ngrows++;
#endif
ht->shift--;
for (i = 0; i < n; i++) {
for (he = oldbuckets[i]; he; he = next) {
next = he->next;
hep = PL_HashTableRawLookup(ht, he->keyHash, he->key);
PR_ASSERT(*hep == 0);
he->next = 0;
*hep = he;
}
}
#ifdef DEBUG
memset(oldbuckets, 0xDB, n * sizeof oldbuckets[0]);
#endif
(*ht->allocOps->freeTable)(ht->allocPriv, oldbuckets);
hep = PL_HashTableRawLookup(ht, keyHash, key);
}
/* Make a new key value entry */
he = (*ht->allocOps->allocEntry)(ht->allocPriv, key);
if (!he)
return 0;
he->keyHash = keyHash;
he->key = key;
he->value = value;
he->next = *hep;
*hep = he;
ht->nentries++;
return he;
}
PR_IMPLEMENT(PLHashEntry *)
PL_HashTableAdd(PLHashTable *ht, const void *key, void *value)
{
PLHashNumber keyHash;
PLHashEntry *he, **hep;
keyHash = (*ht->keyHash)(key);
hep = PL_HashTableRawLookup(ht, keyHash, key);
if ((he = *hep) != 0) {
/* Hit; see if values match */
if ((*ht->valueCompare)(he->value, value)) {
/* key,value pair is already present in table */
return he;
}
if (he->value)
(*ht->allocOps->freeEntry)(ht->allocPriv, he, HT_FREE_VALUE);
he->value = value;
return he;
}
return PL_HashTableRawAdd(ht, hep, keyHash, key, value);
}
PR_IMPLEMENT(void)
PL_HashTableRawRemove(PLHashTable *ht, PLHashEntry **hep, PLHashEntry *he)
{
PRUint32 i, n;
PLHashEntry *next, **oldbuckets;
PRSize nb;
*hep = he->next;
(*ht->allocOps->freeEntry)(ht->allocPriv, he, HT_FREE_ENTRY);
/* Shrink table if it's underloaded */
n = NBUCKETS(ht);
if (--ht->nentries < UNDERLOADED(n)) {
oldbuckets = ht->buckets;
nb = n * sizeof(PLHashEntry*) / 2;
ht->buckets = (PLHashEntry**)(
(*ht->allocOps->allocTable)(ht->allocPriv, nb));
if (!ht->buckets) {
ht->buckets = oldbuckets;
return;
}
memset(ht->buckets, 0, nb);
#ifdef HASHMETER
ht->nshrinks++;
#endif
ht->shift++;
for (i = 0; i < n; i++) {
for (he = oldbuckets[i]; he; he = next) {
next = he->next;
hep = PL_HashTableRawLookup(ht, he->keyHash, he->key);
PR_ASSERT(*hep == 0);
he->next = 0;
*hep = he;
}
}
#ifdef DEBUG
memset(oldbuckets, 0xDB, n * sizeof oldbuckets[0]);
#endif
(*ht->allocOps->freeTable)(ht->allocPriv, oldbuckets);
}
}
PR_IMPLEMENT(PRBool)
PL_HashTableRemove(PLHashTable *ht, const void *key)
{
PLHashNumber keyHash;
PLHashEntry *he, **hep;
keyHash = (*ht->keyHash)(key);
hep = PL_HashTableRawLookup(ht, keyHash, key);
if ((he = *hep) == 0)
return PR_FALSE;
/* Hit; remove element */
PL_HashTableRawRemove(ht, hep, he);
return PR_TRUE;
}
PR_IMPLEMENT(void *)
PL_HashTableLookup(PLHashTable *ht, const void *key)
{
PLHashNumber keyHash;
PLHashEntry *he, **hep;
keyHash = (*ht->keyHash)(key);
hep = PL_HashTableRawLookup(ht, keyHash, key);
if ((he = *hep) != 0) {
return he->value;
}
return 0;
}
/*
** Same as PL_HashTableLookup but doesn't reorder the hash entries.
*/
PR_IMPLEMENT(void *)
PL_HashTableLookupConst(PLHashTable *ht, const void *key)
{
PLHashNumber keyHash;
PLHashEntry *he, **hep;
keyHash = (*ht->keyHash)(key);
hep = PL_HashTableRawLookupConst(ht, keyHash, key);
if ((he = *hep) != 0) {
return he->value;
}
return 0;
}
/*
** Iterate over the entries in the hash table calling func for each
** entry found. Stop if "f" says to (return value & PR_ENUMERATE_STOP).
** Return a count of the number of elements scanned.
*/
PR_IMPLEMENT(int)
PL_HashTableEnumerateEntries(PLHashTable *ht, PLHashEnumerator f, void *arg)
{
PLHashEntry *he, **hep;
PRUint32 i, nbuckets;
int rv, n = 0;
PLHashEntry *todo = 0;
nbuckets = NBUCKETS(ht);
for (i = 0; i < nbuckets; i++) {
hep = &ht->buckets[i];
while ((he = *hep) != 0) {
rv = (*f)(he, n, arg);
n++;
if (rv & (HT_ENUMERATE_REMOVE | HT_ENUMERATE_UNHASH)) {
*hep = he->next;
if (rv & HT_ENUMERATE_REMOVE) {
he->next = todo;
todo = he;
}
} else {
hep = &he->next;
}
if (rv & HT_ENUMERATE_STOP) {
goto out;
}
}
}
out:
hep = &todo;
while ((he = *hep) != 0) {
PL_HashTableRawRemove(ht, hep, he);
}
return n;
}
#ifdef HASHMETER
#include <math.h>
#include <stdio.h>
PR_IMPLEMENT(void)
PL_HashTableDumpMeter(PLHashTable *ht, PLHashEnumerator dump, FILE *fp)
{
double mean, variance;
PRUint32 nchains, nbuckets;
PRUint32 i, n, maxChain, maxChainLen;
PLHashEntry *he;
variance = 0;
nchains = 0;
maxChainLen = 0;
nbuckets = NBUCKETS(ht);
for (i = 0; i < nbuckets; i++) {
he = ht->buckets[i];
if (!he)
continue;
nchains++;
for (n = 0; he; he = he->next)
n++;
variance += n * n;
if (n > maxChainLen) {
maxChainLen = n;
maxChain = i;
}
}
mean = (double)ht->nentries / nchains;
variance = fabs(variance / nchains - mean * mean);
fprintf(fp, "\nHash table statistics:\n");
fprintf(fp, " number of lookups: %u\n", ht->nlookups);
fprintf(fp, " number of entries: %u\n", ht->nentries);
fprintf(fp, " number of grows: %u\n", ht->ngrows);
fprintf(fp, " number of shrinks: %u\n", ht->nshrinks);
fprintf(fp, " mean steps per hash: %g\n", (double)ht->nsteps
/ ht->nlookups);
fprintf(fp, "mean hash chain length: %g\n", mean);
fprintf(fp, " standard deviation: %g\n", sqrt(variance));
fprintf(fp, " max hash chain length: %u\n", maxChainLen);
fprintf(fp, " max hash chain: [%u]\n", maxChain);
for (he = ht->buckets[maxChain], i = 0; he; he = he->next, i++)
if ((*dump)(he, i, fp) != HT_ENUMERATE_NEXT)
break;
}
#endif /* HASHMETER */
PR_IMPLEMENT(int)
PL_HashTableDump(PLHashTable *ht, PLHashEnumerator dump, FILE *fp)
{
int count;
count = PL_HashTableEnumerateEntries(ht, dump, fp);
#ifdef HASHMETER
PL_HashTableDumpMeter(ht, dump, fp);
#endif
return count;
}
PR_IMPLEMENT(PLHashNumber)
PL_HashString(const void *key)
{
PLHashNumber h;
const PRUint8 *s;
h = 0;
for (s = (const PRUint8*)key; *s; s++)
h = (h >> 28) ^ (h << 4) ^ *s;
return h;
}
PR_IMPLEMENT(int)
PL_CompareStrings(const void *v1, const void *v2)
{
return strcmp((const char*)v1, (const char*)v2) == 0;
}
PR_IMPLEMENT(int)
PL_CompareValues(const void *v1, const void *v2)
{
return v1 == v2;
}

View File

@@ -0,0 +1,162 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
#ifndef plhash_h___
#define plhash_h___
/*
* API to portable hash table code.
*/
#include <stdio.h>
#include "prtypes.h"
PR_BEGIN_EXTERN_C
typedef struct PLHashEntry PLHashEntry;
typedef struct PLHashTable PLHashTable;
typedef PRUint32 PLHashNumber;
#define PL_HASH_BITS 32 /* Number of bits in PLHashNumber */
typedef PLHashNumber (PR_CALLBACK *PLHashFunction)(const void *key);
typedef PRIntn (PR_CALLBACK *PLHashComparator)(const void *v1, const void *v2);
#if defined(XP_OS2_VACPP) && defined(VACPP_FLIP) /* for nsSpaceManager.cpp */
PR_END_EXTERN_C /* and nsHTMLDocument.cpp */
#endif
typedef PRIntn (PR_CALLBACK *PLHashEnumerator)(PLHashEntry *he, PRIntn i, void *arg);
#if defined(XP_OS2_VACPP) && defined(VACPP_FLIP)
PR_BEGIN_EXTERN_C
#endif
/* Flag bits in PLHashEnumerator's return value */
#define HT_ENUMERATE_NEXT 0 /* continue enumerating entries */
#define HT_ENUMERATE_STOP 1 /* stop enumerating entries */
#define HT_ENUMERATE_REMOVE 2 /* remove and free the current entry */
#define HT_ENUMERATE_UNHASH 4 /* just unhash the current entry */
typedef struct PLHashAllocOps {
void * (PR_CALLBACK *allocTable)(void *pool, PRSize size);
void (PR_CALLBACK *freeTable)(void *pool, void *item);
PLHashEntry * (PR_CALLBACK *allocEntry)(void *pool, const void *key);
void (PR_CALLBACK *freeEntry)(void *pool, PLHashEntry *he, PRUintn flag);
} PLHashAllocOps;
#define HT_FREE_VALUE 0 /* just free the entry's value */
#define HT_FREE_ENTRY 1 /* free value and entire entry */
struct PLHashEntry {
PLHashEntry *next; /* hash chain linkage */
PLHashNumber keyHash; /* key hash function result */
const void *key; /* ptr to opaque key */
void *value; /* ptr to opaque value */
};
struct PLHashTable {
PLHashEntry **buckets; /* vector of hash buckets */
PRUint32 nentries; /* number of entries in table */
PRUint32 shift; /* multiplicative hash shift */
PLHashFunction keyHash; /* key hash function */
PLHashComparator keyCompare; /* key comparison function */
PLHashComparator valueCompare; /* value comparison function */
const PLHashAllocOps *allocOps; /* allocation operations */
void *allocPriv; /* allocation private data */
#ifdef HASHMETER
PRUint32 nlookups; /* total number of lookups */
PRUint32 nsteps; /* number of hash chains traversed */
PRUint32 ngrows; /* number of table expansions */
PRUint32 nshrinks; /* number of table contractions */
#endif
};
/*
* Create a new hash table.
* If allocOps is null, use default allocator ops built on top of malloc().
*/
PR_EXTERN(PLHashTable *)
PL_NewHashTable(PRUint32 numBuckets, PLHashFunction keyHash,
PLHashComparator keyCompare, PLHashComparator valueCompare,
const PLHashAllocOps *allocOps, void *allocPriv);
PR_EXTERN(void)
PL_HashTableDestroy(PLHashTable *ht);
/* Higher level access methods */
PR_EXTERN(PLHashEntry *)
PL_HashTableAdd(PLHashTable *ht, const void *key, void *value);
PR_EXTERN(PRBool)
PL_HashTableRemove(PLHashTable *ht, const void *key);
PR_EXTERN(void *)
PL_HashTableLookup(PLHashTable *ht, const void *key);
PR_EXTERN(void *)
PL_HashTableLookupConst(PLHashTable *ht, const void *key);
PR_EXTERN(PRIntn)
PL_HashTableEnumerateEntries(PLHashTable *ht, PLHashEnumerator f, void *arg);
/* General-purpose C string hash function. */
PR_EXTERN(PLHashNumber)
PL_HashString(const void *key);
/* Compare strings using strcmp(), return true if equal. */
PR_EXTERN(PRIntn)
PL_CompareStrings(const void *v1, const void *v2);
/* Stub function just returns v1 == v2 */
PR_EXTERN(PRIntn)
PL_CompareValues(const void *v1, const void *v2);
/* Low level access methods */
PR_EXTERN(PLHashEntry **)
PL_HashTableRawLookup(PLHashTable *ht, PLHashNumber keyHash, const void *key);
PR_EXTERN(PLHashEntry **)
PL_HashTableRawLookupConst(PLHashTable *ht, PLHashNumber keyHash,
const void *key);
PR_EXTERN(PLHashEntry *)
PL_HashTableRawAdd(PLHashTable *ht, PLHashEntry **hep, PLHashNumber keyHash,
const void *key, void *value);
PR_EXTERN(void)
PL_HashTableRawRemove(PLHashTable *ht, PLHashEntry **hep, PLHashEntry *he);
/* This can be trivially implemented using PL_HashTableEnumerateEntries. */
PR_EXTERN(PRIntn)
PL_HashTableDump(PLHashTable *ht, PLHashEnumerator dump, FILE *fp);
PR_END_EXTERN_C
#endif /* plhash_h___ */

View File

@@ -0,0 +1,122 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
#include "prinit.h"
#include "prvrsion.h"
/************************************************************************/
/**************************IDENTITY AND VERSIONING***********************/
/************************************************************************/
#include "_pl_bld.h"
#if !defined(_BUILD_TIME)
#ifdef HAVE_LONG_LONG
#define _BUILD_TIME 0
#else
#define _BUILD_TIME {0, 0}
#endif
#endif
#if !defined(_BUILD_STRING)
#define _BUILD_STRING ""
#endif
#if !defined(_PRODUCTION)
#define _PRODUCTION ""
#endif
#if defined(DEBUG)
#define _DEBUG_STRING " (debug)"
#else
#define _DEBUG_STRING ""
#endif
/*
* A trick to expand the PR_VMAJOR macro before concatenation.
*/
#define CONCAT(x, y) x ## y
#define CONCAT2(x, y) CONCAT(x, y)
#define VERSION_DESC_NAME CONCAT2(prVersionDescription_libplds, PR_VMAJOR)
PRVersionDescription VERSION_DESC_NAME =
{
/* version */ 2, /* this is the only one supported */
/* buildTime */ _BUILD_TIME, /* usecs since midnight 1/1/1970 GMT */
/* buildTimeString */ _BUILD_STRING, /* ditto, but human readable */
/* vMajor */ PR_VMAJOR, /* NSPR's version number */
/* vMinor */ PR_VMINOR, /* and minor version */
/* vPatch */ PR_VPATCH, /* and patch */
/* beta */ PR_BETA, /* beta build boolean */
#if defined(DEBUG)
/* debug */ PR_TRUE, /* a debug build */
#else
/* debug */ PR_FALSE, /* an optomized build */
#endif
/* special */ PR_FALSE, /* they're all special, but ... */
/* filename */ _PRODUCTION, /* the produced library name */
/* description */ "Portable runtime", /* what we are */
/* security */ "N/A", /* not applicable here */
/* copywrite */ "Copyright (c) 1998 Netscape Communications Corporation. All Rights Reserved",
/* comment */ "http://www.mozilla.org/MPL/",
/* specialString */ ""
};
#ifdef XP_UNIX
/*
* Version information for the 'ident' and 'what commands
*
* NOTE: the first component of the concatenated rcsid string
* must not end in a '$' to prevent rcs keyword substitution.
*/
static char rcsid[] = "$Header: NSPR " PR_VERSION _DEBUG_STRING
" " _BUILD_STRING " $";
static char sccsid[] = "@(#)NSPR " PR_VERSION _DEBUG_STRING
" " _BUILD_STRING;
#endif /* XP_UNIX */
PR_IMPLEMENT(const PRVersionDescription*) libVersionPoint()
{
#ifdef XP_UNIX
/*
* Add dummy references to rcsid and sccsid to prevent them
* from being optimized away as unused variables.
*/
const char *dummy;
dummy = rcsid;
dummy = sccsid;
#endif
return &VERSION_DESC_NAME;
} /* versionEntryPointType */
/* plvrsion.c */

View File

@@ -0,0 +1,52 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#! gmake
MOD_DEPTH = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(MOD_DEPTH)/config/autoconf.mk
export NSPR20=1
include $(topsrcdir)/config/config.mk
DIRS = include src
include $(topsrcdir)/config/rules.mk
export:: $(TARGETS)

View File

@@ -0,0 +1,20 @@
NSPR 2.0 libc functions
-----------------------
Last edited: AOF 04 March 1997
This directory contains various libc-types of functions. All functions in
this directory are platform independent, thread friendly (both safe and
efficient). They are contributed from various sources, though the contri-
butions are monitored by the NSPR group (mailto:freier).
All API items exported by these functions will contain the same three
character prefix, "PL_" (Portable Library). Internal function names
that are not exported (static) are of little concern, though some caution
must be used on those elements that are 'extern' but not really intended
to be part of the API. Those should all have a prefix of "_PL_" (is that
legal?).
The responsibility for contributions in this area are distributed among
all interested parties.

View File

@@ -0,0 +1,9 @@
#
# This is a list of local files which get copied to the mozilla:dist directory
#
plbase64.h
plerror.h
plgetopt.h
plresolv.h
plstr.h

View File

@@ -0,0 +1,57 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#! gmake
MOD_DEPTH = ../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(MOD_DEPTH)/config/autoconf.mk
include $(topsrcdir)/config/config.mk
HEADERS = $(wildcard $(srcdir)/*.h)
RELEASE_HEADERS = $(HEADERS)
RELEASE_HEADERS_DEST = $(RELEASE_INCLUDE_DIR)
include $(topsrcdir)/config/rules.mk
export:: $(HEADERS)
$(INSTALL) -m 444 $(HEADERS) $(dist_includedir)
ifeq ($(MOZ_BITS),16)
$(INSTALL) -m 444 $(HEADERS) $(MOZ_INCL)
endif

View File

@@ -0,0 +1,7 @@
NSPR 2.0 libc functions
-----------------------
Last edited: AOF 04 March 1997
This directory contains the API for various libc-types of functions.

View File

@@ -0,0 +1,95 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
#ifndef _plbase64_h
#define _plbase64_h
#include "prtypes.h"
PR_BEGIN_EXTERN_C
/*
* PL_Base64Encode
*
* This routine encodes the data pointed to by the "src" parameter using the
* base64 algorithm, and returns a pointer to the result. If the "srclen"
* parameter is not zero, it specifies the length of the source data. If it
* is zero, the source data is assumed to be null-terminated, and PL_strlen
* is used to determine the source length. If the "dest" parameter is not
* null, it is assumed to point to a buffer of sufficient size (which may be
* calculated: ((srclen + 2)/3)*4) into which the encoded data is placed
* (without any termination). If the "dest" parameter is null, a buffer is
* allocated from the heap to hold the encoded data, and the result *will*
* be terminated with an extra null character. It is the caller's
* responsibility to free the result when it is allocated. A null is returned
* if the allocation fails.
*/
PR_EXTERN(char *)
PL_Base64Encode
(
const char *src,
PRUint32 srclen,
char *dest
);
/*
* PL_Base64Decode
*
* This routine decodes the data pointed to by the "src" parameter using
* the base64 algorithm, and returns a pointer to the result. The source
* may either include or exclude any trailing '=' characters. If the
* "srclen" parameter is not zero, it specifies the length of the source
* data. If it is zero, PL_strlen will be used to determine the source
* length. If the "dest" parameter is not null, it is assumed to point to
* a buffer of sufficient size (which may be calculated: (srclen * 3)/4
* when srclen includes the '=' characters) into which the decoded data
* is placed (without any termination). If the "dest" parameter is null,
* a buffer is allocated from the heap to hold the decoded data, and the
* result *will* be terminated with an extra null character. It is the
* caller's responsibility to free the result when it is allocated. A null
* is retuned if the allocation fails, or if the source is not well-coded.
*/
PR_EXTERN(char *)
PL_Base64Decode
(
const char *src,
PRUint32 srclen,
char *dest
);
PR_END_EXTERN_C
#endif /* _plbase64_h */

View File

@@ -0,0 +1,63 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions requiored by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
/*
** File: plerror.h
** Description: Simple routine to print translate the calling thread's
** error numbers and print them.
*/
#if defined(PLERROR_H)
#else
#define PLERROR_H
#include "prio.h"
#include "prtypes.h"
PR_BEGIN_EXTERN_C
/*
** Print the messages to "syserr" prepending 'msg' if not NULL.
*/
PR_EXTERN(void) PL_PrintError(const char *msg);
/*
** Print the messages to specified output file prepending 'msg' if not NULL.
*/
PR_EXTERN(void) PL_FPrintError(PRFileDesc *output, const char *msg);
PR_END_EXTERN_C
#endif /* defined(PLERROR_H) */
/* plerror.h */

View File

@@ -0,0 +1,78 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
/*
** File: plgetopt.h
** Description: utilities to parse argc/argv
*/
#if defined(PLGETOPT_H_)
#else
#define PLGETOPT_H_
#include "prtypes.h"
PR_BEGIN_EXTERN_C
typedef struct PLOptionInternal PLOptionInternal;
typedef enum
{
PL_OPT_OK, /* all's well with the option */
PL_OPT_EOL, /* end of options list */
PL_OPT_BAD /* invalid option (and value) */
} PLOptStatus;
typedef struct PLOptState
{
char option; /* the name of the option */
const char *value; /* the value of that option | NULL */
PLOptionInternal *internal; /* private processing state */
} PLOptState;
PR_EXTERN(PLOptState*) PL_CreateOptState(
PRIntn argc, char **argv, const char *options);
PR_EXTERN(void) PL_DestroyOptState(PLOptState *opt);
PR_EXTERN(PLOptStatus) PL_GetNextOpt(PLOptState *opt);
PR_END_EXTERN_C
#endif /* defined(PLGETOPT_H_) */
/* plgetopt.h */

View File

@@ -0,0 +1,105 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
/*
* plresolv.h - asynchronous name resolution using DNS
*/
#ifndef _PLRESOLV_H_
#define _PLRESOLV_H_
/*
** THIS IS WORK IN PROGRESS. DO NOT ATTEMPT TO USE ANY PORTION OF THIS
** API UNTIL THIS MESSAGE NO LONGER EXISTS. IF YOU DO, THEN YOU SURRENDER
** THE RIGHT TO COMPLAIN ABOUT ANY CONTENT.
*/
#if defined(XP_UNIX)
#include <prtypes.h>
#include <prnetdb.h>
NSPR_BEGIN_EXTERN_C
#define PL_RESOLVE_MAXHOSTENTBUF 1024
#define PL_RESOLVE_DEFAULT_TIMEOUT 0
/* Error return codes */
#define PL_RESOLVE_OK 0
#define PL_RESOLVE_EWINIT 1 /* Failed to initialize window */
#define PL_RESOLVE_EMAKE 2 /* Failed to create request */
#define PL_RESOLVE_ELAUNCH 3 /* Error launching Async request */
#define PL_RESOLVE_ETIMEDOUT 4 /* Request timed-out */
#define PL_RESOLVE_EINVAL 5 /* Invalid argument */
#define PL_RESOLVE_EOVERFLOW 6 /* Buffer Overflow */
#define PL_RESOLVE_EUNKNOWN 7 /* berzerk error */
/* ----------- Function Prototypes ----------------*/
PR_EXTERN(PRStatus) PL_ResolveName(
const char *name, unsigned char *buf,
PRIntn bufsize, PRIntervalTime timeout,
PRHostEnt *hostentry, PRIntervalTime *ttl);
PR_EXTERN(PRStatus) PL_ResolveAddr(
const PRNetAddr *address, unsigned char *buf,
PRIntn bufsize, PRIntervalTime timeout,
PRHostEnt *hostentry, PRIntervalTime *ttl);
typedef struct PLResolveStats {
int re_errors;
int re_nu_look;
int re_na_look;
int re_replies;
int re_requests;
int re_resends;
int re_sent;
int re_timeouts;
} PLResolveStats;
typedef struct PLResoveInfo {
PRBool enabled;
PRUint32 numNameLookups;
PRUint32 numAddrLookups;
PRUint32 numLookupsInProgress;
PLResolveStats stats;
} PLResoveInfo;
PR_EXTERN(void) PL_ResolveInfo(PLResoveInfo *info);
NSPR_END_EXTERN_C
#endif /* defined(XP_UNIX) */
#endif /* _PLRESOLV_H_ */

View File

@@ -0,0 +1,444 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
#ifndef _plstr_h
#define _plstr_h
/*
* plstr.h
*
* This header file exports the API to the NSPR portable library or string-
* handling functions.
*
* This API was not designed as an "optimal" or "ideal" string library; it
* was based on the good ol' unix string.3 functions, and was written to
*
* 1) replace the libc functions, for cross-platform consistancy,
* 2) complete the API on platforms lacking common functions (e.g.,
* strcase*), and
* 3) to implement some obvious "closure" functions that I've seen
* people hacking around in our code.
*
* Point number three largely means that most functions have an "strn"
* limited-length version, and all comparison routines have a non-case-
* sensitive version available.
*/
#include "prtypes.h"
PR_BEGIN_EXTERN_C
/*
* PL_strlen
*
* Returns the length of the provided string, not including the trailing '\0'.
*/
PR_EXTERN(PRUint32)
PL_strlen(const char *str);
/*
* PL_strnlen
*
* Returns the length of the provided string, not including the trailing '\0',
* up to the indicated maximum. The string will not be examined beyond the
* maximum; if no terminating '\0' is found, the maximum will be returned.
*/
PR_EXTERN(PRUint32)
PL_strnlen(const char *str, PRUint32 max);
/*
* PL_strcpy
*
* Copies the source string, up to and including the trailing '\0', into the
* destination buffer. It does not (can not) verify that the destination
* buffer is large enough. It returns the "dest" argument.
*/
PR_EXTERN(char *)
PL_strcpy(char *dest, const char *src);
/*
* PL_strncpy
*
* Copies the source string into the destination buffer, up to and including
* the trailing '\0' or up to and including the max'th character, whichever
* comes first. It does not (can not) verify that the destination buffer is
* large enough. If the source string is longer than the maximum length,
* the result will *not* be null-terminated (JLRU).
*/
PR_EXTERN(char *)
PL_strncpy(char *dest, const char *src, PRUint32 max);
/*
* PL_strncpyz
*
* Copies the source string into the destination buffer, up to and including
* the trailing '\0' or up but not including the max'th character, whichever
* comes first. It does not (can not) verify that the destination buffer is
* large enough. The destination string is always terminated with a '\0',
* unlike the traditional libc implementation. It returns the "dest" argument.
*
* NOTE: If you call this with a source "abcdefg" and a max of 5, the
* destination will end up with "abcd\0" (i.e., it's strlen length will be 4)!
*
* This means you can do this:
*
* char buffer[ SOME_SIZE ];
* PL_strncpyz(buffer, src, sizeof(buffer));
*
* and the result will be properly terminated.
*/
PR_EXTERN(char *)
PL_strncpyz(char *dest, const char *src, PRUint32 max);
/*
* PL_strdup
*
* Returns a pointer to a malloc'd extent of memory containing a duplicate
* of the argument string. The size of the allocated extent is one greater
* than the length of the argument string, because of the terminator. A
* null argument, like a zero-length argument, will result in a pointer to
* a one-byte extent containing the null value. This routine returns null
* upon malloc failure.
*/
PR_EXTERN(char *)
PL_strdup(const char *s);
/*
* PL_strfree
*
* Free memory allocated by PL_strdup
*/
PR_EXTERN(void)
PL_strfree(char *s);
/*
* PL_strndup
*
* Returns a pointer to a malloc'd extent of memory containing a duplicate
* of the argument string, up to the maximum specified. If the argument
* string has a length greater than the value of the specified maximum, the
* return value will be a pointer to an extent of memory of length one
* greater than the maximum specified. A null string, a zero-length string,
* or a zero maximum will all result in a pointer to a one-byte extent
* containing the null value. This routine returns null upon malloc failure.
*/
PR_EXTERN(char *)
PL_strndup(const char *s, PRUint32 max);
/*
* PL_strcat
*
* Appends a copy of the string pointed to by the second argument to the
* end of the string pointed to by the first. The destination buffer is
* not (can not be) checked for sufficient size. A null destination
* argument returns null; otherwise, the first argument is returned.
*/
PR_EXTERN(char *)
PL_strcat(char *dst, const char *src);
/*
* PL_strncat
*
* Appends a copy of the string pointed to by the second argument, up to
* the maximum size specified, to the end of the string pointed to by the
* first. The destination buffer is not (can not be) checked for sufficient
* size. A null destination argument returns null; otherwise, the first
* argument is returned. If the maximum size limits the copy, then the
* result will *not* be null-terminated (JLRU). A null destination
* returns null; otherwise, the destination argument is returned.
*/
PR_EXTERN(char *)
PL_strncat(char *dst, const char *src, PRUint32 max);
/*
* PL_strcatn
*
* Appends a copy of the string pointed to by the third argument, to the
* end of the string pointed to by the first. The second argument specifies
* the maximum size of the destination buffer, including the null termination.
* If the existing string in dst is longer than the max, no action is taken.
* The resulting string will be null-terminated. A null destination returns
* null; otherwise, the destination argument is returned.
*/
PR_EXTERN(char *)
PL_strcatn(char *dst, PRUint32 max, const char *src);
/*
* PL_strcmp
*
* Returns an integer, the sign of which -- positive, zero, or negative --
* reflects the lexical sorting order of the two strings indicated. The
* result is positive if the first string comes after the second. The
* NSPR implementation is not i18n.
*/
PR_EXTERN(PRIntn)
PL_strcmp(const char *a, const char *b);
/*
* PL_strncmp
*
* Returns an integer, the sign of which -- positive, zero, or negative --
* reflects the lexical sorting order of the two strings indicated, up to
* the maximum specified. The result is positive if the first string comes
* after the second. The NSPR implementation is not i18n. If the maximum
* is zero, only the existance or non-existance (pointer is null) of the
* strings is compared.
*/
PR_EXTERN(PRIntn)
PL_strncmp(const char *a, const char *b, PRUint32 max);
/*
* PL_strcasecmp
*
* Returns an integer, the sign of which -- positive, zero or negative --
* reflects the case-insensitive lexical sorting order of the two strings
* indicated. The result is positive if the first string comes after the
* second. The NSPR implementation is not i18n.
*/
PR_EXTERN(PRIntn)
PL_strcasecmp(const char *a, const char *b);
/*
* PL_strncasecmp
*
* Returns an integer, the sign of which -- positive, zero or negative --
* reflects the case-insensitive lexical sorting order of the first n characters
* of the two strings indicated. The result is positive if the first string comes
* after the second. The NSPR implementation is not i18n.
*/
PR_EXTERN(PRIntn)
PL_strncasecmp(const char *a, const char *b, PRUint32 max);
/*
* PL_strchr
*
* Returns a pointer to the first instance of the specified character in the
* provided string. It returns null if the character is not found, or if the
* provided string is null. The character may be the null character.
*/
PR_EXTERN(char *)
PL_strchr(const char *s, char c);
/*
* PL_strrchr
*
* Returns a pointer to the last instance of the specified character in the
* provided string. It returns null if the character is not found, or if the
* provided string is null. The character may be the null character.
*/
PR_EXTERN(char *)
PL_strrchr(const char *s, char c);
/*
* PL_strnchr
*
* Returns a pointer to the first instance of the specified character within the
* first n characters of the provided string. It returns null if the character
* is not found, or if the provided string is null. The character may be the
* null character.
*/
PR_EXTERN(char *)
PL_strnchr(const char *s, char c, PRUint32 n);
/*
* PL_strnrchr
*
* Returns a pointer to the last instance of the specified character within the
* first n characters of the provided string. It returns null if the character is
* not found, or if the provided string is null. The character may be the null
* character.
*/
PR_EXTERN(char *)
PL_strnrchr(const char *s, char c, PRUint32 n);
/*
* NOTE: Looking for strcasechr, strcaserchr, strncasechr, or strncaserchr?
* Use strpbrk, strprbrk, strnpbrk or strnprbrk.
*/
/*
* PL_strpbrk
*
* Returns a pointer to the first instance in the first string of any character
* (not including the terminating null character) of the second string. It returns
* null if either string is null.
*/
PR_EXTERN(char *)
PL_strpbrk(const char *s, const char *list);
/*
* PL_strprbrk
*
* Returns a pointer to the last instance in the first string of any character
* (not including the terminating null character) of the second string. It returns
* null if either string is null.
*/
PR_EXTERN(char *)
PL_strprbrk(const char *s, const char *list);
/*
* PL_strnpbrk
*
* Returns a pointer to the first instance (within the first n characters) of any
* character (not including the terminating null character) of the second string.
* It returns null if either string is null.
*/
PR_EXTERN(char *)
PL_strnpbrk(const char *s, const char *list, PRUint32 n);
/*
* PL_strnprbrk
*
* Returns a pointer to the last instance (within the first n characters) of any
* character (not including the terminating null character) of the second string.
* It returns null if either string is null.
*/
PR_EXTERN(char *)
PL_strnprbrk(const char *s, const char *list, PRUint32 n);
/*
* PL_strstr
*
* Returns a pointer to the first instance of the little string within the
* big one. It returns null if either string is null.
*/
PR_EXTERN(char *)
PL_strstr(const char *big, const char *little);
/*
* PL_strrstr
*
* Returns a pointer to the last instance of the little string within the big one.
* It returns null if either string is null.
*/
PR_EXTERN(char *)
PL_strrstr(const char *big, const char *little);
/*
* PL_strnstr
*
* Returns a pointer to the first instance of the little string within the first
* n characters of the big one. It returns null if either string is null. It
* returns null if the length of the little string is greater than n.
*/
PR_EXTERN(char *)
PL_strnstr(const char *big, const char *little, PRUint32 n);
/*
* PL_strnrstr
*
* Returns a pointer to the last instance of the little string within the first
* n characters of the big one. It returns null if either string is null. It
* returns null if the length of the little string is greater than n.
*/
PR_EXTERN(char *)
PL_strnrstr(const char *big, const char *little, PRUint32 max);
/*
* PL_strcasestr
*
* Returns a pointer to the first instance of the little string within the big one,
* ignoring case. It returns null if either string is null.
*/
PR_EXTERN(char *)
PL_strcasestr(const char *big, const char *little);
/*
* PL_strcaserstr
*
* Returns a pointer to the last instance of the little string within the big one,
* ignoring case. It returns null if either string is null.
*/
PR_EXTERN(char *)
PL_strcaserstr(const char *big, const char *little);
/*
* PL_strncasestr
*
* Returns a pointer to the first instance of the listtle string within the first
* n characters of the big one, ignoring case. It returns null if either string is
* null. It returns null if the length of the little string is greater than n.
*/
PR_EXTERN(char *)
PL_strncasestr(const char *big, const char *little, PRUint32 max);
/*
* PL_strncaserstr
*
* Returns a pointer to the last instance of the little string within the first
* n characters of the big one, ignoring case. It returns null if either string is
* null. It returns null if the length of the little string is greater than n.
*/
PR_EXTERN(char *)
PL_strncaserstr(const char *big, const char *little, PRUint32 max);
/*
* Things not (yet?) included: strspn/strcspn, strtok/strtok_r, strsep.
* memchr, memcmp, memcpy, memccpy, index, rindex, bcmp, bcopy, bzero.
* Any and all i18n/l10n stuff.
*/
PR_END_EXTERN_C
#endif /* _plstr_h */

View File

@@ -0,0 +1,169 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#! gmake
MOD_DEPTH = ../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(MOD_DEPTH)/config/autoconf.mk
include $(topsrcdir)/config/config.mk
INCLUDES = -I$(dist_includedir)
CSRCS =\
plvrsion.c \
strlen.c \
strcpy.c \
strdup.c \
strcat.c \
strcmp.c \
strccmp.c \
strchr.c \
strpbrk.c \
strstr.c \
strcstr.c \
base64.c \
plerror.c \
plgetopt.c \
$(NULL)
LIBRARY_NAME = plc
LIBRARY_VERSION = $(MOD_MAJOR_VERSION)
RELEASE_LIBS = $(TARGETS)
ifeq ($(OS_ARCH),WINNT)
DLLBASE=/BASE:0x30000000
RES=$(OBJDIR)/plc.res
RESNAME=plc.rc
endif # WINNT
ifeq ($(OS_ARCH), AIX)
ifeq ($(CLASSIC_NSPR),1)
OS_LIBS = -lc
else
OS_LIBS = -lc_r
endif
endif
ifeq ($(OS_ARCH),IRIX)
OS_LIBS = -lc
endif
EXTRA_LIBS = $(LIBNSPR)
# On NCR and SCOOS, we can't link with extra libraries when
# we build a shared library. If we do so, the linker doesn't
# complain, but we would run into weird problems at run-time.
# Therefore on these platforms, we link just the .o files.
ifeq ($(OS_ARCH),NCR)
EXTRA_LIBS =
endif
ifeq ($(OS_ARCH),SCOOS)
EXTRA_LIBS =
endif
ifdef RESOLVE_LINK_SYMBOLS
EXTRA_LIBS += $(OS_LIBS)
endif
include $(topsrcdir)/config/rules.mk
#
# Version information generation (begin)
#
ECHO = echo
TINC = $(OBJDIR)/_pl_bld.h
PROD = $(notdir $(SHARED_LIBRARY))
NOW = $(MOD_DEPTH)/config/$(OBJDIR)/now
SH_DATE = $(shell date "+%Y-%m-%d %T")
SH_NOW = $(shell $(NOW))
ifeq ($(OS_ARCH), WINNT)
SUF = i64
else
SUF = LL
endif
GARBAGE += $(TINC)
$(TINC):
@$(MAKE_OBJDIR)
@$(ECHO) '#define _BUILD_STRING "$(SH_DATE)"' > $(TINC)
@if test ! -z "$(SH_NOW)"; then \
$(ECHO) '#define _BUILD_TIME $(SH_NOW)$(SUF)' >> $(TINC); \
else \
true; \
fi
@$(ECHO) '#define _PRODUCTION "$(PROD)"' >> $(TINC)
$(OBJDIR)/plvrsion.$(OBJ_SUFFIX): plvrsion.c $(TINC)
ifeq ($(OS_ARCH), WINNT)
$(CC) -Fo$@ -c $(CFLAGS) -I$(OBJDIR) $<
else
ifeq ($(MOZ_OS2_TOOLS), VACPP)
$(CC) -Fo$@ -c $(CFLAGS) -I$(OBJDIR) $<
else
$(CC) -o $@ -c $(CFLAGS) -I$(OBJDIR) $<
endif
endif
#
# Version information generation (end)
#
#
# The Client build wants the shared libraries in $(dist_bindir),
# so we also install them there.
#
export:: $(TARGETS)
$(INSTALL) -m 444 $(TARGETS) $(dist_libdir)
ifdef SHARED_LIBRARY
ifeq ($(OS_ARCH),HP-UX)
$(INSTALL) -m 755 $(SHARED_LIBRARY) $(dist_libdir)
$(INSTALL) -m 755 $(SHARED_LIBRARY) $(dist_bindir)
else
$(INSTALL) -m 444 $(SHARED_LIBRARY) $(dist_bindir)
endif
endif
ifeq ($(MOZ_BITS),16)
$(INSTALL) -m 444 $(TARGETS) $(MOZ_DIST)/lib
$(INSTALL) -m 444 $(TARGETS) $(MOZ_DIST)/bin
endif

View File

@@ -0,0 +1,20 @@
NSPR 2.0 libc functions
-----------------------
Last edited: AOF 04 March 1997
This directory contains various libc-types of functions. All functions in
this directory are platform independent, thread friendly (both safe and
efficient). They are contributed from various sources, though the contri-
butions are monitored by the NSPR group (mailto:freier).
All API items exported by these functions will contain the same three
character prefix, "PL_" (Portable Library). Internal function names
that are not exported (static) are of little concern, though some caution
must be used on those elements that are 'extern' but not really intended
to be part of the API. Those should all have a prefix of "_PL_" (is that
legal?).
The responsibility for contributions in this area are distributed among
all interested parties.

View File

@@ -0,0 +1,425 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
#include "plbase64.h"
#include "prlog.h" /* For PR_NOT_REACHED */
#include "prmem.h" /* for malloc / PR_MALLOC */
#include "plstr.h" /* for PL_strlen */
static unsigned char *base = (unsigned char *)"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
static void
encode3to4
(
const unsigned char *src,
unsigned char *dest
)
{
PRUint32 b32 = (PRUint32)0;
PRIntn i, j = 18;
for( i = 0; i < 3; i++ )
{
b32 <<= 8;
b32 |= (PRUint32)src[i];
}
for( i = 0; i < 4; i++ )
{
dest[i] = base[ (PRUint32)((b32>>j) & 0x3F) ];
j -= 6;
}
return;
}
static void
encode2to4
(
const unsigned char *src,
unsigned char *dest
)
{
dest[0] = base[ (PRUint32)((src[0]>>2) & 0x3F) ];
dest[1] = base[ (PRUint32)(((src[0] & 0x03) << 4) | ((src[1] >> 4) & 0x0F)) ];
dest[2] = base[ (PRUint32)((src[1] & 0x0F) << 2) ];
dest[3] = (unsigned char)'=';
return;
}
static void
encode1to4
(
const unsigned char *src,
unsigned char *dest
)
{
dest[0] = base[ (PRUint32)((src[0]>>2) & 0x3F) ];
dest[1] = base[ (PRUint32)((src[0] & 0x03) << 4) ];
dest[2] = (unsigned char)'=';
dest[3] = (unsigned char)'=';
return;
}
static void
encode
(
const unsigned char *src,
PRUint32 srclen,
unsigned char *dest
)
{
while( srclen >= 3 )
{
encode3to4(src, dest);
src += 3;
dest += 4;
srclen -= 3;
}
switch( srclen )
{
case 2:
encode2to4(src, dest);
break;
case 1:
encode1to4(src, dest);
break;
case 0:
break;
default:
PR_NOT_REACHED("coding error");
}
return;
}
/*
* PL_Base64Encode
*
* If the destination argument is NULL, a return buffer is
* allocated, and the data therein will be null-terminated.
* If the destination argument is not NULL, it is assumed to
* be of sufficient size, and the contents will not be null-
* terminated by this routine.
*
* Returns null if the allocation fails.
*/
PR_IMPLEMENT(char *)
PL_Base64Encode
(
const char *src,
PRUint32 srclen,
char *dest
)
{
if( 0 == srclen )
{
srclen = PL_strlen(src);
}
if( (char *)0 == dest )
{
PRUint32 destlen = ((srclen + 2)/3) * 4;
dest = (char *)PR_MALLOC(destlen + 1);
if( (char *)0 == dest )
{
return (char *)0;
}
dest[ destlen ] = (char)0; /* null terminate */
}
encode((const unsigned char *)src, srclen, (unsigned char *)dest);
return dest;
}
static PRInt32
codetovalue
(
unsigned char c
)
{
if( (c >= (unsigned char)'A') && (c <= (unsigned char)'Z') )
{
return (PRInt32)(c - (unsigned char)'A');
}
else if( (c >= (unsigned char)'a') && (c <= (unsigned char)'z') )
{
return ((PRInt32)(c - (unsigned char)'a') +26);
}
else if( (c >= (unsigned char)'0') && (c <= (unsigned char)'9') )
{
return ((PRInt32)(c - (unsigned char)'0') +52);
}
else if( (unsigned char)'+' == c )
{
return (PRInt32)62;
}
else if( (unsigned char)'/' == c )
{
return (PRInt32)63;
}
else
{
return -1;
}
}
static PRStatus
decode4to3
(
const unsigned char *src,
unsigned char *dest
)
{
PRUint32 b32 = (PRUint32)0;
PRInt32 bits;
PRIntn i;
for( i = 0; i < 4; i++ )
{
bits = codetovalue(src[i]);
if( bits < 0 )
{
return PR_FAILURE;
}
b32 <<= 6;
b32 |= bits;
}
dest[0] = (unsigned char)((b32 >> 16) & 0xFF);
dest[1] = (unsigned char)((b32 >> 8) & 0xFF);
dest[2] = (unsigned char)((b32 ) & 0xFF);
return PR_SUCCESS;
}
static PRStatus
decode3to2
(
const unsigned char *src,
unsigned char *dest
)
{
PRUint32 b32 = (PRUint32)0;
PRInt32 bits;
PRUint32 ubits;
bits = codetovalue(src[0]);
if( bits < 0 )
{
return PR_FAILURE;
}
b32 = (PRUint32)bits;
b32 <<= 6;
bits = codetovalue(src[1]);
if( bits < 0 )
{
return PR_FAILURE;
}
b32 |= (PRUint32)bits;
b32 <<= 4;
bits = codetovalue(src[2]);
if( bits < 0 )
{
return PR_FAILURE;
}
ubits = (PRUint32)bits;
b32 |= (ubits >> 2);
dest[0] = (unsigned char)((b32 >> 8) & 0xFF);
dest[1] = (unsigned char)((b32 ) & 0xFF);
return PR_SUCCESS;
}
static PRStatus
decode2to1
(
const unsigned char *src,
unsigned char *dest
)
{
PRUint32 b32;
PRUint32 ubits;
PRInt32 bits;
bits = codetovalue(src[0]);
if( bits < 0 )
{
return PR_FAILURE;
}
ubits = (PRUint32)bits;
b32 = (ubits << 2);
bits = codetovalue(src[1]);
if( bits < 0 )
{
return PR_FAILURE;
}
ubits = (PRUint32)bits;
b32 |= (ubits >> 4);
dest[0] = (unsigned char)b32;
return PR_SUCCESS;
}
static PRStatus
decode
(
const unsigned char *src,
PRUint32 srclen,
unsigned char *dest
)
{
PRStatus rv;
while( srclen >= 4 )
{
rv = decode4to3(src, dest);
if( PR_SUCCESS != rv )
{
return PR_FAILURE;
}
src += 4;
dest += 3;
srclen -= 4;
}
switch( srclen )
{
case 3:
rv = decode3to2(src, dest);
break;
case 2:
rv = decode2to1(src, dest);
break;
case 1:
rv = PR_FAILURE;
break;
case 0:
rv = PR_SUCCESS;
break;
default:
PR_NOT_REACHED("coding error");
}
return rv;
}
/*
* PL_Base64Decode
*
* If the destination argument is NULL, a return buffer is
* allocated and the data therein will be null-terminated.
* If the destination argument is not null, it is assumed
* to be of sufficient size, and the data will not be null-
* terminated by this routine.
*
* Returns null if the allocation fails, or if the source string is
* not well-formed.
*/
PR_IMPLEMENT(char *)
PL_Base64Decode
(
const char *src,
PRUint32 srclen,
char *dest
)
{
PRStatus status;
PRBool allocated = PR_FALSE;
if( (char *)0 == src )
{
return (char *)0;
}
if( 0 == srclen )
{
srclen = PL_strlen(src);
}
if( 0 == (srclen & 3) )
{
if( (char)'=' == src[ srclen-1 ] )
{
if( (char)'=' == src[ srclen-2 ] )
{
srclen -= 2;
}
else
{
srclen -= 1;
}
}
}
if( (char *)0 == dest )
{
PRUint32 destlen = ((srclen * 3) / 4);
dest = (char *)PR_MALLOC(destlen + 1);
if( (char *)0 == dest )
{
return (char *)0;
}
dest[ destlen ] = (char)0; /* null terminate */
allocated = PR_TRUE;
}
status = decode((const unsigned char *)src, srclen, (unsigned char *)dest);
if( PR_SUCCESS != status )
{
if( PR_TRUE == allocated )
{
PR_DELETE(dest);
}
return (char *)0;
}
return dest;
}

View File

@@ -0,0 +1,100 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
#include "prinit.h"
#include <winver.h>
#define MY_LIBNAME "plc"
#define MY_FILEDESCRIPTION "PLC Library"
#define STRINGIZE(x) #x
#define STRINGIZE2(x) STRINGIZE(x)
#define PR_VMAJOR_STR STRINGIZE2(PR_VMAJOR)
#ifdef _DEBUG
#define MY_DEBUG_STR " (debug)"
#define MY_FILEFLAGS_1 VS_FF_DEBUG
#else
#define MY_DEBUG_STR ""
#define MY_FILEFLAGS_1 0x0L
#endif
#if PR_BETA
#define MY_FILEFLAGS_2 MY_FILEFLAGS_1|VS_FF_PRERELEASE
#else
#define MY_FILEFLAGS_2 MY_FILEFLAGS_1
#endif
#ifdef WINNT
#define MY_FILEOS VOS_NT_WINDOWS32
#define MY_INTERNAL_NAME "lib" MY_LIBNAME PR_VMAJOR_STR
#else
#define MY_FILEOS VOS__WINDOWS32
#define MY_INTERNAL_NAME MY_LIBNAME PR_VMAJOR_STR
#endif
/////////////////////////////////////////////////////////////////////////////
//
// Version-information resource
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION PR_VMAJOR,PR_VMINOR,PR_VPATCH,0
PRODUCTVERSION PR_VMAJOR,PR_VMINOR,PR_VPATCH,0
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS MY_FILEFLAGS_2
FILEOS MY_FILEOS
FILETYPE VFT_DLL
FILESUBTYPE 0x0L // not used
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904B0" // Lang=US English, CharSet=Unicode
BEGIN
VALUE "CompanyName", "Netscape Communications Corporation\0"
VALUE "FileDescription", MY_FILEDESCRIPTION MY_DEBUG_STR "\0"
VALUE "FileVersion", PR_VERSION "\0"
VALUE "InternalName", MY_INTERNAL_NAME "\0"
VALUE "LegalCopyright", "Copyright \251 1996-2000 Netscape Communications Corporation\0"
VALUE "OriginalFilename", MY_INTERNAL_NAME ".dll\0"
VALUE "ProductName", "Netscape Portable Runtime\0"
VALUE "ProductVersion", PR_VERSION "\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END

View File

@@ -0,0 +1,165 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
/*
** File:plerror.c
** Description: Simple routine to print translate the calling thread's
** error numbers and print them to "syserr".
*/
#include "plerror.h"
#include "prprf.h"
#include "prerror.h"
PR_IMPLEMENT(void) PL_FPrintError(PRFileDesc *fd, const char *msg)
{
static const char *tags[] =
{
"PR_OUT_OF_MEMORY_ERROR",
"PR_BAD_DESCRIPTOR_ERROR",
"PR_WOULD_BLOCK_ERROR",
"PR_ACCESS_FAULT_ERROR",
"PR_INVALID_METHOD_ERROR",
"PR_ILLEGAL_ACCESS_ERROR",
"PR_UNKNOWN_ERROR",
"PR_PENDING_INTERRUPT_ERROR",
"PR_NOT_IMPLEMENTED_ERROR",
"PR_IO_ERROR",
"PR_IO_TIMEOUT_ERROR",
"PR_IO_PENDING_ERROR",
"PR_DIRECTORY_OPEN_ERROR",
"PR_INVALID_ARGUMENT_ERROR",
"PR_ADDRESS_NOT_AVAILABLE_ERROR",
"PR_ADDRESS_NOT_SUPPORTED_ERROR",
"PR_IS_CONNECTED_ERROR",
"PR_BAD_ADDRESS_ERROR",
"PR_ADDRESS_IN_USE_ERROR",
"PR_CONNECT_REFUSED_ERROR",
"PR_NETWORK_UNREACHABLE_ERROR",
"PR_CONNECT_TIMEOUT_ERROR",
"PR_NOT_CONNECTED_ERROR",
"PR_LOAD_LIBRARY_ERROR",
"PR_UNLOAD_LIBRARY_ERROR",
"PR_FIND_SYMBOL_ERROR",
"PR_INSUFFICIENT_RESOURCES_ERROR",
"PR_DIRECTORY_LOOKUP_ERROR",
"PR_TPD_RANGE_ERROR",
"PR_PROC_DESC_TABLE_FULL_ERROR",
"PR_SYS_DESC_TABLE_FULL_ERROR",
"PR_NOT_SOCKET_ERROR",
"PR_NOT_TCP_SOCKET_ERROR",
"PR_SOCKET_ADDRESS_IS_BOUND_ERROR",
"PR_NO_ACCESS_RIGHTS_ERROR",
"PR_OPERATION_NOT_SUPPORTED_ERROR",
"PR_PROTOCOL_NOT_SUPPORTED_ERROR",
"PR_REMOTE_FILE_ERROR",
"PR_BUFFER_OVERFLOW_ERROR",
"PR_CONNECT_RESET_ERROR",
"PR_RANGE_ERROR",
"PR_DEADLOCK_ERROR",
"PR_FILE_IS_LOCKED_ERROR",
"PR_FILE_TOO_BIG_ERROR",
"PR_NO_DEVICE_SPACE_ERROR",
"PR_PIPE_ERROR",
"PR_NO_SEEK_DEVICE_ERROR",
"PR_IS_DIRECTORY_ERROR",
"PR_LOOP_ERROR",
"PR_NAME_TOO_LONG_ERROR",
"PR_FILE_NOT_FOUND_ERROR",
"PR_NOT_DIRECTORY_ERROR",
"PR_READ_ONLY_FILESYSTEM_ERROR",
"PR_DIRECTORY_NOT_EMPTY_ERROR",
"PR_FILESYSTEM_MOUNTED_ERROR",
"PR_NOT_SAME_DEVICE_ERROR",
"PR_DIRECTORY_CORRUPTED_ERROR",
"PR_FILE_EXISTS_ERROR",
"PR_MAX_DIRECTORY_ENTRIES_ERROR",
"PR_INVALID_DEVICE_STATE_ERROR",
"PR_DEVICE_IS_LOCKED_ERROR",
"PR_NO_MORE_FILES_ERROR",
"PR_END_OF_FILE_ERROR",
"PR_FILE_SEEK_ERROR",
"PR_FILE_IS_BUSY_ERROR",
"<unused error code>",
"PR_IN_PROGRESS_ERROR",
"PR_ALREADY_INITIATED_ERROR",
"PR_GROUP_EMPTY_ERROR",
"PR_INVALID_STATE_ERROR",
"PR_NETWORK_DOWN_ERROR",
"PR_SOCKET_SHUTDOWN_ERROR",
"PR_CONNECT_ABORTED_ERROR",
"PR_HOST_UNREACHABLE_ERROR",
"PR_MAX_ERROR"
};
PRErrorCode error = PR_GetError();
PRInt32 oserror = PR_GetOSError();
PRIntn thoseIKnowAbout = sizeof(tags) / sizeof(char*);
PRIntn lastError = PR_NSPR_ERROR_BASE + thoseIKnowAbout;
if (NULL != msg) PR_fprintf(fd, "%s: ", msg);
if ((error < PR_NSPR_ERROR_BASE) || (error > lastError))
PR_fprintf(
fd, " (%d)OUT OF RANGE, oserror = %d\n", error, oserror);
else
PR_fprintf(
fd, "%s(%d), oserror = %d\n",
tags[error - PR_NSPR_ERROR_BASE], error, oserror);
} /* PL_FPrintError */
PR_IMPLEMENT(void) PL_PrintError(const char *msg)
{
static PRFileDesc *fd = NULL;
if (NULL == fd) fd = PR_GetSpecialFD(PR_StandardError);
PL_FPrintError(fd, msg);
} /* PL_PrintError */
#if defined(WIN16)
/*
** libmain() is a required function for win16
**
*/
int CALLBACK LibMain( HINSTANCE hInst, WORD wDataSeg,
WORD cbHeapSize, LPSTR lpszCmdLine )
{
return TRUE;
}
#endif /* WIN16 */
/* plerror.c */

View File

@@ -0,0 +1,181 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
/*
** File: plgetopt.c
** Description: utilities to parse argc/argv
*/
#include "prmem.h"
#include "prlog.h"
#include "prerror.h"
#include "plstr.h"
#include "plgetopt.h"
#include <string.h>
static char static_Nul = 0;
struct PLOptionInternal
{
const char *options; /* client options list specification */
PRIntn argc; /* original number of arguments */
char **argv; /* vector of pointers to arguments */
PRIntn xargc; /* which one we're processing now */
const char *xargv; /* where within *argv[xargc] */
PRBool minus; /* do we already have the '-'? */
};
/*
** Create the state in which to parse the tokens.
**
** argc the sum of the number of options and their values
** argv the options and their values
** options vector of single character options w/ | w/o ':
*/
PR_IMPLEMENT(PLOptState*) PL_CreateOptState(
PRIntn argc, char **argv, const char *options)
{
PLOptState *opt = NULL;
if (NULL == options)
PR_SetError(PR_INVALID_ARGUMENT_ERROR, 0);
else
{
opt = PR_NEWZAP(PLOptState);
if (NULL == opt)
PR_SetError(PR_OUT_OF_MEMORY_ERROR, 0);
else
{
PLOptionInternal *internal = PR_NEW(PLOptionInternal);
if (NULL == internal)
{
PR_DELETE(opt);
PR_SetError(PR_OUT_OF_MEMORY_ERROR, 0);
}
else
{
opt->option = 0;
opt->value = NULL;
opt->internal = internal;
internal->argc = argc;
internal->argv = argv;
internal->xargc = 0;
internal->xargv = &static_Nul;
internal->minus = PR_FALSE;
internal->options = options;
}
}
}
return opt;
} /* PL_CreateOptState */
/*
** Destroy object created by CreateOptState()
*/
PR_IMPLEMENT(void) PL_DestroyOptState(PLOptState *opt)
{
PR_DELETE(opt->internal);
PR_DELETE(opt);
} /* PL_DestroyOptState */
PR_IMPLEMENT(PLOptStatus) PL_GetNextOpt(PLOptState *opt)
{
PLOptionInternal *internal = opt->internal;
PRIntn cop, eoo = PL_strlen(internal->options);
/*
** If the current xarg points to nul, advance to the next
** element of the argv vector. If the vector index is equal
** to argc, we're out of arguments, so return an EOL.
** Note whether the first character of the new argument is
** a '-' and skip by it if it is.
*/
while (0 == *internal->xargv)
{
internal->xargc += 1;
if (internal->xargc >= internal->argc)
{
opt->option = 0;
opt->value = NULL;
return PL_OPT_EOL;
}
internal->xargv = internal->argv[internal->xargc];
internal->minus = ('-' == *internal->xargv ? PR_TRUE : PR_FALSE); /* not it */
if (internal->minus) internal->xargv += 1; /* and consume */
}
/*
** If we already have a '-' in hand, xargv points to the next
** option. See if we can find a match in the list of possible
** options supplied.
*/
if (internal->minus)
{
for (cop = 0; cop < eoo; ++cop)
{
if (internal->options[cop] == *internal->xargv)
{
opt->option = *internal->xargv;
internal->xargv += 1;
/*
** if options indicates that there's an associated
** value, this argv is finished and the next is the
** option's value.
*/
if (':' == internal->options[cop + 1])
{
if (0 != *internal->xargv) return PL_OPT_BAD;
opt->value = internal->argv[++(internal->xargc)];
internal->xargv = &static_Nul;
internal->minus = PR_FALSE;
}
else opt->value = NULL;
return PL_OPT_OK;
}
}
internal->xargv += 1; /* consume that option */
return PL_OPT_BAD;
}
/*
** No '-', so it must be a standalone value. The option is nul.
*/
opt->value = internal->argv[internal->xargc];
internal->xargv = &static_Nul;
opt->option = 0;
return PL_OPT_OK;
} /* PL_GetNextOpt */
/* plgetopt.c */

View File

@@ -0,0 +1,122 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
#include "prinit.h"
#include "prvrsion.h"
/************************************************************************/
/**************************IDENTITY AND VERSIONING***********************/
/************************************************************************/
#include "_pl_bld.h"
#if !defined(_BUILD_TIME)
#ifdef HAVE_LONG_LONG
#define _BUILD_TIME 0
#else
#define _BUILD_TIME {0, 0}
#endif
#endif
#if !defined(_BUILD_STRING)
#define _BUILD_STRING ""
#endif
#if !defined(_PRODUCTION)
#define _PRODUCTION ""
#endif
#if defined(DEBUG)
#define _DEBUG_STRING " (debug)"
#else
#define _DEBUG_STRING ""
#endif
/*
* A trick to expand the PR_VMAJOR macro before concatenation.
*/
#define CONCAT(x, y) x ## y
#define CONCAT2(x, y) CONCAT(x, y)
#define VERSION_DESC_NAME CONCAT2(prVersionDescription_libplc, PR_VMAJOR)
PRVersionDescription VERSION_DESC_NAME =
{
/* version */ 2, /* this is the only one supported */
/* buildTime */ _BUILD_TIME, /* usecs since midnight 1/1/1970 GMT */
/* buildTimeString */ _BUILD_STRING, /* ditto, but human readable */
/* vMajor */ PR_VMAJOR, /* NSPR's version number */
/* vMinor */ PR_VMINOR, /* and minor version */
/* vPatch */ PR_VPATCH, /* and patch */
/* beta */ PR_BETA, /* beta build boolean */
#if defined(DEBUG)
/* debug */ PR_TRUE, /* a debug build */
#else
/* debug */ PR_FALSE, /* an optomized build */
#endif
/* special */ PR_FALSE, /* they're all special, but ... */
/* filename */ _PRODUCTION, /* the produced library name */
/* description */ "Portable runtime", /* what we are */
/* security */ "N/A", /* not applicable here */
/* copywrite */ "Copyright (c) 1998 Netscape Communications Corporation. All Rights Reserved",
/* comment */ "http://www.mozilla.org/MPL/",
/* specialString */ ""
};
#ifdef XP_UNIX
/*
* Version information for the 'ident' and 'what commands
*
* NOTE: the first component of the concatenated rcsid string
* must not end in a '$' to prevent rcs keyword substitution.
*/
static char rcsid[] = "$Header: NSPR " PR_VERSION _DEBUG_STRING
" " _BUILD_STRING " $";
static char sccsid[] = "@(#)NSPR " PR_VERSION _DEBUG_STRING
" " _BUILD_STRING;
#endif /* XP_UNIX */
PR_IMPLEMENT(const PRVersionDescription*) libVersionPoint()
{
#ifdef XP_UNIX
/*
* Add dummy references to rcsid and sccsid to prevent them
* from being optimized away as unused variables.
*/
const char *dummy;
dummy = rcsid;
dummy = sccsid;
#endif
return &VERSION_DESC_NAME;
} /* versionEntryPointType */
/* plvrsion.c */

View File

@@ -0,0 +1,86 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
#include "plstr.h"
PR_IMPLEMENT(char *)
PL_strcat(char *dest, const char *src)
{
char *rv;
if( (char *)0 == dest ) return (char *)0;
if( (const char *)0 == src ) return dest;
for( rv = dest; *dest; dest++ )
;
for( ; ((*dest = *src) != 0); dest++, src++ )
;
return rv;
}
PR_IMPLEMENT(char *)
PL_strncat(char *dest, const char *src, PRUint32 max)
{
char *rv;
if( (char *)0 == dest ) return (char *)0;
if( (const char *)0 == src ) return dest;
if( 0 == max ) return dest;
for( rv = dest; *dest; dest++ )
;
(void)PL_strncpy(dest, src, max);
return rv;
}
PR_IMPLEMENT(char *)
PL_strcatn(char *dest, PRUint32 max, const char *src)
{
char *rv;
PRUint32 dl;
if( (char *)0 == dest ) return (char *)0;
if( (const char *)0 == src ) return dest;
for( rv = dest, dl = 0; *dest; dest++, dl++ )
;
if( max <= dl ) return rv;
(void)PL_strncpyz(dest, src, max-dl);
return rv;
}

View File

@@ -0,0 +1,112 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
#include "plstr.h"
static const unsigned char uc[] =
{
'\000', '\001', '\002', '\003', '\004', '\005', '\006', '\007',
'\010', '\011', '\012', '\013', '\014', '\015', '\016', '\017',
'\020', '\021', '\022', '\023', '\024', '\025', '\026', '\027',
'\030', '\031', '\032', '\033', '\034', '\035', '\036', '\037',
' ', '!', '"', '#', '$', '%', '&', '\'',
'(', ')', '*', '+', ',', '-', '.', '/',
'0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', ':', ';', '<', '=', '>', '?',
'@', 'A', 'B', 'C', 'D', 'E', 'F', 'G',
'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
'X', 'Y', 'Z', '[', '\\', ']', '^', '_',
'`', 'A', 'B', 'C', 'D', 'E', 'F', 'G',
'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
'X', 'Y', 'Z', '{', '|', '}', '~', '\177',
'\200', '\201', '\202', '\203', '\204', '\205', '\206', '\207',
'\210', '\211', '\212', '\213', '\214', '\215', '\216', '\217',
'\220', '\221', '\222', '\223', '\224', '\225', '\226', '\227',
'\230', '\231', '\232', '\233', '\234', '\235', '\236', '\237',
'\240', '\241', '\242', '\243', '\244', '\245', '\246', '\247',
'\250', '\251', '\252', '\253', '\254', '\255', '\256', '\257',
'\260', '\261', '\262', '\263', '\264', '\265', '\266', '\267',
'\270', '\271', '\272', '\273', '\274', '\275', '\276', '\277',
'\300', '\301', '\302', '\303', '\304', '\305', '\306', '\307',
'\310', '\311', '\312', '\313', '\314', '\315', '\316', '\317',
'\320', '\321', '\322', '\323', '\324', '\325', '\326', '\327',
'\330', '\331', '\332', '\333', '\334', '\335', '\336', '\337',
'\340', '\341', '\342', '\343', '\344', '\345', '\346', '\347',
'\350', '\351', '\352', '\353', '\354', '\355', '\356', '\357',
'\360', '\361', '\362', '\363', '\364', '\365', '\366', '\367',
'\370', '\371', '\372', '\373', '\374', '\375', '\376', '\377'
};
PR_IMPLEMENT(PRIntn)
PL_strcasecmp(const char *a, const char *b)
{
const unsigned char *ua = (const unsigned char *)a;
const unsigned char *ub = (const unsigned char *)b;
if( ((const char *)0 == a) || (const char *)0 == b )
return (PRIntn)(a-b);
while( (uc[*ua] == uc[*ub]) && ('\0' != *a) )
{
a++;
ua++;
ub++;
}
return (PRIntn)(uc[*ua] - uc[*ub]);
}
PR_IMPLEMENT(PRIntn)
PL_strncasecmp(const char *a, const char *b, PRUint32 max)
{
const unsigned char *ua = (const unsigned char *)a;
const unsigned char *ub = (const unsigned char *)b;
if( ((const char *)0 == a) || (const char *)0 == b )
return (PRIntn)(a-b);
while( max && (uc[*ua] == uc[*ub]) && ('\0' != *a) )
{
a++;
ua++;
ub++;
max--;
}
if( 0 == max ) return (PRIntn)0;
return (PRIntn)(uc[*ua] - uc[*ub]);
}

View File

@@ -0,0 +1,99 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
#include "plstr.h"
PR_IMPLEMENT(char *)
PL_strchr(const char *s, char c)
{
if( (const char *)0 == s ) return (char *)0;
for( ; *s; s++ )
if( *s == c )
return (char *)s;
if( (char)0 == c ) return (char *)s;
return (char *)0;
}
PR_IMPLEMENT(char *)
PL_strrchr(const char *s, char c)
{
const char *p;
if( (const char *)0 == s ) return (char *)0;
for( p = s; *p; p++ )
;
for( ; p >= s; p-- )
if( *p == c )
return (char *)p;
return (char *)0;
}
PR_IMPLEMENT(char *)
PL_strnchr(const char *s, char c, PRUint32 n)
{
if( (const char *)0 == s ) return (char *)0;
for( ; *s && n; s++, n-- )
if( *s == c )
return (char *)s;
if( ((char)0 == c) && ((char)0 == *s) && (n > 0)) return (char *)s;
return (char *)0;
}
PR_IMPLEMENT(char *)
PL_strnrchr(const char *s, char c, PRUint32 n)
{
const char *p;
if( (const char *)0 == s ) return (char *)0;
for( p = s; *p && n; p++, n-- )
;
if( ((char)0 == c) && ((char)0 == *p) && (n > 0) ) return (char *)p;
for( p--; p >= s; p-- )
if( *p == c )
return (char *)p;
return (char *)0;
}

View File

@@ -0,0 +1,68 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
#include "plstr.h"
PR_IMPLEMENT(PRIntn)
PL_strcmp(const char *a, const char *b)
{
if( ((const char *)0 == a) || (const char *)0 == b )
return (PRIntn)(a-b);
while( (*a == *b) && ('\0' != *a) )
{
a++;
b++;
}
return (PRIntn)(*((const unsigned char *)a) - *((const unsigned char *)b));
}
PR_IMPLEMENT(PRIntn)
PL_strncmp(const char *a, const char *b, PRUint32 max)
{
if( ((const char *)0 == a) || (const char *)0 == b )
return (PRIntn)(a-b);
while( max && (*a == *b) && ('\0' != *a) )
{
a++;
b++;
max--;
}
if( 0 == max ) return (PRIntn)0;
return (PRIntn)(*((const unsigned char *)a) - *((const unsigned char *)b));
}

View File

@@ -0,0 +1,85 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
#include "plstr.h"
PR_IMPLEMENT(char *)
PL_strcpy(char *dest, const char *src)
{
char *rv;
if( (char *)0 == dest ) return (char *)0;
if( (const char *)0 == src ) return (char *)0;
for( rv = dest; ((*dest = *src) != 0); dest++, src++ )
;
return rv;
}
PR_IMPLEMENT(char *)
PL_strncpy(char *dest, const char *src, PRUint32 max)
{
char *rv;
if( (char *)0 == dest ) return (char *)0;
if( (const char *)0 == src ) return (char *)0;
for( rv = dest; max && ((*dest = *src) != 0); dest++, src++, max-- )
;
#ifdef JLRU
while( --max )
*++dest = '\0';
#endif /* JLRU */
return rv;
}
PR_IMPLEMENT(char *)
PL_strncpyz(char *dest, const char *src, PRUint32 max)
{
char *rv;
if( (char *)0 == dest ) return (char *)0;
if( (const char *)0 == src ) return (char *)0;
if( 0 == max ) return (char *)0;
for( rv = dest, max--; max && ((*dest = *src) != 0); dest++, src++, max-- )
;
*dest = '\0';
return rv;
}

View File

@@ -0,0 +1,120 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
#include "plstr.h"
PR_IMPLEMENT(char *)
PL_strcasestr(const char *big, const char *little)
{
PRUint32 ll;
if( ((const char *)0 == big) || ((const char *)0 == little) ) return (char *)0;
if( ((char)0 == *big) || ((char)0 == *little) ) return (char *)0;
ll = PL_strlen(little);
for( ; *big; big++ )
/* obvious improvement available here */
if( 0 == PL_strncasecmp(big, little, ll) )
return (char *)big;
return (char *)0;
}
PR_IMPLEMENT(char *)
PL_strcaserstr(const char *big, const char *little)
{
const char *p;
PRUint32 ll;
if( ((const char *)0 == big) || ((const char *)0 == little) ) return (char *)0;
if( ((char)0 == *big) || ((char)0 == *little) ) return (char *)0;
ll = PL_strlen(little);
p = &big[ PL_strlen(big) - ll ];
if( p < big ) return (char *)0;
for( ; p >= big; p-- )
/* obvious improvement available here */
if( 0 == PL_strncasecmp(p, little, ll) )
return (char *)p;
return (char *)0;
}
PR_IMPLEMENT(char *)
PL_strncasestr(const char *big, const char *little, PRUint32 max)
{
PRUint32 ll;
if( ((const char *)0 == big) || ((const char *)0 == little) ) return (char *)0;
if( ((char)0 == *big) || ((char)0 == *little) ) return (char *)0;
ll = PL_strlen(little);
if( ll > max ) return (char *)0;
max -= ll;
max++;
for( ; *big && max; big++, max-- )
/* obvious improvement available here */
if( 0 == PL_strncasecmp(big, little, ll) )
return (char *)big;
return (char *)0;
}
PR_IMPLEMENT(char *)
PL_strncaserstr(const char *big, const char *little, PRUint32 max)
{
const char *p;
PRUint32 ll;
if( ((const char *)0 == big) || ((const char *)0 == little) ) return (char *)0;
if( ((char)0 == *big) || ((char)0 == *little) ) return (char *)0;
ll = PL_strlen(little);
for( p = big; *p && max; p++, max-- )
;
p -= ll;
if( p < big ) return (char *)0;
for( ; p >= big; p-- )
/* obvious improvement available here */
if( 0 == PL_strncasecmp(p, little, ll) )
return (char *)p;
return (char *)0;
}

View File

@@ -0,0 +1,80 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
#include "plstr.h"
#include "prmem.h"
PR_IMPLEMENT(char *)
PL_strdup(const char *s)
{
char *rv;
PRUint32 l;
l = PL_strlen(s);
rv = (char *)malloc(l+1);
if( (char *)0 == rv ) return rv;
if( (const char *)0 == s )
*rv = '\0';
else
(void)PL_strcpy(rv, s);
return rv;
}
PR_IMPLEMENT(void)
PL_strfree(char *s)
{
free(s);
}
PR_IMPLEMENT(char *)
PL_strndup(const char *s, PRUint32 max)
{
char *rv;
PRUint32 l;
l = PL_strnlen(s, max);
rv = (char *)malloc(l+1);
if( (char *)0 == rv ) return rv;
if( (const char *)0 == s )
*rv = '\0';
else
(void)PL_strncpyz(rv, s, l+1);
return rv;
}

View File

@@ -0,0 +1,66 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
#include "plstr.h"
#include "prtypes.h"
#include "prlog.h"
PR_IMPLEMENT(PRUint32)
PL_strlen(const char *str)
{
register const char *s;
if( (const char *)0 == str ) return 0;
for( s = str; *s; s++ )
;
/* error checking in case we have a 64-bit platform -- make sure we dont
* have ultra long strings that overflow a int32
*/
if (sizeof(PRUint32) < sizeof(PRUptrdiff))
PR_ASSERT((s-str) < 2147483647);
return (PRUint32)(s - str);
}
PR_IMPLEMENT(PRUint32)
PL_strnlen(const char *str, PRUint32 max)
{
register const char *s;
if( (const char *)0 == str ) return 0;
for( s = str; *s && max; s++, max-- )
;
return (PRUint32)(s - str);
}

View File

@@ -0,0 +1,103 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
#include "plstr.h"
PR_IMPLEMENT(char *)
PL_strpbrk(const char *s, const char *list)
{
const char *p;
if( ((const char *)0 == s) || ((const char *)0 == list) ) return (char *)0;
for( ; *s; s++ )
for( p = list; *p; p++ )
if( *s == *p )
return (char *)s;
return (char *)0;
}
PR_IMPLEMENT(char *)
PL_strprbrk(const char *s, const char *list)
{
const char *p;
const char *r;
if( ((const char *)0 == s) || ((const char *)0 == list) ) return (char *)0;
for( r = s; *r; r++ )
;
for( r--; r >= s; r-- )
for( p = list; *p; p++ )
if( *r == *p )
return (char *)r;
return (char *)0;
}
PR_IMPLEMENT(char *)
PL_strnpbrk(const char *s, const char *list, PRUint32 max)
{
const char *p;
if( ((const char *)0 == s) || ((const char *)0 == list) ) return (char *)0;
for( ; *s && max; s++, max-- )
for( p = list; *p; p++ )
if( *s == *p )
return (char *)s;
return (char *)0;
}
PR_IMPLEMENT(char *)
PL_strnprbrk(const char *s, const char *list, PRUint32 max)
{
const char *p;
const char *r;
if( ((const char *)0 == s) || ((const char *)0 == list) ) return (char *)0;
for( r = s; *r && max; r++, max-- )
;
for( r--; r >= s; r-- )
for( p = list; *p; p++ )
if( *r == *p )
return (char *)r;
return (char *)0;
}

View File

@@ -0,0 +1,120 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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/MPL/
*
* 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 the Netscape Portable Runtime (NSPR).
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU General Public License Version 2 or later (the
* "GPL"), in which case the provisions of the GPL are applicable
* instead of those above. If you wish to allow use of your
* version of this file only under the terms of the GPL and not to
* allow others to use your version of this file under the MPL,
* indicate your decision by deleting the provisions above and
* replace them with the notice and other provisions required by
* the GPL. If you do not delete the provisions above, a recipient
* may use your version of this file under either the MPL or the
* GPL.
*/
#include "plstr.h"
PR_IMPLEMENT(char *)
PL_strstr(const char *big, const char *little)
{
PRUint32 ll;
if( ((const char *)0 == big) || ((const char *)0 == little) ) return (char *)0;
if( ((char)0 == *big) || ((char)0 == *little) ) return (char *)0;
ll = PL_strlen(little);
for( ; *big; big++ )
if( *little == *big )
if( 0 == PL_strncmp(big, little, ll) )
return (char *)big;
return (char *)0;
}
PR_IMPLEMENT(char *)
PL_strrstr(const char *big, const char *little)
{
const char *p;
PRUint32 ll;
if( ((const char *)0 == big) || ((const char *)0 == little) ) return (char *)0;
if( ((char)0 == *big) || ((char)0 == *little) ) return (char *)0;
ll = PL_strlen(little);
p = &big[ PL_strlen(big) - ll ];
if( p < big ) return (char *)0;
for( ; p >= big; p-- )
if( *little == *p )
if( 0 == PL_strncmp(p, little, ll) )
return (char *)p;
return (char *)0;
}
PR_IMPLEMENT(char *)
PL_strnstr(const char *big, const char *little, PRUint32 max)
{
PRUint32 ll;
if( ((const char *)0 == big) || ((const char *)0 == little) ) return (char *)0;
if( ((char)0 == *big) || ((char)0 == *little) ) return (char *)0;
ll = PL_strlen(little);
if( ll > max ) return (char *)0;
max -= ll;
max++;
for( ; *big && max; big++, max-- )
if( *little == *big )
if( 0 == PL_strncmp(big, little, ll) )
return (char *)big;
return (char *)0;
}
PR_IMPLEMENT(char *)
PL_strnrstr(const char *big, const char *little, PRUint32 max)
{
const char *p;
PRUint32 ll;
if( ((const char *)0 == big) || ((const char *)0 == little) ) return (char *)0;
if( ((char)0 == *big) || ((char)0 == *little) ) return (char *)0;
ll = PL_strlen(little);
for( p = big; *p && max; p++, max-- )
;
p -= ll;
if( p < big ) return (char *)0;
for( ; p >= big; p-- )
if( *little == *p )
if( 0 == PL_strncmp(p, little, ll) )
return (char *)p;
return (char *)0;
}

View File

@@ -0,0 +1,48 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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/MPL/
#
# 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 the Netscape Portable Runtime (NSPR).
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
MOD_DEPTH = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(MOD_DEPTH)/config/autoconf.mk
include $(topsrcdir)/config/config.mk
DIRS = include src tests
include $(topsrcdir)/config/rules.mk
export:: $(TARGETS)

View File

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

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