111 Commits

Author SHA1 Message Date
alecf%netscape.com
a8957c032d big libpref cleanup: remove lots and lots of unused functions
git-svn-id: svn://10.0.0.236/trunk@110304 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-11 22:41:19 +00:00
alecf%netscape.com
3b26228e2a fix bug 112708, take two
use nsCAutoString instead of PR_smprintf to reduce pref shutdown notifications by 3x
r=bnesse, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@109667 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 22:01:22 +00:00
alecf%netscape.com
3207e85edb back myself out to fix blocker 113482
git-svn-id: svn://10.0.0.236/trunk@109651 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 20:34:03 +00:00
alecf%netscape.com
9500bda665 further fixes for bug 112708 r=bnesse sr=dveditz
instead of using PR_smprintf to construct each user_pref line to the preferences, store it all in a smart cconcatination string - reduces pref allocations at shutdown by 3x


git-svn-id: svn://10.0.0.236/trunk@109629 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 15:44:38 +00:00
alecf%netscape.com
55466e06c9 first part of fix for bug 112708 r=bnesse, sr=brendan
switch prefs from PLHash to PLDHash


git-svn-id: svn://10.0.0.236/trunk@109596 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 01:52:44 +00:00
jdunn%netscape.com
e043336604 fixing hp-ux tinderbox orange and aix build bustage
when functions are defined they shouldn't be defined extern
and when declaring externs, they should be declared globably

r=bnesse@netscape.com
sr=alecf@netscape.com
# 113319


git-svn-id: svn://10.0.0.236/trunk@109559 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 23:04:29 +00:00
mkaply%us.ibm.com
864d999137 put PL_strtok_r in to try to fix HPUX bustage
git-svn-id: svn://10.0.0.236/trunk@109459 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 14:58:54 +00:00
mkaply%us.ibm.com
4d79330194 Taking cls suggestion - just include string.h
git-svn-id: svn://10.0.0.236/trunk@109372 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 20:48:13 +00:00
mkaply%us.ibm.com
4858a05464 Attempt to fix HPUX bustage - use PL_strtok_r instead of strtok_r
git-svn-id: svn://10.0.0.236/trunk@109369 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 20:41:49 +00:00
mkaply%us.ibm.com
0780022acc Preemptively fix OS/2 bustage that will be caused by prefapi change
git-svn-id: svn://10.0.0.236/trunk@109368 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 18:56:56 +00:00
alecf%netscape.com
0d76157146 for bug 112708, add a bunch of casts so this file can also be compiled as C++
sr=dveditz, r=bnesse


git-svn-id: svn://10.0.0.236/trunk@109276 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 23:55:27 +00:00
ccarlen%netscape.com
c11a56bbb0 Bug 89465 - Infinite loop in PL_HashTableEnumerateEntries. Added code to use PL_HashTableLookupConst when enumerating the hash table. r=bnesse/sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@106968 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 15:41:53 +00:00
dbaron%fas.harvard.edu
891820b86a Fix incorrect parameter to strtok_r. b=99245 r=bnesse sr=alecf
git-svn-id: svn://10.0.0.236/trunk@104207 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-29 05:55:53 +00:00
gerv%gerv.net
13afb6d0f9 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
git-svn-id: svn://10.0.0.236/trunk@104119 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 20:14:13 +00:00
gerv%gerv.net
ae1d5501a1 Oops.
git-svn-id: svn://10.0.0.236/trunk@103236 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-20 00:02:59 +00:00
scc%mozilla.org
52c8d09e03 bug #98089: ripped new license
git-svn-id: svn://10.0.0.236/trunk@103219 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-19 20:09:47 +00:00
stephend%netscape.com
e437e5da57 Bug 99245. Using strtok is evil. Patch by Ulrich Drepper <drepper@cygnus.com> r=bnesse@netscape.com, sr=alecf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@103014 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-17 20:39:31 +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
ccarlen%netscape.com
b1ff363939 Bug 89160 - Clearing user prefs can go into infinite loop. r=bnesse,valeski, sr=vidur
git-svn-id: svn://10.0.0.236/trunk@98806 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-06 14:07:37 +00:00
bnesse%netscape.com
ce8b81a75c Fix for bug 51507. Remove "Netscape" from warning dialog. r=timeless, sr=slecf,a=dbaron.
git-svn-id: svn://10.0.0.236/trunk@96737 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-08 20:45:07 +00:00
bnesse%netscape.com
dafc550c45 Fix for bug 80108. Fix PREF_DeleteBranch so it doesn't append a "." if one is already there. r=chipc, sr=alecf, a=dbaron.
git-svn-id: svn://10.0.0.236/trunk@96735 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-08 20:35:01 +00:00
bnesse%netscape.com
bdc99b7f76 Removed 2k limit on user preference strings by using dynamic allocation instead of buffer based allocation. Bug 69744. r=dveditz, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@95423 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-18 21:46:35 +00:00
bnesse%netscape.com
ed8612765b Added sanity check to insure that a valid JSRuntime was found before passing it to JS_NewContext. Bug 73491. r=mcafee,timeless. sr=alefc.
git-svn-id: svn://10.0.0.236/trunk@95325 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 22:17:03 +00:00
dbaron%fas.harvard.edu
b6a5197edf Make "Runtime mismatch, so leaking context!" error message from fix for 71237 |#ifdef DEBUG|. r=disttsc@bart.nl sr=shaver@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@91790 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-09 23:08:37 +00:00
shaver%mozilla.org
446f1ad3f6 39373 and 71237: make prefs use JS_*Request to defend against off-thread calls
and ensure that we don't destroy a context after the runtime has gone away.
(r=alecf, sr=brendan, assist=dbaron)


git-svn-id: svn://10.0.0.236/trunk@89906 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 14:34:56 +00:00
blakeross%telocity.com
6df9558b00 Removing old prefs code (68964). r=mcafee sr=ben
git-svn-id: svn://10.0.0.236/trunk@87248 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-17 01:55:32 +00:00
mcafee%netscape.com
38615556e3 Removing unuxed MOZ_OLD_LI_STUFF ifdef & code (68964). r=blake, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@87157 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-16 00:23:56 +00:00
alecf%netscape.com
f119a15095 back myself out to see if I'm causing orange
git-svn-id: svn://10.0.0.236/trunk@86896 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-13 04:08:26 +00:00
alecf%netscape.com
b8bf57494c fix for #62401, attempt #2 - only cleanup prefs JSContext when the shutdown event comes in, so we
don't fiddle with pointers to freed objects
sr=brendan


git-svn-id: svn://10.0.0.236/trunk@86876 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-13 02:23:17 +00:00
blakeross%telocity.com
ebcfd71f5b Fix 33115: attempt to shave milliseconds off of startup time by removing obsolete/unused prefs. more to come. r=timeless sr=alecf
git-svn-id: svn://10.0.0.236/trunk@85218 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-21 03:44:15 +00:00
ccarlen%netscape.com
3fbb4818f5 Part of 35559 - dynamic profile switching
sr=alecf


git-svn-id: svn://10.0.0.236/trunk@84733 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-10 20:25:52 +00:00
mkaply%us.ibm.com
b392b94a90 #56767
r/a=cls,leaf
Remove XP_PC - use XP_WIN or XP_OS2 explicitly


git-svn-id: svn://10.0.0.236/trunk@83088 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-29 23:28:04 +00:00
dveditz%netscape.com
7d6149de7f bug 51056 handle unreadable prefs file, patch from gemal@gemal.dk, r=dveditz@netscape.com
git-svn-id: svn://10.0.0.236/trunk@79167 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 20:12:59 +00:00
brendan%mozilla.org
47f8253c72 Use lazy JS class init to save memory and cycles; also expand tabs per Emacs modeline (46703, r=blizzard@mozilla.org).
git-svn-id: svn://10.0.0.236/trunk@77725 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-31 02:59:59 +00:00
dbaron%fas.harvard.edu
38b7ad8d31 Changing C++ comments to C comments. Please do not put C++ comments in C files, since it breaks some compilers. r=jst
git-svn-id: svn://10.0.0.236/trunk@76684 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-19 03:56:25 +00:00
jtaylor%netscape.com
4d256adca6 Additional safeguard for bug #45877. r=alecf.
git-svn-id: svn://10.0.0.236/trunk@76659 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 22:32:05 +00:00
cls%seawood.org
e00c9de47a Oops. Did a lxr search on the wrong thing. Change -DB1M to -DB_ONE_M since WS5.0 appears to not handle the former properly in all cases.
git-svn-id: svn://10.0.0.236/trunk@75470 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 06:07:33 +00:00
alecf%netscape.com
98d754b06b oops, back out this printf, didn't mean for it to go in
git-svn-id: svn://10.0.0.236/trunk@75251 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 20:58:08 +00:00
alecf%netscape.com
a98365dfed fix for #46379 by dougt@netscape.com, r=alecf
fix some leaked interface pointers in nsPref


git-svn-id: svn://10.0.0.236/trunk@75250 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 20:56:54 +00:00
cls%seawood.org
50a5bb697c Start tedious process of removing obsolete mozilla/include files from build. This patch should take us down to 19 of 101. Bug #38061
git-svn-id: svn://10.0.0.236/trunk@73904 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 07:13:31 +00:00
mcafee%netscape.com
f9fb471e4b Removing unused 4.x prefs (39812). r=pavlov
git-svn-id: svn://10.0.0.236/trunk@73156 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 03:32:40 +00:00
mcafee%netscape.com
5318eeba96 Fixing MLK. (33773)
git-svn-id: svn://10.0.0.236/trunk@70370 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 07:00:15 +00:00
neeti%netscape.com
fd5804c71d netscape.cfg support for prefs.bug 5132,r=alecf.This is currently disabled
git-svn-id: svn://10.0.0.236/trunk@70120 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 22:15:13 +00:00
brendan%mozilla.org
18ba83921b Remove JS request API usage, it's wrong and unnecessary in the main thread (38780, r=alecf).
git-svn-id: svn://10.0.0.236/trunk@69947 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 02:40:38 +00:00
alecf%netscape.com
38c1f60e7c trim the pref DLL by removing lots of exported symbols
git-svn-id: svn://10.0.0.236/trunk@68821 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-09 05:58:29 +00:00
tor%cs.brown.edu
7992cab2b4 C++ comments in C files break native unix compilers.
git-svn-id: svn://10.0.0.236/trunk@68318 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-05 03:07:04 +00:00
alecf%netscape.com
7a38d3a548 whack prefs with a medium sized-stick.
also fix #33668, allow localized prefs to come from stringbundles


git-svn-id: svn://10.0.0.236/trunk@68298 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-05 00:22:20 +00:00
mstoltz%netscape.com
e8a0e8479c Made prefapi.h private and removed all #includes of it outside of libpref. r=norris
git-svn-id: svn://10.0.0.236/trunk@66060 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 03:43:09 +00:00
alecf%netscape.com
f414ec2caa back out my change until I can build this on windows again
git-svn-id: svn://10.0.0.236/trunk@64332 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-28 05:39:14 +00:00
alecf%netscape.com
e2a6213ae5 clean up the original prefapi.c
- make lots of functions static that aren't called from outside libpref
- remove dead code
r=neeti


git-svn-id: svn://10.0.0.236/trunk@64323 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-28 04:52:52 +00:00