Compare commits

..

1640 Commits

Author SHA1 Message Date
richm%stanfordalumni.org
88b6f2e5a6 Initial import of the Sun C SDK back into mozilla
git-svn-id: svn://10.0.0.236/branches/SUN_LDAP_C_SDK@198039 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-19 20:44:56 +00:00
richm%stanfordalumni.org
856f9252bf Initial import of the Sun C SDK back into mozilla
git-svn-id: svn://10.0.0.236/branches/SUN_LDAP_C_SDK@198037 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-19 20:37:06 +00:00
richm%stanfordalumni.org
2b077b6c62 Initial import of the Sun C SDK back into mozilla
git-svn-id: svn://10.0.0.236/branches/SUN_LDAP_C_SDK@198030 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-19 20:17:49 +00:00
(no author)
2dc3c47bd5 This commit was manufactured by cvs2svn to create branch 'SUN_LDAP_C_SDK'.
git-svn-id: svn://10.0.0.236/branches/SUN_LDAP_C_SDK@24220 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-16 19:57:35 +00:00
cboatwri
5d7f7dc59d Added Directory (ldap) SDK source files for public release
git-svn-id: svn://10.0.0.236/trunk@2477 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 04:29:26 +00:00
cboatwri
bcc6f383bb Added Directory (ldap) SDK source files for public release
git-svn-id: svn://10.0.0.236/trunk@2476 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 04:23:42 +00:00
sfraser
bbe33e24af Fix a bug in the quoting of file names which caused problems with files with a hyphen in the name.
git-svn-id: svn://10.0.0.236/trunk@2475 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 04:07:53 +00:00
sfraser
07d9f8cb3d First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2472 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 03:19:00 +00:00
scullin
f3a658f096 Checked in from the wrong $@%$#%$ tree.
git-svn-id: svn://10.0.0.236/trunk@2471 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 03:15:39 +00:00
mcafee
99dc022e95 Initial fullcircle module checkin
git-svn-id: svn://10.0.0.236/trunk@2470 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 03:00:49 +00:00
troy
4423b06d16 Added 'ns' prefix to class name
git-svn-id: svn://10.0.0.236/trunk@2468 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 02:37:37 +00:00
kipp
243bbe4f16 Added style support for the new css opacity property
git-svn-id: svn://10.0.0.236/trunk@2467 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 02:02:43 +00:00
kipp
0af82d79bd Revised HorizontallyPlaceChildren API to support a default alignment based on the layout direction
git-svn-id: svn://10.0.0.236/trunk@2466 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 02:02:22 +00:00
kipp
0f84787aa8 Use revised HorziontallyPlaceChildren api
git-svn-id: svn://10.0.0.236/trunk@2465 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 02:01:50 +00:00
kipp
a1e84139ce Use default text alignment; setup opacity properly
git-svn-id: svn://10.0.0.236/trunk@2464 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 02:01:19 +00:00
kipp
855722caee Added text_align_default for better direction handling
git-svn-id: svn://10.0.0.236/trunk@2463 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 02:00:59 +00:00
kipp
1842fc5cd8 Added mOpacity to nsStyleColor
git-svn-id: svn://10.0.0.236/trunk@2462 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 01:59:38 +00:00
kipp
f0567815a9 new
git-svn-id: svn://10.0.0.236/trunk@2461 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 01:58:58 +00:00
morse
3a25f69d6e check-in for garrett
git-svn-id: svn://10.0.0.236/trunk@2460 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 01:49:21 +00:00
scullin
3097cad210 Fix mac build bustage.
git-svn-id: svn://10.0.0.236/trunk@2459 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 01:31:47 +00:00
sfraser
28d26264cc First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2457 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 01:24:19 +00:00
scullin
e7cc5af4d2 Fix Mac build.
git-svn-id: svn://10.0.0.236/trunk@2454 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 01:18:42 +00:00
kipp
834cd63031 Added a new property
git-svn-id: svn://10.0.0.236/trunk@2453 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 01:11:30 +00:00
cyeh
28a5660932 sigh. one more time. add mozilla/modules/libnls as part of the mail/news
integration effort.


git-svn-id: svn://10.0.0.236/trunk@2452 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 01:08:55 +00:00
cyeh
abb3b256a3 added mozilla/modules/calendar to MozillaCommon as part of the mail/news
integration effort


git-svn-id: svn://10.0.0.236/trunk@2451 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 01:00:19 +00:00
jevering
354c2123f5 Unwhack Rick's change.
git-svn-id: svn://10.0.0.236/trunk@2450 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:57:25 +00:00
scullin
a03e49ff46 Fully land MODULAR_NETLIB branch on windows.
git-svn-id: svn://10.0.0.236/trunk@2449 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:52:44 +00:00
ftang
3c7d0866f3 add euro sign. approved by dp
git-svn-id: svn://10.0.0.236/trunk@2448 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:49:35 +00:00
karnaze
c71fc09344 fixed memory leak from prev checkin
git-svn-id: svn://10.0.0.236/trunk@2447 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:42:26 +00:00
spider
ea64ef1e2e Fixes to support latest GFX changes
git-svn-id: svn://10.0.0.236/trunk@2443 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:23:10 +00:00
spider
5937630273 Fix NSPR circly dependency thing
git-svn-id: svn://10.0.0.236/trunk@2442 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:22:34 +00:00
jevering
672bf8b1cb Added parser message dispatch loop for debug robot to pump netlib
and complete individual parsing.


git-svn-id: svn://10.0.0.236/trunk@2441 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:22:11 +00:00
spider
7faae8033a Get TREX running on UNIX again
git-svn-id: svn://10.0.0.236/trunk@2440 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:21:57 +00:00
jevering
21f4b2f1e9 Changing the debug robot to be able to cope with the parser push model.
Updated the robot sink apis.
Fixed the global url holder in the destructor of the parser.
Changed the robot observer to set a flag when completed parsing of a
url so that it doesn't create lottsa little parsers.


git-svn-id: svn://10.0.0.236/trunk@2439 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:21:34 +00:00
scullin
4157160681 Remove SOCKET_ERRNO and xp_sock.h from network
git-svn-id: svn://10.0.0.236/trunk@2438 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:19:49 +00:00
scc
a5eee274d7 Exploit new routine BuildProjectClean($;$). Fixed $dist_dir use to be consistent with standard use of variables for directories (i.e., include the trailing colon). Unified some small $DEBUG logic.
git-svn-id: svn://10.0.0.236/trunk@2437 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:19:43 +00:00
scullin
b713c5c1a8 Remove SOCKET_ERRNO from mozilla/network.
git-svn-id: svn://10.0.0.236/trunk@2436 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:18:29 +00:00
scullin
bbfde797e0 Eliminate SOCKET_ERRNO and xp_sock.h
git-svn-id: svn://10.0.0.236/trunk@2435 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:17:37 +00:00
scc
8b1d7177ce Added additional parameter to BuildProject: a boolean which, when true, forces a full build via `remove object code'
git-svn-id: svn://10.0.0.236/trunk@2434 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:16:44 +00:00
scc
4e38154099 Added BuildProjectClean($;$), like BuildProject, but forces a `remove object code'. Factored the two routines into a private build_project($$$)
git-svn-id: svn://10.0.0.236/trunk@2433 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-28 00:15:54 +00:00
karnaze
4fda063ac0 gui events store nsISupports; improved forms event handling
git-svn-id: svn://10.0.0.236/trunk@2432 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:58:07 +00:00
sfraser
0d27b0a629 Changed exports
git-svn-id: svn://10.0.0.236/trunk@2430 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:57:48 +00:00
sfraser
de6e715c62 Changed the target name to "Stubs" so that remove binaries happens each time, to guarentee that dist happens.
git-svn-id: svn://10.0.0.236/trunk@2429 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:54:02 +00:00
sfraser
9234dfdcee Changed the target name of the MakeDist project to "Stubs" so that binaries are removed on every build.
git-svn-id: svn://10.0.0.236/trunk@2428 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:53:31 +00:00
eyork
e3c9d24c1c Adding files for calendar mime handler. This is not yet hooked into mozilla.
git-svn-id: svn://10.0.0.236/trunk@2427 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:44:03 +00:00
kipp
9c836bc876 Parse (and ignore) important declarations
git-svn-id: svn://10.0.0.236/trunk@2426 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:38:16 +00:00
kipp
39db2c7f41 new
git-svn-id: svn://10.0.0.236/trunk@2425 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:37:21 +00:00
pinkerton
5fead38dcc obsolete just a few more LGA* files.
git-svn-id: svn://10.0.0.236/trunk@2423 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:23:23 +00:00
wtc
e1c7878a44 Removed unused variables. Thanks to Wei Tsang Ooi
<weitsang@cs.cornell.edu> for the patch.


git-svn-id: svn://10.0.0.236/trunk@2422 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:21:10 +00:00
wtc
4d04c2a5ce Use the stabs debug format on Solaris x86, because the default dwarf
format does not work.  This patch is provided by Soren Juul Moller
<sjm@nwc.dk>.


git-svn-id: svn://10.0.0.236/trunk@2420 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:15:32 +00:00
wtc
491e021a91 Merged gcc support from the HP-UX Mozilla Patching Kit version 3.00
(http://hpux.csc.liv.ac.uk/hppd/mozilla/), maintained by
Richard K Lloyd <hpux@csc.liv.ac.uk>.


git-svn-id: svn://10.0.0.236/trunk@2419 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:13:47 +00:00
rpotts
c1108773df Changed NET_WritePostData(...) to only send a CRLF between headers and data if both are present... On in the modular netlib, headers can be placed in the URL_s->post_data... This cahnge is ifdef B1M
git-svn-id: svn://10.0.0.236/trunk@2418 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:07:13 +00:00
rpotts
16efd4b73b Added B1M define if the MODULAR_NETLIB environment variable is defined...
git-svn-id: svn://10.0.0.236/trunk@2417 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:05:18 +00:00
rpotts
7fe06ecb1d Added support for XP_FindCOntextOfType(....) This is needed to turn off the poll_netlib_all_the_time flag after a POST has occurred
git-svn-id: svn://10.0.0.236/trunk@2416 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:04:11 +00:00
rpotts
75cb8edc90 Null terminate the post databuffer...
git-svn-id: svn://10.0.0.236/trunk@2415 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 23:03:05 +00:00
cyeh
40ed381c57 turn on moz_medium (turn off moz_lite)
git-svn-id: svn://10.0.0.236/trunk@2414 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 22:57:32 +00:00
sfraser
89cd69560c Fix warnings
git-svn-id: svn://10.0.0.236/trunk@2413 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 22:55:38 +00:00
sfraser
9649279ca2 Remove an obsolete prefix file
git-svn-id: svn://10.0.0.236/trunk@2412 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 22:53:47 +00:00
sfraser
c30964cead Changed to use NewAlias instead of dupicate for making headers in dist
git-svn-id: svn://10.0.0.236/trunk@2411 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 22:53:17 +00:00
sfraser
4849021fab Fix warnings
git-svn-id: svn://10.0.0.236/trunk@2410 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 22:47:28 +00:00
sfraser
c10c97cb1b Added a need comma, and added lines to build Client resource targets. Also changed name of final project from Navigator to Client.
git-svn-id: svn://10.0.0.236/trunk@2409 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 22:47:14 +00:00
scc
ed6abb94e6 missing project files now counts as an error w.r.t. StopForErrors(). Cleaned up MakeAlias a little.
git-svn-id: svn://10.0.0.236/trunk@2408 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 22:40:36 +00:00
kipp
6aeed36e66 Set x,y coordinate of frame before reflowing it
git-svn-id: svn://10.0.0.236/trunk@2407 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 22:24:57 +00:00
scullin
0375c753f7 Landing MODULAR_NETLIB_BRANCH on windows.
git-svn-id: svn://10.0.0.236/trunk@2406 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 22:13:00 +00:00
scullin
6a0c8ea696 Fix bool type mismatch.
git-svn-id: svn://10.0.0.236/trunk@2403 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:18:25 +00:00
cyeh
b4cb3f29b7 updated LEGAL file to reflect non-infringement of WANG patent, and option
to appeal.


git-svn-id: svn://10.0.0.236/trunk@2402 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:17:37 +00:00
sfraser
35dee2f6a2 Fixed MakeAlias to give better errors, and to work.
git-svn-id: svn://10.0.0.236/trunk@2401 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:14:11 +00:00
sfraser
3627d9d93f Added code to remove binaries from stubs targets before building them.
git-svn-id: svn://10.0.0.236/trunk@2400 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:13:29 +00:00
sfraser
56f8574831 Added copyright, put in MOZ_LITE definition.
git-svn-id: svn://10.0.0.236/trunk@2399 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:12:59 +00:00
sfraser
2554c38ada Updated to point to the new projects, and use the MakeAlias routine.
git-svn-id: svn://10.0.0.236/trunk@2398 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:10:54 +00:00
kipp
90a0e806d2 Use new line layout struct; pass in word break info to line layout
git-svn-id: svn://10.0.0.236/trunk@2397 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:07:30 +00:00
kipp
c7f7ce710d Moved certain line layout state into a state struct that can be saved/restored for word breaking
git-svn-id: svn://10.0.0.236/trunk@2396 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:07:10 +00:00
kipp
61dcf31ce0 Moved certain line layout state into a state struct that can be saved/restored for word breaking; updated code to use it; fixed up split line logic to use state to compute push count; added in word breaking logic; eliminated old word break code
git-svn-id: svn://10.0.0.236/trunk@2395 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:06:55 +00:00
kipp
f10d10eb50 Added DidFit/CanFit predicates; removed cruft
git-svn-id: svn://10.0.0.236/trunk@2394 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:06:03 +00:00
kipp
ba58cf168c Removed cruft; fixed to use canfit/didfit predicates that check on word-breaking state; fixed long standing bug with last-content-complete in pullup code
git-svn-id: svn://10.0.0.236/trunk@2393 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:05:47 +00:00
kipp
73e6662d13 Updated to use lineLayout struct changes
git-svn-id: svn://10.0.0.236/trunk@2392 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:05:13 +00:00
kipp
ac90a0457e nop
git-svn-id: svn://10.0.0.236/trunk@2391 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:04:53 +00:00
kipp
fef14caafd Only perform horizontal alignment when there is room to do it
git-svn-id: svn://10.0.0.236/trunk@2390 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:04:33 +00:00
karnaze
7e760f96e7 removed printf
git-svn-id: svn://10.0.0.236/trunk@2389 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 21:04:23 +00:00
cyeh
09e6e142e3 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2386 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 20:38:39 +00:00
sfraser
08b5bba656 Updated comment
git-svn-id: svn://10.0.0.236/trunk@2385 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 20:35:52 +00:00
akkana
6ea3a86934 Re-enable -composer and -edit flags (they were disabled under MOZ_MAIL_NEWS).
Also clean up a couple of warnings.


git-svn-id: svn://10.0.0.236/trunk@2384 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 20:26:01 +00:00
scc
925bc36315 removed erroneous commas from export lists
git-svn-id: svn://10.0.0.236/trunk@2383 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 20:19:31 +00:00
waldemar
3f6f86757c Fixed bug 114508: delete can now delete fields of objects put into scope by with statements
git-svn-id: svn://10.0.0.236/trunk@2381 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 20:10:13 +00:00
morse
599a68f6e5 removed ifdefs, mac busted fixed
git-svn-id: svn://10.0.0.236/trunk@2379 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 20:06:00 +00:00
hardts
d224ba7688 change raptor to nglayout
git-svn-id: svn://10.0.0.236/trunk@2378 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 20:00:40 +00:00
karnaze
b2212278c9 fix irix build
git-svn-id: svn://10.0.0.236/trunk@2377 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 19:57:03 +00:00
pinkerton
55e683689b Port to new AM classes of security button.
git-svn-id: svn://10.0.0.236/trunk@2376 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 19:55:09 +00:00
pinkerton
0795bce6bf add NET_DeleteCookie for RDF.
git-svn-id: svn://10.0.0.236/trunk@2375 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 19:54:01 +00:00
scc
cc9c1e39ae Added MakeAlias, an error checking synonym for symlink. Moved some routines to @EXPORT from @EXPORT_OK, to make for more concise clients.
git-svn-id: svn://10.0.0.236/trunk@2374 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 19:52:28 +00:00
morse
daacb3e5e2 bug 122126, reviewd by valeski
git-svn-id: svn://10.0.0.236/trunk@2373 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 19:46:30 +00:00
morse
e033f40035 bug 122126, reviewed by valeski
git-svn-id: svn://10.0.0.236/trunk@2369 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 19:34:31 +00:00
morse
3ac0fa7e60 bug 122126, approved by valeski
git-svn-id: svn://10.0.0.236/trunk@2367 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 19:32:19 +00:00
scullin
f63d10a871 Strip out XP functions from last bug fix.
git-svn-id: svn://10.0.0.236/trunk@2364 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 18:50:54 +00:00
karnaze
ca8a2b30ce post submission, file content submission
git-svn-id: svn://10.0.0.236/trunk@2355 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 17:51:41 +00:00
pinkerton
ac438678e6 Removal of LGA* stuff in prefs.
git-svn-id: svn://10.0.0.236/trunk@2354 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 17:29:01 +00:00
pinkerton
2e899db9e9 removal of LGA* stuff
git-svn-id: svn://10.0.0.236/trunk@2353 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 17:27:50 +00:00
michaelp
9c7b6d8d1b added region to factory.
git-svn-id: svn://10.0.0.236/trunk@2352 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 17:11:37 +00:00
morse
4de633d5a8 attempt to fix mac bustage
git-svn-id: svn://10.0.0.236/trunk@2350 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 15:08:35 +00:00
shaver
aca06adb66 tracking ref fixes: XDR and jsnum
git-svn-id: svn://10.0.0.236/trunk@2349 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 14:24:39 +00:00
shaver
69c0f00221 allow NULL Scripts for JS_NewScriptObject
git-svn-id: svn://10.0.0.236/trunk@2348 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 14:18:51 +00:00
morse
1c50215a24 bug 122126, reviewed by guha
git-svn-id: svn://10.0.0.236/trunk@2347 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 08:15:49 +00:00
morse
3cbd932a72 bug 122126, reviewed by valeski
git-svn-id: svn://10.0.0.236/trunk@2345 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 08:06:33 +00:00
hshaw
82e7979a06 Fix for Rhapsody build, thanks toshok@netscape.com, also remove some improper wording
git-svn-id: svn://10.0.0.236/trunk@2342 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 07:33:12 +00:00
morse
6dd0737902 bug 122126, reviewed by atotic
git-svn-id: svn://10.0.0.236/trunk@2340 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 07:31:15 +00:00
morse
48c842a852 bug 122126, reviewed by aoki
git-svn-id: svn://10.0.0.236/trunk@2339 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 07:24:36 +00:00
scc
8215a118ba added symlink lines, most still need to be completed with final product names; dist directory probably needs to be set correctly
git-svn-id: svn://10.0.0.236/trunk@2338 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 05:46:21 +00:00
mccabe
1403ada266 Conditionalized a (jsint) cast to ask JSDOUBLE_IS_NaN first -
hopefully avoiding a SIGPFE on Alpha Linux.  (And others?)


git-svn-id: svn://10.0.0.236/trunk@2335 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 04:53:37 +00:00
timm
9144c3b087 fix threading problem with thermo bar
git-svn-id: svn://10.0.0.236/trunk@2334 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 03:36:23 +00:00
timm
f70fcc46ce Sols changes
git-svn-id: svn://10.0.0.236/trunk@2333 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 03:35:09 +00:00
timm
4d6fd3d15c remove debugging stubs
git-svn-id: svn://10.0.0.236/trunk@2332 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 03:34:57 +00:00
timm
2328897d3e add getSelectedISPName
git-svn-id: svn://10.0.0.236/trunk@2331 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 03:34:14 +00:00
timm
c2b35bd975 remove debugging stub
git-svn-id: svn://10.0.0.236/trunk@2330 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 03:33:37 +00:00
timm
fea8bc8078 117255 fix for null exception
git-svn-id: svn://10.0.0.236/trunk@2329 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 03:32:53 +00:00
timm
bea1cec239 Sols changes, fix for 97647
git-svn-id: svn://10.0.0.236/trunk@2328 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 03:31:09 +00:00
spider
582fd7877f Allow mkdepend to be built on windoze
git-svn-id: svn://10.0.0.236/trunk@2327 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 02:27:09 +00:00
spider
2afd1eef7d windows dep. stuff
git-svn-id: svn://10.0.0.236/trunk@2326 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 02:14:26 +00:00
michaelp
d4e2a5a20c added support for front-to-back view rendering.
git-svn-id: svn://10.0.0.236/trunk@2325 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 02:13:28 +00:00
tague
55e417dfe9 added libnls headers to public build
git-svn-id: svn://10.0.0.236/trunk@2324 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 02:02:27 +00:00
scullin
35ec9fcc3e Enable html coloring stream converter in modular netlib.
git-svn-id: svn://10.0.0.236/trunk@2322 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 01:28:29 +00:00
scullin
5fdece0330 Change magic emacs line to reflect correct tab size.
git-svn-id: svn://10.0.0.236/trunk@2321 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 01:27:50 +00:00
scullin
0dbf249dce Don't build mkstream.c with modular netlib
git-svn-id: svn://10.0.0.236/trunk@2320 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 01:26:05 +00:00
scullin
d960e37ced Enable more protocols
git-svn-id: svn://10.0.0.236/trunk@2319 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 01:24:22 +00:00
scullin
31fb3c746d Rebuild when sub-libraries change.
git-svn-id: svn://10.0.0.236/trunk@2318 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 01:24:05 +00:00
spider
06abfe228b Adding makedep to gconfig
git-svn-id: svn://10.0.0.236/trunk@2316 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 00:59:31 +00:00
sfraser
7f9b0a7fe2 Added some more headers to export
git-svn-id: svn://10.0.0.236/trunk@2315 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 00:53:55 +00:00
sfraser
4d0cc4402f First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2314 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 00:53:25 +00:00
sfraser
8703114e8b Addd some more export files
git-svn-id: svn://10.0.0.236/trunk@2313 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 00:53:11 +00:00
sfraser
5f209ad760 Updated the list of export.mac files
git-svn-id: svn://10.0.0.236/trunk@2311 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 00:50:22 +00:00
sfraser
df4052e541 Fixing bugs in the scripts that copy headers into dist. Now allow trailing #comments, and handle whitespace after file names.
git-svn-id: svn://10.0.0.236/trunk@2310 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-27 00:50:08 +00:00
buster
db2f93e156 fixed case-sensitive include
git-svn-id: svn://10.0.0.236/trunk@2307 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 23:28:48 +00:00
peterl
e232225565 added visibility style attribute
git-svn-id: svn://10.0.0.236/trunk@2306 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 23:17:29 +00:00
peterl
86b7ae08b5 moved attributes around
git-svn-id: svn://10.0.0.236/trunk@2305 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 23:16:55 +00:00
peterl
779a602187 added visibility style attribute
moved attributes from position to display struct


git-svn-id: svn://10.0.0.236/trunk@2304 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 23:15:47 +00:00
peterl
ef76e4aa4a use context graph for finding contexts
git-svn-id: svn://10.0.0.236/trunk@2303 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 23:14:56 +00:00
peterl
9050d134bb cleaned up visibility
git-svn-id: svn://10.0.0.236/trunk@2302 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 23:14:29 +00:00
peterl
f264deae62 reworked up reset code
added child list


git-svn-id: svn://10.0.0.236/trunk@2301 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 23:14:09 +00:00
peterl
2a8bcff4d7 cleanup
git-svn-id: svn://10.0.0.236/trunk@2300 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 23:13:26 +00:00
peterl
16a18a6b6d moved overflow from position to display struct
git-svn-id: svn://10.0.0.236/trunk@2299 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 23:13:15 +00:00
peterl
e280fe1c34 documented reset vs inherited attributes
shuffled some attributes around


git-svn-id: svn://10.0.0.236/trunk@2298 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 23:12:14 +00:00
waldemar
6f622be91c Fixed bug 117404: typeof should return "function" on scripts and regular expressions.
git-svn-id: svn://10.0.0.236/trunk@2295 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 22:11:00 +00:00
buster
314c1c9eb4 table width computation using style system (more than it used to, at least)
git-svn-id: svn://10.0.0.236/trunk@2294 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 22:03:16 +00:00
waldemar
66bf5ae377 Fixed syntax errors
git-svn-id: svn://10.0.0.236/trunk@2291 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 21:25:41 +00:00
kostello
b9b928f869 Updated Table Border code to render HTML3.2 compatible borders (no longer using the cool,
CSS borders).
Fixed Table but submitted by Isaac David Guedalia <daniel_sh@gezernet.co.il>.


git-svn-id: svn://10.0.0.236/trunk@2288 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 20:57:24 +00:00
kostello
557fb3323f Moved Get3DColors from HRPart to CSSRendering.
Modified Border Drawing Code to use Get3DColors for backwards compatibility purposes.


git-svn-id: svn://10.0.0.236/trunk@2287 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 20:52:59 +00:00
kostello
3b45b56e92 Moved Get3DColors from HRPart to CSSRendering.
git-svn-id: svn://10.0.0.236/trunk@2286 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 20:52:12 +00:00
scc
17b0861b94 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2283 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 19:48:03 +00:00
scc
0b0f644879 Added code to handle the `stop for errors, but not logging' case; moved copyright to (newly added) POD section
git-svn-id: svn://10.0.0.236/trunk@2282 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 19:46:36 +00:00
scc
9bc43c2d77 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@2281 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 19:36:10 +00:00
scc
ceebd16267 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2280 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 19:34:23 +00:00
ftang
bdcc75c122 fix the x-x-big5(and also gb2312, ksc5601) problem MS FrontPage introduced
for UNIX and Mac. The Window fixed eariler.


git-svn-id: svn://10.0.0.236/trunk@2278 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 19:18:47 +00:00
radha
002970c8f4 Re-fix for earlier fix for bug # 104761. Re-fix provided by timm. See bug report
for further details.


git-svn-id: svn://10.0.0.236/trunk@2277 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 19:05:32 +00:00
ftang
6e7465ed87 Fix NO-ending-SI problem for EUC-KR to ISO-2022-KR conversion
Thanks Jungshik Shin <jshin@pantheon.yale.edu> from the net and Erik van der Poel


git-svn-id: svn://10.0.0.236/trunk@2276 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 18:52:50 +00:00
radha
0bf82aa7dc New resources for the "Show/Hide Navigation Center" menu option
git-svn-id: svn://10.0.0.236/trunk@2275 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 18:52:01 +00:00
radha
33443f536a Add new command xfeToggleNavCenter to show/hide Aurora pane
git-svn-id: svn://10.0.0.236/trunk@2274 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 18:51:12 +00:00
radha
493b237768 Add BrowserView to the source files list.
git-svn-id: svn://10.0.0.236/trunk@2273 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 18:50:25 +00:00
radha
fabf4d340b Use BrowserView instead of HTML View. BrowserView holds a HTML view and a
NavCenter. Create a new menu option "Show/Hide NavCenter".


git-svn-id: svn://10.0.0.236/trunk@2272 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 18:49:53 +00:00
radha
5cf9772f51 Initial Checkin. This is the new view for all browser frames. It holds a HTML
View and a Nav Center View. Navcenter is currently turned off by default. It
can be  turned on with the "Show Navigation Center"  menu option.


git-svn-id: svn://10.0.0.236/trunk@2271 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 18:48:14 +00:00
pinkerton
3f7244a881 Status bar now uses appearance to draw progress bar separate from status text. Related Netscape classes that do the same thing obsoleted.
git-svn-id: svn://10.0.0.236/trunk@2267 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 16:32:05 +00:00
pinkerton
e5d0c4da33 default button again works in profile picker dialog.
git-svn-id: svn://10.0.0.236/trunk@2266 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 16:30:42 +00:00
ltabb
bbbb26567e this is a test for judd, no code effect
git-svn-id: svn://10.0.0.236/trunk@2265 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 14:51:51 +00:00
shaver
ca7d9cbe28 actually define the function properties of a script when decoding
git-svn-id: svn://10.0.0.236/trunk@2262 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 13:25:26 +00:00
shaver
6b2c0b6ca0 preserve sprop->id across XDR
git-svn-id: svn://10.0.0.236/trunk@2261 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 12:18:18 +00:00
ramiro
a67670f676 Change the logic of the || operators. This fixes a problem where the
bookmark window was asserting for no reason.
Thanks to Andrew Veliath <andrewtv@usa.net>


git-svn-id: svn://10.0.0.236/trunk@2260 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 12:15:44 +00:00
ramiro
fc422af5d8 In mozilla.c it says that XFE_InitDNS_Early is called before NSPR, etc.; but
the LOG macro calls PR_smprintf which fires up NSPR.    Use fprintf instead
of LOG() for this case.
Thanks to tenthumbs@cybernex.net.


git-svn-id: svn://10.0.0.236/trunk@2259 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 11:08:10 +00:00
ramiro
110ffa00cd Mozilla crashed after visiting a page with plugin. This is caused
by an access to a NULL pointer (plugin->handle).
Thanks to weitsang@yahoo.com
Fixes bugzilla #409.


git-svn-id: svn://10.0.0.236/trunk@2258 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-26 10:58:59 +00:00
troy
d2d4e15ea4 Merged ResizeReflow() and IncrementalReflow() into one Reflow() member function
git-svn-id: svn://10.0.0.236/trunk@2253 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-25 17:31:49 +00:00
guha
75cecf8781 Mac ifdef bustage fixage
git-svn-id: svn://10.0.0.236/trunk@2249 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-24 01:13:55 +00:00
guha
36a7576bb9 Add test.c : This file is not in the client build but is meant as
a sample file for those who want to use the XML module in standalone
mode.

Added a bunch of ifdefs for getting the standalone mode.


git-svn-id: svn://10.0.0.236/trunk@2248 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-24 00:27:54 +00:00
spider
a329725d0b Support for resource files on win32 - other platforms currently
ignore the RESFILE and RCFILE variables


git-svn-id: svn://10.0.0.236/trunk@2246 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-23 18:34:48 +00:00
spider
7fcbc136f4 Support for Julian and nls prior to FreeSource move to /m/pub
git-svn-id: svn://10.0.0.236/trunk@2245 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-23 18:34:15 +00:00
scullin
19b636f12a Only build module with nglayout.
git-svn-id: svn://10.0.0.236/trunk@2241 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-23 03:54:56 +00:00
briano
924dbfe9d2 Fixing the SCO OpenServer builds. Need to define _SVID3 in this special case so including statvfs.h will give us what we need. Anyone want to volunteer a more elegant solution? Approved by ramiro@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@2240 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-23 03:46:19 +00:00
scullin
22acc06189 Landing modular netlib on Window.
git-svn-id: svn://10.0.0.236/trunk@2236 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-23 01:38:10 +00:00
scullin
14adc6359a Added modular netlib to nglayout/Raptor
git-svn-id: svn://10.0.0.236/trunk@2235 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-23 01:36:28 +00:00
scullin
6e902be1c6 Updated for modular netlib
git-svn-id: svn://10.0.0.236/trunk@2234 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-23 01:35:51 +00:00
scullin
9916a96f39 Fix nglayout build.
git-svn-id: svn://10.0.0.236/trunk@2232 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-23 01:28:11 +00:00
sfraser
4d3a73a6a0 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2231 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-23 01:14:17 +00:00
scullin
97ebcd1ae6 Fix printing of nsString.
git-svn-id: svn://10.0.0.236/trunk@2228 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-23 00:28:02 +00:00
rjc
596d7a6b33 Fix FTP on Mac. (Approval by module owner: gagan)
git-svn-id: svn://10.0.0.236/trunk@2227 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-23 00:09:18 +00:00
scullin
10222065f1 Landed raptor modular netlib stuff
git-svn-id: svn://10.0.0.236/trunk@2225 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 23:38:40 +00:00
hardts
cfef75c533 XPCOM has now landed on the tip
git-svn-id: svn://10.0.0.236/trunk@2224 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 22:41:37 +00:00
hardts
053114cc3c was 0 length file after landing branch, copy in the branch version
git-svn-id: svn://10.0.0.236/trunk@2223 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 22:34:32 +00:00
hardts
35e38c9902 TestID.cpp didn't get branch changes for some reason, adding them now.
git-svn-id: svn://10.0.0.236/trunk@2221 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 22:30:53 +00:00
cyeh
cd4e15a1f7 add file vr_stubs.c to libreg as part of the XPCOM_BRANCH landing
git-svn-id: svn://10.0.0.236/trunk@2219 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 22:01:45 +00:00
hardts
217d4a9900 landing XPCOM_BRANCH
git-svn-id: svn://10.0.0.236/trunk@2218 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 21:56:30 +00:00
hardts
d583c3a3b9 land XPCOM_BRANCH
git-svn-id: svn://10.0.0.236/trunk@2217 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 21:55:49 +00:00
cyeh
4222ef6c58 assist with XPCOM_BRANCH landing. add files nsDebug.cpp and nsSupportsArray.cpp to projects
git-svn-id: svn://10.0.0.236/trunk@2215 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 21:52:45 +00:00
pinkerton
6fc714fb0e More appearance manager changes. Support for toolbar buttons being AM savvy. (appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@2213 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 20:25:42 +00:00
pinkerton
29536f7fbb First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2212 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 20:23:25 +00:00
kipp
2f9b3b6470 Including missing nsCoord
git-svn-id: svn://10.0.0.236/trunk@2211 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 20:11:42 +00:00
kipp
3ff4de3bf3 Added -md argument handling
git-svn-id: svn://10.0.0.236/trunk@2210 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 20:11:14 +00:00
rickg
8da56df062 fixed bug in form -- form flag was never being set to true
git-svn-id: svn://10.0.0.236/trunk@2204 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 19:31:38 +00:00
cyeh
b41a29c6af A utility batch file for setting all the necessary environment variables
that needed to build Mozilla for Win32.  Contributed by Lucas Gonze
(lucas@gonze.com) and Rick Ekle (rekle@iconect.net).  You'll need to edit
this file to point it at the location of your development environment and your
local copy of the source tree.


git-svn-id: svn://10.0.0.236/trunk@2203 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 19:30:23 +00:00
rickg
57d6142350 fixed a minor build problem with blender
git-svn-id: svn://10.0.0.236/trunk@2202 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 19:16:08 +00:00
guha
bb4e0c0672 Fix crashing bug caused by very long string being passed to FE_Trace
git-svn-id: svn://10.0.0.236/trunk@2201 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:51:38 +00:00
kipp
5906363e28 Let .cpp compilations KEEP the .cfg file too
git-svn-id: svn://10.0.0.236/trunk@2200 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:43:34 +00:00
kipp
04d414f623 Fixed windows cvpack problem
git-svn-id: svn://10.0.0.236/trunk@2199 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:41:08 +00:00
kipp
c6d6b4ec78 Removed a pile of includes
git-svn-id: svn://10.0.0.236/trunk@2198 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:39:28 +00:00
kipp
a38d94f629 Move padding out of UL/OL and into LI's that are in UL/OL's
git-svn-id: svn://10.0.0.236/trunk@2197 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:39:11 +00:00
kipp
3409cd9d61 Use new GetVisibleArea API
git-svn-id: svn://10.0.0.236/trunk@2196 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:38:33 +00:00
kipp
bd1b101779 Support LI's with padding instead of UL padding
git-svn-id: svn://10.0.0.236/trunk@2195 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:38:11 +00:00
gagan
abcef8c094 Unix builds. Not in the main build yet.
git-svn-id: svn://10.0.0.236/trunk@2194 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:38:10 +00:00
kipp
72ef1d9055 Removed some dead code; added code to DidReflow children at a good spot
git-svn-id: svn://10.0.0.236/trunk@2193 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:37:49 +00:00
kipp
48eb9c0084 Removed some includes
git-svn-id: svn://10.0.0.236/trunk@2192 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:37:25 +00:00
kipp
08c1e11e08 Removed an include
git-svn-id: svn://10.0.0.236/trunk@2191 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:37:15 +00:00
kipp
32b44a6565 Declare nsStylePosition
git-svn-id: svn://10.0.0.236/trunk@2190 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:37:04 +00:00
kipp
8e76027a72 Removed includes; updated GetVisibleArea API
git-svn-id: svn://10.0.0.236/trunk@2189 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:36:40 +00:00
kipp
d81b9d196e updated GetVisibleArea API
git-svn-id: svn://10.0.0.236/trunk@2188 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:36:27 +00:00
gagan
b64eb63d71 strlen to PL_strlen. Not in the build yet.
git-svn-id: svn://10.0.0.236/trunk@2187 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:34:22 +00:00
kipp
60a0ef89f7 Removed includes
git-svn-id: svn://10.0.0.236/trunk@2186 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:28:40 +00:00
kipp
acaaec9578 Only verify last is complete when enabled
git-svn-id: svn://10.0.0.236/trunk@2185 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:28:29 +00:00
kipp
e62719b058 Removed unneeded include
git-svn-id: svn://10.0.0.236/trunk@2184 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:28:02 +00:00
kipp
3cf90601b8 Repaired GetVisibleArea API
git-svn-id: svn://10.0.0.236/trunk@2183 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:27:48 +00:00
kipp
6a7bc663f3 new
git-svn-id: svn://10.0.0.236/trunk@2182 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:27:25 +00:00
jevering
7c150df597 Fixed about: URL's from crashing the viewer.
git-svn-id: svn://10.0.0.236/trunk@2181 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 18:10:08 +00:00
buster
483b518e3e added -r # for specifying a repeat count for batch mode
git-svn-id: svn://10.0.0.236/trunk@2179 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 17:34:58 +00:00
slamm
7a91059224 Fix crash on bringing up second NavCenter.
git-svn-id: svn://10.0.0.236/trunk@2176 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 17:15:03 +00:00
dcone
20016a960c Added the nsBlender classes to the project
git-svn-id: svn://10.0.0.236/trunk@2174 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 14:15:57 +00:00
hshaw
7b81da6fb3 Fix for SCO build. bitypes.h defines int32_t and was missing from stub files. Not a problem in real sun-java. Thanks briano@netscape.com
git-svn-id: svn://10.0.0.236/trunk@2173 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 09:31:16 +00:00
ramiro
0c2f6f30df Fix a dyslexic typo. Geez, how long was this here for ?
git-svn-id: svn://10.0.0.236/trunk@2172 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 06:52:57 +00:00
ramiro
350ecf8d15 Add initial support for layable children resource.
git-svn-id: svn://10.0.0.236/trunk@2171 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 06:50:41 +00:00
atotic
14133bdcd6 Commiting this from windows caused my special characters to disappear
git-svn-id: svn://10.0.0.236/trunk@2170 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 06:35:58 +00:00
atotic
8110e44179 Experimental Mac makefile
git-svn-id: svn://10.0.0.236/trunk@2169 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 05:57:00 +00:00
troy
14c16833da Changed reference to reflow command to a pointer to a reflow command
git-svn-id: svn://10.0.0.236/trunk@2168 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 04:56:27 +00:00
troy
ac413c29fa Changed splittable enum to be bit flags
git-svn-id: svn://10.0.0.236/trunk@2167 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 04:54:11 +00:00
pinkerton
ade769a9c5 commented out the annoying assert when max round was exceeded.
git-svn-id: svn://10.0.0.236/trunk@2166 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 04:22:04 +00:00
pinkerton
afe582b7b5 Landing of a bunch of appearance manager stuff. (appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@2165 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 04:19:24 +00:00
troy
c7abe18deb Changed the nsBandTrapezoid::State enum values to conform to the coding
standard


git-svn-id: svn://10.0.0.236/trunk@2164 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 04:03:14 +00:00
troy
449871aa10 Added new Reflow() member function that will eventually supersede the two
existing reflow functions: ResizeReflow() and IncrementalReflow()


git-svn-id: svn://10.0.0.236/trunk@2162 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 03:52:51 +00:00
troy
06b63f6642 Some work in progress for incremental floaters
git-svn-id: svn://10.0.0.236/trunk@2161 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 02:38:41 +00:00
spider
bb47dc2302 Adding the beginnings of Colormap Installation
git-svn-id: svn://10.0.0.236/trunk@2160 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 01:58:31 +00:00
wtc
81cc85bf08 OSF1 V3.2 does not have <machines/builtins.h>, which declares the
atomic routines.  Thanks to Andrew Cassin <acassin@cs.mu.oz.au> for
this patch.


git-svn-id: svn://10.0.0.236/trunk@2157 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 00:59:33 +00:00
troy
6b6d4c22d4 Fixed some busted code of a bogus type cast
git-svn-id: svn://10.0.0.236/trunk@2154 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 00:45:34 +00:00
buster
9d29532002 made nsTableCaptionFrame a subclass of nsBodyFrame
git-svn-id: svn://10.0.0.236/trunk@2151 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-22 00:05:22 +00:00
shaver
6b008173d1 added missing lib
git-svn-id: svn://10.0.0.236/trunk@2150 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 23:53:00 +00:00
kostello
997174b4d5 * Added Support for cell spacing
* NOTE: due to changes in the style system -- things won't look correct right away.


git-svn-id: svn://10.0.0.236/trunk@2149 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 23:43:18 +00:00
buster
93d6e09272 added a "-f" debug option to read a file for URLs to load
added a "-d" debug option to set the delay between URL loads


git-svn-id: svn://10.0.0.236/trunk@2147 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 23:41:53 +00:00
mccabe
d90f218a88 Fix to (83996), global parseInt function fails for numbers > 2^31.
It now passes all of the tests in 15.1.2.2-1 (except that parseInt
still has the .length property, which is a different bug) - so I'll
close the bug.

Still possibly at issue is whether we conform to ECMA language about
decimal numbers that are too large to fit in a double.  I treat
decimal digits after the 20th as zero, but there could be some
floating-point rounding wackiness going on.  In particular - are we
doing the right thing for numbers that are powers of 2, but larger
than 2^54, that are representable in a double?


git-svn-id: svn://10.0.0.236/trunk@2143 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 23:15:24 +00:00
matt
559c72d11b ifdef include on prosdep. If should not be dependent. Was breaking js/src builds
git-svn-id: svn://10.0.0.236/trunk@2141 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 22:41:18 +00:00
rickg
7afaf5e301 temp. comment out call
git-svn-id: svn://10.0.0.236/trunk@2138 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 22:19:40 +00:00
montulli
73bf44f694 initial add of netsream.h , not yet in build
git-svn-id: svn://10.0.0.236/trunk@2134 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 22:03:55 +00:00
gagan
f8b1fc15d8 An excursion timing class.
git-svn-id: svn://10.0.0.236/trunk@2132 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 21:56:58 +00:00
rickg
f2f5d28308 incremental parsing; xml support; token handler dispatching; performance
git-svn-id: svn://10.0.0.236/trunk@2126 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 20:38:32 +00:00
rickg
3fac38b3d8 moved to new incremental API
git-svn-id: svn://10.0.0.236/trunk@2125 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 20:37:41 +00:00
rickg
7caed77d22 minor perf improvement to deque
git-svn-id: svn://10.0.0.236/trunk@2124 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 20:37:17 +00:00
guha
f3f598e3ce Add prototype, temporary bug fix added.
git-svn-id: svn://10.0.0.236/trunk@2122 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 19:23:44 +00:00
guha
9d3512090b Export NET_InitRDFCookieResources
git-svn-id: svn://10.0.0.236/trunk@2121 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 19:17:21 +00:00
guha
612bc28681 Add export (for Mac), fix XP_strcmp NOT_NULL bug.
git-svn-id: svn://10.0.0.236/trunk@2120 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 19:16:43 +00:00
guha
a66d4a6595 Cookie changes.
git-svn-id: svn://10.0.0.236/trunk@2119 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 19:08:38 +00:00
selmer
05259add9a Change over to http: w/IP for reggie connections
git-svn-id: svn://10.0.0.236/trunk@2115 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 18:18:55 +00:00
gagan
fd6863b577 Added nsCachePref for cache preferences. This will have the interface
for libpref or nsPref stuff. Added database support for dbm. General
progress. This is not in the main build as yet.


git-svn-id: svn://10.0.0.236/trunk@2113 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 18:04:34 +00:00
gagan
019a155771 Added nsCachePref for cache preferences. This will have the interface
for libpref or nsPref stuff. General progress. This is not in the main
build as yet.


git-svn-id: svn://10.0.0.236/trunk@2112 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 18:03:50 +00:00
guha
ab5cd02bee Fix Linux optimized build problem reported by
Hani Suleiman <hani@fate.demon.co.uk>

>Building an optimised build under Linux fails unless the FE_Trace() on
>line 143 is wrapped with #ifdef DEBUG


git-svn-id: svn://10.0.0.236/trunk@2110 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 17:34:57 +00:00
kipp
b7133a9963 disabled reflow-mapped-child for now
git-svn-id: svn://10.0.0.236/trunk@2109 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 16:29:20 +00:00
kipp
f80729a530 Not quite functional handling of line state during GetReflowMetrics
git-svn-id: svn://10.0.0.236/trunk@2108 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 16:12:31 +00:00
kipp
ba6ecd8a02 better handle reflow avoidance; factored align children slightly different so that more code is shared between ResizeReflow and IncrementalReflow; fixed more cases where reflow is required
git-svn-id: svn://10.0.0.236/trunk@2107 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 16:12:10 +00:00
kipp
af4fc73183 Added a few more fields to better handle reflow avoidance; factored align children slightly different so that more code is shared between ResizeReflow and IncrementalReflow
git-svn-id: svn://10.0.0.236/trunk@2106 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 16:11:29 +00:00
kipp
7e6b6eb56f Removed temporary content appended hack (it no longer works)
git-svn-id: svn://10.0.0.236/trunk@2105 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 16:10:35 +00:00
spider
d6f1c041a2 Some additional Rendering Implementations (Line/Rect/Arc)
Support for offscreen Pixmap's


git-svn-id: svn://10.0.0.236/trunk@2103 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 08:24:44 +00:00
toshok
fbb307b987 fix the bug where form reset with textarea's would segfault. just cut-n-pasted one line from the text input element's reset method.
git-svn-id: svn://10.0.0.236/trunk@2102 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 07:18:51 +00:00
briano
a329fa209e Added -D_PR_LOCAL_THREADS_ONLY so files outside nsprpub that include _scoos.h will compile.
git-svn-id: svn://10.0.0.236/trunk@2100 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 04:06:00 +00:00
scc
64bca9f3dc Report the project that actually stopped the build.
git-svn-id: svn://10.0.0.236/trunk@2094 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 02:41:11 +00:00
peterl
63031f554c new file
git-svn-id: svn://10.0.0.236/trunk@2091 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 02:34:45 +00:00
peterl
25861753fc Changed GetStyleData to use an enum instead of an nsID
git-svn-id: svn://10.0.0.236/trunk@2090 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 02:34:13 +00:00
rickg
835d063055 filled in the popback function
git-svn-id: svn://10.0.0.236/trunk@2089 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 02:27:34 +00:00
slamm
d65d3e6e3d Fix Mozilla bug #385. Global history file would not get recreated if it was deleted. Thanks to Ronan Waide <waider@cognotec.com> for reporting the problem and developing a patch.
git-svn-id: svn://10.0.0.236/trunk@2087 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 01:39:25 +00:00
rjc
e812d8fbf5 Bug fix: Make sure parent isn't NULL.
git-svn-id: svn://10.0.0.236/trunk@2084 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 01:06:51 +00:00
rjc
7953137eac GetSlotValue() now returns memory which caller must free (if its a string). Remove references to DEBUG_RDF_GetSlotValue_Memory_Needs_Freedom define.
git-svn-id: svn://10.0.0.236/trunk@2082 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 00:57:25 +00:00
spider
970e83bba8 Fixes for making nsAppTest use gfx basics
git-svn-id: svn://10.0.0.236/trunk@2079 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-21 00:37:02 +00:00
slamm
17f978fb8f Use the winning animation from the Mozilla Logo Contest. Congratulations go to Urs Streidl <urs@gigaperls.org>.
git-svn-id: svn://10.0.0.236/trunk@2072 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 23:33:44 +00:00
spider
ea4ca5d1b9 Add motif to DIRS, commented out for now
git-svn-id: svn://10.0.0.236/trunk@2071 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 23:20:32 +00:00
spider
0866ff0202 Adding NS_NATIVE_WIDGET to get the native widget associated with an nsIWidget.
Windows has a concept of a native window whilst unix has a native widget and
a native window.


git-svn-id: svn://10.0.0.236/trunk@2070 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 23:19:38 +00:00
kipp
a9dcc1b0ed Fixed bug in nsString::Cut code where the sizeof(chartype) was multipled a bit aggresively; I also tuned the routine somewhat as well
git-svn-id: svn://10.0.0.236/trunk@2069 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 23:18:25 +00:00
spider
e80bba2116 Motif Mods
git-svn-id: svn://10.0.0.236/trunk@2068 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 23:18:09 +00:00
spider
eed0288148 Xlib mods
git-svn-id: svn://10.0.0.236/trunk@2067 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 23:17:49 +00:00
scc
1794e6b4c9 Added StopForErrors() and DontStopForErrors(). The former is the default, though logging must be on to allow errors to be noticed.
git-svn-id: svn://10.0.0.236/trunk@2066 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 23:09:53 +00:00
jevering
e5cf6a5951 Broke release build. Fixed.
git-svn-id: svn://10.0.0.236/trunk@2065 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 23:08:12 +00:00
montulli
1ed5ce76dd initial add of cstream library, not yet in build
git-svn-id: svn://10.0.0.236/trunk@2063 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 22:36:31 +00:00
kmcclusk
c294a50d5f Removed windows directory from widget/tests
git-svn-id: svn://10.0.0.236/trunk@2061 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 22:07:17 +00:00
kmcclusk
df29b2b178 Created an AppShell to abstract the event loop. Re-organized widget tests
into scribble and widget subdirectories and separated cross-platform code from
platform specific code


git-svn-id: svn://10.0.0.236/trunk@2060 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 22:02:14 +00:00
kipp
e4dbeae2e8 Disable reflow optimizations for now
git-svn-id: svn://10.0.0.236/trunk@2057 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 21:51:51 +00:00
spider
3edc3aaa94 Add NS_UNIX if __unix is defined
git-svn-id: svn://10.0.0.236/trunk@2056 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 21:40:46 +00:00
troy
18c747aa19 Cleaned up performance
git-svn-id: svn://10.0.0.236/trunk@2055 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 21:40:00 +00:00
spider
46b5aeb9b8 update nsAppTest for unix to work
git-svn-id: svn://10.0.0.236/trunk@2054 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 21:29:18 +00:00
peterl
5a89c809b7 made it build on irix
git-svn-id: svn://10.0.0.236/trunk@2053 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 21:28:36 +00:00
dcone
76471f424e put in the inverse color table routine and did 8 bit alpha
git-svn-id: svn://10.0.0.236/trunk@2052 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 21:12:38 +00:00
spider
48f1bf43c5 Support for so's made of archives
git-svn-id: svn://10.0.0.236/trunk@2050 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 21:02:04 +00:00
spider
a92e35fbe7 Misc Unix stuff
git-svn-id: svn://10.0.0.236/trunk@2049 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 21:01:38 +00:00
peterl
5881217641 added load timing
git-svn-id: svn://10.0.0.236/trunk@2048 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 20:34:54 +00:00
peterl
5673af6984 added rule hash table to speed up style resolution
git-svn-id: svn://10.0.0.236/trunk@2047 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 20:34:17 +00:00
peterl
c31cedc223 collapse double empty contexts
git-svn-id: svn://10.0.0.236/trunk@2046 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 20:33:30 +00:00
peterl
c7440bcf59 added rule count accessor
git-svn-id: svn://10.0.0.236/trunk@2045 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 20:32:57 +00:00
peterl
9d9d3404d3 added enumerate methods
git-svn-id: svn://10.0.0.236/trunk@2044 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 20:31:58 +00:00
robinf
702d26cb8e fixinb header bug in AS help
git-svn-id: svn://10.0.0.236/trunk@2042 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 19:17:14 +00:00
robinf
656ec38f0e fixinb header bug
git-svn-id: svn://10.0.0.236/trunk@2041 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 19:10:12 +00:00
robinf
959244b105 fixinb bug in comment line
git-svn-id: svn://10.0.0.236/trunk@2038 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 19:02:32 +00:00
spider
83c4fc037c Some unix stuff
git-svn-id: svn://10.0.0.236/trunk@2035 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 17:59:52 +00:00
thom
c5eba1ff11 added project file for mac build
git-svn-id: svn://10.0.0.236/trunk@2033 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 17:30:15 +00:00
kipp
d7224c5e89 Added command line args for purify/quantify runs
git-svn-id: svn://10.0.0.236/trunk@2030 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:28:40 +00:00
kipp
87b65c0bca Added rule for MULTICOL
git-svn-id: svn://10.0.0.236/trunk@2029 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:28:19 +00:00
kipp
7517c6c495 Add in will/did reflow calls; add in tracing calls too
git-svn-id: svn://10.0.0.236/trunk@2028 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:28:05 +00:00
kipp
b1a4dc5a81 Use new tracing macros; add in ReflowMappedChild to avoid reflowing children
git-svn-id: svn://10.0.0.236/trunk@2027 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:27:46 +00:00
kipp
fcd752ba90 Use new tracing macros and verify-tree-enable
git-svn-id: svn://10.0.0.236/trunk@2026 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:27:22 +00:00
kipp
d7c6851d21 Added in mDeltaWidth to block reflow state
git-svn-id: svn://10.0.0.236/trunk@2025 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:26:46 +00:00
kipp
e91d496797 Fixed GetReflowMetrics to return something; use new tracing methods and verify-tree-enable; compute delta width for line layout logic
git-svn-id: svn://10.0.0.236/trunk@2024 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:26:34 +00:00
kipp
3f35550560 GetReflowMetrics now updates the reflow state
git-svn-id: svn://10.0.0.236/trunk@2023 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:25:40 +00:00
kipp
88d895e375 Added a minor optimization to avoid memcpy calls that aren't needed
git-svn-id: svn://10.0.0.236/trunk@2022 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:25:16 +00:00
kipp
7d6827867d Use new frame tracing macros
git-svn-id: svn://10.0.0.236/trunk@2021 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:24:54 +00:00
kipp
f074763ff0 Declare tracing macros that use nspr logging and tracing methods that support the macros
git-svn-id: svn://10.0.0.236/trunk@2020 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:24:36 +00:00
kipp
1811ed96e7 Implement new debugging hooks that use nspr logging; also implement tracing methods in nsFrame; use tracing in will/did-reflow hooks
git-svn-id: svn://10.0.0.236/trunk@2019 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:24:13 +00:00
kipp
289b959938 Added some trace messages; fixed bug in PaintChildren that was always painting all children instead of allowing the intersection with the dirty rect to avoid paints
git-svn-id: svn://10.0.0.236/trunk@2018 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:23:37 +00:00
kipp
be2e63322f Added more debugging hooks that use nspr logging
git-svn-id: svn://10.0.0.236/trunk@2017 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:22:15 +00:00
kipp
a84aba4939 Added empty constructor; removed instance count sillyness
git-svn-id: svn://10.0.0.236/trunk@2016 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 16:21:48 +00:00
scc
7b810c81dd First Checked In.
git-svn-id: svn://10.0.0.236/trunk@2015 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 08:12:13 +00:00
rjc
6a0f22ab75 Add support for "Refresh" command across data sources. Also, fix a couple more bugs in HT regarding node count (deletion didn't always update the count correctly.)
git-svn-id: svn://10.0.0.236/trunk@2013 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 06:35:51 +00:00
troy
a558a8350d Added more self-test code
git-svn-id: svn://10.0.0.236/trunk@2012 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 05:29:56 +00:00
troy
b702a4ba14 Implemented RemoveRegion()
git-svn-id: svn://10.0.0.236/trunk@2010 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 05:14:14 +00:00
pinkerton
1dd9e2519e provide a valid context to HT_Launch (appr/rev sdagley).
git-svn-id: svn://10.0.0.236/trunk@2009 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 04:29:48 +00:00
brade
579c9382d7 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@2008 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 04:06:08 +00:00
rjc
bce056df6f Fix bug with tracking # of grandchildren nodes. (Discovered by pinkerton)
git-svn-id: svn://10.0.0.236/trunk@2007 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 03:43:43 +00:00
mccabe
f491c91092 Removed the escape and unescape functions, as they are now part of the
core engine.  (They've become part of the ECMA spec.)  Fix to (97681).


git-svn-id: svn://10.0.0.236/trunk@2006 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 03:25:41 +00:00
mccabe
f6b9e3b9f1 Removed the escape and unescape functions, as they are now part of the core engine. (They've become part of the ECMA spec.) Fix to (97681).
git-svn-id: svn://10.0.0.236/trunk@2005 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 03:23:07 +00:00
valeski
0d79805d7e fixing a purify UMR as reported by Kipp
git-svn-id: svn://10.0.0.236/trunk@2003 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 02:33:17 +00:00
blythe
ff93a49ca6 The preference DLLs contain COM objects. Their registry keys are set to
have relative paths.  This normally works fine, unless the current working
directory is other than that of the default program directory where the
pref DLLs are normally located.  This could happen by executing the
program from a different directory, or by saving a file to a directory
other than the default program directory.  In order to fix this, we need
to push to the program directory just prior to loading a preference
COM object, and then pop back.


git-svn-id: svn://10.0.0.236/trunk@2002 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 02:15:42 +00:00
rjc
21479d1671 Make Appletalk URLs (at:, afp:) more closely match URL format definition in CyberDog.
git-svn-id: svn://10.0.0.236/trunk@1999 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 01:13:24 +00:00
karnaze
d730d6f71d temp hack to test post submission
git-svn-id: svn://10.0.0.236/trunk@1990 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-20 00:10:42 +00:00
thom
38a3d3a5fc fixed compile errors for mac
git-svn-id: svn://10.0.0.236/trunk@1984 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 23:11:28 +00:00
troy
e456af6993 Changes for removing regions
git-svn-id: svn://10.0.0.236/trunk@1983 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 22:55:40 +00:00
michaelp
a1d8688193 removed rects from region apis. fleshed out windows region implementation.
git-svn-id: svn://10.0.0.236/trunk@1980 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 22:08:46 +00:00
guha
698734b1fa fix mac horkage
git-svn-id: svn://10.0.0.236/trunk@1979 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 22:07:35 +00:00
guha
c9b6a45791 more small fixes
git-svn-id: svn://10.0.0.236/trunk@1974 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 21:01:38 +00:00
rods
c491d51bea initial checkin
git-svn-id: svn://10.0.0.236/trunk@1973 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 20:39:31 +00:00
rods
bf9d48d947 removed xwin directory
git-svn-id: svn://10.0.0.236/trunk@1972 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 20:34:45 +00:00
sar
7493f80280 backing out the whitespace change and implementing a better fix for the line length problem - courtesy of Dan Veditz
git-svn-id: svn://10.0.0.236/trunk@1970 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 20:20:15 +00:00
sar
62142af8ac were up against a 4k POSIX inspired limit on command lines. I've removed white space to bring the command line under the limit. This is a temporary workaround and this needs to be repaired properly.
git-svn-id: svn://10.0.0.236/trunk@1967 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 19:59:38 +00:00
pinkerton
160a8e61dd add comment that this class is obsolete (appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@1966 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 19:31:51 +00:00
pinkerton
8d35afb70d Beginnings of appearance manager support. Add AM classes to powerplant and make toolbars use either AM (through CAMSavvyBevelView) or old way if AM not present (for now, this may change). (appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@1965 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 19:25:59 +00:00
pinkerton
ce8e90e141 use new HT_Launch api (appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@1964 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 19:21:38 +00:00
pinkerton
6c9089dc62 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@1963 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 19:16:51 +00:00
jevering
1a4bf77fe2 Debug Robot work.
git-svn-id: svn://10.0.0.236/trunk@1962 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 19:06:59 +00:00
thom
0679c3495c added worksheet for checking out nglayout from archive
git-svn-id: svn://10.0.0.236/trunk@1961 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 18:41:40 +00:00
thom
10c14c948c files to help build the project
git-svn-id: svn://10.0.0.236/trunk@1960 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 18:37:15 +00:00
cyeh
c35d1d0ae5 update documentation to reflect mozilla as root of the source directory
git-svn-id: svn://10.0.0.236/trunk@1959 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 18:11:30 +00:00
karnaze
45388bf6ed better layout, sizing of select
git-svn-id: svn://10.0.0.236/trunk@1957 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 17:51:21 +00:00
pnunn
15db7e35fe Remove temporary fix to Makefile for alpha linux optimization build of jidctred.c in jpeg module.
-pnunn


git-svn-id: svn://10.0.0.236/trunk@1956 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 17:50:14 +00:00
cyeh
d385affc17 update documentation to reflect mozilla as root of the source diretory
git-svn-id: svn://10.0.0.236/trunk@1955 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 17:34:43 +00:00
brade
835770d74d remove file jdictred.c to fix Alpha Linux build [for pnunn]
git-svn-id: svn://10.0.0.236/trunk@1954 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 17:10:36 +00:00
pnunn
4a557ed622 jidctred.c isn't used and causes build errors on alpha linux. Removed.
git-svn-id: svn://10.0.0.236/trunk@1953 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 17:05:36 +00:00
pnunn
5d9a7159aa jidctred.c is not needed and causes build problems (optimization) on alpha linux.
git-svn-id: svn://10.0.0.236/trunk@1952 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 17:00:46 +00:00
pnunn
a9bcb781ad Take out scaling, for makefile fix for linux optimization build problems on jidctred.c.
git-svn-id: svn://10.0.0.236/trunk@1951 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 16:59:07 +00:00
vidur
138a395379 New files for XPCOM interface generation
git-svn-id: svn://10.0.0.236/trunk@1946 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 15:59:53 +00:00
troy
e7e5cf121d Work in progress on removing a region
git-svn-id: svn://10.0.0.236/trunk@1945 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 15:30:10 +00:00
cmanske
aeec6647c1 Trying to help out the build bustage
git-svn-id: svn://10.0.0.236/trunk@1936 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 06:31:08 +00:00
vidur
dd3b2d1dca Added Core IDL files
git-svn-id: svn://10.0.0.236/trunk@1928 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 05:25:17 +00:00
vidur
606efca8f6 Added XPCOM interface generation
git-svn-id: svn://10.0.0.236/trunk@1926 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 05:21:21 +00:00
davidm
fb3a49b0a8 Reverting out changes which should have landed on the branch
git-svn-id: svn://10.0.0.236/trunk@1923 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 04:06:40 +00:00
montulli
0170278262 fix commercial build
git-svn-id: svn://10.0.0.236/trunk@1913 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 03:37:48 +00:00
montulli
74188eedbb fix commercial build
git-svn-id: svn://10.0.0.236/trunk@1902 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 03:28:35 +00:00
montulli
0f73aed6b6 fix commercial build
git-svn-id: svn://10.0.0.236/trunk@1899 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 03:22:20 +00:00
troy
628ced511a Signed
git-svn-id: svn://10.0.0.236/trunk@1894 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 03:02:39 +00:00
troy
00dc35659a Initial check-in
git-svn-id: svn://10.0.0.236/trunk@1893 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 03:01:30 +00:00
troy
ed866399b2 Revamped space manager internals
git-svn-id: svn://10.0.0.236/trunk@1892 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 03:00:56 +00:00
rickg
0e475bb67c small improvement to deque-iterator interface
git-svn-id: svn://10.0.0.236/trunk@1889 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 01:51:24 +00:00
montulli
f86a872ab2 add pr includes for build
git-svn-id: svn://10.0.0.236/trunk@1887 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 01:46:14 +00:00
davidm
6245cefeb7 Updated from Nova branch to Normandy branch
git-svn-id: svn://10.0.0.236/trunk@1880 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 01:05:08 +00:00
scullin
3ef5c773eb Moving over from xp library to NSPR
git-svn-id: svn://10.0.0.236/trunk@1878 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 00:57:15 +00:00
scullin
f62d3cc534 Moving over from xp library to NSPR. Moved cvactive.h from include to
network/cnvts


git-svn-id: svn://10.0.0.236/trunk@1875 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 00:54:09 +00:00
scullin
debabe5641 Moved cvactive.h from include to network/cnvts
git-svn-id: svn://10.0.0.236/trunk@1872 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 00:38:16 +00:00
peterl
24cf967380 added pseudo-class rule matching
git-svn-id: svn://10.0.0.236/trunk@1870 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 00:09:29 +00:00
peterl
acfcdc2a6b added link state api
git-svn-id: svn://10.0.0.236/trunk@1869 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 00:08:57 +00:00
peterl
8e416a2afc added pseudo-class atoms
git-svn-id: svn://10.0.0.236/trunk@1868 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 00:08:16 +00:00
scullin
d714884f88 Moved cvactive.h from include to network/cnvts
git-svn-id: svn://10.0.0.236/trunk@1866 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-19 00:07:47 +00:00
kmcclusk
3383117044 Changed listbox to be a nonintegral height under Win32
git-svn-id: svn://10.0.0.236/trunk@1865 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 23:52:20 +00:00
scullin
a630772729 Moved cvactive.h from include to network/cnvts
git-svn-id: svn://10.0.0.236/trunk@1863 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 23:51:09 +00:00
thom
f0392ea33c mac build
git-svn-id: svn://10.0.0.236/trunk@1861 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 22:50:19 +00:00
thom
ddff04c33f Mac checkin
git-svn-id: svn://10.0.0.236/trunk@1860 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 22:47:24 +00:00
thom
dc472ffeb0 Commented out forward class declaration that was choking code warrior
git-svn-id: svn://10.0.0.236/trunk@1859 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 22:45:00 +00:00
thom
6800ec6d38 Mac checkin
git-svn-id: svn://10.0.0.236/trunk@1858 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 22:42:13 +00:00
michaelp
b8b80b4ecc added stub nsRegionWin.cpp
git-svn-id: svn://10.0.0.236/trunk@1857 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 22:24:20 +00:00
atotic
e98e711acf Added new access paths for planned will's netlib modularization checkin
git-svn-id: svn://10.0.0.236/trunk@1856 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 22:10:09 +00:00
toshok
57a8a16052 apparently digital unix's c compiler has a problem with the work 'readonly' (it appears to be a reserved word, as far as that compiler goes). So, I'm changing all occurences of the readonly form element attribute to read_only. Thanks to berkley@cs.wustl.edu (Berkley Shands) for the report and suggested fix.
git-svn-id: svn://10.0.0.236/trunk@1855 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:58:00 +00:00
michaelp
1fd6c53148 killed nsRegion.h. added nsIRegion.h. added SetClipRegion() to rendering context.
modified APIs that had been referring to nsRegion to use nsIRegion.


git-svn-id: svn://10.0.0.236/trunk@1852 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:46:20 +00:00
peterl
73c129482a more style debugging code
git-svn-id: svn://10.0.0.236/trunk@1850 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:12:19 +00:00
peterl
94da62428a added pseudo frame support
git-svn-id: svn://10.0.0.236/trunk@1849 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:11:08 +00:00
peterl
738c42eb75 cleaned up list output
git-svn-id: svn://10.0.0.236/trunk@1848 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:10:44 +00:00
peterl
296429509e pseudo frame support
git-svn-id: svn://10.0.0.236/trunk@1847 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:10:19 +00:00
peterl
f09aae3304 correct case of selectors
skip empty selectors
better pseudo-class support


git-svn-id: svn://10.0.0.236/trunk@1846 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:09:43 +00:00
peterl
9b35736a68 added pseudo element support
git-svn-id: svn://10.0.0.236/trunk@1845 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:07:54 +00:00
peterl
891a4eb5d1 fixed memory leak
fixed uninitialized memory read


git-svn-id: svn://10.0.0.236/trunk@1844 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:07:24 +00:00
peterl
021e20ff2c added pseudo style support
git-svn-id: svn://10.0.0.236/trunk@1843 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:06:33 +00:00
peterl
bae746d31c added pseudo style support
added debug list of context graph


git-svn-id: svn://10.0.0.236/trunk@1842 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:05:52 +00:00
peterl
98569af3d2 added debugging code
git-svn-id: svn://10.0.0.236/trunk@1841 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:04:26 +00:00
peterl
28f4537549 fixed memory leak
git-svn-id: svn://10.0.0.236/trunk@1840 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:03:55 +00:00
peterl
796739f0d7 added pseudo frame style support
git-svn-id: svn://10.0.0.236/trunk@1839 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:03:10 +00:00
peterl
80dd125ad5 added list method
git-svn-id: svn://10.0.0.236/trunk@1838 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 21:02:49 +00:00
nisheeth
7b46e0d71b val was not being initialized properly lo_LayoutBlockSpacer(). Fixed. Thanks
to Kathy Brade (brade@netscape.com) for catching this.


git-svn-id: svn://10.0.0.236/trunk@1835 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 20:44:34 +00:00
brade
796eba9e99 remove #ifdef XP_MAC and unify memory calls/API; reviewed sdagley; approved toshok
git-svn-id: svn://10.0.0.236/trunk@1834 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 20:42:39 +00:00
toshok
8e35d123f9 this change may look like a lot, but it's really only one line. the rest is formatting. at any rate, this fixes the problem where the underlines were drawn at places other than the proper place for links.
git-svn-id: svn://10.0.0.236/trunk@1833 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 20:42:30 +00:00
thom
e6c4ec060c *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@1828 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 19:47:30 +00:00
toshok
6a48818ffb Fix bugzilla entries 134 (javascript crashing setting text in textarea) and 346 (missing & in call to fe_convertToXmString) thanks to waider@waider.ie (Ronan Waide) for the fixes.
git-svn-id: svn://10.0.0.236/trunk@1824 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 18:28:55 +00:00
karnaze
7c7404988e fixed nsInputFile::SizeTo
git-svn-id: svn://10.0.0.236/trunk@1822 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 18:07:01 +00:00
kmcclusk
5106d81117 Added nsTooltipEvent to indicate the index of the tooltip rectangle that is being shown.
Now correctly initializes TOOLINFO structures before using them.


git-svn-id: svn://10.0.0.236/trunk@1819 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 17:55:34 +00:00
kipp
36585827fd Print out state when non-zero
git-svn-id: svn://10.0.0.236/trunk@1816 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 16:53:09 +00:00
kipp
3be7942344 Call WillReflow before reflowing children
git-svn-id: svn://10.0.0.236/trunk@1815 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 16:52:57 +00:00
kipp
8397a26e24 dump out state and next-in-flow/prev-in-flow conditionally
git-svn-id: svn://10.0.0.236/trunk@1814 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 16:52:41 +00:00
kipp
be2171d84f Implement DidReflow to pass it down to children when exiting reflow; dump out state and next-in-flow/prev-in-flow conditionally
git-svn-id: svn://10.0.0.236/trunk@1813 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 16:51:37 +00:00
kipp
09c14b650b Implement DidReflow to pass it down to children when exiting reflow
git-svn-id: svn://10.0.0.236/trunk@1812 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 16:51:17 +00:00
karnaze
c6f7ca1c13 initial support for <input type=file>, combo box use of widget init data for sizing
git-svn-id: svn://10.0.0.236/trunk@1811 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-18 16:39:42 +00:00
guha
c9368a0466 fix bug in xml glue reported by Henning Behme
of iX Magazine, Germany


git-svn-id: svn://10.0.0.236/trunk@1807 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-17 18:22:29 +00:00
brendan
844e2114c4 Modernize README
git-svn-id: svn://10.0.0.236/trunk@1796 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-16 00:55:35 +00:00
thom
de892d2fc0 mac project for layout
git-svn-id: svn://10.0.0.236/trunk@1784 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 22:24:27 +00:00
thom
884257d7fb mac project for htmlparser
git-svn-id: svn://10.0.0.236/trunk@1783 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 22:23:34 +00:00
thom
749a2f608a *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@1782 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 22:22:34 +00:00
thom
d94aa1f263 gfx is a graphics envionment for nglayout
git-svn-id: svn://10.0.0.236/trunk@1781 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 22:11:03 +00:00
briano
1319f7d9f3 Forgot to make sure the optimization tweak only happens when BUILD_OPT is set. Duh.
git-svn-id: svn://10.0.0.236/trunk@1763 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 19:02:42 +00:00
spence
9433ad818b ifdef bustage
git-svn-id: svn://10.0.0.236/trunk@1760 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 18:54:35 +00:00
briano
82febb3994 Minor tweak for Alpha Linux. On my machine (DECStation 200, 64MB, RH5,
2.0.30), using -O2 (the default) causes the optimizer to dump core,
leaving gcc hanging.  Using -O instead, for just jidctred.c, works fine.
This is hopefully a temporary hack.  Anyone have any long-term solutions?
Approved by pnunn@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@1759 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 18:50:35 +00:00
dario
ae00c83c64 final checkin from Judah
git-svn-id: svn://10.0.0.236/trunk@1758 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 18:49:17 +00:00
jevering
03e1d6d1b3 Dont crash (at least in debug mode) when a stream cannot be opened.
git-svn-id: svn://10.0.0.236/trunk@1756 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 18:16:39 +00:00
rods
b8e2e3379e initial
git-svn-id: svn://10.0.0.236/trunk@1753 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 17:43:42 +00:00
briano
abadd4350e 'Fixed' the warning about the supposed trigraph. a=djw
git-svn-id: svn://10.0.0.236/trunk@1751 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 17:16:49 +00:00
atotic
ccf76ff3ee Removed NSstring.* because of conflicts with raptor, renamed to macstrdlibxetras
git-svn-id: svn://10.0.0.236/trunk@1750 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 16:59:14 +00:00
atotic
1b116c75fd Renamed nsstring.[c|h] to macstdlibextras.[c|h] because of the naming conflict with Raptor (which uses ns prefix exclusively).
git-svn-id: svn://10.0.0.236/trunk@1749 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 16:54:09 +00:00
atotic
6e725d53b2 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@1748 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 16:52:14 +00:00
ramiro
1978d2055d Add support for dropping to toolbox tabs.
git-svn-id: svn://10.0.0.236/trunk@1741 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 14:32:43 +00:00
ramiro
9bc24c9ded Add XfeTabDrawRaised().
git-svn-id: svn://10.0.0.236/trunk@1740 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 14:14:17 +00:00
ramiro
c19d523901 Add XfeToolBarGetFirstItem().
git-svn-id: svn://10.0.0.236/trunk@1739 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 13:30:24 +00:00
ramiro
b7a22d4046 Use a define instead of a hard coded '-1' constant.
git-svn-id: svn://10.0.0.236/trunk@1738 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 11:37:38 +00:00
ramiro
a548db7541 Remove dead code.
git-svn-id: svn://10.0.0.236/trunk@1737 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 11:32:28 +00:00
ramiro
d793c376eb Add icon to indicator if needed.
git-svn-id: svn://10.0.0.236/trunk@1736 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 11:23:24 +00:00
ramiro
9612894836 Add a check for a NULL str before passing it to strcmp().
Otherwise, Linux and possibly other platforms with strict strcmp()
implementations will crash when the plugin list is NULL.  Thanks to
pollmann@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@1735 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 11:21:09 +00:00
ramiro
6c9a7381bc Take out row column assertion. Any manager can be a parent of this widget.
Thanks to Dirk Laessig <d.laessig@tu-bs.de>


git-svn-id: svn://10.0.0.236/trunk@1733 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 10:01:57 +00:00
ramiro
4b689e87cd Dont move dead widgets.
Thanks to Dirk Laessig <d.laessig@tu-bs.de>


git-svn-id: svn://10.0.0.236/trunk@1732 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 10:01:54 +00:00
rpotts
fff42d31c8 Added status arguments to OnStopBinding(...)
git-svn-id: svn://10.0.0.236/trunk@1731 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 09:46:51 +00:00
rpotts
a8ce21f5fc Fixed IRIX build bustage... Added status arguments to OnStopBinding(...)
git-svn-id: svn://10.0.0.236/trunk@1730 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 09:46:42 +00:00
rpotts
943c179e9a Fixed OnStopBinding(...) to take status arguments...
git-svn-id: svn://10.0.0.236/trunk@1729 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 09:42:07 +00:00
rpotts
b0007ddd7f Added exports for nsIBaseStream.h and nsIOutputStream.h
git-svn-id: svn://10.0.0.236/trunk@1728 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 09:41:21 +00:00
rpotts
51c1ae6c3f Changed to use the nsIBaseStream as a base class...
git-svn-id: svn://10.0.0.236/trunk@1727 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 09:40:43 +00:00
rpotts
5341d8930c Interface for Output Streams...
git-svn-id: svn://10.0.0.236/trunk@1726 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 09:40:02 +00:00
rpotts
68365a9056 New interface that all stream interfaces can derive from...
git-svn-id: svn://10.0.0.236/trunk@1725 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 09:39:37 +00:00
rpotts
32c056bbbd fix for the IRIX build...
git-svn-id: svn://10.0.0.236/trunk@1713 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 08:51:48 +00:00
spence
aa327e5e21 correctly set position for shack elements
git-svn-id: svn://10.0.0.236/trunk@1705 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 01:15:01 +00:00
spence
8d91fa7351 improve shack widget mgmt
git-svn-id: svn://10.0.0.236/trunk@1702 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-15 00:13:57 +00:00
spence
bf8dba93ab xfe shack changes
git-svn-id: svn://10.0.0.236/trunk@1696 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 23:43:26 +00:00
selmer
5864826a77 Fixed up comments in QuitNavigator re: 112622
git-svn-id: svn://10.0.0.236/trunk@1695 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 23:40:45 +00:00
selmer
349958722e Bug #112622 - change our quit to not broadcast, it was tripping up a java window
git-svn-id: svn://10.0.0.236/trunk@1693 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 23:37:57 +00:00
spider
3a7a283400 Fixes for toplevel shared support
git-svn-id: svn://10.0.0.236/trunk@1687 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 22:53:21 +00:00
spider
6ba088ac61 Allow shared objects to be built of archives on Unix
git-svn-id: svn://10.0.0.236/trunk@1685 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 22:38:21 +00:00
rickg
4e262a1fe0 WIP for push based tokenization
git-svn-id: svn://10.0.0.236/trunk@1683 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 22:19:08 +00:00
rickg
affe63fab7 minor performance tweak for deque
git-svn-id: svn://10.0.0.236/trunk@1682 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 22:18:44 +00:00
jevering
eab4da2c10 Adding visual mode.
git-svn-id: svn://10.0.0.236/trunk@1680 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 22:16:51 +00:00
jevering
e46e399e41 Beginning to add visual mode.
git-svn-id: svn://10.0.0.236/trunk@1679 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 22:16:36 +00:00
dcone
2817e8b60f More composition code, much faster now
git-svn-id: svn://10.0.0.236/trunk@1676 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 21:49:58 +00:00
jevering
18844ec299 Fixed robot walking somewhat.. needs more cleaning.
git-svn-id: svn://10.0.0.236/trunk@1675 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 21:47:33 +00:00
kmcclusk
0e678cc344 Added widget specific init structs
git-svn-id: svn://10.0.0.236/trunk@1671 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 21:34:08 +00:00
spider
64afacb3f9 Allow shared libraries to be created from multiple archives
git-svn-id: svn://10.0.0.236/trunk@1670 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 21:28:02 +00:00
spider
bc5ea70e80 Allow shared libraries to be created based on several archive libraries
git-svn-id: svn://10.0.0.236/trunk@1668 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 21:27:16 +00:00
slamm
08792f1237 Make page proxy hot spot fit the icon.
git-svn-id: svn://10.0.0.236/trunk@1663 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 20:32:03 +00:00
jevering
99360cdcf8 Hooked up debugging robot to viewer shell
git-svn-id: svn://10.0.0.236/trunk@1629 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 18:25:17 +00:00
wtc
3e14d3e49b Merged NSPRPUB_19980508_BRANCH to the main trunk. The 19980508
branch is a temporary branch for us to copy the latest changes
from our internal development tree to the public mozilla tree.


git-svn-id: svn://10.0.0.236/trunk@1624 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 18:09:56 +00:00
jevering
2ac90f63b7 Moved to .\test
git-svn-id: svn://10.0.0.236/trunk@1619 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 17:42:08 +00:00
wtc
0e5fd8fabf In Rhapsody 5.1 (DR2), the C++ compiler is named c++.
git-svn-id: svn://10.0.0.236/trunk@1608 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 17:01:14 +00:00
ramiro
1ceea7a990 TASKBAR define should be MOZ_TASKBAR.
git-svn-id: svn://10.0.0.236/trunk@1602 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 09:18:26 +00:00
kipp
da654e994c nuked
git-svn-id: svn://10.0.0.236/trunk@1600 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 02:46:28 +00:00
spider
71a19f5b61 Fixes for Unix widget so loading
git-svn-id: svn://10.0.0.236/trunk@1597 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 01:48:54 +00:00
spider
8fc73d2700 Fixes to remove ARCHIVE_ONLY and use MKSHLIB
git-svn-id: svn://10.0.0.236/trunk@1596 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 01:44:50 +00:00
jevering
b0cd070d09 used to be the RobotMain but now is the function DebugRobot to be
added to the viewer.


git-svn-id: svn://10.0.0.236/trunk@1592 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 01:08:06 +00:00
jevering
4e7c880297 Pulled the DebugRobot out into separate DLL
Moved the test code in the robot/test directory.


git-svn-id: svn://10.0.0.236/trunk@1591 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 01:05:56 +00:00
spider
936f05f547 Removing Init where passing nsIShellInstance
git-svn-id: svn://10.0.0.236/trunk@1589 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 01:02:14 +00:00
kipp
368de8a159 Fixed up code that wasn't using the nsReflowStatus constants defined in nsIFrame.h
git-svn-id: svn://10.0.0.236/trunk@1588 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 00:49:46 +00:00
kipp
4ba0b9750b Removed some useless code
git-svn-id: svn://10.0.0.236/trunk@1587 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 00:49:11 +00:00
kipp
2a9df998b9 Implement new frame methods and store the current state
git-svn-id: svn://10.0.0.236/trunk@1586 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 00:47:32 +00:00
kipp
5076956d30 Flipped state value of NS_FRAME_COMPLETE with NS_FRAME_NOT_COMPLETE; added new methods WillReflow and DidReflow as well as GetFrameState and SetFrameState
git-svn-id: svn://10.0.0.236/trunk@1585 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 00:47:05 +00:00
spider
5dd62eb2be Unix fixes
git-svn-id: svn://10.0.0.236/trunk@1584 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 00:39:59 +00:00
spider
c5149eee02 Fixes to get UNIX working
git-svn-id: svn://10.0.0.236/trunk@1583 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 00:38:37 +00:00
michaelp
5096e309be added gamma correction of images.
git-svn-id: svn://10.0.0.236/trunk@1582 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 00:27:38 +00:00
rjc
a640989090 HT_Launch() changes.
git-svn-id: svn://10.0.0.236/trunk@1578 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 00:01:43 +00:00
robinf
89fbfc375e replacing corrupted images
git-svn-id: svn://10.0.0.236/trunk@1577 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-14 00:00:17 +00:00
robinf
6285fa084e fixing text so that it tells user how to start AS right away frfom this screen.
git-svn-id: svn://10.0.0.236/trunk@1576 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 23:59:16 +00:00
peterl
b07a7ad406 added HTML CSS style sheet (for STYLE= attributes)
git-svn-id: svn://10.0.0.236/trunk@1575 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 23:43:44 +00:00
peterl
cee84ada85 added style atom
git-svn-id: svn://10.0.0.236/trunk@1574 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 23:42:40 +00:00
peterl
54b5bf170e added HTML CSS style sheet
git-svn-id: svn://10.0.0.236/trunk@1573 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 23:42:18 +00:00
peterl
27702b7e88 renamed getSupportsValue to getISupportsValue
git-svn-id: svn://10.0.0.236/trunk@1572 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 23:42:01 +00:00
mccabe
b8c778ab5e ECMA fix to (117144).
Array.prototype.sort(comparefn) was casting the result of the compare
to an int, which lost when the compare function returned (ecma-valid)
strange double values.  These now get clamped to -1, 0, 1.


git-svn-id: svn://10.0.0.236/trunk@1570 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 23:29:52 +00:00
peterl
9194035028 attribute fix for kostello
git-svn-id: svn://10.0.0.236/trunk@1568 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 22:41:15 +00:00
peterl
d6449ed8e9 fixed bug in parse declaration block, we now discard empty declarations
tweaked position


git-svn-id: svn://10.0.0.236/trunk@1567 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 22:40:54 +00:00
peterl
ae5af73b56 fixed position
git-svn-id: svn://10.0.0.236/trunk@1566 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 22:40:17 +00:00
peterl
4b50ddb390 remove spacing cache invalidate
git-svn-id: svn://10.0.0.236/trunk@1565 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 22:39:41 +00:00
peterl
6ed543f432 connected spacing calculations to frame
git-svn-id: svn://10.0.0.236/trunk@1564 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 22:38:54 +00:00
peterl
8a4b477f37 fixed style position values
git-svn-id: svn://10.0.0.236/trunk@1563 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 22:38:37 +00:00
peterl
47b492ce9f added style size calculation methods
made get style data const


git-svn-id: svn://10.0.0.236/trunk@1562 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 22:38:09 +00:00
peterl
cdcb865f7e removed cache invalidation methods
git-svn-id: svn://10.0.0.236/trunk@1561 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 22:35:30 +00:00
spence
264a526b7a fix ifdef bustage
git-svn-id: svn://10.0.0.236/trunk@1559 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 22:35:20 +00:00
mccabe
a603cb7869 Warning fix - added an (int16) cast to quiet a Windows warning.
git-svn-id: svn://10.0.0.236/trunk@1555 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 22:13:30 +00:00
donm
aeaccc2e80 fixed unix build bustage. LO_BUILTIN requires #define SHACK and lo_ele.h
git-svn-id: svn://10.0.0.236/trunk@1554 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 21:59:20 +00:00
jevering
76d0c4b9da Fixed compilation error by adding appropriate new nsIHTMLContentSink
members to the RobotSink class.


git-svn-id: svn://10.0.0.236/trunk@1551 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 21:45:24 +00:00
gagan
0c234e4c55 progress...
git-svn-id: svn://10.0.0.236/trunk@1550 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 21:38:42 +00:00
pinkerton
5e9b3cc7e3 Removed mention of central personal toolbar manager since each toolbar now talks to HT. (appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@1548 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 21:25:39 +00:00
pinkerton
500e90b4e5 removed CPersonalToolbarTable.cp which is no longer needed (appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@1547 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 21:25:12 +00:00
pinkerton
00123bba4f rewrite of personal toolbar not to use centralized manager class and talk directly to HT like the selector pane (appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@1546 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 21:24:48 +00:00
pinkerton
a17a03f9d8 Fix crash during "view source" where we were double-deleting the urlStruct. (appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@1545 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 21:22:56 +00:00
djw
e836bb2f3b Added -gtszapsymbol and -gtsnozapsymbol for manually overriding the
implicit rules. See gtscc -help.


git-svn-id: svn://10.0.0.236/trunk@1538 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 20:49:10 +00:00
sar
340141d12c add util to the include path
git-svn-id: svn://10.0.0.236/trunk@1535 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 20:33:32 +00:00
sar
52755a9a58 adding network to the include paths
git-svn-id: svn://10.0.0.236/trunk@1534 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 20:29:38 +00:00
sar
233a15e916 add softupdt to list of includes
git-svn-id: svn://10.0.0.236/trunk@1530 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 19:39:53 +00:00
peterl
3bf3d61497 fixed pow problem
git-svn-id: svn://10.0.0.236/trunk@1527 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 19:01:55 +00:00
michaelp
a4c9a27432 fixed compiler overload warning on tinderbox.
git-svn-id: svn://10.0.0.236/trunk@1525 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 18:54:18 +00:00
valeski
10660f6423 added cookie filter pref name to the default list
git-svn-id: svn://10.0.0.236/trunk@1524 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 18:40:30 +00:00
sar
00b03cbd6c add mktrace.h to the export lists. It's required by softupdt
git-svn-id: svn://10.0.0.236/trunk@1523 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 18:39:52 +00:00
michaelp
7225f63069 added gamma correction methods to the device context. the windows rendering context now
gamma corrects colors. fixed tablecellframe to call the right nsStyleCoord constructor.


git-svn-id: svn://10.0.0.236/trunk@1521 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 18:15:06 +00:00
jevering
15426a4ead Fixed build problems.
git-svn-id: svn://10.0.0.236/trunk@1519 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 17:55:04 +00:00
sar
58e8c8d316 adding jtools to the include path
git-svn-id: svn://10.0.0.236/trunk@1518 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 17:53:28 +00:00
karnaze
bf8234dd48 more select/option support
git-svn-id: svn://10.0.0.236/trunk@1517 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 17:43:35 +00:00
sar
be8a870be8 add jtools to the include paths
git-svn-id: svn://10.0.0.236/trunk@1516 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 17:33:42 +00:00
troy
7e662b38e2 Changes to space manager implementation.
git-svn-id: svn://10.0.0.236/trunk@1514 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 16:22:44 +00:00
dcone
420248debb speed up of alpha, some small fixes, inter checkin
git-svn-id: svn://10.0.0.236/trunk@1513 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 14:28:16 +00:00
mcafee
a4465638db Using relative paths for compilers & libtool
git-svn-id: svn://10.0.0.236/trunk@1512 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 07:59:54 +00:00
mcafee
3487e45d9d DR2 moved the compilers
git-svn-id: svn://10.0.0.236/trunk@1511 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 06:40:49 +00:00
sar
dcdbb6ae26 add mkutils.h since it wasn't being exported, and it's needed. Also make a formatting change for EXPORTS for readability
git-svn-id: svn://10.0.0.236/trunk@1510 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 05:48:50 +00:00
mcafee
13838a678d Adding support for NEXTSTEP. Fixing broken/missing getcwd() command, falls back to getwd(). a=briano
git-svn-id: svn://10.0.0.236/trunk@1509 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 04:02:37 +00:00
mcafee
25f8e0035c getcwd() doesn't malloc properly, falling back to getwd().
git-svn-id: svn://10.0.0.236/trunk@1508 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 04:00:15 +00:00
mcafee
6eda67228d Attempt to piggy-back build off of the RHAPSODY ifdef. switching to libtool. a=briano
git-svn-id: svn://10.0.0.236/trunk@1507 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 03:58:14 +00:00
michaelp
1f91c084c2 killed temp printf()s.
git-svn-id: svn://10.0.0.236/trunk@1506 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 03:40:01 +00:00
michaelp
808a040fee made form elements scroll smoothly. added apis to widgets to support this.
git-svn-id: svn://10.0.0.236/trunk@1505 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 03:39:08 +00:00
spider
dad0f00a2a Fixes for Private Modules Headers. Allow 'this' modules private headers
to be included on source PATH


git-svn-id: svn://10.0.0.236/trunk@1504 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 00:44:47 +00:00
kipp
e7b5397b7e Fixed coord to be setup properly
git-svn-id: svn://10.0.0.236/trunk@1503 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 00:33:34 +00:00
kipp
c10b69d3ba Fixed ptr compilation bug
git-svn-id: svn://10.0.0.236/trunk@1502 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 00:13:09 +00:00
kipp
40fbd986a8 Removed unused variable
git-svn-id: svn://10.0.0.236/trunk@1501 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 00:12:54 +00:00
kipp
dc0ac433ad Removed unused variable; fixed assingment into error return status
git-svn-id: svn://10.0.0.236/trunk@1500 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 00:12:40 +00:00
kipp
a6a43e031e Cast lineReflowStatus before comparing for negative values!; eliminated unused variables
git-svn-id: svn://10.0.0.236/trunk@1499 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 00:11:51 +00:00
kipp
7f9fab77fd Eliminate anonymous struct (and useless bitfields) to fix irix compilation problem
git-svn-id: svn://10.0.0.236/trunk@1498 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 00:10:35 +00:00
kipp
e695e3478d Export nsIFrameImageLoader too
git-svn-id: svn://10.0.0.236/trunk@1497 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-13 00:10:06 +00:00
kipp
77740b1433 Fixed vertical alignment bug: lines that contained bottom aligned objects would add in too much height
git-svn-id: svn://10.0.0.236/trunk@1496 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:53:37 +00:00
kipp
4a26cb720b Removed dead code
git-svn-id: svn://10.0.0.236/trunk@1495 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:52:45 +00:00
kipp
5335baf069 Use code in nsHTMLImageLoader to share code and fix image bugs in image buttons; removed some tabs in the source; get image border handled right
git-svn-id: svn://10.0.0.236/trunk@1494 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:52:33 +00:00
kipp
c8feee6b6b Removed special code for mWidth/mHeight handling
git-svn-id: svn://10.0.0.236/trunk@1493 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:51:46 +00:00
kipp
8098bd43a8 Removed mWidth and mHeight; use base class handling of that now
git-svn-id: svn://10.0.0.236/trunk@1492 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:51:30 +00:00
kipp
df00cff097 Removed IMG rule
git-svn-id: svn://10.0.0.236/trunk@1491 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:51:09 +00:00
kipp
8b2fdfef7c Make image borders work when html attribute is defined
git-svn-id: svn://10.0.0.236/trunk@1490 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:50:54 +00:00
kipp
62a3217422 Use nsHTMLImageLoader to share code
git-svn-id: svn://10.0.0.236/trunk@1489 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:50:28 +00:00
kipp
6e90ba8b92 Moved margin code into line layout
git-svn-id: svn://10.0.0.236/trunk@1488 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:49:40 +00:00
kipp
49beda22be Removed left/right margin calc as caller is doing it
git-svn-id: svn://10.0.0.236/trunk@1487 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:48:37 +00:00
kipp
501a8c4114 new
git-svn-id: svn://10.0.0.236/trunk@1486 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:48:11 +00:00
kipp
9f0294cdd7 Added methods to invalidate the caches
git-svn-id: svn://10.0.0.236/trunk@1485 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:47:50 +00:00
scullin
b2f44a3b36 Release mode fix.
git-svn-id: svn://10.0.0.236/trunk@1484 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:32:59 +00:00
spence
eec4cff8d3 shack layout element
git-svn-id: svn://10.0.0.236/trunk@1483 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:22:14 +00:00
spider
095c6349c5 fixes for archive rules
git-svn-id: svn://10.0.0.236/trunk@1482 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:15:00 +00:00
spence
6cd3efd65e handle relayout of shack elements
git-svn-id: svn://10.0.0.236/trunk@1481 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:04:58 +00:00
troy
43a82bdef4 Space manager API change
git-svn-id: svn://10.0.0.236/trunk@1480 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:02:47 +00:00
troy
eb154aa999 Changed API
git-svn-id: svn://10.0.0.236/trunk@1479 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:02:14 +00:00
troy
5d0ec492ca Added new member functions
git-svn-id: svn://10.0.0.236/trunk@1478 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 23:02:02 +00:00
peterl
1fe962d622 sync to nsStyleSpacing api changes
git-svn-id: svn://10.0.0.236/trunk@1477 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 22:58:14 +00:00
peterl
ecfff23b8f added proper support for border padding & margin
better support for clip


git-svn-id: svn://10.0.0.236/trunk@1476 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 22:57:52 +00:00
donm
1bcbbcd707 Export mkutils.h and cache header files.
git-svn-id: svn://10.0.0.236/trunk@1475 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 22:57:27 +00:00
peterl
59ffeb9079 added clip inherit support
added line-height number support


git-svn-id: svn://10.0.0.236/trunk@1474 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 22:56:18 +00:00
peterl
f9ecfae273 sync to new spacing apis
git-svn-id: svn://10.0.0.236/trunk@1471 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 22:28:01 +00:00
peterl
e6ff058617 fixed clip rect handling (auto side support)
git-svn-id: svn://10.0.0.236/trunk@1470 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 22:26:59 +00:00
peterl
00c2c6f37f added table enums
added clip flags


git-svn-id: svn://10.0.0.236/trunk@1469 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 22:25:31 +00:00
peterl
93da6a385a added factor unit
added nsStyleSides


git-svn-id: svn://10.0.0.236/trunk@1468 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 22:24:12 +00:00
peterl
01cc78cc80 merged nsStyleBorder & nsStyleSpacing
changed spacing data to use nsStyleSides
removed virtual methods
added nsStyleTable


git-svn-id: svn://10.0.0.236/trunk@1467 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 22:23:13 +00:00
peterl
e5373a0d6f Merged nsStyleBorder & nsStyleSpacing
changed spacing values o use nsStyleSides
removed virtual methods


git-svn-id: svn://10.0.0.236/trunk@1466 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 22:21:03 +00:00
peterl
b7d34bef34 added factor unit type
added nsStyleSides


git-svn-id: svn://10.0.0.236/trunk@1465 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 22:18:42 +00:00
spence
758cb4eb72 shack elements are tabable
git-svn-id: svn://10.0.0.236/trunk@1464 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 21:57:20 +00:00
spence
0e49124d3b pick up src param for shack elements
git-svn-id: svn://10.0.0.236/trunk@1460 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 21:19:19 +00:00
spence
c5a52db205 doc info relfects shack elements
git-svn-id: svn://10.0.0.236/trunk@1459 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 21:18:46 +00:00
dario
14344a215e idl compiler
git-svn-id: svn://10.0.0.236/trunk@1458 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 20:30:45 +00:00
robinf
9a69c9479f replacing corrupted file; adding plaecholder image for netcenter xscreen
git-svn-id: svn://10.0.0.236/trunk@1457 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 19:38:47 +00:00
gagan
c4789590cd Fixes the Linux build problems. Thanks Ramiro.
git-svn-id: svn://10.0.0.236/trunk@1456 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 19:21:59 +00:00
spence
056043dc1b changes for shack layout element
git-svn-id: svn://10.0.0.236/trunk@1455 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 19:16:46 +00:00
spence
f7128b6ef7 changes for shack layout element
git-svn-id: svn://10.0.0.236/trunk@1454 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 19:10:35 +00:00
spence
b4790ac48d changes for shack layout element
git-svn-id: svn://10.0.0.236/trunk@1453 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 19:03:13 +00:00
spence
0c7af8c730 changes for shack layout element
git-svn-id: svn://10.0.0.236/trunk@1452 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 18:55:51 +00:00
spence
ef8e866fbf changes for shack layout element
git-svn-id: svn://10.0.0.236/trunk@1451 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 18:42:16 +00:00
spence
0b01b981e2 changes for shack layout element
git-svn-id: svn://10.0.0.236/trunk@1450 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 18:33:45 +00:00
karnaze
db91979176 textarea sizing improvement; use nsCSSLayout::GetStyleSize; fix combo box SizeTo
git-svn-id: svn://10.0.0.236/trunk@1449 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 18:28:58 +00:00
spence
5a9fb075fa changes for shack layout element
git-svn-id: svn://10.0.0.236/trunk@1448 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 18:25:24 +00:00
spence
718cd7523e new shack layout element
git-svn-id: svn://10.0.0.236/trunk@1447 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 18:22:49 +00:00
cyeh
654f82a5f5 add mozilla/lib/libnet back to MozillaSourceCommon for NORMANDY_BRANCH
git-svn-id: svn://10.0.0.236/trunk@1446 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 18:03:37 +00:00
cyeh
d86f4cda50 removing old netlib implementation from tip. these files have been moved
to mozilla/network.  refer to those files.


git-svn-id: svn://10.0.0.236/trunk@1445 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 18:03:30 +00:00
brade
9991020037 don't allow image tags to be created without an image source
git-svn-id: svn://10.0.0.236/trunk@1444 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 17:12:02 +00:00
troy
009e2343c6 Removed some temporary code that isn't needed now that content changed
reflow commands aren't generated for the body


git-svn-id: svn://10.0.0.236/trunk@1443 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 04:46:27 +00:00
troy
a1cde81868 Changed enum to conform with coding standards
git-svn-id: svn://10.0.0.236/trunk@1442 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 04:38:23 +00:00
troy
5a839584c7 Change to nsIFrame API
git-svn-id: svn://10.0.0.236/trunk@1441 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 04:17:56 +00:00
montulli
3d17637b71 add <signal.h>
git-svn-id: svn://10.0.0.236/trunk@1440 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 02:28:20 +00:00
selmer
68b64888ae fix bug#116315: don't pass null char into JRI_NewPlatformString
git-svn-id: svn://10.0.0.236/trunk@1439 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 02:03:33 +00:00
kipp
f810b7168d Release image loader during delete frame to break so that images shutdown properly
git-svn-id: svn://10.0.0.236/trunk@1438 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 01:32:30 +00:00
kipp
7653fb2f79 Added container methods for the singly contained frame
git-svn-id: svn://10.0.0.236/trunk@1437 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 01:31:22 +00:00
kipp
aeca5d3fb6 Init band data so that zero is returned on failure
git-svn-id: svn://10.0.0.236/trunk@1436 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 01:30:57 +00:00
kipp
cf3c34edc3 Re-installed the temporary content appended hack
git-svn-id: svn://10.0.0.236/trunk@1435 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 01:30:40 +00:00
kipp
9da44d2113 Pass on stop image load to the image loader too so that circular references can be broken and memory can get released properly
git-svn-id: svn://10.0.0.236/trunk@1434 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 01:30:15 +00:00
kipp
d32ff2fb28 Removed unused variables and methods
git-svn-id: svn://10.0.0.236/trunk@1433 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 01:29:43 +00:00
kipp
41b2b93fa7 Implement stop and abort; stop properly breaks circular link to image request
git-svn-id: svn://10.0.0.236/trunk@1432 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 01:29:29 +00:00
kipp
6bb8246384 Declare stop and abort methods
git-svn-id: svn://10.0.0.236/trunk@1431 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 01:28:51 +00:00
kipp
f94faae66b Added stop and abort methods
git-svn-id: svn://10.0.0.236/trunk@1430 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 01:28:31 +00:00
rickg
e8f3b719cd made comments more complete
git-svn-id: svn://10.0.0.236/trunk@1429 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 01:11:50 +00:00
rickg
c9a40cc270 updated comments
git-svn-id: svn://10.0.0.236/trunk@1428 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 00:59:32 +00:00
montulli
d18d2837c3 add <signal.h>
git-svn-id: svn://10.0.0.236/trunk@1427 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-12 00:42:47 +00:00
kipp
f1960f5125 Make url's absolute per the css spec
git-svn-id: svn://10.0.0.236/trunk@1426 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 23:28:47 +00:00
kipp
34091b102f Skip over whitespace properly after url string (it's optional whitespace not mandatory whitespace)
git-svn-id: svn://10.0.0.236/trunk@1425 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 23:28:22 +00:00
rickg
d279bd9b90 fixed numeric entities
git-svn-id: svn://10.0.0.236/trunk@1424 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 23:28:01 +00:00
rickg
08ea7302b4 added IsDigit to string
git-svn-id: svn://10.0.0.236/trunk@1423 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 23:27:35 +00:00
atotic
597bf87774 File case weirdness
git-svn-id: svn://10.0.0.236/trunk@1420 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 23:04:36 +00:00
kipp
ee0932b472 Declare nsIView just in case somebody else doesn't
git-svn-id: svn://10.0.0.236/trunk@1419 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:58:44 +00:00
kipp
29014e986a Use new image loading API's
git-svn-id: svn://10.0.0.236/trunk@1418 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:58:20 +00:00
kipp
aeb7f4e124 Revised image loading API's
git-svn-id: svn://10.0.0.236/trunk@1417 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:57:05 +00:00
kipp
d28087541a Removed image loading code (factored out into nsFrameImageLoader); revised API for image loading
git-svn-id: svn://10.0.0.236/trunk@1416 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:56:58 +00:00
kipp
89aaae1f2d Added nsFrameImageLoader
git-svn-id: svn://10.0.0.236/trunk@1415 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:56:23 +00:00
kipp
07232aab59 Export nsIFrameImageLoader.h
git-svn-id: svn://10.0.0.236/trunk@1414 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:55:54 +00:00
kipp
164321faf9 new
git-svn-id: svn://10.0.0.236/trunk@1413 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:52:40 +00:00
montulli
b1069775d3 add exports to layout and libstyle
git-svn-id: svn://10.0.0.236/trunk@1408 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:11:39 +00:00
montulli
cac7dcf982 add network
git-svn-id: svn://10.0.0.236/trunk@1407 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:09:40 +00:00
montulli
527d9f61ef use mozilla/network now instead of lib/libnet
git-svn-id: svn://10.0.0.236/trunk@1406 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:09:10 +00:00
montulli
9fa204a081 use network dir instead of libnet
git-svn-id: svn://10.0.0.236/trunk@1404 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:07:07 +00:00
montulli
57612be151 add mkgeturl.h
git-svn-id: svn://10.0.0.236/trunk@1403 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:04:57 +00:00
montulli
02058ba996 remove libnet
git-svn-id: svn://10.0.0.236/trunk@1402 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:04:01 +00:00
montulli
d83f821242 add network directory
git-svn-id: svn://10.0.0.236/trunk@1401 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:03:25 +00:00
montulli
4285557751 changes for the new mozilla/network directory.
git-svn-id: svn://10.0.0.236/trunk@1399 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:02:46 +00:00
atotic
fb1313cc77 Netlib modularity changes. montulli's your point man
git-svn-id: svn://10.0.0.236/trunk@1398 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:02:43 +00:00
cyeh
8c0ccec706 new netlib in it's new home and modular too.
git-svn-id: svn://10.0.0.236/trunk@1397 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 22:01:18 +00:00
selmer
791cab04d8 removed extraneous JAVA_DESTPATH definition
git-svn-id: svn://10.0.0.236/trunk@1396 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 21:59:36 +00:00
montulli
b8f16d0f85 add #mkgeturl.h
git-svn-id: svn://10.0.0.236/trunk@1395 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 21:41:26 +00:00
troy
9a3b2e21ef Changed table code to pay attention to the ALIGN attribute
git-svn-id: svn://10.0.0.236/trunk@1394 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 21:31:12 +00:00
troy
70f7b2d8cd Fixed build bustage
git-svn-id: svn://10.0.0.236/trunk@1393 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 21:03:50 +00:00
rpotts
be5c685363 Added support for receiving OnProgress(...) notifications...
git-svn-id: svn://10.0.0.236/trunk@1392 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 20:30:35 +00:00
spence
c603cea888 new layout element for shack objects
git-svn-id: svn://10.0.0.236/trunk@1389 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 19:54:46 +00:00
spider
e97259e58a Final UNIX fixes
git-svn-id: svn://10.0.0.236/trunk@1388 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 19:45:12 +00:00
spider
c8ee4c7bf3 windows fixes
git-svn-id: svn://10.0.0.236/trunk@1387 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 19:34:25 +00:00
spider
f49bd7b89a More UNIX Lib fixes
git-svn-id: svn://10.0.0.236/trunk@1386 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 19:33:23 +00:00
spider
f172c6f0f1 Platform Independe EXTRA_LIBS fixes
git-svn-id: svn://10.0.0.236/trunk@1385 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 19:06:15 +00:00
troy
66c14fdbb1 Wrapped VerifyLines() inside of a NS_DEBUG #define
git-svn-id: svn://10.0.0.236/trunk@1384 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 18:54:15 +00:00
troy
b83e1077b0 More incremental reflow work.
git-svn-id: svn://10.0.0.236/trunk@1383 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 18:38:10 +00:00
spider
750378f65c Add gconfig to build_trex
git-svn-id: svn://10.0.0.236/trunk@1382 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 16:50:16 +00:00
ftang
a989b3e678 Add Armenian XFE support. thanks for Hovik Melikyan from hovik@undp.am
git-svn-id: svn://10.0.0.236/trunk@1381 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 16:49:30 +00:00
spider
8e877f008d Refer to nglayout now
git-svn-id: svn://10.0.0.236/trunk@1380 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 16:32:14 +00:00
spider
7918f08d9d Actually refer to nglayout properly now
git-svn-id: svn://10.0.0.236/trunk@1379 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 16:27:28 +00:00
spider
17aee6decd Refer to nglayout.mk now
git-svn-id: svn://10.0.0.236/trunk@1378 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-11 16:24:06 +00:00
jwz
dd5ae078e5 red letter edition
git-svn-id: svn://10.0.0.236/trunk@1377 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-10 18:54:17 +00:00
mccabe
afa28896ca (Not part of the mozilla build process.)
Added support in the javascript shell for the #! unix script hack; if
the first line read by the shell (from a file, not interactive) starts
with #, the line is treated as a comment.

This should make
#!/usr/bin/js work...


git-svn-id: svn://10.0.0.236/trunk@1376 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 05:54:12 +00:00
troy
1b3c6fc947 Work in progress on block incremental reflow
git-svn-id: svn://10.0.0.236/trunk@1375 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 03:52:29 +00:00
kipp
5cb5cb49e5 Use new LoadImage API
git-svn-id: svn://10.0.0.236/trunk@1374 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 03:23:54 +00:00
kipp
7331ec5631 Removed uneeded code; added a reminder comment
git-svn-id: svn://10.0.0.236/trunk@1373 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 03:23:41 +00:00
kipp
ea27670082 Cheesy implementation of the reflow lock and content appended
git-svn-id: svn://10.0.0.236/trunk@1372 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 03:22:41 +00:00
kipp
7dc9190770 Updated to new API
git-svn-id: svn://10.0.0.236/trunk@1371 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 03:22:14 +00:00
kipp
cdf6691a9d Reworked load image support and provided content changed calls to the shell when image sizes arrive
git-svn-id: svn://10.0.0.236/trunk@1370 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 03:22:01 +00:00
kipp
522bd8f35e Added enter/exit reflow lock methods
git-svn-id: svn://10.0.0.236/trunk@1369 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 03:21:34 +00:00
kipp
266494fc93 Revised LoadImage API to use NS_IMETHOD and provide alot more information about the load
git-svn-id: svn://10.0.0.236/trunk@1368 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 03:21:19 +00:00
kipp
19ce06fe2f Wrap document loads with reflow lock calls
git-svn-id: svn://10.0.0.236/trunk@1367 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 03:20:54 +00:00
kipp
cf55be8188 Remove useless header file
git-svn-id: svn://10.0.0.236/trunk@1366 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 03:20:37 +00:00
kipp
23bcab2333 Removed unused class decl
git-svn-id: svn://10.0.0.236/trunk@1365 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 03:20:24 +00:00
racham
4489bdc493 Path for compare.js changed
git-svn-id: svn://10.0.0.236/trunk@1364 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 02:16:33 +00:00
rickg
cb2d8b8eb8 MUCH better support for auto-closing tags.
git-svn-id: svn://10.0.0.236/trunk@1363 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-09 00:42:33 +00:00
scullin
e794b4507e Fix NSPR related breakage.
git-svn-id: svn://10.0.0.236/trunk@1360 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 23:56:08 +00:00
montulli
17459e838c update include path
git-svn-id: svn://10.0.0.236/trunk@1358 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 23:40:53 +00:00
karnaze
8400595193 select/option
git-svn-id: svn://10.0.0.236/trunk@1355 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 23:08:43 +00:00
wtc
8a008e57b5 Added new test files.
git-svn-id: svn://10.0.0.236/trunk@1352 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 23:07:27 +00:00
rickg
683ffd3d1f changed OPTION tag from leaf to container node
git-svn-id: svn://10.0.0.236/trunk@1350 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 22:36:15 +00:00
atotic
fe9c67a957 More build changes, added some missing files
git-svn-id: svn://10.0.0.236/trunk@1349 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 21:42:48 +00:00
atotic
573139f59c #ifdef NET_mail/news functionality with MOZ_MAIL_NEWS.
git-svn-id: svn://10.0.0.236/trunk@1348 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 21:42:26 +00:00
scullin
42f328fc71 Fix depth, and add client directory
git-svn-id: svn://10.0.0.236/trunk@1347 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 21:27:46 +00:00
hyatt
be768f6a5b Making the Aurora tree respond to the divider properties.
git-svn-id: svn://10.0.0.236/trunk@1346 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 21:23:47 +00:00
kipp
9003aba3c1 Fixed irix bustage
git-svn-id: svn://10.0.0.236/trunk@1345 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 21:12:12 +00:00
atotic
ecc83b402a More build changes (renaming the targets)
git-svn-id: svn://10.0.0.236/trunk@1344 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 21:03:19 +00:00
timm
e93ed99ecf fix path routines to append path delimiter
git-svn-id: svn://10.0.0.236/trunk@1343 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 20:20:19 +00:00
timm
8cdfb14c42 fix getFolder to return windows style path
git-svn-id: svn://10.0.0.236/trunk@1342 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 20:19:43 +00:00
kipp
31d88fddf9 nuked
git-svn-id: svn://10.0.0.236/trunk@1341 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 20:19:18 +00:00
kipp
30a587c651 updated
git-svn-id: svn://10.0.0.236/trunk@1340 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 20:18:36 +00:00
kipp
384524a3d9 new
git-svn-id: svn://10.0.0.236/trunk@1339 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 20:18:35 +00:00
karnaze
ab454da4fd more support for textarea, select/option in content sink
git-svn-id: svn://10.0.0.236/trunk@1338 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 20:18:06 +00:00
kipp
053274d5b7 Removed more raptor references
git-svn-id: svn://10.0.0.236/trunk@1337 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 20:10:36 +00:00
kipp
171bc76637 new
git-svn-id: svn://10.0.0.236/trunk@1336 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 19:58:01 +00:00
kipp
c56ba929aa Fixed pseudo-frame body behavior
git-svn-id: svn://10.0.0.236/trunk@1335 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 19:43:25 +00:00
timm
b7351b8392 dial string should be in status text, not progress text
git-svn-id: svn://10.0.0.236/trunk@1334 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 19:28:49 +00:00
timm
a45c483ad7 remove copy of compare.js, since we dont want it in the jar
git-svn-id: svn://10.0.0.236/trunk@1333 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 19:28:04 +00:00
timm
2156c7d5d7 remove IDs and ARCHIVE tags
git-svn-id: svn://10.0.0.236/trunk@1332 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 19:27:40 +00:00
timm
4e130f7162 remove IPs and put reggie.netscape.com back
git-svn-id: svn://10.0.0.236/trunk@1331 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 19:26:43 +00:00
timm
3f3c31c971 erase compare.js as part of make if it exists in this dir
git-svn-id: svn://10.0.0.236/trunk@1330 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 19:26:11 +00:00
timm
9aa0247b63 added debugging for set1StepMode
git-svn-id: svn://10.0.0.236/trunk@1329 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 19:25:47 +00:00
timm
b5ac9e9ddf added debugging info for MetadataMode and LocalMode
git-svn-id: svn://10.0.0.236/trunk@1328 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 19:24:49 +00:00
radha
a58f0b6a8a Checkin for fix 104761. If the target window has a context associated with it, use it.
Fix was originally provided by toshok.


git-svn-id: svn://10.0.0.236/trunk@1327 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 19:24:28 +00:00
timm
ccb1fc9ade add ASW_DEVMODE
git-svn-id: svn://10.0.0.236/trunk@1326 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 19:24:15 +00:00
ftang
cb7fffc2df Add Armenain support. Approvaed by WinFE owner, Thanks Hovik Melikyan <hovik@undp.am>
from the net


git-svn-id: svn://10.0.0.236/trunk@1323 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 19:23:48 +00:00
wtc
cbcb32a7d6 Use cc -bundle to build loadable modules on Rhapsody. Thanks to
Matt Watson <mwatson@apple.com> for the patch.


git-svn-id: svn://10.0.0.236/trunk@1322 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 18:52:44 +00:00
cmanske
0d6028508b Fixed another memory bug in Composer
git-svn-id: svn://10.0.0.236/trunk@1321 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 18:51:58 +00:00
wtc
dad061f564 The type of the third argument for accept, recvfrom, getsockname, and
getpeername is 'int', not 'size_t'.


git-svn-id: svn://10.0.0.236/trunk@1320 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 18:50:15 +00:00
wtc
6b251dc0ae Fixed comment.
git-svn-id: svn://10.0.0.236/trunk@1319 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 18:48:46 +00:00
wtc
06c4a3d9ee Merged patches from Matt Watson <mwatson@apple.com> to make loadable
modules work on Rhapsody.  Still have a few kinks to iron out.


git-svn-id: svn://10.0.0.236/trunk@1318 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 18:43:58 +00:00
wtc
682e147ebf Matt Watson <mwatson@apple.com> pointed out that it is not safe to
redefine FD_SETSIZE on Rhapsody.


git-svn-id: svn://10.0.0.236/trunk@1317 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 18:41:51 +00:00
wtc
7e8f7154f4 Added a few function declarations and header inclusions to get rid of
compiler warnings.


git-svn-id: svn://10.0.0.236/trunk@1316 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 18:37:38 +00:00
wtc
6c9253e597 Merged Rhapsody patches contributed by Matt Watson <mwatson@apple.com>.
git-svn-id: svn://10.0.0.236/trunk@1315 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 18:35:19 +00:00
rods
9b04324111 added major selection method and data members
git-svn-id: svn://10.0.0.236/trunk@1314 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 18:33:42 +00:00
wtc
91ebeaa99b Merged patches contributed by Matt Watson <mwatson@apple.com>.
git-svn-id: svn://10.0.0.236/trunk@1313 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 18:32:30 +00:00
michaelp
5f4ea5859a when switching documents, the scrollbars are reset.
git-svn-id: svn://10.0.0.236/trunk@1312 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 17:50:43 +00:00
atotic
dddb703cfd Added an include of shist.h
git-svn-id: svn://10.0.0.236/trunk@1311 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 17:27:49 +00:00
kipp
9748b6eb2b Factored out sizing into ComputeDesiredSize and fixed the size to reflect the size of the content
git-svn-id: svn://10.0.0.236/trunk@1310 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 17:23:06 +00:00
atotic
612c02f3da First Checked In.
git-svn-id: svn://10.0.0.236/trunk@1309 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 17:13:01 +00:00
troy
2e789484b5 Changed container related functions to return NS_ERROR_NOT_IMPLEMENTED
instead of NS_OK


git-svn-id: svn://10.0.0.236/trunk@1308 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 17:02:35 +00:00
troy
a447ffcc90 Moved ContentChanged() logic to nsFrame since it was completely generic and
serves as reasonable default behavior for all frames


git-svn-id: svn://10.0.0.236/trunk@1304 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 16:34:27 +00:00
troy
f8e3f6b0a7 Changed ContentChanged() to generate a reflow command
git-svn-id: svn://10.0.0.236/trunk@1303 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 16:33:07 +00:00
pinkerton
d173dd8ecd free memory allocated (silently!) by GetURLFromFileSpec(). (appr brade).
git-svn-id: svn://10.0.0.236/trunk@1302 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 15:35:42 +00:00
pinkerton
dd2b3e15e2 added "rdf" to access paths so composer can understand drops from HT (appr brade).
git-svn-id: svn://10.0.0.236/trunk@1301 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 15:34:44 +00:00
pinkerton
d9cc5aa3b0 New drag and drop architecture using CURLDragMixin subclasses. Fixed bug where dropping text clipping would drop at old insertion point, not at mouse location. (appr brade).
git-svn-id: svn://10.0.0.236/trunk@1300 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 15:34:07 +00:00
rods
80849d47b2 added Selection methods to nsICodment, nsDocument, nsiSplittableFRame
git-svn-id: svn://10.0.0.236/trunk@1299 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 15:07:41 +00:00
rods
495bdfe1d4 added Edit menu
git-svn-id: svn://10.0.0.236/trunk@1298 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 15:06:41 +00:00
dcone
5b5fdcadb6 put back in optimize
git-svn-id: svn://10.0.0.236/trunk@1297 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 15:05:27 +00:00
rods
8124074533 added mouseEvent struct
git-svn-id: svn://10.0.0.236/trunk@1296 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 14:54:09 +00:00
dcone
332f4c19f3 Some more alpha blending, fixed some bugs and the test app now works
git-svn-id: svn://10.0.0.236/trunk@1295 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 14:24:53 +00:00
mcafee
013d1299c8 Enable dynamic library creation. a,r=briano
git-svn-id: svn://10.0.0.236/trunk@1294 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 08:01:10 +00:00
sdagley
07644fd855 Merging current fix for #86787 and #96213 from 4.x tree. When creating a new window check chrome to see if it should be created zoomable rather than changing it afterwards. Works around WDEF change in MacOS 8 that breaks old hack that would toggle zoom widget after creating window.
git-svn-id: svn://10.0.0.236/trunk@1293 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 06:08:55 +00:00
rjc
b1c2f2652a Small fix... use '\0' instead of NULL.
git-svn-id: svn://10.0.0.236/trunk@1292 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 06:01:30 +00:00
rjc
aacb6b7891 Move all hardcoded RDF strings into allxpstr.
git-svn-id: svn://10.0.0.236/trunk@1291 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 05:48:44 +00:00
rjc
7483ba47fe Move all hardcoded strings into allxpstr. Bug fix from tenthumbs@cybernex.net in isNodeEditable(). HT Properties dialog changes (pretty, now). Better color support.
git-svn-id: svn://10.0.0.236/trunk@1290 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 05:48:14 +00:00
troy
833c505aff Hooked up ContentChanged() to notify the frame
git-svn-id: svn://10.0.0.236/trunk@1289 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 04:59:35 +00:00
troy
80084f86ae Added ContentChanged() member function
git-svn-id: svn://10.0.0.236/trunk@1288 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 04:56:47 +00:00
troy
4c7726d9f7 Added ContentChanged() member function
git-svn-id: svn://10.0.0.236/trunk@1287 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 04:45:37 +00:00
sdagley
e5ef4cb8fc Merging sfraser fix for #115706 from 4.x branch.
git-svn-id: svn://10.0.0.236/trunk@1286 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 03:34:05 +00:00
michaelp
6b1b7b071b added horizontal scrollbar.
git-svn-id: svn://10.0.0.236/trunk@1278 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 01:25:25 +00:00
timm
f2f6958b0e Add in "ARCHIVE=asw.jar" for compare.js
git-svn-id: svn://10.0.0.236/trunk@1277 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 01:17:40 +00:00
cmanske
b6085352b8 Fixed memory crash bug in new Composer table code
git-svn-id: svn://10.0.0.236/trunk@1276 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 01:12:10 +00:00
michaelp
67a0e11240 we now have horizontal scrolling.
git-svn-id: svn://10.0.0.236/trunk@1275 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 01:11:57 +00:00
timm
6a5d8b07ea Not for Preston
git-svn-id: svn://10.0.0.236/trunk@1271 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 00:33:10 +00:00
timm
b763535f3a Registration Server IAS file
git-svn-id: svn://10.0.0.236/trunk@1270 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 00:31:35 +00:00
kipp
e8970aba73 Support width/height ala css
git-svn-id: svn://10.0.0.236/trunk@1269 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 00:16:41 +00:00
kipp
dd47ae8835 Added MapImagePropertiesInto
git-svn-id: svn://10.0.0.236/trunk@1268 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-08 00:16:30 +00:00
robinf
b1735e0810 scrubbed lighthouse and N logos from these images
git-svn-id: svn://10.0.0.236/trunk@1265 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 23:50:36 +00:00
kipp
40a0ee1354 Support css width&height style properties
git-svn-id: svn://10.0.0.236/trunk@1264 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 23:38:51 +00:00
kipp
5bcb630e75 Unsupported border+padding around form elements (except for image - it still works)
git-svn-id: svn://10.0.0.236/trunk@1263 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 23:38:12 +00:00
ftang
0619cd5b32 Add Armenian support. Thanks for Hovik Melikyan <hovik@moon.yerphi.am> for this.
git-svn-id: svn://10.0.0.236/trunk@1262 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 23:12:48 +00:00
michaelp
5dd9734a48 scrolling views are now self-contained. preparations have been made for horizontal scrolling.
git-svn-id: svn://10.0.0.236/trunk@1261 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 23:07:10 +00:00
ftang
52495ca4a4 Add Armenian support. Thanks for Hovik Melikyan <hovik@moon.yerphi.am> for this.
git-svn-id: svn://10.0.0.236/trunk@1259 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 23:03:45 +00:00
ftang
186160708d Add Armenian support. Thanks for Hovik Melikyan <hovik@yerphi.am> (from Armenian)
for this.


git-svn-id: svn://10.0.0.236/trunk@1258 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 23:02:26 +00:00
spider
558248ce6a emove web fully
git-svn-id: svn://10.0.0.236/trunk@1257 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 22:53:28 +00:00
spider
6f3722d906 Fix include from web to shell
git-svn-id: svn://10.0.0.236/trunk@1256 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 22:49:59 +00:00
kipp
220394c0ec Support width & height ala css1
git-svn-id: svn://10.0.0.236/trunk@1250 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 21:50:56 +00:00
kipp
ebf8497eb7 order sid's alphabeticly
git-svn-id: svn://10.0.0.236/trunk@1249 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 21:36:41 +00:00
kipp
83683e9db6 Added GetStyleSize
git-svn-id: svn://10.0.0.236/trunk@1248 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 21:36:16 +00:00
kipp
f3b0df343f Set clip rect if style says to
git-svn-id: svn://10.0.0.236/trunk@1247 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 21:35:03 +00:00
ftang
ba092104d8 add codeset conversion table for ARMSCII-8 Thanks Hovik Melikyan hovik@undp.am
git-svn-id: svn://10.0.0.236/trunk@1246 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 21:28:17 +00:00
toshok
aa0742196b Remove #ifdef's for TEXT_CHUNK_LIMIT, since it's always defined to something.
git-svn-id: svn://10.0.0.236/trunk@1245 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 21:16:02 +00:00
toshok
69c01e024d I know I'm going to get strung up for this, but I just can't read this file without a window that's like 150 columns wide.
git-svn-id: svn://10.0.0.236/trunk@1244 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 21:12:03 +00:00
rickg
73cdf7b056 new contentsink api's for kipp
git-svn-id: svn://10.0.0.236/trunk@1243 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 21:11:07 +00:00
troy
4a9b848ec2 Work in progress
git-svn-id: svn://10.0.0.236/trunk@1242 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 21:10:07 +00:00
scullin
ff4907675c G++ warning fix submitted by Brian Grunkemeyer.
git-svn-id: svn://10.0.0.236/trunk@1241 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 20:50:59 +00:00
toshok
ffbf7864d1 remove huge commented out chunks of code (that have been commented out since time began, it seems.) also added a couple of fairly bogus comments at the beginnings of lo_Push/PopAlignment
git-svn-id: svn://10.0.0.236/trunk@1240 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 20:44:45 +00:00
troy
e1891fa2e0 Started hooking up appended content handler
git-svn-id: svn://10.0.0.236/trunk@1239 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 20:28:16 +00:00
spider
8734855a1d More fixes
git-svn-id: svn://10.0.0.236/trunk@1238 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 20:09:25 +00:00
wtc
dca0a521aa Matt Waston <mwatson@apple.com> taught me what common symbols are
and to compile with -fno-common.


git-svn-id: svn://10.0.0.236/trunk@1237 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 19:19:25 +00:00
spider
26b167fe2b Changes class NSApplicationManager to nsApplicationManager
git-svn-id: svn://10.0.0.236/trunk@1236 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 18:39:40 +00:00
spider
afe6262d35 Adding toplevel trex unix makefile
git-svn-id: svn://10.0.0.236/trunk@1235 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 18:19:43 +00:00
spider
b9c5f0cf67 Unix Shell Implementation stuff
git-svn-id: svn://10.0.0.236/trunk@1234 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 18:18:38 +00:00
michaelp
dea683c9d2 deferred creation of null pen until we actually need to use it.
git-svn-id: svn://10.0.0.236/trunk@1233 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 18:00:48 +00:00
michaelp
a7492ad3ee sped up filled polygons.
git-svn-id: svn://10.0.0.236/trunk@1232 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 17:54:14 +00:00
kipp
87a10a39d9 Support (mostly) border+padding around input form elements
git-svn-id: svn://10.0.0.236/trunk@1231 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 16:13:59 +00:00
kipp
f62d45c7d8 Fixed the dancing form-elements bug by making MoveTo properly account for the views offset from parent
git-svn-id: svn://10.0.0.236/trunk@1230 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 16:13:09 +00:00
wtc
7609a85751 Fixed Bugzilla bug #235: Define the macro _PR_HAVE_SOCKADDR_LEN to
indicate that struct sockaddr_in on BSD/OS has a sa_len field.
The code in unix.c checks this macro.  We acknowledge Bert Driehuis
<driehuis@playbeing.com> for reporting the bug and suggesting a fix.


git-svn-id: svn://10.0.0.236/trunk@1229 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 15:43:43 +00:00
rpotts
6f109ea508 Ignore the return value from NET_PollSockets(...) since it is FALSE when there are file: URLs waiting to be processed...
git-svn-id: svn://10.0.0.236/trunk@1228 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 11:01:48 +00:00
wtc
4bc4288454 Moved Rhapsody's shared library rule from rules.mk to Rhapsody.mk.
git-svn-id: svn://10.0.0.236/trunk@1227 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 07:23:49 +00:00
rickg
a0aa2749b7 WIP: push-based tokenization
git-svn-id: svn://10.0.0.236/trunk@1226 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 07:19:47 +00:00
rpotts
61e75a1a74 Fix up makefile.win to completely remove nsInputStream :-)
git-svn-id: svn://10.0.0.236/trunk@1225 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 07:04:08 +00:00
rpotts
1edf5e97a3 fixed up IStreamListener implementation to take a length in the OnDataAvailable(...) method.
git-svn-id: svn://10.0.0.236/trunk@1224 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 06:53:11 +00:00
rpotts
723cc251cb Removed nsInputStream.cpp since file and resource protocols are now handled by netlib...
git-svn-id: svn://10.0.0.236/trunk@1223 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 06:52:11 +00:00
wtc
987efb9517 Bugzilla bug #218: define HAVE_STRERROR only if it is not yet defined.
Thanks to David Nebinger (dnebinger@synertech.highmark.com) for reporting
the problem and suggesting the fix.


git-svn-id: svn://10.0.0.236/trunk@1221 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 06:38:26 +00:00
wtc
1f68fdef7a Bugzilla bug #265: Use full pathname /usr/ccs/bin/as (as opposed to just
'as') to assemble os_SunOS_ultrasparc.s because we need the -P option
of Solaris 'as' to run cpp and process header file inclusion.  This
way we won't accidentally get GNU 'as', which doesn't understand -P.
We acknowledge Paul Kanz (pkanz@conix.com) for suggesting the fix.


git-svn-id: svn://10.0.0.236/trunk@1220 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 06:29:44 +00:00
troy
bfddc50483 Work on getting floaters working again
git-svn-id: svn://10.0.0.236/trunk@1219 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 05:25:08 +00:00
troy
fb89e3aef1 Made "delete" by "remove" since delete is a reserved JavaScript keyword
git-svn-id: svn://10.0.0.236/trunk@1218 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 05:23:52 +00:00
wtc
7e8f8d4e76 On Alpha Linux, the mmap'd stack needs to be made executable because
setjmp/signal seem to put machine instructions on the stack.  This
fix is contributed by gatgul@voicenet.com (Uncle George).


git-svn-id: svn://10.0.0.236/trunk@1217 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 05:07:25 +00:00
kipp
ee8301ea61 Implemented destroy-lines
git-svn-id: svn://10.0.0.236/trunk@1212 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 03:45:29 +00:00
troy
ed7b88f4e8 Checks whether the next-in-flow should be deleted
git-svn-id: svn://10.0.0.236/trunk@1210 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 02:51:30 +00:00
wtc
5fe72e5298 The stack pointer is the 0th element in the jmp_buf.
git-svn-id: svn://10.0.0.236/trunk@1208 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 01:52:43 +00:00
michaelp
9eacf21021 hey, now the state stack is actually useful. duh.
git-svn-id: svn://10.0.0.236/trunk@1206 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 01:10:20 +00:00
kipp
d75e25fc42 Ported to new CreateFrame/CreateContinuingFrame APIs
git-svn-id: svn://10.0.0.236/trunk@1204 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 00:08:20 +00:00
kipp
99983b9346 Ported to new CreateFrame/CreateContinuingFrame APIs; removed some debris code
git-svn-id: svn://10.0.0.236/trunk@1203 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 00:06:53 +00:00
kipp
aed636929a Updated style sheet
git-svn-id: svn://10.0.0.236/trunk@1202 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 00:06:15 +00:00
kipp
9e181db532 Changed CreateContinuingFrame to take a style context argument to reduce style context creation
git-svn-id: svn://10.0.0.236/trunk@1201 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 00:05:37 +00:00
kipp
b924a98f77 Updated CreateFrame to take a style context argument to reduce style context creation
git-svn-id: svn://10.0.0.236/trunk@1200 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-07 00:05:13 +00:00
gagan
e810b91676 Add module id to object.
git-svn-id: svn://10.0.0.236/trunk@1199 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-06 23:24:55 +00:00
gagan
c4342a5a32 Time something using an excursion class.
git-svn-id: svn://10.0.0.236/trunk@1198 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-06 23:18:38 +00:00
michaelp
226d27c5ad added pens to graphics state. more performance improvements.
git-svn-id: svn://10.0.0.236/trunk@1196 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-06 22:50:23 +00:00
rpotts
29ece213ae renamed the nsIStreamNotification interface to nsIStreamListener
git-svn-id: svn://10.0.0.236/trunk@1195 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-06 22:16:02 +00:00
pinkerton
d700ab2088 use new D&D mixins in CURLDragHelper.cp/h to handle drops of url-like things. (rev/appr sdagley, for all the others too...)
git-svn-id: svn://10.0.0.236/trunk@1193 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-06 21:27:09 +00:00
pinkerton
565e05b5bf use new D&D mixins in CURLDragHelper.cp/h to handle drops of url-like things.
git-svn-id: svn://10.0.0.236/trunk@1192 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-06 21:26:21 +00:00
rpotts
559b78f09d updated to use the URL->Open(...) method for starting an async url load...
git-svn-id: svn://10.0.0.236/trunk@1191 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-06 21:20:04 +00:00
gagan
b949d65ee3 Progress.
git-svn-id: svn://10.0.0.236/trunk@1189 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-06 20:29:20 +00:00
wtc
d67c10164b Define IP_MULTICAST to get the IP multicast macro/struct definitions
in netinet/in.h on SINIX 5.43.  We acknowledge the help of Sanjay
Gupta <gupta@informix.com>.


git-svn-id: svn://10.0.0.236/trunk@1186 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-06 19:53:26 +00:00
robinf
1db206f872 replacing corrupted images in previews
git-svn-id: svn://10.0.0.236/trunk@1185 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-06 18:23:32 +00:00
troy
8d64b6f3f2 Fixed build bustage
git-svn-id: svn://10.0.0.236/trunk@1183 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-06 18:13:58 +00:00
ramiro
17ef3f1e2e Fix build problem reported by avogel@bdm.com (Andy Vogel). The PopupCommand
class defined in 2 different *.cpp files and was confusing thr dgux linker.
Add {Rdf,Editor} prefix to PopupCommand class to avoid ambiguity.


git-svn-id: svn://10.0.0.236/trunk@1182 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-06 17:49:57 +00:00
ramiro
ef8e0398bd Move the bookmark widgets to their own library. Componetize things a bit.
Should make it easier to completely bypass these widgets if needed - as
will probably be the case for lite browsers and "motifs" that break cause
of them.


git-svn-id: svn://10.0.0.236/trunk@1181 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-06 17:36:34 +00:00
ramiro
bafb2a76af Add .cvsignore for xfe
git-svn-id: svn://10.0.0.236/trunk@1180 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-06 16:46:53 +00:00
michaelp
8eaa2f652c added fonts to graphics state stack. general optimizations.
git-svn-id: svn://10.0.0.236/trunk@1179 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-06 16:42:05 +00:00
troy
0b3ffa2df6 Started adding ContentChanged() notifications
git-svn-id: svn://10.0.0.236/trunk@1178 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-06 16:28:55 +00:00
troy
c8bc0d3bcc Hooked up DOM insert/replace/delete
git-svn-id: svn://10.0.0.236/trunk@1177 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-06 16:27:15 +00:00
troy
2c774cd094 Hooked up insert/delete/replace
git-svn-id: svn://10.0.0.236/trunk@1176 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-06 16:26:06 +00:00
michaelp
bf4e5ec274 added solid brushes to graphics state.
git-svn-id: svn://10.0.0.236/trunk@1175 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-06 02:26:17 +00:00
briano
f76aa54e4a Attempt to handle the various SINIX versions (that I know of) in a cleaner way.
git-svn-id: svn://10.0.0.236/trunk@1171 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 23:58:14 +00:00
troy
22a5d2831e Frames no longet store the content index-in-parent
git-svn-id: svn://10.0.0.236/trunk@1169 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 23:56:50 +00:00
kmcclusk
a85f449dd0 Added tooltip widget and ScreenToWidget and WidgetToScreen conversion member functions
git-svn-id: svn://10.0.0.236/trunk@1168 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 23:41:16 +00:00
wtc
c76e69b986 Checked in (unfinished) Rhapsody port provided by Chris McAfee and
Chris Toshok (mcafee, toshok@netscape.com).  It is classic NSPR,
local threads only (based on setjmp/longjmp).


git-svn-id: svn://10.0.0.236/trunk@1167 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 23:28:45 +00:00
rickg
7eac5ad111 removed redundate class spec -- fixed a mac problem
git-svn-id: svn://10.0.0.236/trunk@1166 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 22:58:30 +00:00
michaelp
c8b3138e73 when selecting a bitmap into a drawing surface, we now reselect the bitmap
that used to be there when we're done.


git-svn-id: svn://10.0.0.236/trunk@1164 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 22:39:19 +00:00
mlm
e68d6633a8 - Fix for new engine - do not require tag to always be there, as sometimes
the prototype object will be passed in.


git-svn-id: svn://10.0.0.236/trunk@1163 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 22:33:10 +00:00
michaelp
96769227de API cleanup for images and drawing surfaces.
git-svn-id: svn://10.0.0.236/trunk@1161 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 22:11:50 +00:00
montulli
86dbcbf7e1 fix warning
git-svn-id: svn://10.0.0.236/trunk@1160 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 21:41:24 +00:00
montulli
5814fe706a add mkaccess to makefile fix warnings
git-svn-id: svn://10.0.0.236/trunk@1159 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 21:40:39 +00:00
pinkerton
a212449b03 fix for bug #115653 for file sharing (rev scc, appr don).
git-svn-id: svn://10.0.0.236/trunk@1158 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 21:27:12 +00:00
pinkerton
72c1a2dd70 Fix off-by-one error when adding new rows from external rdf containers. (rev scc, appr don)
git-svn-id: svn://10.0.0.236/trunk@1157 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 21:21:43 +00:00
hardts
cb80304b07 added support for MOZ_RAPTOR
git-svn-id: svn://10.0.0.236/trunk@1156 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 21:16:24 +00:00
selmer
c7623e9c1a Creating Java strings: don't include null char in length count
git-svn-id: svn://10.0.0.236/trunk@1151 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 20:35:13 +00:00
rickg
ed863f453a removed nsDefaultTokenHandler.*
git-svn-id: svn://10.0.0.236/trunk@1150 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 20:25:19 +00:00
spider
96958337e4 adding Unix Shell Makefile stuff
git-svn-id: svn://10.0.0.236/trunk@1149 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 20:17:21 +00:00
spider
82ed228fd3 Miscellaneous UNIX fixes and ISupports Interface cleanup in implementations
git-svn-id: svn://10.0.0.236/trunk@1148 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 20:16:13 +00:00
kmcclusk
ee0d950c4d *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@1147 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 19:58:27 +00:00
pinkerton
3d020afdc7 Add LO_LayingOut to fix mac build bustage (appr cyeh).
git-svn-id: svn://10.0.0.236/trunk@1144 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 18:56:21 +00:00
hardts
2e49d986f7 check for null to prevent crash
git-svn-id: svn://10.0.0.236/trunk@1142 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 18:51:19 +00:00
michaelp
ebba598484 cleaned up.
git-svn-id: svn://10.0.0.236/trunk@1140 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 18:34:51 +00:00
montulli
3d43abb2b2 remove annoying asserts
git-svn-id: svn://10.0.0.236/trunk@1139 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 18:32:09 +00:00
spider
963949d6d3 Toplevel Window and Event implementations
git-svn-id: svn://10.0.0.236/trunk@1138 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 18:16:25 +00:00
michaelp
5c52551637 ResizeView() now does the right thing.
git-svn-id: svn://10.0.0.236/trunk@1137 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 18:04:56 +00:00
montulli
484796bcde fix annoying asserts
git-svn-id: svn://10.0.0.236/trunk@1136 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 17:50:26 +00:00
montulli
ebdea24d4c add glhist.h to fix compile warnings
git-svn-id: svn://10.0.0.236/trunk@1135 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 17:45:41 +00:00
michaelp
8796e9dab3 before releasing the timer in the destructor, we Cancel() the timer per vidur's
suggestion.


git-svn-id: svn://10.0.0.236/trunk@1134 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 17:29:08 +00:00
nisheeth
d43383f719 Added a check in LO_RelayoutOnResize() to bail if the document is being
laid out.


git-svn-id: svn://10.0.0.236/trunk@1133 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 17:27:23 +00:00
dcone
888e657348 Composition Work 24 bit complete
git-svn-id: svn://10.0.0.236/trunk@1131 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 14:47:16 +00:00
troy
c6e290213d Work in progress for inserted incremental reflow
git-svn-id: svn://10.0.0.236/trunk@1124 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 04:47:53 +00:00
rjc
cd708b48b7 (Mac only) Appletalk changes to support changes related to RDFT-specified data sources.
git-svn-id: svn://10.0.0.236/trunk@1123 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 02:56:07 +00:00
spider
e8c0760d9b Adding toplevel trex makefile
git-svn-id: svn://10.0.0.236/trunk@1121 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 02:03:57 +00:00
cyeh
f8babf45d0 change reference to "ns" since it refers to an old source root. remove
requirement on -k gmake flag


git-svn-id: svn://10.0.0.236/trunk@1120 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 01:27:49 +00:00
racham
37acf6df7a Minor textual changes associated with set up communicator button
git-svn-id: svn://10.0.0.236/trunk@1119 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 00:51:35 +00:00
spider
f8555ac899 Implement some toplevel windowing functionality
git-svn-id: svn://10.0.0.236/trunk@1118 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 00:50:35 +00:00
gagan
0862eba745 Updated include locations.
git-svn-id: svn://10.0.0.236/trunk@1117 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 00:41:34 +00:00
gagan
f098d37d23 MSDev project file update.
git-svn-id: svn://10.0.0.236/trunk@1116 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 00:40:21 +00:00
gagan
8fd7f0162f RC file.
git-svn-id: svn://10.0.0.236/trunk@1115 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 00:39:07 +00:00
gagan
b23ea7975d Added the test example.
NSPR changes.


git-svn-id: svn://10.0.0.236/trunk@1114 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 00:37:53 +00:00
briano
c4ea4cc289 Handle different SINIX versions properly. Thanks to Sanjay Gupta (gupta@informix.com) for the suggestion.
git-svn-id: svn://10.0.0.236/trunk@1113 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-05 00:10:34 +00:00
ftang
12a7beca15 fix the broken cp125[12] to/from unicode table I check in last time...
git-svn-id: svn://10.0.0.236/trunk@1112 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-04 23:44:59 +00:00
rickg
d6f2b8d6cb fixed general closure case
git-svn-id: svn://10.0.0.236/trunk@1111 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-04 23:36:46 +00:00
scullin
a7f345f764 Added NS_ERROR_FAILURE define provided by Brian Grunkemeyer.
git-svn-id: svn://10.0.0.236/trunk@1110 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-04 23:30:05 +00:00
scullin
a75e8b6a75 Added tarball rules.
git-svn-id: svn://10.0.0.236/trunk@1109 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-04 23:24:41 +00:00
spider
d6e3184abb Adding shell as new component on toplevel. Used to be in webshell.
This stuff allows an application to implement an interface instead of
providing the standard main().


git-svn-id: svn://10.0.0.236/trunk@1108 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-04 23:02:06 +00:00
troy
b470bf2def Fixed my build bustage
git-svn-id: svn://10.0.0.236/trunk@1107 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-04 22:50:13 +00:00
timm
03f29e9d41 changed "reggie.netscape.com" to be actual IP number to remove dependency
on DNS


git-svn-id: svn://10.0.0.236/trunk@1106 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-04 22:41:10 +00:00
thom
49acb7a1f2 Moved general Mac defines from Comm_Headers.c to Comm_Defines.h so that raptor can include Comm_Defines.h
git-svn-id: svn://10.0.0.236/trunk@1105 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-04 22:31:33 +00:00
timm
367c6a4f72 move inpvw5a.htm to a different array index because it was conflicting
with the New Account path


git-svn-id: svn://10.0.0.236/trunk@1104 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-04 21:29:42 +00:00
troy
c94f8a9104 Implemented DOM document's createTextNode() function, and changed insertBefore()
handler to allow refChild to be null


git-svn-id: svn://10.0.0.236/trunk@1103 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-04 20:34:37 +00:00
troy
ea789f09b3 Fixed InsertBefore() to allow refChild to be null
git-svn-id: svn://10.0.0.236/trunk@1102 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-04 20:33:05 +00:00
spider
39bdbd8c87 Removing ApplicationShell interfaces from webshell. Will be moved to toplevel 'shell' in near future.
git-svn-id: svn://10.0.0.236/trunk@1100 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-04 19:25:58 +00:00
kmcclusk
b36f4e2193 Added support for generating tooltip events
git-svn-id: svn://10.0.0.236/trunk@1099 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-04 19:25:25 +00:00
troy
d14a6a735d Added ContentInserted handler
git-svn-id: svn://10.0.0.236/trunk@1098 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-04 18:32:12 +00:00
troy
087c280a87 Work in progress for incremental reflow (insert)
git-svn-id: svn://10.0.0.236/trunk@1097 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-04 17:54:45 +00:00
troy
88dd3c090e Started hooking up createElement(), and commented out some asserts that
were getting hit


git-svn-id: svn://10.0.0.236/trunk@1096 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-04 17:54:08 +00:00
michaelp
f9b8d8ed34 made Composite() API in ViewManager work.
git-svn-id: svn://10.0.0.236/trunk@1095 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-04 17:41:57 +00:00
donm
420925b89b backing out Brian O's change that broke the gromit tree.
git-svn-id: svn://10.0.0.236/trunk@1093 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-04 17:22:59 +00:00
mcafee
542bc2ac58 Comment about moz-export
git-svn-id: svn://10.0.0.236/trunk@1092 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-04 07:03:58 +00:00
wtc
be97fc9aaa Deleted unused macro defines and commented-out code.
git-svn-id: svn://10.0.0.236/trunk@1089 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-03 23:22:09 +00:00
wtc
dd57c99a8b In make_file() and parse_file_seq(), when we see a char sequence
like 'C:/', we must make sure that there is exactly one letter
before the ':', so that it is indeed a drive letter.
Without these two fixes, the following two makefiles fail.

----------- Makefile 1 -----------------
all: c:/input c:/output
c:/input c:/output:c:/%put:/tmp
	@echo $@
---------- end of Makefile 1  ----------

Without the fix to make_file(), 'c:/%put:/tmp' would be incorrectly
parsed as a single token.  But it should be parsed as two tokens:
'c:/%put' and '/tmp'.  (This is a static pattern rule.)

---------- Makefile2 ------------------
c:/foobar:/tmp
	@echo $@
-------- end of Makefile2 -------------

Without the fix to parse_file_seq(), 'c:/foobar:/tmp' would be
parsed as one token, and make would complain about missing
separator.


git-svn-id: svn://10.0.0.236/trunk@1088 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-03 23:05:13 +00:00
ramiro
5a82956398 add missing -lXmu on irix and solaris
git-svn-id: svn://10.0.0.236/trunk@1087 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-03 12:26:58 +00:00
ramiro
cd82b2ca50 comment out gcc-ism
git-svn-id: svn://10.0.0.236/trunk@1086 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-03 12:26:08 +00:00
ramiro
76bc3096dd Add comments describing the makefiles. Dont force the initial value of
XFE_{SHARED,STATIC}_LIBS.


git-svn-id: svn://10.0.0.236/trunk@1085 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-03 12:10:33 +00:00
ramiro
a9ee7f9237 move XfeWidgets tests to their own directory
git-svn-id: svn://10.0.0.236/trunk@1084 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-03 11:59:23 +00:00
ramiro
8f2f7c9e55 add XmL tests
git-svn-id: svn://10.0.0.236/trunk@1083 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-03 11:52:01 +00:00
ramiro
f79791ac77 remove ad2c from a hardcoded location
git-svn-id: svn://10.0.0.236/trunk@1082 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-03 11:49:36 +00:00
ramiro
b15cda5963 add ad2c in a shared location
git-svn-id: svn://10.0.0.236/trunk@1081 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-03 11:49:07 +00:00
ramiro
65eb7efec8 Simplify the tests Makefil. Move all the defines and rules to a shared
makefile that can be included from different dirs.  Make creating tests in
subdirectories that depend on different libraries a lot easier and cleaner.


git-svn-id: svn://10.0.0.236/trunk@1080 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-03 11:48:15 +00:00
ramiro
1c87169b99 Update for edit support.
git-svn-id: svn://10.0.0.236/trunk@1079 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-03 11:47:01 +00:00
ramiro
a5b53e175e Make sure the client can properly link with motif 2.1 and gnu libc2 on
linux.  Also link with libBrokenLocale.so since locale support in
motif 2.1 with GLIBC is currently broken.


git-svn-id: svn://10.0.0.236/trunk@1078 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-03 06:36:27 +00:00
troy
7fb32b9f33 Added ComputeDesiredRect() to share some common code between DoResizeReflow()
and IncrementalReflow()


git-svn-id: svn://10.0.0.236/trunk@1077 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-03 04:57:29 +00:00
troy
000dc3a44d Made sure to set previous bottom margin when restoring reflow state
git-svn-id: svn://10.0.0.236/trunk@1075 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-03 04:37:56 +00:00
troy
0973be9e03 Fixed a problem with mY not being updated properly for a bottom
margin


git-svn-id: svn://10.0.0.236/trunk@1074 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-03 04:16:13 +00:00
troy
c15cd7b12f Removed ColumnFrame from the build
git-svn-id: svn://10.0.0.236/trunk@1073 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-03 04:00:37 +00:00
troy
295ea0d708 Changed body to create block pseudo-frame instead of a column pseudo frame,
and hooked up the reflow appended code


git-svn-id: svn://10.0.0.236/trunk@1072 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-03 03:51:48 +00:00
gagan
7cc7463c45 removed a not used file.
git-svn-id: svn://10.0.0.236/trunk@1068 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-02 02:35:41 +00:00
gagan
9c5d443da8 New modular cache files.
git-svn-id: svn://10.0.0.236/trunk@1067 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-02 02:29:42 +00:00
rjc
04940af93b More interface support.
git-svn-id: svn://10.0.0.236/trunk@1066 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-02 02:18:36 +00:00
kipp
51777f1e3b Set ascent/descent information so that vertical alignment works better
git-svn-id: svn://10.0.0.236/trunk@1065 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-02 02:04:00 +00:00
rjc
4016c14fb8 Better fix for Guha bustage... requires a prototype addition in net.h for NET_GetQuickURL() though. Removed #include "mkutils.h" from glue.h as its a private Netlib header file.
git-svn-id: svn://10.0.0.236/trunk@1062 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-02 01:28:02 +00:00
hyatt
f97af63ed5 Fixing an icon positioning bug.
git-svn-id: svn://10.0.0.236/trunk@1061 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-02 01:02:20 +00:00
rjc
a3b19be43f Fix Guha bustage by adding a #include "mkutils.h" in glue.h, adding appropriate include path(s) to libnet, and modifying Navigator.exp to export the NET_GetQuickUrl() function.
git-svn-id: svn://10.0.0.236/trunk@1060 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-02 01:00:06 +00:00
kipp
2c81902303 BR's are inline and cyan (if they are rendering)
git-svn-id: svn://10.0.0.236/trunk@1059 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-02 00:56:55 +00:00
kipp
292cd327b7 Spanked nsBlockFrame: newly rewritten, broken into two pieces (see nsLineLayout.h,.cpp for the line layout code)
git-svn-id: svn://10.0.0.236/trunk@1058 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-02 00:56:24 +00:00
kipp
127f91306b Fixed default background repeat bug
git-svn-id: svn://10.0.0.236/trunk@1057 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-02 00:55:29 +00:00
kipp
58d03021d1 Stub for WillDeleteNextInFlowFrame; call it during DeleteChildNextInFlows; fixed up ReflowChild spacemanager version to not mess with the availSize when talking to a space manager cognizant child
git-svn-id: svn://10.0.0.236/trunk@1056 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-02 00:55:11 +00:00
kipp
fa7caec542 Added WillDeleteNextInFlowFrame to allow for deletion pre-processing by container frames
git-svn-id: svn://10.0.0.236/trunk@1055 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-02 00:54:12 +00:00
hyatt
baa5c03f7f Fix to ensure that radio buttons and checkboxes are drawn with the proper background color.
Reviewed by Nisheeth.


git-svn-id: svn://10.0.0.236/trunk@1054 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-02 00:43:19 +00:00
hyatt
aa3283f7ca Fix for a crashing bug when the next layout element after a radio button or checkbox
is not text.


git-svn-id: svn://10.0.0.236/trunk@1053 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-02 00:42:50 +00:00
kipp
a756b3b6a4 Updated
git-svn-id: svn://10.0.0.236/trunk@1052 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-02 00:40:25 +00:00
kipp
de1607afa2 Fixed reference to unix_date
git-svn-id: svn://10.0.0.236/trunk@1051 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-02 00:35:17 +00:00
rpotts
95be00f510 Release the URL object to keep purity happy...
git-svn-id: svn://10.0.0.236/trunk@1049 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-02 00:01:41 +00:00
radha
d76280625c Fix for bug 107058. Increase the size of the executable name holder in
fe_showConference() from 32 to 1024 so that conference can be loaded
successfully.


git-svn-id: svn://10.0.0.236/trunk@1048 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 23:52:12 +00:00
montulli
51868dddec move bug fix over from lib/libnet
git-svn-id: svn://10.0.0.236/trunk@1047 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 23:30:33 +00:00
radha
0a89ef3908 Bug fix for 83769. Add MOZILLA_HOME/lib to the list of library_paths.
git-svn-id: svn://10.0.0.236/trunk@1046 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 23:27:04 +00:00
montulli
0143762f77 apply fixes from older netlib directory
git-svn-id: svn://10.0.0.236/trunk@1045 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 23:19:50 +00:00
montulli
c5c0900bcc move extcache function to public header
git-svn-id: svn://10.0.0.236/trunk@1044 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 23:19:03 +00:00
karnaze
66562cc5a4 added <input type=image>, fixed bug where multiple submit buttons sent data
git-svn-id: svn://10.0.0.236/trunk@1043 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 23:18:44 +00:00
montulli
96c4c39f1b move memcachefunc to public header
git-svn-id: svn://10.0.0.236/trunk@1041 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 23:16:57 +00:00
montulli
effff2047a fix include statement
git-svn-id: svn://10.0.0.236/trunk@1040 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 23:13:28 +00:00
hyatt
d54ff49f96 Fixing the column headers so that a BG image can be mapped to them. Also making
them respond to FG and BG color parameters.


git-svn-id: svn://10.0.0.236/trunk@1038 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 22:55:07 +00:00
hyatt
a0ecf0e3f2 Making the embedded title strip 256-color friendly and fixing a bug
where it always used white as its foreground color.


git-svn-id: svn://10.0.0.236/trunk@1037 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 22:54:07 +00:00
guha
3450d2ecd5 Use the new netgeturlquick that Gagan has given us
git-svn-id: svn://10.0.0.236/trunk@1034 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 22:42:37 +00:00
kostello
4d778817c3 Cleaned up getting attribute values
git-svn-id: svn://10.0.0.236/trunk@1031 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 21:55:36 +00:00
ftang
4e44f6e2e3 Add mapping for windows-1251 fon
git-svn-id: svn://10.0.0.236/trunk@1030 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 21:41:12 +00:00
ftang
9aa414d6de Check in locale independent form select/button handling change Approvaled by XFE owner
git-svn-id: svn://10.0.0.236/trunk@1029 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 21:40:38 +00:00
kostello
30896a4b70 Made SetStyleContext take the presentation context as a parameter
git-svn-id: svn://10.0.0.236/trunk@1028 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 20:45:15 +00:00
kostello
36357f1dc0 Made SetStyleContext take the presentation context as a parameter
Made DidSetStyleContext virtual, since we need to override the behavior in subclasses
Moved attribute setting logic from nsTableCell to nsTableCellFrame
Table Borders are being drawn again : )
Table Padding is being displayed


git-svn-id: svn://10.0.0.236/trunk@1027 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 20:44:55 +00:00
kostello
7cde78d07b Made SetStyleContext take the presentation context as a parameter
Made DidSetStyleContext virtual, since we need to override the behavior in subclasses


git-svn-id: svn://10.0.0.236/trunk@1026 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 20:43:42 +00:00
kostello
fdf9769d8a * Made SetStyleContext take the presentation context as a parameter
* Made DidSetStyleContext virtual, since we need to override the behavior in subclasses


git-svn-id: svn://10.0.0.236/trunk@1025 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 20:43:02 +00:00
hyatt
d8dec8ac2b Modified version of nathan wykes' history patch.
git-svn-id: svn://10.0.0.236/trunk@1023 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 20:40:25 +00:00
ftang
b8ccf4eb84 Add cyrillic font auto selection for x frontend.
Thanks for Serge Orlov (sorlov@con.mcst.ru) from the net.


git-svn-id: svn://10.0.0.236/trunk@1022 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 20:23:44 +00:00
spider
be13abc9d8 Add more Objects to be registered for the ApplicationShell
git-svn-id: svn://10.0.0.236/trunk@1021 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 20:13:51 +00:00
srinivas
2d0a84dad9 Set up pointers to the stack-pointer/frame-pointer words in the thread's
context structure. Useful for displaying thread stacks in the debugger.


git-svn-id: svn://10.0.0.236/trunk@1020 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 19:47:14 +00:00
srinivas
c7bab903e6 Initialize the outermost stack frame for the thread and setup pointers to the
stack-pointer/frame-pointer words in the thread's context structure.
Useful for displaying thread stacks in the debugger.


git-svn-id: svn://10.0.0.236/trunk@1019 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 19:45:13 +00:00
spider
824671d01d Adding global gmake config - common config for win and unix using gmake
git-svn-id: svn://10.0.0.236/trunk@1018 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 19:32:41 +00:00
dbragg
b0083fce34 Corrected depth after cd-ing into signed directory
git-svn-id: svn://10.0.0.236/trunk@1017 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 19:31:11 +00:00
racham
08b8e55802 Last line reffering to clicking on next button to reach account setup is removed - Bug 90536
git-svn-id: svn://10.0.0.236/trunk@1016 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 19:03:49 +00:00
racham
bebb497e7e Hypertext references modified & newentry Comm Setup - Bug 90536
git-svn-id: svn://10.0.0.236/trunk@1015 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 19:01:26 +00:00
racham
73ac93f943 Account set Shortcut button (double arrow) suppressed
git-svn-id: svn://10.0.0.236/trunk@1014 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 18:59:44 +00:00
racham
461d17e5cb Navigational changes of bugs 110410, 107811, 90536
git-svn-id: svn://10.0.0.236/trunk@1013 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 18:58:30 +00:00
hyatt
d77b9b3e90 Tweaks.
git-svn-id: svn://10.0.0.236/trunk@1012 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 18:58:01 +00:00
hyatt
0e22f337a2 Patch from Jim Ewald to keep Mozilla from crashing when "About Navigator..." is selected.
git-svn-id: svn://10.0.0.236/trunk@1011 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 18:53:04 +00:00
hyatt
5d0689fb40 Fix for a thrown assertion when NavCenter is collapsed.
git-svn-id: svn://10.0.0.236/trunk@1010 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 18:52:28 +00:00
hyatt
0041bd1c5e Making the tree view 256-color friendly. Adding more customizability options. Turned the dividers
between nodes off by default.


git-svn-id: svn://10.0.0.236/trunk@1009 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 18:33:47 +00:00
chouck
b0aa9d97ba Fix for casts inside PR_FREEIF() inspired by <rkl@csc.liv.ac.uk>
git-svn-id: svn://10.0.0.236/trunk@1007 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 17:44:19 +00:00
chouck
8927813180 Minor memory leak
git-svn-id: svn://10.0.0.236/trunk@1006 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 17:41:02 +00:00
spider
f2288f5c9d Fix UNIX build bustage on some systems where tweak_nspr gets appended to TARGET after inclusion of rules.mk, thus breaking nsinstall.
git-svn-id: svn://10.0.0.236/trunk@1003 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 17:11:13 +00:00
spider
3d3f3369ec Fix UNIX breakage when tweak_nspr is appended to TARGET on some systems (like mine)
git-svn-id: svn://10.0.0.236/trunk@1001 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 17:04:22 +00:00
timm
3acc4e4c39 changes for reggie 2 step
git-svn-id: svn://10.0.0.236/trunk@1000 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 10:37:35 +00:00
timm
578096c81b Removed 'Cancel' from ProgressApplet, allow CPGeneratorProgress to restart
git-svn-id: svn://10.0.0.236/trunk@999 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 10:31:14 +00:00
timm
18598552aa Add "RegSource=APL"
git-svn-id: svn://10.0.0.236/trunk@998 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 10:29:56 +00:00
timm
c0a11178ba changes for reggie 2 step
git-svn-id: svn://10.0.0.236/trunk@997 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 10:29:17 +00:00
timm
35a5f94651 new reggie 2 step templates
git-svn-id: svn://10.0.0.236/trunk@996 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 10:28:13 +00:00
timm
2e42d46cc6 new files for reggie 2 step
git-svn-id: svn://10.0.0.236/trunk@995 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 10:25:21 +00:00
mccabe
5332947894 Added #if defined ( SNI ) to a few existing #if tests, for compiling
on SINIX.


git-svn-id: svn://10.0.0.236/trunk@994 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 07:06:12 +00:00
rpotts
6bf27be3b9 nsSelectionRange.h is required by nsISelection.h
git-svn-id: svn://10.0.0.236/trunk@993 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 05:56:08 +00:00
rpotts
82e75d2589 nslayout.h is *all* lower case
git-svn-id: svn://10.0.0.236/trunk@992 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 05:55:11 +00:00
rpotts
ee491f23cc fixed bustage...
git-svn-id: svn://10.0.0.236/trunk@990 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 05:18:07 +00:00
rpotts
0f42d7d2f9 changed to use the new nsIURL support provided by netlib...
git-svn-id: svn://10.0.0.236/trunk@989 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 05:07:49 +00:00
rpotts
9fe6a0963b added netlib to the include path...
git-svn-id: svn://10.0.0.236/trunk@988 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 05:07:25 +00:00
rpotts
46cff9faab added the netlib import library...
git-svn-id: svn://10.0.0.236/trunk@987 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 05:00:44 +00:00
rpotts
a5b0db532d Do not delete the nsIInputStream. Call Release() instead. Reference counting is important!!
git-svn-id: svn://10.0.0.236/trunk@986 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 04:59:28 +00:00
rpotts
780c801dcc added netlib to the include path
git-svn-id: svn://10.0.0.236/trunk@985 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 04:56:26 +00:00
rpotts
f89777dd1d added new module export macro NS_NET
git-svn-id: svn://10.0.0.236/trunk@984 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 04:55:39 +00:00
rpotts
ac18334c10 removed nsURL.cpp from the build...
git-svn-id: svn://10.0.0.236/trunk@983 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 04:55:01 +00:00
rpotts
61406ea472 nsIURL.h and nsURL.cpp have been moved to mozilla\lib\libnet
git-svn-id: svn://10.0.0.236/trunk@982 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 04:53:42 +00:00
rpotts
88e2da5f3f the base module is now required by netlib :-(
git-svn-id: svn://10.0.0.236/trunk@979 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 04:52:51 +00:00
michaelp
4d46f24a23 InsertChild() with a zindex now does the right thing.
RemoveChild() now invalidates the area where the view was.
added NS_RELEASE() cleanup.


git-svn-id: svn://10.0.0.236/trunk@975 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 03:15:31 +00:00
michaelp
632082625a added NS_RELEASE() cleanup.
git-svn-id: svn://10.0.0.236/trunk@974 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 03:14:03 +00:00
michaelp
54953fa08e fixed various shutdown and linked list management bugs.
git-svn-id: svn://10.0.0.236/trunk@973 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 03:13:34 +00:00
michaelp
3a92d6d01c killed erroneous comments.
git-svn-id: svn://10.0.0.236/trunk@972 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 03:11:47 +00:00
michaelp
6053e4f001 added additional cleanup when shutting down the websidget so that the
ViwManager will actually go away.


git-svn-id: svn://10.0.0.236/trunk@971 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 03:11:13 +00:00
michaelp
3ff1be94d8 added missing NS_RELEASE() after calling GetWidget().
git-svn-id: svn://10.0.0.236/trunk@970 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 03:09:53 +00:00
michaelp
3ba2f75f2f added missing NS_RELEASE() after getting a window in the cursor setting code.
git-svn-id: svn://10.0.0.236/trunk@969 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 03:09:07 +00:00
michaelp
75e204180f fixed bug in state management of clip rects.
git-svn-id: svn://10.0.0.236/trunk@968 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 03:08:08 +00:00
montulli
6099321277 fix prototype
git-svn-id: svn://10.0.0.236/trunk@967 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 02:24:39 +00:00
spider
635953eb9a Fix crash if root view is not setup properly during window creation
git-svn-id: svn://10.0.0.236/trunk@966 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 02:18:39 +00:00
briano
f8066a66f9 Eliminated the confusing and pointless OS version macros.
git-svn-id: svn://10.0.0.236/trunk@965 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 02:04:06 +00:00
briano
cc294e1bae Converted the LINUX2_0 and MKLINUX references to just LINUX, and added danda's tweak from the OS/2 branch.
git-svn-id: svn://10.0.0.236/trunk@964 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 01:54:32 +00:00
mccabe
9b313afb01 Another place where error reporting hadn't caught up to 16-bit
character strings; added a js_DeflateString call.  Thanks to gcc 2.8.1
for catching this - it complained about "char format, different type
arg (arg 4)" - which means that it looked in the (printf-style) format
string and checked type against it.  Wow.


git-svn-id: svn://10.0.0.236/trunk@963 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 01:39:51 +00:00
hyatt
4d8ca6df3a Fix for a problem with the system color changing.
git-svn-id: svn://10.0.0.236/trunk@962 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 01:26:08 +00:00
spider
a9f9424d30 Code Cleanup...
git-svn-id: svn://10.0.0.236/trunk@961 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 01:16:44 +00:00
hyatt
97e25edfcc You can now click on the vertical bars to collapse the parent node.
git-svn-id: svn://10.0.0.236/trunk@960 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 00:59:05 +00:00
scullin
1a588fe0ab Added netcache requirement.
git-svn-id: svn://10.0.0.236/trunk@959 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 00:58:36 +00:00
mccabe
eeb3cc74f2 Restoring changes that were backed out because of a one-line error in
prmjtime.c.


git-svn-id: svn://10.0.0.236/trunk@958 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 00:22:06 +00:00
montulli
97038f9345 fix proto
git-svn-id: svn://10.0.0.236/trunk@957 18797224-902f-48f8-a5cc-f745e15eee43
1998-05-01 00:04:12 +00:00
hyatt
45825818f9 Tree view can now show or hide tree connections (the bars).
git-svn-id: svn://10.0.0.236/trunk@956 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 23:52:37 +00:00
hyatt
736d044cd4 View now properly invalidated when colors/backgrounds/properties change.
git-svn-id: svn://10.0.0.236/trunk@955 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 23:52:20 +00:00
montulli
2b7baab535 Add unix makefiles and make a few include file tweaks for unix compilation
git-svn-id: svn://10.0.0.236/trunk@953 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 23:52:15 +00:00
hyatt
87eaefd3ce Fixed a bug where the navbar was using the tree view's bg image rather than
its own.


git-svn-id: svn://10.0.0.236/trunk@952 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 23:51:59 +00:00
hyatt
7d36db57e4 Patch from Sam Keeny on the net which fixes kiosk mode.
git-svn-id: svn://10.0.0.236/trunk@951 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 23:51:29 +00:00
montulli
c9c3400e81 fix layout .> lay
git-svn-id: svn://10.0.0.236/trunk@948 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 23:45:52 +00:00
montulli
e4b21d25b7 fix makefile
git-svn-id: svn://10.0.0.236/trunk@947 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 23:44:45 +00:00
kipp
ba7de39efe new
git-svn-id: svn://10.0.0.236/trunk@946 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 23:32:32 +00:00
montulli
3196bd8a06 make layout module name be lay instead of layout to be compatible with unix
git-svn-id: svn://10.0.0.236/trunk@945 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 23:30:20 +00:00
hyatt
25acb7bb52 Improvements to the tree control.
(1) Fixed inline editing so that the text field is properly cleared
	(2) Fixed marquee selection so that the first item is selected
	(3) Added the ability to customize column header colors and to
	customize the tree colors.  Can load a background image as well.
	(4) Added dividers
	(5) Removed the bitmap dependency when drawing lines and triggers.
	(6) Changed the way sorting looks.


git-svn-id: svn://10.0.0.236/trunk@944 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 22:15:42 +00:00
gagan
f2a00a0985 Added NET_GetURLQuick, for retrieving objects from cache before updating
them from the server. Use with caution, possibility of stale objects. See
bug #114363.


git-svn-id: svn://10.0.0.236/trunk@943 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 22:14:29 +00:00
hyatt
9241e5aa90 Fix for a memory trashing bug that occurred whenever the URL column was shown
in Aurora.  (Symptom was a damaged block on exit.)


git-svn-id: svn://10.0.0.236/trunk@942 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 22:13:55 +00:00
hyatt
6f53c14cb8 Changes to the outliner base class to cut down resource usage. (Bitmaps don't
have to be loaded by a derived class that knows how to draw its triggers.)


git-svn-id: svn://10.0.0.236/trunk@941 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 22:13:23 +00:00
hyatt
2304f2a909 Tweaks to get Aurora working with Composer.
git-svn-id: svn://10.0.0.236/trunk@940 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 22:12:40 +00:00
hyatt
869a60505e Removed the embedded button menu. Added the ability to customize the title bar's
appearance.


git-svn-id: svn://10.0.0.236/trunk@939 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 22:12:15 +00:00
hyatt
bf7202af7d Fixes to the way custom icons are handled in Aurora.
git-svn-id: svn://10.0.0.236/trunk@938 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 22:11:34 +00:00
hyatt
14134ff171 Fix for Bug #107284, need to monitor when the animation starts and stops.
git-svn-id: svn://10.0.0.236/trunk@937 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 22:10:33 +00:00
hyatt
488c5f3343 Fix for Bug#107284, need to monitor when the animation starts and stops.
git-svn-id: svn://10.0.0.236/trunk@936 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 22:09:21 +00:00
hyatt
2a18679c20 Enabling Aurora in composer.
git-svn-id: svn://10.0.0.236/trunk@934 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 22:08:44 +00:00
rickg
1beed254e9 minor improvement to backward propagation code
git-svn-id: svn://10.0.0.236/trunk@933 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 22:06:16 +00:00
montulli
b515fc55dd Add netlib in new location.
This is a (mostly) unmodified version of lib/libnet
broken up into functional areas
It should be binary compatible with the lib created by lib/libnet
but is now 10 libs.
The only substantial things changed in the version is the include files


git-svn-id: svn://10.0.0.236/trunk@931 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 20:53:59 +00:00
montulli
c1da74a63a export style header files
git-svn-id: svn://10.0.0.236/trunk@930 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 20:35:16 +00:00
montulli
e26c0b8b5c export layout.h into layout public include directory
git-svn-id: svn://10.0.0.236/trunk@929 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 20:33:35 +00:00
rickg
1253f68df0 got newlines working much better; Kipp still won't be happy, but the, he never is.
git-svn-id: svn://10.0.0.236/trunk@928 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 20:23:07 +00:00
wtc
e9b6d10641 Recognize SINIX-Y, the high-end version of SINIX.
(Patch provided by Sanjay Gupta <gupta@informix.com>.)


git-svn-id: svn://10.0.0.236/trunk@927 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 20:07:51 +00:00
peterl
7f15ff1ab6 update to new value class api
git-svn-id: svn://10.0.0.236/trunk@926 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 19:57:36 +00:00
peterl
4d90cd509c added new unit types, cleaned up api
git-svn-id: svn://10.0.0.236/trunk@925 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 19:56:39 +00:00
peterl
f102a97623 updated to new value class api
git-svn-id: svn://10.0.0.236/trunk@924 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 19:55:51 +00:00
peterl
9de9eff153 removed include
git-svn-id: svn://10.0.0.236/trunk@923 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 19:53:05 +00:00
peterl
3a74004725 changed api, added new units
git-svn-id: svn://10.0.0.236/trunk@922 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 19:52:46 +00:00
peterl
02e53b2bb5 changed to nsStylePosition to use nsStyleCoord
git-svn-id: svn://10.0.0.236/trunk@921 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 19:52:26 +00:00
peterl
c7ab938a26 removed style position value, added cursor auto
git-svn-id: svn://10.0.0.236/trunk@920 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 19:51:52 +00:00
peterl
7ff699f97c updated api, added new units
git-svn-id: svn://10.0.0.236/trunk@919 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 19:50:36 +00:00
peterl
e7ae6a57ec changed nsStypePosition to use nsStyleCoord
git-svn-id: svn://10.0.0.236/trunk@918 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 19:50:18 +00:00
wtc
9858b6150a Various makefile cleanups. On SCO OpenServer, the value of OS_ARCH
is now 'SCOOS' instead of 'SCO_SV'.  Also, we just use the cpp macro 'SCO'
and deleted the macro 'SCO_SV'.
In pr/src/md/unix/Makefile, we do not assemble the ultrasparc assembly
file if we are compiling with gcc.


git-svn-id: svn://10.0.0.236/trunk@917 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 19:36:53 +00:00
rods
e8df85316f initial
git-svn-id: svn://10.0.0.236/trunk@916 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 19:15:05 +00:00
rods
a31617a2db added selection classes to makefiles and added the selection object and methods to nsDocument and nsIDocument
git-svn-id: svn://10.0.0.236/trunk@913 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 18:21:59 +00:00
buster
10cf7de2c3 fixed method names
git-svn-id: svn://10.0.0.236/trunk@912 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 18:04:16 +00:00
buster
3a3e869ea0 added nsITableLayoutStrategy as the interface for objects that manage
table column balancing.  Implemented in BasicTableLayoutStrategy (HTML4-spec).
nsTableFrame instantiates a strategy depending on the compatibility mode.


git-svn-id: svn://10.0.0.236/trunk@911 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 17:57:09 +00:00
rpotts
68ec6fbca1 moved the include of windows.h inside of an XP_PC ifdef...
git-svn-id: svn://10.0.0.236/trunk@910 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 17:52:15 +00:00
spider
929d758f31 Fix UNIX build bustage
git-svn-id: svn://10.0.0.236/trunk@909 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 16:40:38 +00:00
rods
83895f1ffd turned off selection
git-svn-id: svn://10.0.0.236/trunk@908 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 16:13:01 +00:00
buster
ea4ac0c312 fixed a rounding error, and made tables quiet
git-svn-id: svn://10.0.0.236/trunk@907 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 15:20:23 +00:00
buster
130cc8acf5 at Peters request, I added NS_INT_PIXELS_TO_TWIPS and NS_FLOAT_PIXELS_TO_TWIPS
git-svn-id: svn://10.0.0.236/trunk@906 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 15:11:33 +00:00
hshaw
d15d7a4b72 Back out changes which are breaking builds (at request of mccabe)
git-svn-id: svn://10.0.0.236/trunk@903 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 08:18:42 +00:00
hshaw
db8e901896 Back out changes which are breaking builds (at request of mccabe)
git-svn-id: svn://10.0.0.236/trunk@902 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 08:10:05 +00:00
rickg
ce4b76d61a huge improvements to parser
git-svn-id: svn://10.0.0.236/trunk@901 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 05:56:39 +00:00
rickg
d7a05d60d4 minor tweak to iterator
git-svn-id: svn://10.0.0.236/trunk@900 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 05:55:51 +00:00
warren
4300ed4358 Changes should have been on the branch -- reverted.
git-svn-id: svn://10.0.0.236/trunk@898 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 05:28:19 +00:00
warren
a7bc3044d8 Changes to build with MOZ_OJI (and not MOZ_JAVA).
git-svn-id: svn://10.0.0.236/trunk@897 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 04:27:29 +00:00
mccabe
4747d02fa9 Changed pr[mj]time.c to just return 0 for failure in FormatTime, and
changed jsdate.c to detect failure and default to using toString in
place of toLocaleString whenever FormatTime fails.


git-svn-id: svn://10.0.0.236/trunk@895 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 03:51:26 +00:00
montulli
177e6468b9 fix extension labels
Thanks to: Paul Chek <pchek@ziplink.net> for the fix


git-svn-id: svn://10.0.0.236/trunk@894 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 02:54:34 +00:00
michaelp
228526d605 minor tweaks to UpdateView() in view manager. if you want to invalidate a whole
view, pass in nsnull for the nsRegion param.
viewmanager InsertChild() above/below now does the right thing.
fixed cujo's table thingie.


git-svn-id: svn://10.0.0.236/trunk@893 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 02:41:14 +00:00
sar
d271dff890 Taking out the stuff not relevant to the public tree...
All references to MOZ_JAVAVER deleted (java is included in the MozillaProductWin module)
The other branch tag references have been deleted (dbm is pulled as part of the module, security
    and coreconf have no relevance in the public tree)
pull_all is only defined as pull_client_source_product (ifdef for MOZ_MEDIUM was removed)
pull_security and pull_client were removed
build_ldap was removed


git-svn-id: svn://10.0.0.236/trunk@892 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 02:16:43 +00:00
gagan
dd67cf36ef Fixed the authentication bug #114532 which resulted in an incorrect entry
in the authentication list.


git-svn-id: svn://10.0.0.236/trunk@891 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 01:55:10 +00:00
ramiro
9310bbbb06 Add an extra sanity check on the children argument.
git-svn-id: svn://10.0.0.236/trunk@890 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 01:48:30 +00:00
gagan
c093c6c84e Corrected a misspelled #include. Thanks Sanjay Gupta (gupta@informix.com)
git-svn-id: svn://10.0.0.236/trunk@889 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 01:47:21 +00:00
ramiro
45e962ceae Fix crash on startup in mozilla Personal Toolbar. Make the recursive
children killing function more robust.


git-svn-id: svn://10.0.0.236/trunk@888 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 01:39:28 +00:00
buster
4744264a52 lots of pre-conditions and asserts added
fixed a bug in layout having to do with sizing cells in columns that are spanned into


git-svn-id: svn://10.0.0.236/trunk@887 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 00:27:59 +00:00
mccabe
246b37fa96 Fixes for getting the timezone string fot toString, and for asking for
a localized string from the os for toLocaleString.  The time struct
used to interface to the os time-formatting functions only takes a
16-bit year, so we map to an equivalent year (for getting the timezone
string) or clamp for years outside that range.


git-svn-id: svn://10.0.0.236/trunk@886 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 00:27:43 +00:00
mccabe
e6a6db8cd7 Removed some unused constants.
git-svn-id: svn://10.0.0.236/trunk@885 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 00:14:07 +00:00
mccabe
1912e0d8e7 Removed some unused lines related to jsdate.c.
git-svn-id: svn://10.0.0.236/trunk@884 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 00:11:31 +00:00
ftang
67b6544f6f Fix uTable change suggestion from qupta@informix.com (forwarded by
Wan-Teh Chang)


git-svn-id: svn://10.0.0.236/trunk@883 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-30 00:02:20 +00:00
michaelp
02194e7102 Arghh ....
git-svn-id: svn://10.0.0.236/trunk@882 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 23:57:32 +00:00
mccabe
6a0e192f5f ECMA-conformance fix to (95045) - added 'enum' and 'debugger' as
reserved words, and changed the versioning check that previously
applied to 'export' to accept any 'ecma' version... which means that
export becomes a keyword for the default version.  Does this mean
we'll need to unreserve all the java keywords?  Not sure we want to do
that...


git-svn-id: svn://10.0.0.236/trunk@881 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 23:57:20 +00:00
mccabe
6c9a40d28d Fixed error message associated with trying to use a keyword as an
identifier; it was only printing the first character of the
identifier, because it expected 8-bit chars, and was being called with
a 16-bit representation of the offending keyword.


git-svn-id: svn://10.0.0.236/trunk@880 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 23:52:40 +00:00
spider
33154649fc Fix yet another build bustage by maio ... windows.h was removed somewhere....
git-svn-id: svn://10.0.0.236/trunk@879 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 23:49:38 +00:00
spider
2d279ab608 Fix build bustage of non-existent header file
git-svn-id: svn://10.0.0.236/trunk@878 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 23:23:40 +00:00
spider
8b28e5c284 Modifications to support new nsIApplicationShell interface
git-svn-id: svn://10.0.0.236/trunk@877 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 22:43:33 +00:00
peterl
db7ba47330 removed unneeded destructors
cleaned up some initial values


git-svn-id: svn://10.0.0.236/trunk@876 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 21:06:15 +00:00
peterl
b0cae37787 added normal value
git-svn-id: svn://10.0.0.236/trunk@875 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 21:05:28 +00:00
peterl
e0d215699f removed unneeded destructors
git-svn-id: svn://10.0.0.236/trunk@874 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 21:04:57 +00:00
rpotts
8b6c6d6ca6 added windows.h since NSPR no longer includes it...
git-svn-id: svn://10.0.0.236/trunk@873 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 20:47:18 +00:00
dcone
308ff813eb Updated nsImageWin and gfx bit test for composite functionality
git-svn-id: svn://10.0.0.236/trunk@872 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 20:28:16 +00:00
rpotts
b174335bfa removed eval(PRBool,...) function since it clashes with the eval(PRInt32,...) version
git-svn-id: svn://10.0.0.236/trunk@871 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 20:10:16 +00:00
rpotts
5c411b7d88 added include of string.h since NSPR no longer includes windows.h which pulled it in...
git-svn-id: svn://10.0.0.236/trunk@870 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 20:04:28 +00:00
rpotts
9650c7aa2b Added windows.h since NSPR no longer includes it...
git-svn-id: svn://10.0.0.236/trunk@869 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 20:01:24 +00:00
kmcclusk
27415284fe Added events for left and right mouse button double clicks
git-svn-id: svn://10.0.0.236/trunk@868 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 19:59:06 +00:00
rpotts
d1ddb05cac added windows.h since it is no longer provided by NSPR
git-svn-id: svn://10.0.0.236/trunk@867 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 19:57:57 +00:00
rpotts
6c30425beb PRBool is now a PRIntn which caused conflicts between member functions mangled on PRInt32 vs PRBool. To fix the build I removed the PRBool versions...
git-svn-id: svn://10.0.0.236/trunk@866 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 19:52:45 +00:00
rpotts
67a5df01f5 added include of windows.h since NSPR no longer pulls it in...
git-svn-id: svn://10.0.0.236/trunk@865 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 19:37:33 +00:00
rpotts
a2f6cdb246 added #include windows.h since NSPR no longer includes it...
git-svn-id: svn://10.0.0.236/trunk@862 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 19:25:27 +00:00
kostello
e8e9dbc69b Fixed Unix Build Error -- nsCoord.h must be case sensitive
git-svn-id: svn://10.0.0.236/trunk@858 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 18:39:30 +00:00
guha
df4c7e0fc5 Remove some files from CVS
(the old xml parser was confusing a lot of people
even though it wasn't being used.)


git-svn-id: svn://10.0.0.236/trunk@855 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 18:00:31 +00:00
karnaze
209c861a0e ifdefed MapAttributesInto
git-svn-id: svn://10.0.0.236/trunk@853 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 17:27:44 +00:00
karnaze
0a07a4bf82 ifdefed style sizing code
git-svn-id: svn://10.0.0.236/trunk@852 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 17:14:24 +00:00
rods
f71616b8fa initial check in
git-svn-id: svn://10.0.0.236/trunk@851 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 17:08:57 +00:00
karnaze
7fe4b14c5d minor cleanup, reinstate css sizing.
git-svn-id: svn://10.0.0.236/trunk@850 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 16:30:55 +00:00
ramiro
9d1d9fed95 The reallyUpdateRoot() call seems to be crashing the browser for some people.
I cannot reproduce the problem yet.  Im working on finding a real solution,
but I dont want the browser to crash on startup on the next mozilla release,
so im commenting it out.


git-svn-id: svn://10.0.0.236/trunk@849 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 14:45:52 +00:00
ramiro
7a0330fe5f Dont update the menu accent if the widget is dead. Fixes core dump in
Mozilla that occurs on filing of bookmarks.


git-svn-id: svn://10.0.0.236/trunk@848 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 11:14:05 +00:00
nisheeth
05287d1e22 - Added #ifdef DOM to layout.h
- Backing out some changes in layout.c that should not have gotten checked in...


git-svn-id: svn://10.0.0.236/trunk@847 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 10:47:20 +00:00
nisheeth
e3b2621102 Added lm_trans.c to Unix makefile...
git-svn-id: svn://10.0.0.236/trunk@846 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 10:45:43 +00:00
nisheeth
a42fcb9ca8 Added layspan.c in mozilla/lib/layout, lm_span.c and lm_trans.c in mozilla/lib/libmocha.
git-svn-id: svn://10.0.0.236/trunk@845 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 10:20:16 +00:00
nisheeth
5db071e76e Touchdown of MARINER_DOM_BRANCH.
git-svn-id: svn://10.0.0.236/trunk@841 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 10:13:27 +00:00
nisheeth
c4bd436721 Touchdown of MARINER_DOM_BRANCH...
git-svn-id: svn://10.0.0.236/trunk@840 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 10:08:50 +00:00
nisheeth
7960424738 Warning fixes. Thanks to Rick Osborne (rick@spacey.net).
git-svn-id: svn://10.0.0.236/trunk@839 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 08:41:05 +00:00
nisheeth
010ada78cf Warning fix. Thanks to tenthumbs@cybernex.net.
git-svn-id: svn://10.0.0.236/trunk@838 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 08:39:56 +00:00
jsw
ad8a2bf568 get the damn function name right
git-svn-id: svn://10.0.0.236/trunk@837 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 08:38:27 +00:00
nisheeth
4dc19bf8d2 Added access path for jscompat.h
git-svn-id: svn://10.0.0.236/trunk@835 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 08:05:20 +00:00
nisheeth
30f99a45f9 Added export of CL_CompositeNow, CL_GetCompositorOffscreenDrawing, CL_SetCompositorOffscreenDrawing and CL_UpdateDocumentRect for XML changes.
git-svn-id: svn://10.0.0.236/trunk@833 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 07:50:37 +00:00
toshok
2ed0b8e3af REQUIRE js
git-svn-id: svn://10.0.0.236/trunk@832 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 07:09:33 +00:00
ftang
02d2f8e308 fix CP1251 viewing problem by using 8859_5 font. We may need to
add better support (decide which font to use  in the init time instead of
compile time) in the future.


git-svn-id: svn://10.0.0.236/trunk@831 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 06:09:25 +00:00
mccabe
85c8006a9f Added some #ifdef JAVA guards to remove compile warnings.
Thanks go to rick@spacey.net (Rick Osborne) for finding these.


git-svn-id: svn://10.0.0.236/trunk@828 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 02:39:43 +00:00
michaelp
c7fe1544fe more cliprect api changes...
git-svn-id: svn://10.0.0.236/trunk@827 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 02:24:07 +00:00
wtc
705b2825f3 Added alpha and x86 binaries and the README file to
buildtools/windows/bin.


git-svn-id: svn://10.0.0.236/trunk@825 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 01:35:56 +00:00
troy
a10eab0307 Changed space manager to return a list of available and unavailable trapezoids
git-svn-id: svn://10.0.0.236/trunk@821 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 00:58:16 +00:00
pinkerton
241c685bdb also send the bookmark drag flavor so that other applications (dragThing, etc) can get both the url and the title (rev sdagley, appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@820 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 00:57:11 +00:00
pinkerton
bdde74a642 remove the comment about how we're going to pull the bookmark drag flavor, since we're not. (rev sdagley, appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@819 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 00:56:31 +00:00
ftang
2b7a3e4a9a Check in additional KOI8-R font registry name. Thanks for
sorlov@con.mcst.ru
from the net


git-svn-id: svn://10.0.0.236/trunk@818 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 00:56:23 +00:00
ftang
c208a630a8 fix ISO8859-5,7,9 KOI8-R Name entity problem
git-svn-id: svn://10.0.0.236/trunk@813 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 00:36:25 +00:00
wtc
718a40bb0a ReliantUNIX is renamed SINIX.
git-svn-id: svn://10.0.0.236/trunk@811 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-29 00:08:32 +00:00
peterl
9bd123cf4d changed nsStyleText to use nsStyleCoord
git-svn-id: svn://10.0.0.236/trunk@810 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 23:57:01 +00:00
peterl
60016b76aa removed inheritance from style mapping
changed nsStyleText to use nsStyleCoord


git-svn-id: svn://10.0.0.236/trunk@809 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 23:56:28 +00:00
wtc
8d1bc32fbe Got rid of the LINUX1_2 and LINUX2_0 macros. I hope that this will
make building on 2.1.x easier.  In case we need to distinguish between
different versions of Linux, we will try to use feature-based macros
as opposed to version-based macros.
Files changed: Linux.mk, _linux.h, _pth.h, prnetdb.c, and ptthread.c.


git-svn-id: svn://10.0.0.236/trunk@808 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 23:54:29 +00:00
peterl
0645caeec0 added nsStyleCoord
git-svn-id: svn://10.0.0.236/trunk@807 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 23:54:06 +00:00
peterl
0a122c5b8d added subclass hook for style post-processing
git-svn-id: svn://10.0.0.236/trunk@806 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 23:25:07 +00:00
kostello
ac5c637ccd Call to RecalcLayoutData
git-svn-id: svn://10.0.0.236/trunk@805 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 22:44:05 +00:00
wtc
54f4d85fe1 Merged NSPRPUB_19980421_BRANCH to the main trunk.
git-svn-id: svn://10.0.0.236/trunk@803 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 22:43:48 +00:00
kostello
c14bf79c47 Updated table to process cellpadding, cellspacing and background color
attributes


git-svn-id: svn://10.0.0.236/trunk@802 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 22:43:19 +00:00
kostello
d534119b9b Name changed from ResetColumnLayoutData to RecalcColumnLayoutData
git-svn-id: svn://10.0.0.236/trunk@801 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 22:41:25 +00:00
kostello
5c08b8b7ff Added SetTableForChildren to set the children's table instance variable
git-svn-id: svn://10.0.0.236/trunk@800 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 22:40:22 +00:00
kostello
0d5d1cb20d Added MapHTMLBorderStyle, MapBorderMarginPaddingInto
git-svn-id: svn://10.0.0.236/trunk@799 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 22:34:16 +00:00
sdagley
9eb50e034c Added files needed for nisheeth (layprobe.c) and brade (editor.r)
git-svn-id: svn://10.0.0.236/trunk@798 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 22:10:41 +00:00
rjc
02bc22984a Workspace interface customization support.
git-svn-id: svn://10.0.0.236/trunk@797 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 21:51:48 +00:00
nisheeth
1b734a3e51 Added layprobe.c to ns/lib/layout.
git-svn-id: svn://10.0.0.236/trunk@796 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 21:43:22 +00:00
nisheeth
ecabf21450 Adding stubs for the Layout Probe API.
git-svn-id: svn://10.0.0.236/trunk@794 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 21:41:20 +00:00
slamm
1a4fd9ef7d Fix shutdown bug. Set NavCenter to really close, not just hide. This fixes the problem where you are unable to exit after opening NavCenter.
git-svn-id: svn://10.0.0.236/trunk@791 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 21:04:36 +00:00
pinkerton
2f7304b5ed Doh! I removed the wrong icons last time (I removed hilighted instead of selected). Put the right ones back in and take the wrong ones out. (appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@790 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 20:59:06 +00:00
slamm
f65d505ecc Add a few more EDITOR ifdefs
git-svn-id: svn://10.0.0.236/trunk@789 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 20:59:01 +00:00
troy
31fd94622e Added an XXX to CreateFrame() as a reminder that we're resolving the
style context more than once...


git-svn-id: svn://10.0.0.236/trunk@788 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 20:58:46 +00:00
pinkerton
64f42dadfe Fix 2 problems: cells with no data no longer show garbage as tooltip. Cells with separator no longer show tooltip. (rev sdagley, appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@787 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 20:54:44 +00:00
kmcclusk
533b497a4d Fixed textwidget refresh problem.
Added AutoErase method to nsWindow.cpp, nsTextHelper.cpp and nsListBox.cpp


git-svn-id: svn://10.0.0.236/trunk@785 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 19:24:52 +00:00
michaelp
c7d6535311 changed clipping apis so that they take parameters in the same form that
clipping is expressed in layer tags and css-p.
added support for setting transforms in layers (untested and very likely
problematic if scales are applied).
changed event handling and painting apis in views to support inherited
visibility.
all parameters passed into view.Init() are now properly stored in the view.
view opacity apis are now real.


git-svn-id: svn://10.0.0.236/trunk@784 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 19:16:24 +00:00
karnaze
1096b080eb fix submit crash in nsWindow; more form control functionality
git-svn-id: svn://10.0.0.236/trunk@780 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 18:59:38 +00:00
donm
27e88123d1 removing Henrit's jsfile.c and jsfile.h to fix unix build bustage.
git-svn-id: svn://10.0.0.236/trunk@776 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 18:00:54 +00:00
donm
0a9b29052c backing out Henrit's changes to fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@775 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 18:00:00 +00:00
sar
55674ea59e jsfile doesn't compile on unix. Backing out the changes that henrit put it
git-svn-id: svn://10.0.0.236/trunk@773 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 17:57:43 +00:00
sar
1ca149714f reapply henrit's change since we can add it to unix as well.
git-svn-id: svn://10.0.0.236/trunk@771 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 17:23:08 +00:00
donm
d65fb3806c fixing unix build bustage.
git-svn-id: svn://10.0.0.236/trunk@770 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 17:19:14 +00:00
sar
6b83a1438a backing out henrit's changes
git-svn-id: svn://10.0.0.236/trunk@769 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 17:02:22 +00:00
kipp
5e19847a05 Correctly compute width of body frame
git-svn-id: svn://10.0.0.236/trunk@768 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 16:12:54 +00:00
kipp
9c8261c5cf Allow for optional commas between clip rect elements
git-svn-id: svn://10.0.0.236/trunk@767 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 15:24:44 +00:00
kipp
c1f559e678 updated
git-svn-id: svn://10.0.0.236/trunk@766 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 15:24:20 +00:00
henrit
71ce3e732d Adding a first version of the js File object. Developped and (slightly) tested on win32 only.
git-svn-id: svn://10.0.0.236/trunk@765 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 11:36:17 +00:00
jsw
254ef44dce take a wild assed guess at fixing the build
git-svn-id: svn://10.0.0.236/trunk@755 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 09:09:49 +00:00
jsw
41ebd3a6c6 get the name right
git-svn-id: svn://10.0.0.236/trunk@754 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 07:54:14 +00:00
jsw
e9dc89c86a get type correct for socket
git-svn-id: svn://10.0.0.236/trunk@749 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 07:53:25 +00:00
jsw
4e0b870651 move xp_sec to secnav
git-svn-id: svn://10.0.0.236/trunk@748 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 07:48:02 +00:00
mccabe
83d55f638a Added public license header.
git-svn-id: svn://10.0.0.236/trunk@747 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 07:33:09 +00:00
mccabe
a9f37501c2 Propagated some #defines to work with irix 6.3 as well as 6.2.
(HAVE_ALIGNED_DOUBLES)


git-svn-id: svn://10.0.0.236/trunk@746 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 06:35:55 +00:00
mccabe
734ff77d30 Corrected BUILD_OPT oversight where a = instead of a += override the
OPTIMIZER flag in the included config/*.mk file.


git-svn-id: svn://10.0.0.236/trunk@745 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 06:06:09 +00:00
atotic
8f08a459c3 Fixing the -ko flag
git-svn-id: svn://10.0.0.236/trunk@744 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 05:44:39 +00:00
atotic
fb18d0de3b Fixing the -ko flag
git-svn-id: svn://10.0.0.236/trunk@743 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 05:23:29 +00:00
atotic
7f02c6b2dc Fixing the -ko flag
git-svn-id: svn://10.0.0.236/trunk@742 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 05:17:41 +00:00
jsw
02e32f5307 remove xp_md5 and xp_sec
git-svn-id: svn://10.0.0.236/trunk@740 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 05:17:37 +00:00
jsw
6e09423583 opaque sec info
git-svn-id: svn://10.0.0.236/trunk@739 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 05:16:06 +00:00
jsw
e9e8e3bfd6 opaque sec info
proxy tunnel changes


git-svn-id: svn://10.0.0.236/trunk@738 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 05:15:16 +00:00
jsw
52d4826009 move xp_sec to secnav
git-svn-id: svn://10.0.0.236/trunk@737 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 05:13:41 +00:00
sudu
2aa827f81a Changed libjar to refer to dist
git-svn-id: svn://10.0.0.236/trunk@736 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 05:09:18 +00:00
sudu
2f1674a804 Build freenav only when NO_SECURITY is set
git-svn-id: svn://10.0.0.236/trunk@735 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 05:09:15 +00:00
sudu
835f36be2c Cleaned up NO_SECURITY builds and removed references into product area
git-svn-id: svn://10.0.0.236/trunk@734 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 05:09:11 +00:00
atotic
570baa3b07 Fixing the -ko flag
git-svn-id: svn://10.0.0.236/trunk@733 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 04:59:01 +00:00
atotic
3461c2d197 Fixed the rcs flag to -kb
git-svn-id: svn://10.0.0.236/trunk@732 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 04:39:29 +00:00
troy
2e880e58d9 Added mClip and mClipFlags to nsStylePosition
git-svn-id: svn://10.0.0.236/trunk@730 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 03:21:18 +00:00
michaelp
5173d3062e added back code that i killed in the previous checkin, but now it works.
git-svn-id: svn://10.0.0.236/trunk@729 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 02:05:46 +00:00
mccabe
c9d08d5bba Added disambiguating braces to appease gcc 2.8.1 warning.
git-svn-id: svn://10.0.0.236/trunk@728 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 01:22:19 +00:00
ramiro
a42db46a75 Unhardcode the motif lib on x86 linux. Replace /usr/X11R6/lib/libXm.a
with -L/usr/X11R6/lib -lXm.


git-svn-id: svn://10.0.0.236/trunk@727 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 01:22:18 +00:00
rjc
e7285013df Better "autoOpen" support.
git-svn-id: svn://10.0.0.236/trunk@726 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 01:15:49 +00:00
michaelp
c0821d3557 fixed bug i just introduced (by removing code i just added)!
git-svn-id: svn://10.0.0.236/trunk@725 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 01:00:00 +00:00
michaelp
da59bfa4f4 if a view does not have a clip, then we set the clip in the rc to
the bounds for the view.


git-svn-id: svn://10.0.0.236/trunk@724 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 00:42:58 +00:00
ramiro
48ea685689 Add void to baggage prototypes. Fix from derkjan@reli.student.utwente.nl
(Derkjan de Haan) to make mozilla build with egcs.


git-svn-id: svn://10.0.0.236/trunk@723 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-28 00:28:04 +00:00
michaelp
e0f3643ffe added support for setting clip rects in views.
removed paint_all_kids().
damage rect passed to frames is now properly translated into
coord space of containing view.


git-svn-id: svn://10.0.0.236/trunk@721 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 23:51:57 +00:00
buster
a762e593b2 sped up nsBlockFrame significantly by reducing the number of times we resolve style by almost 50% on initial layout
(percentage savings go way up as the window is resized)


git-svn-id: svn://10.0.0.236/trunk@720 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 22:33:55 +00:00
hshaw
d7a904b7dd Update XFEPRIVDIR to point to ns instead of ns_priv
git-svn-id: svn://10.0.0.236/trunk@719 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 21:34:30 +00:00
kipp
2344c29ea1 Use PERCENT instead of PCT in style constants; udpated usage of vertical alignment information in nsStyleText
git-svn-id: svn://10.0.0.236/trunk@717 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 21:26:48 +00:00
kipp
80f69fc4e8 Implement all of the text styles; update to use PERCENT in naming of style constants
git-svn-id: svn://10.0.0.236/trunk@716 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 21:26:06 +00:00
kipp
1098ed5ee8 Use PERCENT instead of PCT in style constants; implement vertial alignment for length values and percent values
git-svn-id: svn://10.0.0.236/trunk@715 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 21:24:33 +00:00
kipp
b4ea1954f0 Normalize structure member names
git-svn-id: svn://10.0.0.236/trunk@714 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 21:24:06 +00:00
kipp
4ebc780037 Use PERCENT style constants instead of PCT
git-svn-id: svn://10.0.0.236/trunk@713 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 21:22:06 +00:00
kipp
0d60b06b51 Init nsStyleText values using new nsStyleValue
git-svn-id: svn://10.0.0.236/trunk@712 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 21:21:42 +00:00
scullin
845c8cb874 Post mozilla move raptor.mk
git-svn-id: svn://10.0.0.236/trunk@711 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 21:20:46 +00:00
kipp
57a438ad02 Cleaned up percent names
git-svn-id: svn://10.0.0.236/trunk@710 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 21:20:24 +00:00
kipp
81bd8188cf Added nsStyleValue and then updated nsStyleText to use it
git-svn-id: svn://10.0.0.236/trunk@709 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 21:19:45 +00:00
cyeh
a8c8d2732c change top-level module to MozillaSource (remove "Product" from name)
git-svn-id: svn://10.0.0.236/trunk@708 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 20:45:13 +00:00
sar
8c37edda44 making the switch ns->mozilla for dir name
git-svn-id: svn://10.0.0.236/trunk@704 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 19:21:40 +00:00
hshaw
a1b7899688 Add jar to REQUIRES and remove references to lm_crypt.c and lm_pk11.c for security build cleanup
git-svn-id: svn://10.0.0.236/trunk@703 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 19:07:29 +00:00
cyeh
7f04c6580f missed this preflight check
git-svn-id: svn://10.0.0.236/trunk@702 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 18:16:04 +00:00
cyeh
277c009e37 change to new module to pull source with root of "mozilla"
git-svn-id: svn://10.0.0.236/trunk@701 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 18:09:13 +00:00
cyeh
ba9e74f22d committing modules with mozilla as root directory
git-svn-id: svn://10.0.0.236/trunk@700 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 17:51:11 +00:00
cyeh
8c7c6df58e renaming root of the repository to "mozilla"
git-svn-id: svn://10.0.0.236/trunk@699 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 17:29:58 +00:00
rods
5f2720fb90 started adding selection
git-svn-id: svn://10.0.0.236/trunk@698 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 16:44:52 +00:00
kipp
09357d5e45 new
git-svn-id: svn://10.0.0.236/trunk@697 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 15:43:09 +00:00
kipp
90530086bd Removed hack
git-svn-id: svn://10.0.0.236/trunk@696 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 15:39:58 +00:00
cmanske
5e9b1def1f Removed field not needed in table cell data. Removed code not needed for growable array
git-svn-id: svn://10.0.0.236/trunk@695 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 15:04:05 +00:00
cmanske
46aec995e2 More table editing bug fixes. Copy/Paste arbitrary selected cell sets and deleting columns, rows fixed. More resizing bugs fixed.
git-svn-id: svn://10.0.0.236/trunk@694 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 14:37:46 +00:00
cmanske
df94b24da9 Added support to add/remove rows/columns during table creation. Fixed problem with HRULE and other object properties (rt. mouse popup menu)
git-svn-id: svn://10.0.0.236/trunk@691 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 14:36:37 +00:00
troy
db1845c8b5 Added function to set a trapezoid's shape based on a rectangle
git-svn-id: svn://10.0.0.236/trunk@690 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-27 03:35:05 +00:00
brade
b5f254d11d make grippy pane hilites valid
git-svn-id: svn://10.0.0.236/trunk@689 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-26 22:43:12 +00:00
brade
b8fd8f281f table dialog changes from gbrown; center dlogs over parent window (not main screen)
git-svn-id: svn://10.0.0.236/trunk@687 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-26 22:40:39 +00:00
brade
eb14822c97 table dialog changes from gbrown
git-svn-id: svn://10.0.0.236/trunk@686 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-26 22:40:00 +00:00
kipp
94a19a4f91 Get cursor properly
git-svn-id: svn://10.0.0.236/trunk@685 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-26 03:47:53 +00:00
kipp
d57f23b67d Added in cursor and direction properties
git-svn-id: svn://10.0.0.236/trunk@684 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-26 03:47:37 +00:00
kipp
72f5772d0f Add in cursors
git-svn-id: svn://10.0.0.236/trunk@683 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-26 03:47:06 +00:00
kipp
582efa0e7b Always return ibeam cursor for text
git-svn-id: svn://10.0.0.236/trunk@682 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-26 03:46:51 +00:00
kipp
403b3f8d18 Added inherit for direction style
git-svn-id: svn://10.0.0.236/trunk@681 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-26 03:46:26 +00:00
kipp
1cc6c90aec Made it build on IRIX
git-svn-id: svn://10.0.0.236/trunk@680 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-26 03:21:14 +00:00
kipp
51ccce8969 Fixed compiler bugs/warnings
git-svn-id: svn://10.0.0.236/trunk@679 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-26 03:13:20 +00:00
briano
e11dbeff37 Got rid of a minor redundancy, and added support for 2.1.x kernels.
git-svn-id: svn://10.0.0.236/trunk@678 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-26 03:07:41 +00:00
kipp
902295a137 Fix porting bugs - made it compile on IRIX
git-svn-id: svn://10.0.0.236/trunk@677 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-26 02:59:29 +00:00
kipp
5e5e6dffdb Added keywords for cursors and direction
git-svn-id: svn://10.0.0.236/trunk@676 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-26 02:59:02 +00:00
kipp
d267b76845 Added missing newline
git-svn-id: svn://10.0.0.236/trunk@675 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-26 02:57:39 +00:00
kipp
797d9351dc Added trailing newline
git-svn-id: svn://10.0.0.236/trunk@674 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-26 02:57:05 +00:00
rickg
7b8d45d8c6 added parse-system debugging hooks
git-svn-id: svn://10.0.0.236/trunk@672 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 23:10:51 +00:00
rickg
8a929464d6 update
git-svn-id: svn://10.0.0.236/trunk@671 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 19:46:11 +00:00
rickg
2c5f8ffeb3 propagation is now online, aren't DTD's cool?
git-svn-id: svn://10.0.0.236/trunk@670 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 19:45:14 +00:00
rickg
d682c47b10 added Append(unichar)
git-svn-id: svn://10.0.0.236/trunk@669 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 19:44:35 +00:00
kipp
1d81050a79 new keywords
git-svn-id: svn://10.0.0.236/trunk@668 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 19:11:20 +00:00
kipp
909bba7724 Port to new nsIDocument API
git-svn-id: svn://10.0.0.236/trunk@666 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 18:49:06 +00:00
kipp
b87f9199b6 Port to removal of nsStyleMolecule
git-svn-id: svn://10.0.0.236/trunk@665 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 18:48:48 +00:00
kipp
93894c3b99 Fixed a memory problem; implement align and border properties
git-svn-id: svn://10.0.0.236/trunk@664 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 18:48:30 +00:00
kipp
e9b3f7100f Port to removal of nsStyleMolecule; add in border support
git-svn-id: svn://10.0.0.236/trunk@663 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 18:46:55 +00:00
kipp
d7fe529d84 Added in nsCSSDisplay; cleaned up text align; moved float, clear and display out of position and into display
git-svn-id: svn://10.0.0.236/trunk@662 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 18:45:22 +00:00
kipp
2f03c700ff Implement borders, padding, text-align properties, display, etc. Fixed bug in list inheritance
git-svn-id: svn://10.0.0.236/trunk@661 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 18:44:55 +00:00
kipp
24bf916e3f Updated to use new style constants
git-svn-id: svn://10.0.0.236/trunk@660 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 18:44:17 +00:00
kipp
d3e2cf6fab Added support for more properties
git-svn-id: svn://10.0.0.236/trunk@659 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 18:43:42 +00:00
kipp
d5d817ead1 updated
git-svn-id: svn://10.0.0.236/trunk@658 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 18:41:41 +00:00
kipp
c4d42de7a5 Stop using nsStyleMolecule; fixed bug that led to missing spaces
git-svn-id: svn://10.0.0.236/trunk@657 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 18:41:33 +00:00
kipp
cbf4938e33 Fixed up cursor handling; map align parameter
git-svn-id: svn://10.0.0.236/trunk@656 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 18:40:47 +00:00
kipp
00b1cc85fe Removed nsStyleMolecule decl
git-svn-id: svn://10.0.0.236/trunk@655 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 18:40:17 +00:00
kipp
3bfe67cad5 Repaired cursor discovery logic to handle A tag oddities
git-svn-id: svn://10.0.0.236/trunk@654 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 18:40:01 +00:00
kipp
aad54f55e7 new atoms
git-svn-id: svn://10.0.0.236/trunk@653 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 18:39:16 +00:00
kipp
7c700e8a5b Updated to new style constants
git-svn-id: svn://10.0.0.236/trunk@652 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 18:37:29 +00:00
kipp
8043537831 Stop building unused tags file
git-svn-id: svn://10.0.0.236/trunk@651 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 18:34:02 +00:00
kipp
ab8ffb24d3 Implement nsStyleText, nsStyleDisplay; added cursors; removed hack code
git-svn-id: svn://10.0.0.236/trunk@650 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 18:33:32 +00:00
kipp
efa3b90b0a Tidy up style constants
git-svn-id: svn://10.0.0.236/trunk@649 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 18:33:11 +00:00
kipp
324c12a6d4 Cleaned up the API
git-svn-id: svn://10.0.0.236/trunk@648 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 18:32:59 +00:00
kipp
758346d78d Added nsStyleText, nsStyleDisplay; removed nsStyleMolecule and hack code; cleaned up a few others
git-svn-id: svn://10.0.0.236/trunk@647 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 18:32:11 +00:00
wtc
b92f855655 "gmake clobber" should remove $(OBJDIR) too.
git-svn-id: svn://10.0.0.236/trunk@646 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 16:16:54 +00:00
hshaw
348fba16cb Only compile security stubs if NO_SECURITY turned on
git-svn-id: svn://10.0.0.236/trunk@645 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 11:32:20 +00:00
hshaw
92821a0c0c libjar is not part of public source
git-svn-id: svn://10.0.0.236/trunk@644 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 11:29:10 +00:00
mccabe
3b1a1c03e9 Fix to (115008). ECMA fix - revert to earlier behavior of decompiling
functions created with new Function as "function anonymous (...)".
Now only version 1.2 decompiles to the source for an anonymous
function.


git-svn-id: svn://10.0.0.236/trunk@643 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 08:37:06 +00:00
mccabe
7256cbaad6 Pared down prmjtime.c and prmjtime to just what is needed by jsdate.c
and synchronized them with js/ref/prtime.[ch].


git-svn-id: svn://10.0.0.236/trunk@642 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 07:42:22 +00:00
mccabe
a5b32ac223 Propagate a fix for #ifndef HAVE_LONG_LONG that found its way into src/prmjtime.c but not ref/prtime.c
git-svn-id: svn://10.0.0.236/trunk@641 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 05:26:09 +00:00
mccabe
68bd3eb6a0 Add some braces to quiet dangling-else warnings by gcc 2.8.1.
git-svn-id: svn://10.0.0.236/trunk@640 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 05:24:42 +00:00
mccabe
32987e37ee Call JS_GC instead of js_GC within JS_MaybeGC. Thanks to
A. Hodgkinson <ahodgkin@acorn.co.uk> for finding this (and to chouck
for checking it in to js/ref/jsapi.c.)


git-svn-id: svn://10.0.0.236/trunk@639 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 05:11:41 +00:00
troy
24f6d37f72 Changed IntersectRect() to return an empty rect in the case where the
two source rects don't intersect. Also changed '==' operator to return
TRUE if both rects are empty


git-svn-id: svn://10.0.0.236/trunk@638 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 04:34:52 +00:00
troy
6401d192b2 Added mOverflow to nsStylePosition
git-svn-id: svn://10.0.0.236/trunk@637 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 04:07:18 +00:00
rjc
d405d81272 Vocabulary additions for NavCenter appearance styles
git-svn-id: svn://10.0.0.236/trunk@636 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 02:07:03 +00:00
rjc
e9f23151c7 Add prototypes to remove warnings on Mac.
git-svn-id: svn://10.0.0.236/trunk@632 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-25 00:07:08 +00:00
kmcclusk
9b1d6078de Added SelectAll member function to nsITextWidget
Fixed Select(start, stop) for nsITextWidget and nsITextAreaWidget
Added NS_MOVE event
Cleanup up nsWindow.cpp by centralizing code to initialize events and dispatch events.


git-svn-id: svn://10.0.0.236/trunk@626 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 23:09:11 +00:00
jband
947dc54830 removing code that is not supposed to be released to the public at this time. This code still lives (for now) under m/src/ns/js/ref/jsd/ on the branch JSFUN13_BRANCH
git-svn-id: svn://10.0.0.236/trunk@625 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 22:59:00 +00:00
slamm
34616e053a Remove some unused code including old-style command handling. Examples of the new command handling can be seen in EditorView.cpp and RDFView.cpp
git-svn-id: svn://10.0.0.236/trunk@624 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 22:33:18 +00:00
karnaze
b4c13f5c3a added text area
git-svn-id: svn://10.0.0.236/trunk@623 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 22:28:41 +00:00
karnaze
5ff624fc06 enabled text area
git-svn-id: svn://10.0.0.236/trunk@622 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 22:27:07 +00:00
slamm
01c0e0c439 Add beginnings of context menu support
git-svn-id: svn://10.0.0.236/trunk@621 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 22:26:55 +00:00
slamm
29da0cfac0 Fix attachments and specify resources to make it look better. The resources can later be moved down to xfe/resources
git-svn-id: svn://10.0.0.236/trunk@620 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 22:26:29 +00:00
slamm
53471fb9cd Minor logic fix.
git-svn-id: svn://10.0.0.236/trunk@619 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 22:23:13 +00:00
briano
f557cd9518 Added support for SCO UnixWare 7, and consolidated all the Linux's.
Thanks to Thorsten Heit (thorsten@wurzelausix.cs.uni-sb.de) for the
Linux suggestion.


git-svn-id: svn://10.0.0.236/trunk@618 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 22:22:42 +00:00
gagan
0883032db0 This is the fix for bug #93760. It has a potential of breaking some server
implementations of decoding the authentication string that involve a user
login string of accentuated characters (for example- éçàöî)


git-svn-id: svn://10.0.0.236/trunk@617 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 22:12:09 +00:00
karnaze
4a95093116 added radio groups, select/option, beter sizing. widgets take creation parms.
git-svn-id: svn://10.0.0.236/trunk@616 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 21:37:30 +00:00
buster
68ef434e82 even better pagination. Tables with small captions can split, and
simple tables with big cells can split the cell (and it's row)


git-svn-id: svn://10.0.0.236/trunk@615 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 20:59:44 +00:00
kipp
4e90f540f3 Put generated source into the right directory
git-svn-id: svn://10.0.0.236/trunk@614 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 19:56:36 +00:00
kipp
248dffec8a updated scripts to work properly
git-svn-id: svn://10.0.0.236/trunk@613 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 19:56:23 +00:00
kipp
5d88cc8f56 added new properties
git-svn-id: svn://10.0.0.236/trunk@612 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 19:56:09 +00:00
kipp
fad74a13ef latest props
git-svn-id: svn://10.0.0.236/trunk@611 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 19:55:53 +00:00
wtc
7675cfc3ec Eliminated compiler warnings. Fixed by Rick Osborne <rick@stacey.net>.
git-svn-id: svn://10.0.0.236/trunk@610 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 19:48:37 +00:00
bjorn
46adef01d2 Protection around ASFILES added, so that gcc runs smoothly.
git-svn-id: svn://10.0.0.236/trunk@609 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 19:02:01 +00:00
troy
200fd1ff3d Added mZIndex to nsStylePosition. Absolutely positioned code now passed
it along to view system


git-svn-id: svn://10.0.0.236/trunk@608 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 18:34:31 +00:00
wtc
7c00209154 Serge Orlov <sorlov@con.mcst.ru> reported that gmake 3.74 on Solaris 2.5
doesn't like the extra tabs in this file.  I don't know why.  It works
for me and everyone else.  But since it doesn't hurt, I deleted the
extra tabs.


git-svn-id: svn://10.0.0.236/trunk@607 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 18:13:13 +00:00
fur
0126732a29 When JS_MaybeGC() has decided to do a garbage collection, really do
it, even when the only assignments have been to local JS variables.
Thanks to ahodgkin@acorn.co.uk for noticing.


git-svn-id: svn://10.0.0.236/trunk@606 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 18:08:04 +00:00
fur
2d2471a609 Eliminate non-ECMA warnings about lack of return value
git-svn-id: svn://10.0.0.236/trunk@605 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 17:56:47 +00:00
rods
d6a4c83eea changed the items are add into the combo box
git-svn-id: svn://10.0.0.236/trunk@604 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 16:21:32 +00:00
guha
c3a48ed6f4 Remove SCook.c from mac project file
git-svn-id: svn://10.0.0.236/trunk@603 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 16:13:20 +00:00
guha
1ee864db9f Fix potential mac problems
git-svn-id: svn://10.0.0.236/trunk@602 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 16:10:38 +00:00
guha
a94e97961d smore cleanup and bug fixes
git-svn-id: svn://10.0.0.236/trunk@601 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 16:04:53 +00:00
ramiro
2a71b7b932 Add preliminary support for editting items in toolbars.
git-svn-id: svn://10.0.0.236/trunk@600 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 12:43:28 +00:00
ramiro
8deebe0777 Cleanup string utils.
git-svn-id: svn://10.0.0.236/trunk@599 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 12:34:16 +00:00
ramiro
102ae1d944 Add one more personal toolbar command: xfeCmdPersonalToolbarItemProperties.
git-svn-id: svn://10.0.0.236/trunk@598 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 11:49:20 +00:00
ramiro
7b66a7d6a2 Add personal toolbar commands.
git-svn-id: svn://10.0.0.236/trunk@597 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 11:44:28 +00:00
ramiro
73f588efeb Cleanup the toggleShowingState() and setShowingState() madness. These
XFE_Component methods can be used instead of various other toggle/hide/show
hacks.


git-svn-id: svn://10.0.0.236/trunk@596 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 11:41:36 +00:00
fur
90ff121ec6 Temporarily disable charSet info so we can compile with JAVA defined
git-svn-id: svn://10.0.0.236/trunk@594 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 07:21:01 +00:00
ramiro
1aec16ab3b Add support ffor dynamic indicators.
git-svn-id: svn://10.0.0.236/trunk@593 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 06:57:18 +00:00
fur
5972508b18 Fix numerous cut-and-paste errors in last checkin
git-svn-id: svn://10.0.0.236/trunk@592 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 06:57:00 +00:00
ramiro
84ec8be55d Add support for dynamic indicators.
git-svn-id: svn://10.0.0.236/trunk@591 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 06:47:37 +00:00
ramiro
a307c5f940 Always insert private components at end of widget list.
git-svn-id: svn://10.0.0.236/trunk@590 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 06:44:28 +00:00
fur
39accdfa4b Temporarily disable charSet info so we can compile
git-svn-id: svn://10.0.0.236/trunk@589 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 06:26:57 +00:00
cyeh
801614bc6f adjust access paths to point to js:src and js:jsj. js:ref was added, and
it had an old nspr1.0 header in it "prcpucfg.h" htat was being picked up for the compile instead of the one in nsprpub


git-svn-id: svn://10.0.0.236/trunk@588 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 04:42:07 +00:00
troy
479019563e Added more position properties and removed some stuff from nsStyleMolecule
git-svn-id: svn://10.0.0.236/trunk@587 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 03:50:38 +00:00
troy
f4f2da86ac Fixed PROP_HEIGHT to use VARIANT_KLP (was using VARIANT_KL)
git-svn-id: svn://10.0.0.236/trunk@586 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 02:43:42 +00:00
rjc
28779ff3a6 Removed unused variables to fix up warnings.
git-svn-id: svn://10.0.0.236/trunk@585 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 02:20:19 +00:00
rjc
48b61872f7 Support for workspace reordering.
git-svn-id: svn://10.0.0.236/trunk@584 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 02:15:22 +00:00
fur
2af8f4a686 (These files not built by any version of Navigator)
Initial check-in:
JSRef is migrating from /m/src JSFUN13_BRANCH to trunk /m/pub repository


git-svn-id: svn://10.0.0.236/trunk@583 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 01:42:37 +00:00
fur
dffbf084ac (This code is not built by any flavor of Navigator)
Initial check-in to mozilla tree: JSRef development is migrating from
JSFUN13_BRANCH of /m/src repository to /m/pub


git-svn-id: svn://10.0.0.236/trunk@582 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 01:35:13 +00:00
fur
425b4f0439 JS1.3 initial check-in
git-svn-id: svn://10.0.0.236/trunk@581 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 01:28:40 +00:00
fur
73e80ec159 Initial checkin of JS1.3. (Minor fix required to accomodate JSAPI behavior changes)
git-svn-id: svn://10.0.0.236/trunk@580 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 00:34:15 +00:00
fur
c7feaa75cf Initial checkin of JavaScript 1.3, migrated from JSFUN13_BRANCH in /m/src repository.
(Minor changes in libmocha required to accomodate JSAPI changes.)


git-svn-id: svn://10.0.0.236/trunk@579 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 00:32:02 +00:00
fur
6e3cdaec31 Initial checkin of JavaScript 1.3, migrated from JSFUN13_BRANCH in /m/src repository
git-svn-id: svn://10.0.0.236/trunk@578 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 00:31:11 +00:00
michaelp
bbe0178263 more scrolling bugs.
git-svn-id: svn://10.0.0.236/trunk@577 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 00:30:21 +00:00
scullin
9aec547ed0 Removed dependency on Motif
git-svn-id: svn://10.0.0.236/trunk@576 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-24 00:17:36 +00:00
dbragg
06063a9d88 Moving asw.jar into appropriate place (not into as_html)
git-svn-id: svn://10.0.0.236/trunk@573 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 23:51:47 +00:00
dbragg
83372571bc Um, like, ns_priv handling is screwy, but for now we need to at least POINT there...
git-svn-id: svn://10.0.0.236/trunk@572 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 23:45:32 +00:00
michaelp
038c0cf76e fixed bug where scollbar itself was scrolled.
git-svn-id: svn://10.0.0.236/trunk@571 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 23:32:59 +00:00
michaelp
b3fff96143 changed SetContainerSize() to ComputeContainerSize().
git-svn-id: svn://10.0.0.236/trunk@570 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 23:21:37 +00:00
dbragg
efb85c5361 for the fun of it
git-svn-id: svn://10.0.0.236/trunk@569 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 23:17:20 +00:00
dbragg
e286be6235 make it work for el don
git-svn-id: svn://10.0.0.236/trunk@568 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 23:16:06 +00:00
dbragg
890a53a1bd OK, maybe this is better?
git-svn-id: svn://10.0.0.236/trunk@567 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 23:06:18 +00:00
buster
7afb5d93bb fixed a nefarious little bug with multiple row spans in the same table
subsequent rows (the ones below the effected rows) were not placed correctly
when the height of the spanning cell became greater than the sum of the heights
of the rows it spanned.


git-svn-id: svn://10.0.0.236/trunk@566 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 22:59:07 +00:00
troy
ff40b5d8f4 More work on absolute positioning
git-svn-id: svn://10.0.0.236/trunk@565 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 22:38:52 +00:00
dbragg
e37a16249d Fixed to use correct targets
git-svn-id: svn://10.0.0.236/trunk@564 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 22:27:55 +00:00
michaelp
0063ce95c6 added AddRef() to GetScrolledView().
git-svn-id: svn://10.0.0.236/trunk@563 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 21:54:47 +00:00
michaelp
8a60a2974e removed debug junk
git-svn-id: svn://10.0.0.236/trunk@562 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 21:52:02 +00:00
michaelp
4b3b78f8e5 view no longer shows a scrollbar when we can't scroll.
added GetScrolledView().


git-svn-id: svn://10.0.0.236/trunk@561 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 21:51:43 +00:00
michaelp
4948a5cacb removed conditional calling of view->SetDimensions() in SizeTo().
git-svn-id: svn://10.0.0.236/trunk@560 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 21:51:03 +00:00
kmcclusk
1c46487c8b Added SetMaxTextLength method to text widget and textarea widget.
git-svn-id: svn://10.0.0.236/trunk@559 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 20:21:24 +00:00
scullin
cc196705ed Build on IRIX and Linux
git-svn-id: svn://10.0.0.236/trunk@558 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 19:55:08 +00:00
scullin
9684a1c1b7 Linux build fixes. Moved test.cpp to nettest.cpp to allow nettest to
build easily under UNIX.


git-svn-id: svn://10.0.0.236/trunk@557 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 19:33:34 +00:00
scullin
5497189f2b Fixed non-virtual destructor, and incorrect stream usages that
gcc didn't like.


git-svn-id: svn://10.0.0.236/trunk@556 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 19:10:35 +00:00
scullin
ae47b469c0 Fix abiguous null test for smart pointers.
git-svn-id: svn://10.0.0.236/trunk@555 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 19:08:21 +00:00
buster
a7ba4f40d7 table header and footer rowgroups placed properly, replicated across continuing tables
some pagination fixes, including a hack to make negative available heights = 1.


git-svn-id: svn://10.0.0.236/trunk@552 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 17:29:07 +00:00
buster
3f1b763ceb fixed a bug where a case during pagination wasn't being tested correctly
git-svn-id: svn://10.0.0.236/trunk@551 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 17:22:46 +00:00
buster
d8ffbf56b4 added style for HTML 4 table elements and TH
git-svn-id: svn://10.0.0.236/trunk@550 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 17:19:21 +00:00
kipp
76327db85c nuked ref to line layout
git-svn-id: svn://10.0.0.236/trunk@549 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 17:09:16 +00:00
kipp
e4a14bb64b link with plc
git-svn-id: svn://10.0.0.236/trunk@548 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 16:51:49 +00:00
kipp
b71515f8f1 Fixed SetTitle API
git-svn-id: svn://10.0.0.236/trunk@547 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 16:51:25 +00:00
kipp
c90ed276b0 define win32_lean_and_mean
git-svn-id: svn://10.0.0.236/trunk@546 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 16:47:42 +00:00
troy
5a581d1cad More CSS position work
git-svn-id: svn://10.0.0.236/trunk@545 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 15:39:48 +00:00
scullin
22e3688402 Unix build patches
git-svn-id: svn://10.0.0.236/trunk@543 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 03:51:20 +00:00
slamm
4c01b12f2a Change NavCenter (aka Aurora) to use the XmLTree instead
of the Outliner class.  This will be cleaner in the end and will give
us an easy way to do dynamic columns.


git-svn-id: svn://10.0.0.236/trunk@542 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 01:29:34 +00:00
slamm
f40ec969bd Add a new horizontalSizePolicy, XmRESIZE_IF_POSSIBLE.
This resizes the columns to make the fit in the available widget width
without scrollbars.  This is made possible by a new function,
SizeColumnsToFit(), which is adapted from Outliner.cpp:applyDelta().
Also add a resource for minColumnWidth.


git-svn-id: svn://10.0.0.236/trunk@541 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 01:29:30 +00:00
slamm
3dff3d7192 Fix print remote to take file argument.
git-svn-id: svn://10.0.0.236/trunk@540 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 01:29:26 +00:00
ftang
fd67065650 Change unicode mapping table to include EURP mapping
git-svn-id: svn://10.0.0.236/trunk@539 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 01:12:20 +00:00
mccabe
6e2b5dfd5c Makefile hacking to make 'gmake js' work in ns/js/src. Abstracted a
few constants, added -ldl for Linux.  Tested on Irix 6.3, SunOs 5.6,
Linux 2.031.


git-svn-id: svn://10.0.0.236/trunk@538 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-23 00:39:10 +00:00
rickg
2e1b6d50bc final factoring of DTDs, and removal of nsHTMLDTD.*
git-svn-id: svn://10.0.0.236/trunk@537 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 23:56:57 +00:00
ramiro
65743a2139 Move headers from unused to used.
git-svn-id: svn://10.0.0.236/trunk@536 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 23:48:50 +00:00
troy
edc3ab3009 Added nsStylePosition
git-svn-id: svn://10.0.0.236/trunk@535 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 23:29:01 +00:00
troy
88d4749140 Starting to pay attention to CSS positioning properties
git-svn-id: svn://10.0.0.236/trunk@534 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 23:28:39 +00:00
troy
1ebba559f8 Setting up style for CSS positioning
git-svn-id: svn://10.0.0.236/trunk@533 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 23:28:02 +00:00
kipp
db9f98a87f option is a container too
git-svn-id: svn://10.0.0.236/trunk@532 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 23:25:36 +00:00
kipp
f308795f16 Added in support for select/option
git-svn-id: svn://10.0.0.236/trunk@531 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 23:24:43 +00:00
wtc
91e14a02cc Added parentheses around a type cast. Fix provided by Kipp Hickmann
<kipp@netscape.com>.


git-svn-id: svn://10.0.0.236/trunk@530 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 22:39:24 +00:00
kipp
1993f67606 support textarea tag; some support for custom form managers
git-svn-id: svn://10.0.0.236/trunk@529 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 22:12:24 +00:00
kipp
6e00312ecf snapshot
git-svn-id: svn://10.0.0.236/trunk@528 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 22:11:52 +00:00
kipp
9fa973426f Disable noisy blink
git-svn-id: svn://10.0.0.236/trunk@527 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 22:11:21 +00:00
wtc
68e29b395c Fixed build problems on BSD/OS. Some makefiles need to change:
the value of OS_ARCH is changed from BSD_386 to BSD_OS.
In unix.c, we now conditionalize on the macros O_SYNC and O_FSYNC,
as opposed to the platform macros like FREEBSD and BSDI.  We
acknowledge jason@ackley.net for reporting and providing a fix
for this problem.


git-svn-id: svn://10.0.0.236/trunk@526 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 22:10:37 +00:00
kipp
ed2c8297d0 Treat textarea somewhat like title/script/style
git-svn-id: svn://10.0.0.236/trunk@525 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 22:10:27 +00:00
kipp
8626798bbb textarea is not a container
git-svn-id: svn://10.0.0.236/trunk@524 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 22:10:10 +00:00
kipp
3ee4df73f0 Added in TEXTAREA to special tags
git-svn-id: svn://10.0.0.236/trunk@523 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 22:09:46 +00:00
rickg
0e31300630 tweaked the API to be more DTD-like
git-svn-id: svn://10.0.0.236/trunk@517 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 20:22:59 +00:00
rickg
ab6648a9f7 improved newline handling in tables
git-svn-id: svn://10.0.0.236/trunk@516 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 19:46:40 +00:00
rickg
3ef2b1f04d moved nsDeque.* to base\src
git-svn-id: svn://10.0.0.236/trunk@515 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 19:10:39 +00:00
rickg
efaf44175a added DTD and propagation capabilities; dynamic entities, containers, token handlers
git-svn-id: svn://10.0.0.236/trunk@514 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 18:32:49 +00:00
rickg
0c45497a29 added a few new container types
git-svn-id: svn://10.0.0.236/trunk@513 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 18:28:48 +00:00
troy
da88ecd024 Fixed some bustage
git-svn-id: svn://10.0.0.236/trunk@512 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 18:15:48 +00:00
troy
1b67ec5c71 Bumping the revision to 3
git-svn-id: svn://10.0.0.236/trunk@511 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 16:11:12 +00:00
troy
e3d69df234 HackStyleFor no longer sets positionFlags
git-svn-id: svn://10.0.0.236/trunk@510 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 16:07:27 +00:00
troy
112c68d521 Work in progress on absolutely positioned elements
git-svn-id: svn://10.0.0.236/trunk@509 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 16:06:21 +00:00
troy
4fc38901fa Signing
git-svn-id: svn://10.0.0.236/trunk@508 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 16:00:00 +00:00
troy
10ad4051a6 Initial check-in
git-svn-id: svn://10.0.0.236/trunk@507 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 15:59:33 +00:00
troy
45e49986f4 Added support for CSS 'position' property
git-svn-id: svn://10.0.0.236/trunk@506 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 15:46:53 +00:00
troy
21d93f9992 Fixed a problem in SelectorMatches() that was causing id-based selectors
to always match


git-svn-id: svn://10.0.0.236/trunk@505 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 15:43:46 +00:00
peterl
d0badcb54c Switch to nsIPtrs to eliminate leaks (and to test them)
added debug code for ref counts


git-svn-id: svn://10.0.0.236/trunk@502 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 06:41:10 +00:00
peterl
0415cacfc0 WIP moving margin, border & padding out of nsStyleMolecule
added debug code to track ref counts


git-svn-id: svn://10.0.0.236/trunk@501 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 06:40:21 +00:00
peterl
877a811055 WIP moving margin, border & padding out of nsStyleMolecule
git-svn-id: svn://10.0.0.236/trunk@500 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 06:39:35 +00:00
peterl
de9525ad79 Switch to nsIPtr for style context ptrs to eliminate leaks
git-svn-id: svn://10.0.0.236/trunk@499 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 06:39:00 +00:00
peterl
b38d9c1be1 added ref counting debug code
git-svn-id: svn://10.0.0.236/trunk@498 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 06:38:31 +00:00
peterl
90b63547ac WIP moving margin, border & padding out of nsStyleMolecule
Switch to nsIPtr for style context ptrs to eliminate leaks


git-svn-id: svn://10.0.0.236/trunk@497 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 06:37:57 +00:00
peterl
b15ae90fd7 moved border out of nsStyleMolecule
git-svn-id: svn://10.0.0.236/trunk@496 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 06:36:28 +00:00
peterl
512927bf20 WIP moving border, margin & padding out of nsStyleMolecule
git-svn-id: svn://10.0.0.236/trunk@495 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 06:33:35 +00:00
peterl
748b39e5a7 made GetStyleContext work with a null pres context
git-svn-id: svn://10.0.0.236/trunk@494 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 06:32:55 +00:00
peterl
69ef005d1a WIP removing border, margin & padding from nsStyleMolecule
git-svn-id: svn://10.0.0.236/trunk@493 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 06:32:17 +00:00
beard
929fd65dab AllocateMenuID
git-svn-id: svn://10.0.0.236/trunk@490 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 02:18:55 +00:00
beard
c0f4e071af nsPluginInstancePeer::AllocateMenuID
git-svn-id: svn://10.0.0.236/trunk@489 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 02:18:25 +00:00
beard
c95f92b87b FE_AllocateMenuID
git-svn-id: svn://10.0.0.236/trunk@488 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 02:13:46 +00:00
beard
4aae1c1b97 npn_allocateMenuID.
git-svn-id: svn://10.0.0.236/trunk@487 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 02:13:16 +00:00
beard
7b7ebc61c5 SetPositioned now takes a Boolean argument, added ObeyCommand for plugin menus, added menu ID allocation.
git-svn-id: svn://10.0.0.236/trunk@486 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 02:12:12 +00:00
beard
d85affb0f5 Added FE_AllocateMenuID, and CPluginWindow wrapper class for top-level plugin windows.
git-svn-id: svn://10.0.0.236/trunk@485 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 02:10:33 +00:00
beard
4c0050a1e1 Added support for dynamic allocation of menu IDs for plugins.
git-svn-id: svn://10.0.0.236/trunk@484 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 02:08:49 +00:00
beard
5f4e30053f Changes for plugins history.
git-svn-id: svn://10.0.0.236/trunk@483 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 02:07:52 +00:00
gagan
f55d568b04 A mechanism to flush out all authorizations in a session. Added "about:logout"
A-montulli/R-valeski. Thanks to Kit Knox (kit@cn1.connectnet.com)


git-svn-id: svn://10.0.0.236/trunk@482 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 01:03:41 +00:00
scullin
7dfe47d08b NSPR related changes submitted by wtc.
git-svn-id: svn://10.0.0.236/trunk@481 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-22 00:05:08 +00:00
hshaw
3ceac51fd3 Temporary modules to work with mozilla vs ns
git-svn-id: svn://10.0.0.236/trunk@480 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 23:28:37 +00:00
troy
8fa41c7a75 Changed space manager to pass in the frame that's associated with a block
of unavailable space


git-svn-id: svn://10.0.0.236/trunk@479 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 23:06:41 +00:00
sar
e8bbc46ebb type-o DEPT not DEPTH
git-svn-id: svn://10.0.0.236/trunk@478 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 22:07:07 +00:00
sar
7ff412e9dc change MOZ_SRC references to DEPTH
git-svn-id: svn://10.0.0.236/trunk@477 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 21:46:46 +00:00
sar
4292b1f9d5 change MOZ_SRC references to DEPTH
git-svn-id: svn://10.0.0.236/trunk@476 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 21:38:43 +00:00
sar
74864edf0d change MOZ_SRC references to DEPTH
git-svn-id: svn://10.0.0.236/trunk@473 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 21:22:54 +00:00
scullin
23fe55339a Signed.
git-svn-id: svn://10.0.0.236/trunk@471 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 20:11:22 +00:00
scullin
6abe902d24 Added
git-svn-id: svn://10.0.0.236/trunk@470 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 20:10:59 +00:00
ramiro
625f4a1818 Make sure the indicator widget is always at the WidgetList tail.
git-svn-id: svn://10.0.0.236/trunk@468 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 19:11:20 +00:00
scullin
759014f170 Fix release mode bustage.
git-svn-id: svn://10.0.0.236/trunk@466 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 18:25:52 +00:00
ramiro
f0c7de40ac Prevent toolbars from screwing with private XfeManager components.
git-svn-id: svn://10.0.0.236/trunk@465 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 18:14:13 +00:00
scullin
13b5f479b4 Don't hard-code the date.exe path, use unix_date.exe instead.
git-svn-id: svn://10.0.0.236/trunk@464 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 18:04:41 +00:00
ramiro
8e02d65602 Add XfeIsPrivateComponent().
Test whether a widget is a private component of an XfeManager parent.


git-svn-id: svn://10.0.0.236/trunk@463 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 17:57:20 +00:00
wtc
8c58ba330b Merged the makefile changes from Netscape's internal development version
of NSPR to the public ns/nsprpub on mozilla.org.
Removed ns/nsprpub/tools/winsock.lib, which should not have been
released.  This file can be generated from winsock.dll by following
the NSPR build instructions for Windows 3.11 at
http://www.mozilla.org/docs/refList/refNSPR/win16.html.


git-svn-id: svn://10.0.0.236/trunk@458 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 17:21:53 +00:00
valeski
dd762d0835 compiler warning fix (paren inclusion) submitted by dkindred@cmu.edu . approved/rev'd by nisheeth
git-svn-id: svn://10.0.0.236/trunk@457 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 17:17:35 +00:00
buster
396106f433 THEAD and TFOOT tags enabled
git-svn-id: svn://10.0.0.236/trunk@456 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 16:36:46 +00:00
ramiro
3c3218410b New and improved filing of bookmarks to Personal Toolbar.
git-svn-id: svn://10.0.0.236/trunk@455 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 16:18:00 +00:00
ramiro
bfb530894b Move fe_DestroyWidgetTree() to XfeWidgets/MenuUtils.c as
XfeDestroyMenuWidgetTree().  Make it safe for killing private components.


git-svn-id: svn://10.0.0.236/trunk@454 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 15:52:01 +00:00
ramiro
2ed5147535 Make it more paranoid.
git-svn-id: svn://10.0.0.236/trunk@453 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 15:25:45 +00:00
ramiro
5ea1eb2a69 Add XfeDestroyMenuWidgetTree().
git-svn-id: svn://10.0.0.236/trunk@452 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 15:24:01 +00:00
ramiro
2c5d76fa0e Handle bogus input for XfeCascadeGetSubMenu().
git-svn-id: svn://10.0.0.236/trunk@451 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 14:55:16 +00:00
ramiro
b1b68d08bb Add XfeToolBarGetLastItem().
git-svn-id: svn://10.0.0.236/trunk@450 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 13:29:37 +00:00
ramiro
56e18cd222 Removed unused combobox dir and define.
git-svn-id: svn://10.0.0.236/trunk@449 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 12:46:48 +00:00
ramiro
37a40cb9ee Update for indicator support. Dont hardcode button layout.
git-svn-id: svn://10.0.0.236/trunk@448 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 12:41:46 +00:00
ramiro
f14e1d2bd3 Dont hardcode button layout in XfeCreateLoadedToolBar. Update Makefile for
XfeWidgets.mk.


git-svn-id: svn://10.0.0.236/trunk@447 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 12:39:49 +00:00
ramiro
cd17caa7f8 Improve the indicator support.
git-svn-id: svn://10.0.0.236/trunk@446 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 12:38:44 +00:00
timm
449564289e Add "MOZ_INSTALL_DIR" support, change to move asw.jar to as_html directly
git-svn-id: svn://10.0.0.236/trunk@445 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 07:01:03 +00:00
timm
b45b7eeb9d Lots of changes for 2 step
git-svn-id: svn://10.0.0.236/trunk@444 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 06:59:12 +00:00
timm
bb5f73dcbd Make a package "netscape.asw" from the progress bar applet
git-svn-id: svn://10.0.0.236/trunk@443 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 06:58:48 +00:00
timm
9b8a2de5b4 Fix to make a "signed" dir as we do with the java plugin
(only way signpages.pl will work with this code, Signtool doesn't work for various reasons)


git-svn-id: svn://10.0.0.236/trunk@442 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 06:58:06 +00:00
timm
eeae5346cf Added modem monitoring for first step of 2 step
git-svn-id: svn://10.0.0.236/trunk@441 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 06:57:13 +00:00
timm
a3eab4b272 Lots of changes for 2step
git-svn-id: svn://10.0.0.236/trunk@440 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 06:56:36 +00:00
timm
b125254b26 Remove TABLE
git-svn-id: svn://10.0.0.236/trunk@439 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 06:56:11 +00:00
timm
65b41547df Add "RegRoot" entry
git-svn-id: svn://10.0.0.236/trunk@438 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 06:54:47 +00:00
timm
97b3719301 Changes to match changes on server side
git-svn-id: svn://10.0.0.236/trunk@437 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 06:53:38 +00:00
hshaw
9d19e3dacb Removed dependency on sun-java/config/rules.mak
git-svn-id: svn://10.0.0.236/trunk@436 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 06:49:20 +00:00
hshaw
b0d28a5761 Remove dependency on sun-java/config/rules.mak
git-svn-id: svn://10.0.0.236/trunk@435 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 06:48:41 +00:00
hshaw
b7eca65112 Applet is a private component and hence removed
git-svn-id: svn://10.0.0.236/trunk@434 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 06:48:15 +00:00
hshaw
cea6b4dbe9 Change JAVA ifdef's to OJI to distinguish between OJI and tightly integrated JAVA
git-svn-id: svn://10.0.0.236/trunk@433 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 06:47:20 +00:00
hshaw
2c9e7fcfdd Remove dependency on sun-java/config/rules.mak.
git-svn-id: svn://10.0.0.236/trunk@432 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 06:45:01 +00:00
hshaw
b9599cb12d Move library creation to libs phase, cause jpeg to depend on dist/public vs reaching into sun-java for headers
git-svn-id: svn://10.0.0.236/trunk@431 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 06:43:56 +00:00
hshaw
5bf2f64c6d Fix problem with dependency checking of AWT11 class files
git-svn-id: svn://10.0.0.236/trunk@430 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 06:42:48 +00:00
hshaw
d108d8cf64 Add NS_DEPTH to list of macros processed by mantomak
git-svn-id: svn://10.0.0.236/trunk@429 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 06:41:47 +00:00
hshaw
71d9cfe64d Make -DNO_SECURITY independent of MOZ_LITE/MEDIUM - hshaw/sudu
git-svn-id: svn://10.0.0.236/trunk@427 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 06:40:35 +00:00
brade
a1b5602717 minimize references to CStr255 class; fix some small memory leaks
git-svn-id: svn://10.0.0.236/trunk@426 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 04:47:44 +00:00
troy
227438369f Fixed column's incremental reflow function to properly handle margins
git-svn-id: svn://10.0.0.236/trunk@425 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 04:27:34 +00:00
brade
61d29b0ffe set pensize in drawing cell borders (if empty/zero-border and special selection or selected)
git-svn-id: svn://10.0.0.236/trunk@424 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 03:30:56 +00:00
troy
2658fcef80 Made sure pseudo frames get a top and bottom margin of 0
git-svn-id: svn://10.0.0.236/trunk@423 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 03:16:11 +00:00
ramiro
5d3257bb1d Un hard code /usr/lib/libm.a. Replace with -lm. (Linux)
git-svn-id: svn://10.0.0.236/trunk@421 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 00:52:35 +00:00
ramiro
b70b9be02d Update to 1998.
git-svn-id: svn://10.0.0.236/trunk@420 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 00:51:45 +00:00
peterl
2facdedae8 added spacing and border structs
git-svn-id: svn://10.0.0.236/trunk@419 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-21 00:02:44 +00:00
troy
e669c44ba0 Changed the space manager interface to return trapezoids instead
of rects


git-svn-id: svn://10.0.0.236/trunk@418 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-20 23:53:47 +00:00
montulli
164ebfb4a8 update cvpics.c to new streams API
git-svn-id: svn://10.0.0.236/trunk@417 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-20 22:50:15 +00:00
buster
530ef4a79a table performance and minor bug fixes.
git-svn-id: svn://10.0.0.236/trunk@416 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-20 22:49:15 +00:00
troy
097598d42c Fixed problem of hitting an assert when encountering an incomplete
frame when reflowing appended children


git-svn-id: svn://10.0.0.236/trunk@415 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-20 20:24:25 +00:00
troy
bec18bf03a Changed to using continuing frames for runaround of left/right floaters
git-svn-id: svn://10.0.0.236/trunk@414 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-20 19:56:35 +00:00
troy
d527779823 Changed to get nsIRunaround directly rather than use ReflowChild()
git-svn-id: svn://10.0.0.236/trunk@413 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-20 19:55:45 +00:00
wtc
99db30744f Eliminated compiler warnings. Fixed by Rick Osborne <rick@spacey.net>.
git-svn-id: svn://10.0.0.236/trunk@412 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-20 19:04:42 +00:00
wtc
73f5043417 Eliminated compiler warnings. Fixed by Rick Osborne <rick@stacey.net>.
git-svn-id: svn://10.0.0.236/trunk@411 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-20 18:58:25 +00:00
wtc
fb487199ca Declare PrintUsage() to return void. Fixed by Rick Osborne
<rick@spacey.net>.


git-svn-id: svn://10.0.0.236/trunk@410 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-20 18:55:32 +00:00
pinkerton
92017a85b5 Remove EstablishPort() override, another remaining vestage of Kelly.
git-svn-id: svn://10.0.0.236/trunk@409 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-20 16:18:24 +00:00
pinkerton
ef7ae56817 fix build bustage for guha.
git-svn-id: svn://10.0.0.236/trunk@408 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-20 16:08:47 +00:00
troy
c6bcea0c20 Made it so that continuing frames have a top margin of 0
git-svn-id: svn://10.0.0.236/trunk@407 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-20 04:37:49 +00:00
guha
c3a08849e5 More Sitemap related fixes
git-svn-id: svn://10.0.0.236/trunk@397 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-20 00:39:11 +00:00
ramiro
e6302e9ad0 Un hardcode XmINDICATOR_DONT_SHOW.
git-svn-id: svn://10.0.0.236/trunk@394 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-19 17:36:48 +00:00
ramiro
fdfce3c6c9 Fix typos.
git-svn-id: svn://10.0.0.236/trunk@393 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-19 16:15:00 +00:00
ramiro
8f728e3aaa Update for new XmNindicatorPosition resource.
git-svn-id: svn://10.0.0.236/trunk@392 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-19 16:14:30 +00:00
ramiro
3c578592a1 Add XmNindicatorPosition resource. For toolbar dropping fedback.
git-svn-id: svn://10.0.0.236/trunk@391 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-19 16:13:54 +00:00
ramiro
2003def889 Add XmNnumPrivateComponents resource.
git-svn-id: svn://10.0.0.236/trunk@390 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-19 16:12:26 +00:00
ramiro
522bc316af Fix a core dump on resizing the toolbox. The problem was a recursive geometry
call into PreferredGeometry().  Fixed by plugin in the trivial geomtry manager
instead of the one that does complicated things.


git-svn-id: svn://10.0.0.236/trunk@389 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-19 11:20:17 +00:00
ramiro
a6efe6a940 Add some geometry debugging assertions and comments.
git-svn-id: svn://10.0.0.236/trunk@388 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-19 11:16:43 +00:00
troy
b16f96084a Commented out the hack that explicitly set the P top margin since that's
now handled using CSS


git-svn-id: svn://10.0.0.236/trunk@381 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-19 05:06:41 +00:00
troy
ba24cf5205 Added code to handle CSS margin properties
git-svn-id: svn://10.0.0.236/trunk@374 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-18 22:16:37 +00:00
troy
a7dc1c48ab Fixed a problem where mLastContentIsComplete wasn't getting set right
for block-level elements


git-svn-id: svn://10.0.0.236/trunk@373 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-18 22:06:05 +00:00
troy
6579aae2d9 Fixed a bug I introduced in the previous checkin
git-svn-id: svn://10.0.0.236/trunk@370 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-18 05:03:04 +00:00
kmcclusk
fc11da3381 Changed SetBorderStyle to work with child windows only
git-svn-id: svn://10.0.0.236/trunk@369 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-18 00:27:48 +00:00
kmcclusk
00ad257db0 Added SetBorderStyle and SetTitle to nsIWidget
git-svn-id: svn://10.0.0.236/trunk@368 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-17 23:45:07 +00:00
troy
0246c9bb5c Changed IsSplittable to have three return values
git-svn-id: svn://10.0.0.236/trunk@367 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-17 23:08:20 +00:00
pinkerton
384524dbde Added CAutoCompleteURLEditField from Paul Chen. (rev sdagley, appr sdagely).
git-svn-id: svn://10.0.0.236/trunk@366 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-17 22:41:56 +00:00
pinkerton
87f5fe1107 Fix 2 const problems for Kathy (rev sdagley, appr sdagely).
git-svn-id: svn://10.0.0.236/trunk@365 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-17 22:41:09 +00:00
pinkerton
5d0fd32cd3 Remove 200K of icons that are no longer necessary.
git-svn-id: svn://10.0.0.236/trunk@364 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-17 22:40:52 +00:00
pinkerton
e062313359 When HTML area resizes, show arrow cursor in case it can take a while (like page with big tables).
git-svn-id: svn://10.0.0.236/trunk@363 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-17 22:40:30 +00:00
pinkerton
d416a91e4b No longer using extra icons for hilighted and disabled state, but drawing them with toolbox transform modes.
git-svn-id: svn://10.0.0.236/trunk@362 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-17 22:39:57 +00:00
pinkerton
050a3b89b3 change class_id of location bar's edit field to new autocomplete class (rev sdagley, appr sdagely).
git-svn-id: svn://10.0.0.236/trunk@361 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-17 22:39:12 +00:00
pinkerton
72bb2b261f register Paul's autoURLcompletion stuff. (rev sdagley, appr sdagely).
git-svn-id: svn://10.0.0.236/trunk@360 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-17 22:39:11 +00:00
pinkerton
35fe2787f3 For guha. Fixes crashes at startup.
git-svn-id: svn://10.0.0.236/trunk@359 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-17 22:33:56 +00:00
pinkerton
16734fb281 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@358 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-17 22:28:59 +00:00
cmanske
386e608fa2 Fixed problem with inserting at nIndex=0 in Growable array
git-svn-id: svn://10.0.0.236/trunk@357 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-17 21:49:18 +00:00
mlm
d6bfc7f264 Oops - back out checkin from wrong tree
git-svn-id: svn://10.0.0.236/trunk@356 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-17 21:42:16 +00:00
mlm
1eaf5924da Minor nit fixes that I intended to check in before, reviewed by Brendan
git-svn-id: svn://10.0.0.236/trunk@355 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-17 21:37:22 +00:00
cmanske
ccde004936 Fixed Table Editing bugs in Composer
git-svn-id: svn://10.0.0.236/trunk@351 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-17 21:34:20 +00:00
cmanske
84fb534d61 Fixed Table Editing bugs in Composer. Thanks to donwulff@iki.fi for finding a bug
git-svn-id: svn://10.0.0.236/trunk@350 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-17 21:32:18 +00:00
timm
eca6a1294c First Checked In.
git-svn-id: svn://10.0.0.236/trunk@349 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-17 16:34:18 +00:00
ftang
281414b012 add big5 and gb2312 charset name for free font found at ifcss.org site
git-svn-id: svn://10.0.0.236/trunk@348 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-17 02:56:00 +00:00
troy
c394172a68 Cleaned up some logic
git-svn-id: svn://10.0.0.236/trunk@347 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-17 01:47:21 +00:00
troy
fd68898ebd Changed nsIFrame member functions to return a nsresult
git-svn-id: svn://10.0.0.236/trunk@346 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-17 01:41:24 +00:00
dario
318aac7f83 fixing global object finalization
git-svn-id: svn://10.0.0.236/trunk@345 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-17 01:35:54 +00:00
dario
63354f30cf fixing js capitalization and finalize methods
git-svn-id: svn://10.0.0.236/trunk@344 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-17 01:32:07 +00:00
dario
3ea56286d7 changing help menu text
git-svn-id: svn://10.0.0.236/trunk@343 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-17 01:29:45 +00:00
valeski
514d65e6fd patch from dkindred@cmu.edu. Parenthesis inclusion and a printf formatting snag. rev'd by gagan
git-svn-id: svn://10.0.0.236/trunk@342 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-17 00:33:25 +00:00
kmcclusk
766b20eb76 Added a tab widget
git-svn-id: svn://10.0.0.236/trunk@341 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-17 00:16:11 +00:00
wtc
0c00bf793f Ported to Linux/m68k. The patches were kindly provided by
Jes Sorensen <Jes.Sorensen@cern.ch>.


git-svn-id: svn://10.0.0.236/trunk@340 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-16 22:56:27 +00:00
pinkerton
edcb247141 Use UGAColorRamp instead of hardcoding colors. Added a lot of code for supporting drag feedback on the selector bar to indicate where new workspaces will be created. (rev sdagley, appr sdagley)
git-svn-id: svn://10.0.0.236/trunk@339 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-16 22:29:00 +00:00
pinkerton
c309d9ed0e API changes and lots of work to try to get translucent dragging to work (still commented out, though). Did fix the solid gray drag areas to just be the outlines, though. (rev sdagley, appr sdagley)
git-svn-id: svn://10.0.0.236/trunk@338 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-16 22:28:09 +00:00
pinkerton
65efea39cc API change in CIconTextSuite to use string instead of cstring. Also using UGAColorRamp instead of hardcoding colors. (rev sdagley, appr sdagley)
git-svn-id: svn://10.0.0.236/trunk@337 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-16 22:27:13 +00:00
pinkerton
2b3958dd0a API change in CIconTextSuite to use string not cstring (rev sdagley, appr sdagley)
git-svn-id: svn://10.0.0.236/trunk@336 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-16 22:26:44 +00:00
pinkerton
903b7549bd Fix 2 places where I was assuming the NavCenter was present when it wasn't. (rev sdagley, appr sdagley)
git-svn-id: svn://10.0.0.236/trunk@335 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-16 22:26:12 +00:00
buster
369b61da86 removed noisy debug
git-svn-id: svn://10.0.0.236/trunk@334 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-16 22:25:09 +00:00
peterl
c868a04e01 added a style hack to get P align attributes to work again
git-svn-id: svn://10.0.0.236/trunk@333 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-16 22:21:45 +00:00
buster
b4bffd274b simple tables now paginate nicely. Some more complex tables
also paginate ok, though resizing in paginated mode doesn't work yet.
Captions still don't work.


git-svn-id: svn://10.0.0.236/trunk@332 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-16 22:21:32 +00:00
pinkerton
59899fad1d checked "merge into output" on non-debug targets for XMLPPCLib. (appr sdagley)
git-svn-id: svn://10.0.0.236/trunk@331 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-16 22:18:33 +00:00
ftang
ce3851c572 Add cp1258 tables
git-svn-id: svn://10.0.0.236/trunk@330 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-16 21:57:10 +00:00
peterl
4ddb399190 clear web widget container before releasing it (fix leak)
git-svn-id: svn://10.0.0.236/trunk@329 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-16 21:51:59 +00:00
peterl
636d9f383e fix leaks
git-svn-id: svn://10.0.0.236/trunk@328 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-16 21:51:16 +00:00
peterl
f8e6ce5273 fix memory leaks
git-svn-id: svn://10.0.0.236/trunk@327 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-16 21:49:49 +00:00
peterl
c795eadf55 changed SetContentSink to do proper ref counting
git-svn-id: svn://10.0.0.236/trunk@326 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-16 21:48:02 +00:00
peterl
08c59feb52 fixed memory leaks in nsAutoString
git-svn-id: svn://10.0.0.236/trunk@325 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-16 21:47:17 +00:00
guha
5d714270af Fix sitemap bug reported by Pinkerton
git-svn-id: svn://10.0.0.236/trunk@324 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-16 21:29:27 +00:00
kostello
16a3417e18 Clean up (we were leaking the DocLoader -- dooh!)
git-svn-id: svn://10.0.0.236/trunk@323 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-16 21:23:48 +00:00
vidur
8c69e2b149 Fixed compiler warnings. Patch submitted by Rick Osborne (rick@spacey.net)
git-svn-id: svn://10.0.0.236/trunk@322 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-16 21:23:25 +00:00
kostello
d6e1df986c Added nsDocLoader and hooked it into the viewer's winmain.
If the MOZ_PURIFY_TEST environment variable is set, then when the
viewer is launched and all the test documents will be loaded.
After the test documents are loaded, the application will exit.


git-svn-id: svn://10.0.0.236/trunk@321 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-16 19:42:34 +00:00
pinkerton
e88b873b54 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@320 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-16 18:33:56 +00:00
rickg
04533b2f38 added 'marker-style' entities and fixed a few bugs
git-svn-id: svn://10.0.0.236/trunk@319 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-16 08:18:15 +00:00
rickg
b38724544f added runtime 'marker-style' entities and fixed a few bugs.
git-svn-id: svn://10.0.0.236/trunk@318 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-16 07:22:40 +00:00
briano
8b0c46947a Fixed the Emacs tags rules to recognize C++ sources as well. Thanks to Todd Larason (jtl@molehill.org).
git-svn-id: svn://10.0.0.236/trunk@317 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 23:56:45 +00:00
briano
2344b982ad Fixed the npglue.c screwup. Should've been npglue.cpp.
git-svn-id: svn://10.0.0.236/trunk@315 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 22:07:20 +00:00
kipp
f8027d3868 Added missing env doc
git-svn-id: svn://10.0.0.236/trunk@314 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 21:45:48 +00:00
michaelp
5449c08895 added docs.
git-svn-id: svn://10.0.0.236/trunk@313 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 20:25:02 +00:00
vidur
d168eb1a45 Documented timer interface
git-svn-id: svn://10.0.0.236/trunk@311 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 19:38:03 +00:00
vidur
732113b4c9 Documenting image library interfaces
git-svn-id: svn://10.0.0.236/trunk@310 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 19:37:44 +00:00
kostello
db8adf9761 Made the demo documents a little prettier
git-svn-id: svn://10.0.0.236/trunk@309 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 19:23:17 +00:00
blythe
19993640ed Fix some compile warnings. Thanks to Rick Osborne (rick@spacey.net)
git-svn-id: svn://10.0.0.236/trunk@308 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 18:59:47 +00:00
dario
7d9b7da232 doc
git-svn-id: svn://10.0.0.236/trunk@307 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 18:55:21 +00:00
kipp
0459378421 new
git-svn-id: svn://10.0.0.236/trunk@306 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 18:27:12 +00:00
kipp
caf6541a1a Updated tarball rules
git-svn-id: svn://10.0.0.236/trunk@305 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 18:14:33 +00:00
rickg
5205f5daea improved documentation in headers
git-svn-id: svn://10.0.0.236/trunk@304 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 17:27:56 +00:00
ramiro
5ef979d313 Add a makefile that actualy works. Update tree4.c for slamm's
XmLTreeDeleteChildren() improvement.
Coded by slamm@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@303 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 09:19:34 +00:00
ramiro
647799ff41 Fix problem in grid delete callback. It didn't set the row or column
position.  Plus, it updated the row/column count before making the callback,
so you could no longer access the userData with XtVaGetValues.

Also add XmLTreeDeleteChildren() to XmLTree.

This code written by Steve Lamm <slamm@netscape.com> and reviewed by
ramiro.


git-svn-id: svn://10.0.0.236/trunk@302 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 09:15:00 +00:00
ramiro
290d1ac464 fix name in comment
git-svn-id: svn://10.0.0.236/trunk@301 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 09:10:25 +00:00
ramiro
b20667bef6 first checked in
git-svn-id: svn://10.0.0.236/trunk@300 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 09:09:52 +00:00
ramiro
3c4997aaed Use DLL_SUFFIX from ns/config instead of random hack.
git-svn-id: svn://10.0.0.236/trunk@299 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 09:08:25 +00:00
rpotts
492f37556e Added netlib to the list of public directories to doc++
git-svn-id: svn://10.0.0.236/trunk@298 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 07:59:46 +00:00
nisheeth
2db6cf3ed9 Fix for text overflowing inside nested tables. Fix for background colors not
being inherited properly inside tables.


git-svn-id: svn://10.0.0.236/trunk@296 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 05:28:39 +00:00
nisheeth
6d0478a85d Fix for nested comments. Thanks to Jan Kroken (jankr@nntp.ifi.uio.no) for the
patch.


git-svn-id: svn://10.0.0.236/trunk@295 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 04:13:55 +00:00
nisheeth
e31dc91228 LO_UnlockLayout() was being called multiple times in LO_Reflow().
Thanks to Nicholas A. Ambrose (nicka@interdyn.com) for the patch.


git-svn-id: svn://10.0.0.236/trunk@294 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 04:01:00 +00:00
nisheeth
d5f9edd671 Documentation patch. Thanks to Pete Bevin (moose@bestiary.com) for submitting
it.


git-svn-id: svn://10.0.0.236/trunk@293 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 03:54:08 +00:00
ramiro
be8f9bec65 Remove unuised XfeToolBoxForm*() hackery. Chrome widget does all the
magic now.


git-svn-id: svn://10.0.0.236/trunk@292 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 02:08:30 +00:00
ramiro
5bc5ea684f The Great Chrome Rewrite of 1998. Use a chrome manager instead of
doAttachments().  Fixes numerous toolbox bugs and completely simplifies
the way xfe does chrome.  Reviewed by slamm.


git-svn-id: svn://10.0.0.236/trunk@291 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 02:06:22 +00:00
wtc
eab23cb735 In ConvertUnixPathToMacPath, removed the checks that disallow path names
that begin with /bin, /dev, and /etc.  These directories don't have
any special meaning on the Mac and should be allowed.  Thanks to
Mike Pinkerton <pinkerton@netscape.com> for reporting this bug and
providing the fix.


git-svn-id: svn://10.0.0.236/trunk@290 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 01:28:33 +00:00
kipp
b0d9aab4a8 fixed a few typos in the raptor rules
git-svn-id: svn://10.0.0.236/trunk@289 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 01:07:46 +00:00
kipp
75823b0beb Added raptor modules
git-svn-id: svn://10.0.0.236/trunk@288 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 01:05:29 +00:00
wtc
869c2f44aa Ported to HP-UX 9. We acknowledge Richard K. Lloyd <rkl@csc.liv.ac.uk>
for his help.

Files changed: HP-UX.mk, pr/src/Makefile, hpux.c, unix.c, and uxproces.c.
HP-UX.mk: Compare $(basename $(OS_RELEASE)) with A.09 to cover all HP-UX
9 revisions.  Define _PR_NEED_H_ERRNO for HP-UX 9.


git-svn-id: svn://10.0.0.236/trunk@287 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 01:02:00 +00:00
troy
8dd8213152 Removed previous hack, because the real problem with nsHTMLTokens.h was
discovered and fixed


git-svn-id: svn://10.0.0.236/trunk@286 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 00:35:41 +00:00
troy
ce68d1535f Moved inline code for CCommentToken::GetClassName to the .cpp file. This
makes doc++ happy


git-svn-id: svn://10.0.0.236/trunk@285 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 00:33:06 +00:00
pinkerton
5e2a2aeefa First Checked In.
git-svn-id: svn://10.0.0.236/trunk@284 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 00:06:11 +00:00
pinkerton
056ec80331 Draw correctly when in a scroller. Fixed to use local coords correctly and set image size (rev sdagley, appr sdagley)
git-svn-id: svn://10.0.0.236/trunk@283 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 00:05:39 +00:00
pinkerton
4c5fa0d90e Added CScrollerWithArrows.cp (rev sdagley, appr sdagley)
git-svn-id: svn://10.0.0.236/trunk@282 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 00:04:52 +00:00
pinkerton
fe25a89339 Added CStandardFlexTable and CScrollerWithArrows CTYPs. (rev sdagley, appr sdagley)
git-svn-id: svn://10.0.0.236/trunk@281 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 00:04:02 +00:00
pinkerton
a8e2a2dbf5 removed CTYP and CPPB's for CStandardFlexTable because it is no longer just a mail/news thing. It has been moved over to Mozilla_Custom_CPPBs. (rev sdagley, appr sdagley)
git-svn-id: svn://10.0.0.236/trunk@280 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 00:03:33 +00:00
pinkerton
5409f24638 NavCenter selector view now a subview of a custom scroller (rev sdagley, appr sdagley)
git-svn-id: svn://10.0.0.236/trunk@279 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 00:02:39 +00:00
pinkerton
0e3304d6b5 added registration of new CScrollerWithArrows classes. (rev sdagley, appr sdagley)
git-svn-id: svn://10.0.0.236/trunk@278 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-15 00:01:56 +00:00
scullin
cab6b9f131 Put stuff back in that kipp callously destroyed, including our legal
documents.


git-svn-id: svn://10.0.0.236/trunk@277 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 23:50:51 +00:00
troy
7bc10ed2cf Changed doc_raptor to rm nsHTMLTokens.h before running doc++, because that
file is confusing doc++


git-svn-id: svn://10.0.0.236/trunk@276 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 23:27:31 +00:00
kmcclusk
7e317fe3f6 Added doc++ comments to ns/widget/src/windows
git-svn-id: svn://10.0.0.236/trunk@275 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 23:20:49 +00:00
briano
cf0953bd14 Minor addition of some platform-specific PATH info, and some rewording.
git-svn-id: svn://10.0.0.236/trunk@274 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 22:48:20 +00:00
michaelp
7d5df72783 fixed clip region state popping bug.
git-svn-id: svn://10.0.0.236/trunk@273 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 22:42:24 +00:00
dcone
ce477682f7 Added documentation
git-svn-id: svn://10.0.0.236/trunk@272 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 22:20:32 +00:00
kipp
853c1a68c6 one more cleanup of the tarball rules
git-svn-id: svn://10.0.0.236/trunk@271 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 21:54:00 +00:00
michaelp
c0608bc4dd fixed bug where we would double paint any frame that had a view.
git-svn-id: svn://10.0.0.236/trunk@270 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 21:49:29 +00:00
buster
cd9cbaa5c4 documentation changes
git-svn-id: svn://10.0.0.236/trunk@269 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 21:45:28 +00:00
kipp
3f101446d4 Updated tarball rules
git-svn-id: svn://10.0.0.236/trunk@268 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 21:44:21 +00:00
kipp
2b7a6addfa Updated tarball rules
git-svn-id: svn://10.0.0.236/trunk@267 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 21:43:59 +00:00
kipp
99f7bd2235 Updated tarball rules
git-svn-id: svn://10.0.0.236/trunk@266 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 21:43:16 +00:00
kipp
dd8cc4de86 snapshot for win95 test
git-svn-id: svn://10.0.0.236/trunk@265 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 21:38:20 +00:00
danm
8dbba5c5ae clear main frame's tab focus during layout only if laying out the active context r=blythe,hyatt
git-svn-id: svn://10.0.0.236/trunk@264 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 21:34:47 +00:00
kmcclusk
1d0febb8ee Made comments DOC++ compatible
git-svn-id: svn://10.0.0.236/trunk@263 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 21:33:43 +00:00
rods
cf4be90a5b fixed comments
git-svn-id: svn://10.0.0.236/trunk@262 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 20:59:07 +00:00
ftang
a8e7fd2214 Fix bug for FrontPage generated Chinese/Korean pages could not be view by non native system
git-svn-id: svn://10.0.0.236/trunk@261 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 20:49:47 +00:00
kmcclusk
dc0e16b2e8 Modified comments
git-svn-id: svn://10.0.0.236/trunk@260 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 20:49:25 +00:00
ftang
f014fcdab8 Fix bug for FrontPage generated Chinese/Korean page could not be view
on Non Native system


git-svn-id: svn://10.0.0.236/trunk@259 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 20:48:29 +00:00
rods
b376400ee3 fixed comment
git-svn-id: svn://10.0.0.236/trunk@258 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 20:48:14 +00:00
ftang
0afc16de94 Fix CP1250 and CP1253. Thanks Tomas Brodsky <brodsky@cfar.umd.edu> from the net
git-svn-id: svn://10.0.0.236/trunk@257 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 20:42:55 +00:00
dcone
2e165099a3 Added documentation
git-svn-id: svn://10.0.0.236/trunk@256 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 19:56:15 +00:00
rods
7481ae875e fixed comments
git-svn-id: svn://10.0.0.236/trunk@253 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 19:26:42 +00:00
ftang
c0235d8f5f fix feCharSetInfoArray warnning. Thanks djm@indirect.com (Dan McGuirk) from the net
git-svn-id: svn://10.0.0.236/trunk@252 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 19:24:53 +00:00
montulli
07e82980fa bump revision number
git-svn-id: svn://10.0.0.236/trunk@251 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 19:13:11 +00:00
montulli
7532eec4e9 bump rev number
git-svn-id: svn://10.0.0.236/trunk@250 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 19:12:57 +00:00
dario
8c0f85c945 fixing text to be proper terminated
git-svn-id: svn://10.0.0.236/trunk@249 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 19:05:09 +00:00
dario
2cd60a4c27 fixing the js console
git-svn-id: svn://10.0.0.236/trunk@248 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 19:04:25 +00:00
dario
ec37b06fe8 few fixes
git-svn-id: svn://10.0.0.236/trunk@247 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 19:03:54 +00:00
scullin
1436a8c063 Pulls LICENSE and LEGAL, now.
git-svn-id: svn://10.0.0.236/trunk@246 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 19:02:09 +00:00
montulli
f599ffb5d4 initial add of files for additional pics functionality
git-svn-id: svn://10.0.0.236/trunk@245 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 18:48:28 +00:00
ramiro
3466e08171 Mark the hardcoded geometry as HACKERY. We sill fix this later. Its
important that we get the new chrome mechanism out soon.


git-svn-id: svn://10.0.0.236/trunk@244 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 18:26:31 +00:00
dario
62a353f3c9 signing
git-svn-id: svn://10.0.0.236/trunk@243 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 18:24:53 +00:00
dario
406f1e60f7 adding NPL
git-svn-id: svn://10.0.0.236/trunk@242 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 18:16:23 +00:00
dario
85b6df8b9b another js example
git-svn-id: svn://10.0.0.236/trunk@241 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 18:14:55 +00:00
scullin
05329aa11d Pull XP_COM branch of libpref instead of trunk to match UNIX makefile.
git-svn-id: svn://10.0.0.236/trunk@240 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 17:48:47 +00:00
hardts
365c35265b added doc_raptor to makefile
git-svn-id: svn://10.0.0.236/trunk@239 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 17:29:44 +00:00
ramiro
8e3d8ad789 Make the frame shell dimensions something reasonable for the time being.
git-svn-id: svn://10.0.0.236/trunk@238 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 17:01:41 +00:00
karnaze
5e791d5a8a added doc++ comments
git-svn-id: svn://10.0.0.236/trunk@237 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 16:53:16 +00:00
slamm
492a2f3cbf Allocate memory for the url window target because we free it later. Fix from Dan McGuirk <djm@indirect.com>. a=ramiro.
git-svn-id: svn://10.0.0.236/trunk@236 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 16:49:20 +00:00
ramiro
68c20c6807 Update REQUIRES to properly include Microline and XfeWidgets.
git-svn-id: svn://10.0.0.236/trunk@235 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 15:03:50 +00:00
ramiro
2df2135816 Request geometry request when geom flag gets set in the ConstraintSetValues
operation.


git-svn-id: svn://10.0.0.236/trunk@234 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 14:59:44 +00:00
ramiro
e84b770526 XfeChrome is now a used widget.
git-svn-id: svn://10.0.0.236/trunk@233 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 14:58:51 +00:00
ramiro
b67236dcde Add a blurb for previous checkin.
git-svn-id: svn://10.0.0.236/trunk@232 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 14:45:39 +00:00
ramiro
006183c1ef Layout children/components on geometry management.
git-svn-id: svn://10.0.0.236/trunk@231 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 14:43:52 +00:00
ramiro
7a4cf23d4b Implement PreferredGeometry(). Add a good GeometryManager().
git-svn-id: svn://10.0.0.236/trunk@230 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 14:43:12 +00:00
ramiro
8b793bfe7c Add _XfeLiberalGeometryManager() and _XfeMakeGeometryRequest().
git-svn-id: svn://10.0.0.236/trunk@229 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 10:49:34 +00:00
scullin
c10fecc3bc clobber -> clobber_all
git-svn-id: svn://10.0.0.236/trunk@228 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 05:56:38 +00:00
scullin
8434312c2a Fix pref pull
git-svn-id: svn://10.0.0.236/trunk@227 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 02:57:21 +00:00
selmer
7ccd35ae17 Reworked to defeat LiveConnect unsatisfied link error
git-svn-id: svn://10.0.0.236/trunk@226 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 02:51:39 +00:00
scullin
b51bdc3146 Added standalone image lib define, mirrors one in config.mak. Approved
by briano.


git-svn-id: svn://10.0.0.236/trunk@225 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 02:01:29 +00:00
scullin
2c442cc28e IRIX build fixes.
git-svn-id: svn://10.0.0.236/trunk@224 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 01:58:11 +00:00
scullin
3300083588 Signed.
git-svn-id: svn://10.0.0.236/trunk@222 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 01:49:52 +00:00
scullin
054293fc6d UNIX version of raptor.mak
git-svn-id: svn://10.0.0.236/trunk@221 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 01:49:20 +00:00
rjc
31b9249a6d Appletalk is Mac only.
git-svn-id: svn://10.0.0.236/trunk@220 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 01:31:02 +00:00
rjc
886a1806eb (Mac) Appletalk data source.
git-svn-id: svn://10.0.0.236/trunk@219 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 01:26:35 +00:00
rjc
77014e9638 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@218 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 01:24:59 +00:00
rjc
f2d7ac5a6b Fix bugs with makeNewID().
git-svn-id: svn://10.0.0.236/trunk@217 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 01:24:06 +00:00
wtc
97add7e185 Deleted the unused variable 'count' in _PR_MD_INTERVAL_PER_SEC(). We
acknowledge Rick Osborne <rick@spacey.net> for reporting this problem
and suggesting a fix.


git-svn-id: svn://10.0.0.236/trunk@216 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 01:06:32 +00:00
kmcclusk
aeb4450f82 Added/Improved header file comments
git-svn-id: svn://10.0.0.236/trunk@215 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 00:31:59 +00:00
briano
ac0ed0fba1 Added support for M68k Linux. Thanks to Jes Sorensen (Jes.Sorensen@cern.ch) for the patch.
git-svn-id: svn://10.0.0.236/trunk@214 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 00:26:45 +00:00
briano
50d7e27245 Changed 'MACLINUX' back to 'MKLINUX' so the MkLinux builds will work.
Added support for M68k Linux.  Thanks to Jes Sorensen (Jes.Sorensen@cern.ch) for the patch.


git-svn-id: svn://10.0.0.236/trunk@213 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 00:24:56 +00:00
briano
2ab50be569 Changed the 'MACLINUX' macro reference to 'MKLINUX'. Again.
git-svn-id: svn://10.0.0.236/trunk@212 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 00:15:11 +00:00
relliott
69177801f3 Bumping revision number to 3.0
git-svn-id: svn://10.0.0.236/trunk@211 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 00:04:23 +00:00
briano
1a367fdb4e Changed the 'MACLINUX' macro reference to 'MKLINUX'.
git-svn-id: svn://10.0.0.236/trunk@210 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 00:00:42 +00:00
ftang
55366425af (This is for the previous checkin) Fix warnning. Thanks tenthumbs@cybernex.net
git-svn-id: svn://10.0.0.236/trunk@209 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-14 00:00:06 +00:00
ftang
ff934ff85d Fix one warning. Thanks for
git-svn-id: svn://10.0.0.236/trunk@208 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 23:58:48 +00:00
briano
08aac7ea86 Changed the 'MACLINUX' macro reference to 'MKLINUX'. Again.
git-svn-id: svn://10.0.0.236/trunk@207 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 23:56:35 +00:00
relliott
767fcda0dd First release of universal localization program kits
git-svn-id: svn://10.0.0.236/trunk@206 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 23:32:42 +00:00
cyeh
442958e53d add the README directory to all platforms by adding it to MozillaCommon
git-svn-id: svn://10.0.0.236/trunk@205 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 23:26:12 +00:00
cyeh
605596111c First Checked In.
git-svn-id: svn://10.0.0.236/trunk@204 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 23:10:06 +00:00
cyeh
da3e5b6210 adding build documentation to tree
git-svn-id: svn://10.0.0.236/trunk@203 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 23:08:30 +00:00
pinkerton
91dd9f2a06 Draw menu separators in tree with icon, but no text (used to have text that said "<Separator>" and no icon). (rev sdagley, appr sdagley).
git-svn-id: svn://10.0.0.236/trunk@202 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 22:55:56 +00:00
wtc
c0ff862b36 Got rid of compiler warnings. We acknowledge the help of Nathan
Torkington <gnat@frii.com>.


git-svn-id: svn://10.0.0.236/trunk@201 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 22:55:27 +00:00
pinkerton
0f2d6fead4 Fix for dragging toolbar over the finder and releasing mouse, which before would crash the Finder. (rev sdagley, appr sdagley)
git-svn-id: svn://10.0.0.236/trunk@200 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 22:54:57 +00:00
wtc
95bc804e1c Got rid of compiler warnings. We acknoweldge the help of Nathan
Torkington <gnat@frii.com>.


git-svn-id: svn://10.0.0.236/trunk@199 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 22:49:10 +00:00
wtc
0846173c2b localtime_r is declared on Solaris only if _REENTRANT is defined.
git-svn-id: svn://10.0.0.236/trunk@198 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 22:48:07 +00:00
wtc
faee9ac904 Got rid of compiler warnings. We acknowledge the help of Nathan
Torkington <gnat@frii.com>.


git-svn-id: svn://10.0.0.236/trunk@197 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 22:46:48 +00:00
cyeh
a925c92350 checking in sources to customized version of gmake
git-svn-id: svn://10.0.0.236/trunk@196 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 22:35:47 +00:00
cyeh
ee9cb51517 adding source to shmsdos
git-svn-id: svn://10.0.0.236/trunk@195 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 22:30:34 +00:00
cyeh
ca95fefb7a adding in source for uname
git-svn-id: svn://10.0.0.236/trunk@194 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 22:29:30 +00:00
wtc
3bf56ac245 Fixed printf format mismatch problems. We acknowledge the help of
Nathan Torkington <gnat@frii.com>.


git-svn-id: svn://10.0.0.236/trunk@193 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 22:26:32 +00:00
kipp
e92090ec86 made more robust by cd'ing into the correct top level dir before each build rule
git-svn-id: svn://10.0.0.236/trunk@192 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 22:25:36 +00:00
wtc
d701ff30a1 In PR_GetSpecialFD, cast the PRSpecialFD variable 'osfd' to int
because some compilers make the enum PRSpecialFD an unsigned int
type and complain that 'osfd' is always >= PR_StandardInput, which
has the value 0.


git-svn-id: svn://10.0.0.236/trunk@191 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 22:25:13 +00:00
wtc
213ccbabb3 Added function declarations to eliminate compiler warnings.
git-svn-id: svn://10.0.0.236/trunk@190 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 22:22:43 +00:00
wtc
81662fa460 Added declaration of _MD_YIELD.
git-svn-id: svn://10.0.0.236/trunk@189 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 22:21:00 +00:00
wtc
e34d99abe7 Fixed compiler warnings, mostly by adding function declarations.
git-svn-id: svn://10.0.0.236/trunk@188 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 22:19:51 +00:00
wtc
cad5ce2d27 Fixed compiler warnings, mostly undeclared functions. We acknoweldge
the help of Nathan Torkington <gnat@frii.com>.


git-svn-id: svn://10.0.0.236/trunk@187 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 22:04:19 +00:00
wtc
bc812c4978 Fixed printf format mismatches. Fixed are provided by Nathan Torkington
<gnat@frii.com>.


git-svn-id: svn://10.0.0.236/trunk@186 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 22:02:11 +00:00
wtc
6be980a494 Fixed compiler warnings, mostly in printf format mismatches. Most of
the fixes are supplied by Nathan Torkington <gnat@frii.com>.


git-svn-id: svn://10.0.0.236/trunk@185 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 22:00:47 +00:00
hshaw
99904c2c02 Remainder of softupdt has been checked into the pub tree. Add the modules references back
git-svn-id: svn://10.0.0.236/trunk@184 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 21:57:19 +00:00
wtc
dd0343d6f1 Removed the -Wno-format compiler switch. We do want to get printf
format mismatch warnings.


git-svn-id: svn://10.0.0.236/trunk@180 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 21:44:55 +00:00
wtc
84996761f9 Do not build pr/tests by default. This shortens the default build
time.  Also, use 'rm -r -f' instead of 'rm -rf' because the 'rm'
command of tcsh.exe on Win32 does not understand clustered command
line options.


git-svn-id: svn://10.0.0.236/trunk@179 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 21:40:18 +00:00
kipp
18cc12f1cc signed
git-svn-id: svn://10.0.0.236/trunk@178 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 21:32:58 +00:00
kipp
5cc8a4677b Removed woofer
git-svn-id: svn://10.0.0.236/trunk@177 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 21:27:25 +00:00
kipp
f2f1dac566 nuked
git-svn-id: svn://10.0.0.236/trunk@176 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 21:27:12 +00:00
kipp
67a9893806 pubbed
git-svn-id: svn://10.0.0.236/trunk@175 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 21:23:46 +00:00
hshaw
dec4926da0 bump rev to 3.1
git-svn-id: svn://10.0.0.236/trunk@173 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 21:12:08 +00:00
kipp
3974563c5e another makefile tweak
git-svn-id: svn://10.0.0.236/trunk@172 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 21:08:14 +00:00
hshaw
ecfecf7a81 Free the lizard
git-svn-id: svn://10.0.0.236/trunk@171 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 21:07:10 +00:00
kipp
68ac3f39fe Repaired build problems w/ layout/base dependencies
git-svn-id: svn://10.0.0.236/trunk@170 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 20:56:42 +00:00
kipp
b821fd8fd2 more files to pull
git-svn-id: svn://10.0.0.236/trunk@168 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 20:50:21 +00:00
kipp
e742fdad6c bug fixed
git-svn-id: svn://10.0.0.236/trunk@167 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 20:39:27 +00:00
kipp
fb1503758e moved to pub
git-svn-id: svn://10.0.0.236/trunk@165 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 20:24:54 +00:00
cyeh
964e345ac3 Add ns/cmd/dialup to Mac and Windows
git-svn-id: svn://10.0.0.236/trunk@164 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 19:18:52 +00:00
guha
3c72e5a9cd Fix the problem with sitemaps going away on page
transition


git-svn-id: svn://10.0.0.236/trunk@163 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 02:00:34 +00:00
ramiro
2e963b1145 Make the local file system browser work on unix. The 'file:///' url
prefix was missing.
Thanks to Dan McGuirk <djm@indirect.com>.


git-svn-id: svn://10.0.0.236/trunk@162 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 01:38:17 +00:00
ramiro
e6edb16eff Add editor back to the preferences and fix the editor startup problem.
Thanks to Dan McGuirk <djm@indirect.com>


git-svn-id: svn://10.0.0.236/trunk@161 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 01:30:26 +00:00
guha
bb88621ddd Sitemap bugfixes.
git-svn-id: svn://10.0.0.236/trunk@147 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-10 21:00:30 +00:00
wtc
3b8b53b99f Declare _MD_EarlyInit() to eliminate 'undeclared function' compiler warning.
Contributed by Nat <gnat@frii.com>.


git-svn-id: svn://10.0.0.236/trunk@138 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-09 19:50:19 +00:00
wtc
be7a3234b7 Fixed 'unused variable' warning for the variable 'nfds' in select()
on local-threads-only platforms.  This is pointed out by many people,
including Nat <gnat@frii.com>.


git-svn-id: svn://10.0.0.236/trunk@137 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-09 19:44:46 +00:00
wtc
e5a65835ea Fixed 'unused variable' compiler warning in prsocket.c. This is pointed
out by many people, including Nat <gnat@frii.com>.


git-svn-id: svn://10.0.0.236/trunk@136 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-09 19:41:13 +00:00
selmer
d3c93b9f3f Add dialup to free source
git-svn-id: svn://10.0.0.236/trunk@131 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-09 04:22:42 +00:00
selmer
b4b851f192 add the ascii files
git-svn-id: svn://10.0.0.236/trunk@130 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-09 04:11:30 +00:00
selmer
91d277d401 add ascii files
git-svn-id: svn://10.0.0.236/trunk@129 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-09 04:07:52 +00:00
selmer
c630e46deb Add binaries with -kb
git-svn-id: svn://10.0.0.236/trunk@128 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-09 03:54:33 +00:00
ramiro
bafa1dd826 Dont change the cursor to a watch when space-ing through a document.
thanks to Darrell Kindred <dkindred@cmu.edu>
reviewed by djw@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@127 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-09 02:41:49 +00:00
cyeh
4d77375663 fix windows bustage removing libcnv compression.
git-svn-id: svn://10.0.0.236/trunk@126 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-09 02:02:37 +00:00
ramiro
8b6045b383 make sure XmNlist gets defined
git-svn-id: svn://10.0.0.236/trunk@125 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-09 01:47:59 +00:00
cyeh
b11c803590 change log, with proper . extension
git-svn-id: svn://10.0.0.236/trunk@124 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-09 01:18:48 +00:00
cyeh
1653020b32 change name to have .html extension
git-svn-id: svn://10.0.0.236/trunk@123 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-09 01:12:31 +00:00
cyeh
67c2ebfd7c add ns/CHANGELOG (history of changes to the repository to default build)
git-svn-id: svn://10.0.0.236/trunk@122 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-09 00:39:10 +00:00
cyeh
ff6653b3bb Remove for legal reasons.
git-svn-id: svn://10.0.0.236/trunk@120 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-09 00:33:14 +00:00
valeski
a885ac9a54 various null checks, fixes 107730, rev'd by malmer
git-svn-id: svn://10.0.0.236/trunk@117 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-09 00:07:08 +00:00
montulli
8612e7e168 fix really small pics bug by calling Illegal_to_underscore
Rev: gagan


git-svn-id: svn://10.0.0.236/trunk@109 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-08 21:23:19 +00:00
pinkerton
644f0dd2e1 Added public DoInlineEditing() (rev sdagley, appr don)
git-svn-id: svn://10.0.0.236/trunk@108 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-08 20:30:13 +00:00
pinkerton
213e41d92d added public DoInlineEdit for the node edit HT event and made RefreshCellRange public (it was protected, but is public in LTreeView). (rev sdagley, appr don)
git-svn-id: svn://10.0.0.236/trunk@107 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-08 20:29:54 +00:00
pinkerton
e942eae6ca Redid workspace selection/shelf notification to fix some bugs. Also now responds to HT's node edit event, though it is still commented out because of redraw problems. Added a slew of comments to make the class (and the messaging scheme) understandable and point out where redraw bugs are. (rev sdagley, appr don)
git-svn-id: svn://10.0.0.236/trunk@106 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-08 20:29:18 +00:00
pinkerton
9abf2be0fa now an LBroadcaster to tell the title area about a change to the current workspace so the name is always correct. (rev sdagley, appr don)
git-svn-id: svn://10.0.0.236/trunk@105 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-08 20:27:48 +00:00
pinkerton
57f4e78bd7 Now current with rewrite of FE/HT messages for opening/closing shelf and setting current workspace. (rev sdagley, appr don)
git-svn-id: svn://10.0.0.236/trunk@104 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-08 20:27:24 +00:00
pinkerton
ceef1596f7 The LCaption in the title area was not correctly bound to the left and the right so it did not grow when the window grew. (rev sdagley, appr don)
git-svn-id: svn://10.0.0.236/trunk@103 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-08 20:26:26 +00:00
pinkerton
1bb93b42df Added a stack-based class for setting/restoring the HT event notification mask (rev sdagley, appr don)
git-svn-id: svn://10.0.0.236/trunk@102 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-08 20:25:51 +00:00
guha
3dbdfee941 2.1 vs 3.1 lossage
git-svn-id: svn://10.0.0.236/trunk@100 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-08 05:34:52 +00:00
guha
2e7ea0fb68 makefile.win fix
git-svn-id: svn://10.0.0.236/trunk@99 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-08 05:06:33 +00:00
cyeh
df6db40c05 Add ns/modules/xml to MozillaAll. per dp. approved donm, ltabb.
git-svn-id: svn://10.0.0.236/trunk@98 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-08 04:59:56 +00:00
guha
17bf49c7a3 Spankage for new XML to build on Mac
git-svn-id: svn://10.0.0.236/trunk@97 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-08 04:48:26 +00:00
guha
107906a9eb Fix Mac bustage by adding required casts
git-svn-id: svn://10.0.0.236/trunk@96 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-08 04:44:28 +00:00
1140 changed files with 198212 additions and 144885 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,123 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef STDAFX_PCH
#define STDAFX_PCH
#define OEMRESOURCE
#if defined(DEBUG_blythe)
// Set up a flag specific to WFE developers in the client
#define DEBUG_WFE
#endif
/* Very windows specific includes.
*/
/* MFC, KFC, RUN DMC, whatever */
#include <afxwin.h>
#include <afxext.h>
#include <afxpriv.h>
#include <afxole.h>
#include <afxdisp.h>
#include <afxodlgs.h>
#ifdef _WIN32
#include <afxcmn.h>
#endif
/* More XP than anything */
#include "xp.h"
#include "fe_proto.h"
#include "fe_rgn.h"
#include "libi18n.h"
#include "xlate.h"
#include "ntypes.h"
#ifdef EDITOR
#include "edttypes.h"
#endif
#include "xpassert.h"
#include "lo_ele.h"
#include "layers.h"
/* Standard C includes */
#ifndef _WIN32
#include <dos.h>
#endif
#include <malloc.h>
#include <direct.h>
#include <stdarg.h>
#include <time.h>
#include <io.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#ifdef DEBUG
#include <assert.h>
#endif
/* Very windows specific includes.
*/
/* WFE needs a layout file */
extern "C" {
#include "layout.h"
}
/* Some common defines. */
#ifndef _AFXDLL
#define new DEBUG_NEW
#endif
/* All front end forward declarations needed to compile. */
#include "forward.h"
/* Front end Casting macros. */
#include "cast.h"
/* General purpose utilities. */
#include "feutil.h"
/* afxData/sysInfo */
#include "sysinfo.h"
/* Some defines we like everywhere. */
#include "resource.h"
#include "defaults.h"
/* The application include and
* Commonly used, rarely changed headers */
#include "ncapiurl.h"
#include "genedit.h"
#include "genframe.h"
#include "genview.h"
#include "gendoc.h"
#include "intlwin.h"
#include "mozilla.h"
#include "cxwin.h"
#include "winproto.h"
#ifdef DEBUG
#ifdef assert
#undef assert
#endif
#define assert(x) ASSERT(x)
#endif
#endif /* STDAFX_PCH */

View File

@@ -0,0 +1,543 @@
#
# 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 Communicator client code, released
# March 31, 1998.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-1999 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
COMPVERSIONDIR = $(DEPTH)/directory/c-sdk
DEFAULT_VENDOR_NAME="Sun Microsystems Inc."
DEFAULT_VENDOR_VERSION=600
LDAPVERS = 60
LDAPVERS_SUFFIX = 6.0
ifndef VENDOR_NAME
VENDOR_NAME = $(DEFAULT_VENDOR_NAME)
endif
ifndef VENDOR_VERSION
VENDOR_VERSION = $(DEFAULT_VENDOR_VERSION)
endif
__BUILD_MARKER = "\"$(VENDOR_VERSION) $(OS_ARCH)$(OS_RELEASE) \
$(USER) $(BUILD_NOTE)\""
DEFINES += -D__BUILD_MARKER=$(__BUILD_MARKER)
ifeq ($(OS_ARCH), WINNT)
COMPONENT_PULL_METHOD=FTP
endif
ifdef HAVE_CCONF
# component tags for internal build only
include $(COMPVERSIONDIR)/component_versions.mk
endif
ifeq ($(DEBUG), full)
DBG_OR_OPT = DBG
else
DBG_OR_OPT = OPT
endif
# Ldap library
ifeq ($(OS_ARCH), WINNT)
LDAP_LIBNAME = nsldap32v$(LDAPVERS)
else
LDAP_LIBNAME = ldap$(LDAPVERS)
endif
DIR_VERSION = $(LDAPVERS_SUFFIX)
DIRSDK_VERSION = $(LDAPVERS_SUFFIX)
# PrLdap library
ifeq ($(OS_ARCH), WINNT)
PRLDAP_LIBNAME = nsldappr32v$(PRLDAPVERS)
else
PRLDAP_LIBNAME = prldap$(PRLDAPVERS)
endif
# lber library
ifeq ($(OS_ARCH), WINNT)
LBER_LIBNAME = nslber32v$(LBERVERS)
else
LBER_LIBNAME = lber$(LBERVERS)
endif
# ldif library
ifeq ($(OS_ARCH), WINNT)
LDIF_LIBNAME = nsldif32v$(LDIFVERS)
else
LDIF_LIBNAME = ldif$(LDIFVERS)
endif
# iutil library
ifeq ($(OS_ARCH), WINNT)
IUTIL_LIBNAME = nsiutil32v$(IUTILVERS)
else
IUTIL_LIBNAME = iutil$(IUTILVERS)
endif
# util library
ifeq ($(OS_ARCH), WINNT)
UTIL_LIBNAME = nsutil32v$(UTILVERS)
else
UTIL_LIBNAME = util$(UTILVERS)
endif
# ssl library
ifeq ($(OS_ARCH), WINNT)
SSLDAP_LIBNAME = nsldapssl32v$(SSLDAPVERS)
else
SSLDAP_LIBNAME = ssldap$(SSLDAPVERS)
endif
# nss library
NSS_LIBNAME = nss$(NSSVERS)
SSL_LIBNAME = ssl$(NSSVERS)
STKN_LIBNAME = softokn$(NSSVERS)
HYBRID_LIBNAME = freebl_hybrid_$(NSSVERS)
PURE32_LIBNAME = freebl_pure32_$(NSSVERS)
FREEBL_LIBNAME = freebl*
COPYFREEBL = 1
ifneq ($(USE_64), 1)
ifeq ($(OS_ARCH), SunOS)
ifneq ($(OS_TEST),i86pc)
COPYFREEBL = 1
endif
endif
ifeq ($(OS_ARCH), HP-UX)
COPYFREEBL = 1
endif
endif
# svrcore library
SVRCOREVERS =
SVRCOREVERS_SUFFIX =
SVRCORE_LIBNAME = svrcore$(SVRCOREVERS)
#
# NSPR library
#
ifeq ($(OS_TARGET), WIN95)
PLC_BASENAME=plc$(NSPR_LIBVERSION)
PLDS_BASENAME=plds$(NSPR_LIBVERSION)
NSPR_BASENAME=nspr$(NSPR_LIBVERSION)
else
PLC_BASENAME=libplc$(NSPR_LIBVERSION)
PLDS_BASENAME=libplds$(NSPR_LIBVERSION)
NSPR_BASENAME=libnspr$(NSPR_LIBVERSION)
endif
PLCBASE=plc$(NSPR_LIBVERSION)
PLDSBASE=plds$(NSPR_LIBVERSION)
NSPRBASE=nspr$(NSPR_LIBVERSION)
DYNAMICNSPR = -l$(PLCBASE) -l$(PLDSBASE) -l$(NSPRBASE)
PLC_LIBNAME=plc$(NSPR_LIBVERSION)
PLDS_LIBNAME=plds$(NSPR_LIBVERSION)
NSPR_LIBNAME=nspr$(NSPR_LIBVERSION)
#
# SASL library
#
LIBSASL_INCLUDES_LOC = /share/builds/integration/sasl$(SASLVERS)/$(SASL_RELEASE_TAG)/$(OBJDIR_NAME)/include
LIBSASL_LIB_LOC = /share/builds/integration/sasl$(SASLVERS)/$(SASL_RELEASE_TAG)/$(OBJDIR_NAME)/lib
ifeq ($(HAVE_SASL_LOCAL), 1)
LIBSASL_INCLUDES = /usr/include/sasl
LIBSASL_LIBDIR =
else
LIBSASL_INCLUDES =../../../../../dist/public/libsasl
LIBSASL_LIBDIR =../../../../../dist/$(OBJDIR_NAME)/libsasl
endif
SASL_LIBNAME=sasl
SASL_BASENAME=sasl32
################################
# LIB ICU (for I18N) #
################################
# default setting
ICU_COMP_NAME = icu
ICUOBJDIR=$(OBJDIR_NAME)
#ifeq ($(OS_ARCH), SunOS)
# ifeq ($(OS_TEST),i86pc)
# ICUOBJDIR = SunOS5.8_x86_$(DBG_OR_OPT).OBJ
# endif
#endif
# because we don't have a real Win 95 ICU component...
ifeq ($(OS_TARGET), WIN95)
ICUOBJDIR = WINNT4.0_$(DBG_OR_OPT).OBJ
endif
ifeq ($(OS_ARCH), Linux)
ifeq ($(USE_64), 1)
ICUOBJDIR = $(OS_ARCH)$(OS_RELEASE)_64$(OBJDIR_TAG).OBJ
else
ICUOBJDIR = $(OS_ARCH)$(OS_RELEASE)$(OBJDIR_TAG).OBJ
endif
endif
ifeq ($(OS_ARCH), AIX)
ICU_VERS_NUM = 2.1
ICU_LIBVERSION = 2.1.6
LIBICU_RELDATE = 20040126_21.1
ICU_RELDATE = 20040126_21.1
else
ICU_VERS_NUM = 3.2
ICU_LIBVERSION = 3.2
LIBICU_RELDATE = 20051214
ICU_RELDATE = 20051214
endif
ICU_VERSION = $(ICU_RELDATE)
ICU_COMP_DIR = lib$(ICU_COMP_NAME)$(ICU_VERS_NUM)
ICU_INT=
ifeq ($(ICU_INT), 1)
LIBICU_INCLUDES_LOC = /share/builds/components/icu/$(ICU_LIBVERSION)/$(ICU_RELDATE)/$(ICUOBJDIR)/include
LIBICU_LIB_LOC = /share/builds/components/icu/$(ICU_LIBVERSION)/$(ICU_RELDATE)/$(ICUOBJDIR)/lib
else
LIBICU_INCLUDES_LOC = /share/builds/integration/icu/$(ICU_LIBVERSION)/$(ICU_RELDATE)/$(ICUOBJDIR)/include
LIBICU_LIB_LOC = /share/builds/integration/icu/$(ICU_LIBVERSION)/$(ICU_RELDATE)/$(ICUOBJDIR)/lib
endif
ifneq ($(HAVE_LIBICU_LOCAL), 1)
LIBICU_DIR = ../../../../../dist/libicu$(ICU_LIBVERSION)
LIBICU_INCLUDES =../../../../../dist/public/libicu
LIBICU_LIBDIR =../../../../../dist/$(OBJDIR_NAME)/libicu
else
LIBICU_DIR =
LIBICU_INCLUDES = /usr/include
LIBICU_LIBDIR =
endif
ICU_LIBPATH = $(LIBICU_LIBDIR)
ICU_INCLUDE = $(LIBICU_INCLUDEDIR)
ifeq ($(OS_ARCH), WINNT)
ICU_RELEASE = $(COMPONENTS_DIR)/icu/$(ICU_VERSION)/$(ICUOBJDIR)
ICU_LIBNAMES = icuin icuuc icudt
ICU_LIBS = $(addsuffix .lib, $(ICU_LIBNAMES))
ICUDLL_NAMES = $(addsuffix .dll, $(ICU_LIBNAMES))
LIBICU = $(addprefix $(ICU_LIBPATH)/, $(ICU_LIBS))
ICUOBJNAME = $(ICU_LIBNAMES)
else # WINNT
ICU_LIBNAMES = icudata icui18n icuuc
ICU_SOLIB_NAMES = $(addsuffix $(DLL_PRESUF), $(ICU_LIBNAMES))
ICU_LIBS = $(addsuffix .a, $(ICU_SOLIB_NAMES))
ICU_SOLIBS = $(addsuffix .$(DLL_SUFFIX), $(ICU_SOLIB_NAMES))
ICUOBJNAME = $(ICU_SOLIBS)
LIBICU = $(addprefix $(ICU_LIBPATH)/, $(ICU_SOLIBS))
ICULINK = -L$(ICU_LIBPATH) $(addprefix -l, $(addsuffix $(DLL_PRESUF), $(ICU_LIBNAMES)))
ICULINK_STATIC = $(addprefix $(ICU_LIBPATH)/, $(ICU_LIBS))
ifeq ($(OS_ARCH),SOLARIS)
ICULINK += -lw
endif # Solaris
ifeq ($(OS_ARCH),HPUX)
#linking with libC is *BAD* on HPUX11
ICULINK = -L$(ICU_LIBPATH) $(addprefix -l, $(addsuffix $(DLL_PRESUF), $(ICU_LIBNAMES)))
ICULINK_STATIC = $(addprefix $(ICU_LIBPATH)/, $(ICU_LIBS))
endif # HPUX
ifeq ($(OS_ARCH),Linux)
ICULINK += -lresolv
ICULINK_STATIC += -lresolv
endif # Linux
endif #WINNT
RM = rm -f
SED = sed
# uncomment to enable support for LDAP referrals
LDAP_REFERRALS = -DLDAP_REFERRALS
DEFNETSSL = -DNET_SSL
NOLIBLCACHE = -DNO_LIBLCACHE
NSDOMESTIC = -DNS_DOMESTIC
#for including SASL options
ifdef HAVE_SASL
HAVESASLOPTIONS = -DLDAP_SASLIO_HOOKS -DHAVE_SASL_OPTIONS -DHAVE_SASL_OPTIONS_2
else
HAVESASLOPTIONS =
endif
ifdef BUILD_OPT
LDAP_DEBUG =
else
LDAP_DEBUG = -DLDAP_DEBUG
endif
ifdef HAVE_LIBICU
HAVELIBICU = -DHAVE_LIBICU
else
HAVELIBICU =
endif
ifdef BUILD_CLU
BUILDCLU = 1
else
BUILDCLU =
endif
#
# DEFS are included in CFLAGS
#
DEFS = $(PLATFORMCFLAGS) $(LDAP_DEBUG) $(HAVELIBICU) \
$(CLDAP) $(DEFNETSSL) $(NOLIBLCACHE) \
$(LDAP_REFERRALS) $(LDAP_DNS) $(STR_TRANSLATION) \
$(LIBLDAP_CHARSETS) $(LIBLDAP_DEF_CHARSET) \
$(NSDOMESTIC) $(LDAPSSLIO) $(HAVESASLOPTIONS)
ifeq ($(OS_ARCH), WINNT)
DIRVER_PROG=$(COMMON_OBJDIR)/dirver.exe
else
DIRVER_PROG=$(COMMON_OBJDIR)/dirver
endif
ifeq ($(OS_ARCH), WINNT)
EXE_SUFFIX=.exe
RSC=rc
OFFLAG=/Fo
else
OFFLAG=-o
endif
ifeq ($(OS_ARCH), Linux)
DEFS += -DLINUX2_0 -DLINUX1_2 -DLINUX2_1
endif
ifeq ($(OS_ARCH), WINNT)
DLLEXPORTS_PREFIX=/DEF:
USE_DLL_EXPORTS_FILE = 1
endif
ifeq ($(OS_ARCH), SunOS)
DLLEXPORTS_PREFIX=-Blocal -M
USE_DLL_EXPORTS_FILE = 1
endif
ifeq ($(OS_ARCH), IRIX)
DLLEXPORTS_PREFIX=-exports_file
USE_DLL_EXPORTS_FILE = 1
endif
ifeq ($(OS_ARCH), HP-UX)
DEFS += -Dhpux -D_REENTRANT
endif
ifeq ($(OS_ARCH),AIX)
DLLEXPORTS_PREFIX=-bE:
DL=-ldl
USE_DLL_EXPORTS_FILE = 1
endif
ifeq ($(OS_ARCH),OSF1)
DEFS += -DOSF1V4
DL=
endif
ifeq ($(OS_ARCH),ReliantUNIX)
DL=-ldl
endif
ifeq ($(OS_ARCH),UnixWare)
DL=
endif
RPATHFLAG = ..:../lib:../../lib:../../../lib:../../../../lib:../lib-private
ifeq ($(OS_ARCH), SunOS)
# flag to pass to cc when linking to set runtime shared library search path
# this is used like this, for example: $(RPATHFLAG_PREFIX)../..
RPATHFLAG_PREFIX=-Wl,-R,
# flag to pass to ld when linking to set runtime shared library search path
# this is used like this, for example: $(LDRPATHFLAG_PREFIX)../..
LDRPATHFLAG_PREFIX=-R
# OS network libraries
PLATFORMLIBS+=-lresolv -lsocket -lnsl -lgen -ldl -lposix4
endif
ifeq ($(OS_ARCH), OSF1)
# flag to pass to cc when linking to set runtime shared library search path
# this is used like this, for example: $(RPATHFLAG_PREFIX)../..
RPATHFLAG_PREFIX=-Wl,-rpath,
# flag to pass to ld when linking to set runtime shared library search path
# this is used like this, for example: $(LDRPATHFLAG_PREFIX)../..
LDRPATHFLAG_PREFIX=-rpath
# allow for unresolved symbols
DLL_LDFLAGS += -expect_unresolved "*"
endif # OSF1
ifeq ($(OS_ARCH), AIX)
# Flags to set runtime shared library search path. For example:
# $(CC) $(RPATHFLAG_PREFIX)../..$(RPATHFLAG_EXTRAS)
RPATHFLAG_PREFIX=-blibpath:
RPATHFLAG_EXTRAS=:/usr/lib:/lib
# flag to pass to ld when linking to set runtime shared library search path
# this is used like this, for example: $(LDRPATHFLAG_PREFIX)../..
LDRPATHFLAG_PREFIX=-blibpath:/usr/lib:/lib:
DLL_LDFLAGS= -bM:SRE -bnoentry \
-L.:/usr/lib/threads:/usr/lpp/xlC/lib:/usr/lib:/lib
DLL_EXTRA_LIBS= -bI:/usr/lib/lowsys.exp -lC_r -lC -lpthreads -lc_r -lm \
/usr/lib/libc.a
EXE_EXTRA_LIBS= -bI:/usr/lib/syscalls.exp -lsvld -lpthreads
endif # AIX
ifeq ($(OS_ARCH), HP-UX)
# flag to pass to cc when linking to set runtime shared library search path
# this is used like this, for example: $(RPATHFLAG_PREFIX)../..
RPATHFLAG_PREFIX=-Wl,+s,+b,
# flag to pass to ld when linking to set runtime shared library search path
# this is used like this, for example: $(LDRPATHFLAG_PREFIX)../..
LDRPATHFLAG_PREFIX=+s +b
# we need to link in the rt library to get sem_*()
PLATFORMLIBS += -lrt
PLATFORMCFLAGS=
endif # HP-UX
ifeq ($(OS_ARCH), Linux)
# flag to pass to cc when linking to set runtime shared library search path
# this is used like this, for example: $(RPATHFLAG_PREFIX)../..
RPATHFLAG_PREFIX=-Wl,-rpath,
# flag to pass to ld when linking to set runtime shared library search path
# this is used like this, for example: $(LDRPATHFLAG_PREFIX)../..
# note, there is a trailing space
LDRPATHFLAG_PREFIX=-rpath
endif # Linux
#
# XXX: does anyone know of a better way to solve the "LINK_LIB2" problem? -mcs
#
# Link to produce a console/windows exe on Windows
#
ifeq ($(OS_ARCH), WINNT)
DEBUG_LINK_OPT=/DEBUG:FULL
ifeq ($(BUILD_OPT), 1)
DEBUG_LINK_OPT=
endif
SUBSYSTEM=CONSOLE
LINK_EXE = link $(DEBUG_LINK_OPT) -OUT:"$@" /MAP $(ALDFLAGS) $(LDFLAGS) $(ML_DEBUG) \
$(LCFLAGS) /NOLOGO /PDB:NONE /DEBUGTYPE:BOTH /INCREMENTAL:NO \
/NODEFAULTLIB:MSVCRTD /SUBSYSTEM:$(SUBSYSTEM) $(DEPLIBS) \
$(EXTRA_LIBS) $(PLATFORMLIBS) $(OBJS)
LINK_LIB = lib -OUT:"$@" $(OBJS)
LINK_DLL = link $(DEBUG_LINK_OPT) /nologo /MAP /DLL /PDB:NONE /DEBUGTYPE:BOTH \
$(ML_DEBUG) /SUBSYSTEM:$(SUBSYSTEM) $(LLFLAGS) $(DLL_LDFLAGS) \
$(EXTRA_LIBS) /out:"$@" $(OBJS)
else # WINNT
#
# UNIX link commands
#
LINK_LIB = $(RM) $@; $(AR) $(OBJS); $(RANLIB) $@
LINK_LIB2 = $(RM) $@; $(AR) $@ $(OBJS2); $(RANLIB) $@
ifdef SONAMEFLAG_PREFIX
LINK_DLL = $(LD) $(DSO_LDOPTS) $(RPATHFLAG_PREFIX)$(RPATHFLAG) $(ALDFLAGS) $(DLL_LDFLAGS) \
$(DLL_EXPORT_FLAGS) -o $@ $(SONAMEFLAG_PREFIX)$(notdir $@) $(OBJS)
else # SONAMEFLAG_PREFIX
LINK_DLL = $(LD) $(RPATHFLAG_PREFIX)$(RPATHFLAG) $(ALDFLAGS) $(DLL_LDFLAGS) $(DLL_EXPORT_FLAGS) \
-o $@ $(OBJS)
endif # SONAMEFLAG_PREFIX
ifeq ($(OS_ARCH), OSF1)
# The linker on OSF/1 gets confused if it finds an so_locations file
# that doesn't meet its expectations, so we arrange to remove it before
# linking.
SO_FILES_TO_REMOVE=so_locations
endif
ifeq ($(OS_ARCH), HP-UX)
# On HPUX, we need a couple of changes:
# 1) Use the C++ compiler for linking, which will pass the +eh flag on down to the
# linker so the correct exception-handling-aware libC gets used (libnshttpd.sl
# needs this).
# 2) Add a "-Wl,-E" option so the linker gets a "-E" flag. This makes symbols
# in an executable visible to shared libraries loaded at runtime.
LINK_EXE = $(CCC) -AA -Wl,-E $(ALDFLAGS) $(LDFLAGS) $(RPATHFLAG_PREFIX)$(RPATHFLAG) -o $@ $(OBJS) $(EXTRA_LIBS) $(PLATFORMLIBS)
ifeq ($(USE_64), 1)
LINK_EXE = $(CCC) -AA -DHPUX_ACC -D__STDC_EXT__ -D_POSIX_C_SOURCE=199506L +DA2.0W +DS2.0 -Wl,-E $(ALDFLAGS) $(LDFLAGS) $(RPATHFLAG_PREFIX)$(RPATHFLAG) -o $@ $(OBJS) $(EXTRA_LIBS) $(PLATFORMLIBS)
endif
else # HP-UX
# everything except HPUX
ifeq ($(OS_ARCH), ReliantUNIX)
# Use the C++ compiler for linking if at least ONE object is C++
export LD_RUN_PATH=$(RPATHFLAG)
LINK_EXE = $(CXX) $(ALDFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(EXTRA_LIBS) $(PLATFORMLIBS)
else # ReliantUNIX
ifdef USE_LD_RUN_PATH
#does RPATH differently. instead we export RPATHFLAG as LD_RUN_PATH
#see ns/netsite/ldap/clients/tools/Makefile for an example
export LD_RUN_PATH=$(RPATHFLAG)
LINK_EXE = $(CC) $(ALDFLAGS) $(LDFLAGS) \
-o $@ $(OBJS) $(EXTRA_LIBS) $(PLATFORMLIBS)
LINK_EXE_NOLIBSOBJS = $(CC) $(ALDFLAGS) $(LDFLAGS) -o $@
else # USE_LD_RUN_PATH
LINK_EXE = $(CC) $(ALDFLAGS) $(LDFLAGS) \
$(RPATHFLAG_PREFIX)$(RPATHFLAG)$(RPATHFLAG_EXTRAS) \
-o $@ $(OBJS) $(EXTRA_LIBS) $(PLATFORMLIBS)
LINK_EXE_NOLIBSOBJS = $(CC) $(ALDFLAGS) $(LDFLAGS) \
$(RPATHFLAG_PREFIX)$(RPATHFLAG)$(RPATHFLAG_EXTRAS) -o $@
endif # USE_LD_RUN_PATH
endif # ReliantUNIX
endif # HP-UX
endif # WINNT
ifeq ($(OS_ARCH), OSF1)
LINK_EXE = $(CCC) $(ALDFLAGS) $(LDFLAGS) $(RPATHFLAG_PREFIX)$(RPATHFLAG) \
-o $@ $(OBJS) $(EXTRA_LIBS) $(PLATFORMLIBS)
endif
ifeq ($(OS_ARCH), SunOS)
ifeq ($(USE_64), 1)
LINK_EXE = $(CCC) $(ALDFLAGS) $(LDFLAGS) -R:$(RPATHFLAG)\
-o $@ $(OBJS) $(EXTRA_LIBS) $(PLATFORMLIBS)
endif
endif
PERL = perl
#
# shared library symbol export definitions
#
ifeq ($(OS_ARCH), WINNT)
GENEXPORTS=cmd /c $(PERL) $(LDAP_SRC)/build/genexports.pl
else
GENEXPORTS=$(PERL) $(LDAP_SRC)/build/genexports.pl
endif

View File

@@ -0,0 +1,97 @@
#
# 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 Communicator client code, released
# March 31, 1998.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-1999 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# NSPR - Netscape Portable Runtime
NSPR_LIBVERSION = 4
NSPR_RELEASE_TAG = v4.1.4
# NSS - Network Security Services
NSSVERS = 3
NSS_RELEASE_TAG = SECURITY_JES5_20060428
# SVRCORE - Client/server utility library
# SVRCORE_RELEASE_TAG = SVRCORE_3_3_3_RTM
# LDAP library
LDAPVERS = 60
LDAPVERS_SUFFIX = 6.0
# PRLDAP library
PRLDAPVERS = 60
PRLDAPVERS_SUFFIX = 6.0
# LBER library
LBERVERS = 60
LBERVERS_SUFFIX = 6.0
# ldif library
LDIFVERS = 60
LDIFVERS_SUFFIX = 6.0
# iutil library
IUTILVERS = 60
IUTILVERS_SUFFIX = 6.0
# util library
UTILVERS = 60
UTILVERS_SUFFIX = 6.0
# ssl library
SSLDAPVERS = 60
SSLDAPVERS_SUFFIX = 6.0
# sasl library
SASLVERS = 20
SASL_RELEASE_TAG = 2.19_20051117
# libICU - replaces National Language Support (NLS).
# ICU_LIBVERSION = 2.1.6
# LIBICU_RELDATE = 20040126_21.1
# Some components already had existing Solaris 5.8 symbolic
# link to a Solaris 5.6 version. Hence, the new respun components
# were put in in a forte6 directory in each of the component
# respectively. For Solaris 5.8 only we have to pick up the components
# from the forte6 directory. As we move forward with new components,
# we can take the mess below out
# Michael.....
#ifeq ($(OS_ARCH), SunOS)
# ifneq ($(USE_64), 1)
# OS_VERS := $(shell uname -r)
# ifeq ($(OS_VERS),5.8)
# ifneq ($(OS_TEST),i86pc)
# NSPR_RELEASE_TAG=v4.1.2/forte6
# NSS_RELEASE_TAG =NSS_3_3_2_RTM/forte6
# SVRCORE_RELEASE_TAG=SVRCORE_3_3_1_RTM/forte6
# endif
# endif
# endif
#endif
#ifeq ($(OS_ARCH), Linux)
# ifeq ($(OS_RELEASE), 2.4)
# NSPR_RELEASE_TAG=v4.1.2/redhat7.2
# NSS_RELEASE_TAG =NSS_3_3_2_RTM/redhat7.2
# SVRCORE_RELEASE_TAG=SVRCORE_3_3_1_RTM/redhat7.2
# endif
#endif

View File

@@ -0,0 +1,175 @@
#
# 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
ifeq ($(HAVE_CCONF), 1)
IMPL_STRATEGY =
else
IMPL_STRATEGY = _PTH
endif
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
ifeq ($(HAVE_CCONF), 1)
COMPILER_TAG =
else
COMPILER_TAG = _32
endif
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 -D_LARGEFILE64_SOURCE
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
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,138 @@
#
# 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 $@
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,240 @@
#
# 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
ifeq ($(NS_USE_GCC), 1)
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
ifeq ($(OS_RELEASE),B.11.11)
OS_CFLAGS += -D_USE_BIG_FDS
endif
#
# 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 B.11.11,$(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
ifneq ($(NS_USE_GCC), 1)
OS_CFLAGS += +DAportable
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)
ifneq ($(NS_USE_GCC), 1)
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)
ifneq ($(NS_USE_GCC), 1)
CCC = /opt/aCC/bin/aCC -ext
ifeq ($(USE_64),1)
OS_CFLAGS += +DA2.0W +DS2.0 +DD64
COMPILER_TAG = _64
else
OS_CFLAGS += +DAportable +DS2.0
ifeq ($(HAVE_CCONF), 1)
COMPILER_TAG =
else
COMPILER_TAG = _32
endif
endif
endif
OS_CFLAGS += -DHPUX10 -DHPUX11 -D_LARGEFILE64_SOURCE -D_PR_HAVE_OFF64_T
ifeq ($(HAVE_CCONF), 1)
DEFAULT_IMPL_STRATEGY =
else
DEFAULT_IMPL_STRATEGY = _PTH
endif
endif
# 11.00 is similar to 10.30.
ifeq ($(OS_RELEASE),B.11.11)
ifneq ($(NS_USE_GCC), 1)
CCC = /opt/aCC/bin/aCC -ext
ifeq ($(USE_64),1)
OS_CFLAGS += +DA2.0W +DS2.0 +DD64
COMPILER_TAG = _64
else
OS_CFLAGS += +DAportable +DS2.0
ifeq ($(HAVE_CCONF), 1)
COMPILER_TAG =
else
COMPILER_TAG = _32
endif
endif
endif
OS_CFLAGS += -DHPUX10 -DHPUX11 -D_LARGEFILE64_SOURCE -D_PR_HAVE_OFF64_T
ifeq ($(HAVE_CCONF), 1)
DEFAULT_IMPL_STRATEGY =
else
DEFAULT_IMPL_STRATEGY = _PTH
endif
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.
ifeq ($(NS_USE_GCC), 1)
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
ifeq ($(NS_USE_GCC), 1)
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
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)))
ifneq ($(NS_USE_GCC), 1)
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,149 @@
#
# 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
ifeq ($(HAVE_CCONF), 1)
IMPL_STRATEGY = _glibc_PTH
else
IMPL_STRATEGY = _PTH
endif
DEFINES += -D_REENTRANT
endif
ifeq (86,$(findstring 86,$(OS_TEST)))
ifeq ($(USE_64),1)
CPU_ARCH = x86_64
ARCH_FLAG = -m64
LDFLAGS += -m64
DSO_LDFLAGS += -melf_x86_64
EXTRA_LIBS += -L/usr/lib64
else
CPU_ARCH = x86
ARCH_FLAG = -m32
LDFLAGS += -m32
DSO_LDFLAGS += -melf_i386
EXTRA_LIBS += -L/usr/lib
endif
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 = $(ARCH_FLAG) -ansi -Wall -pipe -DLINUX -Dlinux -D_LARGEFILE64_SOURCE
PORT_FLAGS = -D_POSIX_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DHAVE_STRERROR
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-64)
PLATFORM_FLAGS += -Dx86-64
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
endif
######################################################################
# Overrides for defaults in config.mk (or wherever)
######################################################################
######################################################################
# Other
######################################################################
DSO_CFLAGS = -fPIC
DSO_LDOPTS = -shared $(DSO_LDFLAGS)

View File

@@ -0,0 +1,129 @@
#! 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
include $(topsrcdir)/config/config.mk
CSRCS = nsinstall.c now.c
PLSRCS = nfspwd.pl
ifeq ($(OS_ARCH), WINNT)
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)
ifeq ($(USE_N32),1)
XLDOPTS += -n32 -Wl,-woff,85
ifeq ($(OS_RELEASE), 6_2)
XLDOPTS += -Wl,-woff,85
endif
else
ifeq ($(USE_64),1)
XLDOPTS += -64
else
XLDOPTS += -32
endif
endif
endif
endif
ifeq ($(OS_ARCH), HP-UX)
ifeq ($(USE_64),1)
XLDOPTS += +DA2.0W
endif
endif
ifdef XP_OS2_EMX
XCFLAGS = $(OS_EXE_CFLAGS)
XLDOPTS = -Zlinker /PM:VIO
endif
ifeq ($(MOZ_OS2_TOOLS),VACPP)
OS_CFLAGS = $(OS_EXE_CFLAGS)
endif
include $(topsrcdir)/config/rules.mk
PROGS = $(OBJDIR)/now$(PROG_SUFFIX)
ifeq ($(OS_ARCH),WINNT)
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)
$(OBJDIR)/%$(PROG_SUFFIX): $(OBJDIR)/%.$(OBJ_SUFFIX)
@$(MAKE_OBJDIR)
ifeq ($(MOZ_OS2_TOOLS),VACPP)
$(LINK) $(EXEFLAGS) $<
else
$(CC) $(XCFLAGS) $< $(XLDOPTS) $(OUTOPTION)$@
endif

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,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 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
endif
DSO_CFLAGS = -fPIC -DPIC
DSO_LDOPTS = -x -shared
ifdef LIBRUNPATH
DSO_LDOPTS += -R$(LIBRUNPATH)
endif
MKSHLIB = $(LD) $(DSO_LDOPTS)
G++INCLUDES = -I/usr/include/g++

View File

@@ -0,0 +1,170 @@
#
# 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
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,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 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
ifeq ($(HAVE_CCONF), 1)
IMPL_STRATEGY =
else
IMPL_STRATEGY = _PTH
endif
endif
ifeq ($(HAVE_CCONF), 1)
CC = cc $(NON_LD_FLAGS)
else
CC = cc $(NON_LD_FLAGS) -std1
endif
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
ifeq ($(HAVE_CCONF), 1)
OS_CFLAGS += -DIS_64 -DOSF1V4D -DOSF1
endif
ifneq (,$(filter-out V2.0 V3.2,$(OS_RELEASE)))
OS_CFLAGS += -DOSF1_HAVE_MACHINE_BUILTINS_H
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
OS_CXXFLAGS = -DVMS -DVMS_AS_IS -Wc,names=\(short,as\) \
-DGENERIC_PTHREAD_REDEFINES
#
# 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,9 @@
This part of of the tree taken from NSPR 4.1. The
NSPR config tree was tagged with:
cvs tag ldapcsdk_branch50-config
The version of NSPR this was taken from:
NSPRPUB_RELEASE_4_1 (revision: 3.23)

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,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 security libraries.
#
# 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.
#
# Config stuff for Solaris 8 on x86
#
SOL_CFLAGS = -D_SVID_GETTOD
include $(CORE_DEPTH)/coreconf/SunOS5.mk
CPU_ARCH = x86
ARCHFLAG =
OS_DEFINES += -Di386
ifeq ($(OS_RELEASE),5.8_i86pc)
OS_DEFINES += -DSOLARIS2_8
endif
OS_LIBS += -lnsl -lsocket -lposix4 -ldl -lc

View File

@@ -0,0 +1,44 @@
#
# 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 security libraries.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1994-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 SunOS5.9
#
SOL_CFLAGS += -D_SVID_GETTOD
include $(CORE_DEPTH)/coreconf/SunOS5.mk
ifeq ($(OS_RELEASE),5.9)
OS_DEFINES += -DSOLARIS2_9
endif
OS_LIBS += -lnsl -lsocket -lposix4 -ldl -lc

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 security libraries.
#
# 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.
#
# Config stuff for Solaris 9 on x86
#
SOL_CFLAGS = -D_SVID_GETTOD
include $(CORE_DEPTH)/coreconf/SunOS5.mk
CPU_ARCH = x86
ARCHFLAG =
OS_DEFINES += -Di386
ifeq ($(OS_RELEASE),5.9_i86pc)
OS_DEFINES += -DSOLARIS2_9
endif
OS_LIBS += -lnsl -lsocket -lposix4 -ldl -lc

View File

@@ -0,0 +1,223 @@
#
# 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
ifeq ($(HAVE_CCONF), 1)
IMPL_STRATEGY =
else
IMPL_STRATEGY = _PTH
endif
endif
endif
ifeq ($(NS_USE_GCC), 1)
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
# 'conststrings' enabled by default in CC standard mode
CCC = CC
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)
ifneq ($(NS_USE_GCC), 1)
ifeq ($(CPU_ARCH),sparc)
CC += -xarch=v9
CCC += -xarch=v9
COMPILER_TAG = _64
endif
ifeq ($(CPU_ARCH),i386)
CC += -xarch=amd64
CCC += -xarch=amd64
CPU_ARCH = x86_64
COMPILER_TAG = _i86pc_64
OS_DEFINES += -Dx86_64
endif
endif
else
ifeq ($(OS_TEST),i86pc)
COMPILER_TAG = _i86pc
else
ifeq ($(HAVE_CCONF), 1)
COMPILER_TAG =
else
COMPILER_TAG = _32
endif
endif
endif
RANLIB = echo
OS_DEFINES = -DSVR4 -DSYSV -D__svr4 -D__svr4__ -DSOLARIS
ifeq ($(OS_TEST),i86pc)
# 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
ifeq ($(NS_USE_GCC), 1)
OPTIMIZER = -Wa,-s -gstabs
endif
endif
else
ifeq ($(HAVE_CCONF), 1)
CPU_ARCH =
else
CPU_ARCH = sparc
endif
endif
ifeq ($(HAVE_CCONF), 1)
CPU_ARCH_TAG =
else
CPU_ARCH_TAG = _$(CPU_ARCH)
endif
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.
#ifeq ($(NS_USE_GCC), 1)
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.)
ifeq ($(NS_USE_GCC), 1)
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,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.
#
PR_UNIXOS = 1
XP_DEFINE = -DXP_UNIX
OBJ_SUFFIX = o
LIB_SUFFIX = a
DLL_SUFFIX = so
AR = ar cr $@
ifdef BUILD_OPT
OPTIMIZER = -O
DEFINES = -UDEBUG -DNDEBUG
OBJDIR_TAG = _OPT
else
OPTIMIZER = -g
DEFINES = -DDEBUG -UNDEBUG
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,175 @@
#
# 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
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 += -Zi
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 -Zi
#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 -D_WINDOWS
#
# 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,307 @@
#
# 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)
#
# No -p option in HPUX uname and since we
# do not build for Itanic skip it for now
#
ifneq ($(OS_ARCH),HP-UX)
CPU_ARCH := $(shell uname -p)
endif
#
# Tweak the default OS_ARCH and OS_RELEASE macros as needed.
#
ifeq ($(HAVE_CCONF), 1)
ifeq ($(OS_ARCH), Linux)
ifeq (2.6,$(findstring 2.6,$(OS_RELEASE)))
OS_RELEASE :=2.6
endif
ifeq (2.4,$(findstring 2.4,$(OS_RELEASE)))
OS_RELEASE :=2.4
endif
ifeq (2.2,$(findstring 2.2,$(OS_RELEASE)))
OS_RELEASE :=2.2
endif
ifeq (2.1,$(findstring 2.1,$(OS_RELEASE)))
OS_RELEASE :=2.1
endif
ifeq (2.0,$(findstring 2.0,$(OS_RELEASE)))
OS_RELEASE :=2.0
endif
endif
endif
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),CYGWIN_95-4.0)
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,87 @@
#
# 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 mozilla.org LDAP SDK autoconf glue.
#
# The Initial Developer of the Original Code is Netscape
# Commmunications Corp. Portions created by Netscape are
# Copyright (C) 2000, Netscape Communications Corp. All
# Rights Reserved.
#
# Contributor(s): Dan Mosedale <dmose@mozilla.org>
#
USE_AUTOCONF = 1
MOZILLA_CLIENT = @MOZILLA_CLIENT@
DIST = @prefix@
OBJDIR_NAME = .
OBJDIR = .
OBJ_SUFFIX = @OBJ_SUFFIX@
LIB_SUFFIX = @LIB_SUFFIX@
DLL_SUFFIX = @DLL_SUFFIX@
MOD_VERSION = @NSPR_VERSION@
MOD_NAME = @NSPR_MODNAME@
USE_CPLUS = @USE_CPLUS@
USE_IPV6 = @USE_IPV6@
USE_N32 = @USE_N32@
USE_64 = @USE_64@
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@
AR = @AR@
AR_FLAGS = @AR_FLAGS@
LD = @LD@
RANLIB = @RANLIB@
PERL = @PERL@
DLLTOOL = @DLLTOOL@
WINDRES = @WINDRES@
RC = $(WINDRES)
OS_CFLAGS = @CFLAGS@ $(DSO_CFLAGS)
OS_CXXFLAGS = @CXXFLAGS@ $(DSO_CFLAGS)
OS_LIBS = @OS_LIBS@
OS_LDFLAGS = @LDFLAGS@
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@
MOZ_TARGET = @MOZ_TARGET@
PR_MD_CSRCS = @PR_MD_CSRCS@
PR_MD_ASFILES = @PR_MD_ASFILES@
PR_MD_ARCH_DIR = @PR_MD_ARCH_DIR@
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@

View File

@@ -0,0 +1,237 @@
#! 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
ifdef USE_AUTOCONF
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)
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
ifdef BUILD_DEBUG_GC
DEFINES += -DDEBUG_GC
endif
GARBAGE += $(DEPENDENCIES) core $(wildcard core.[0-9]*)
ifdef USE_AUTOCONF
DIST_GARBAGE += Makefile
endif
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
else # ! USE_AUTOCONF
ifndef NSPR_MY_CONFIG_MK
NSPR_MY_CONFIG_MK = $(MOD_DEPTH)/config/my_config.mk
endif
#
# The variable definitions in this file are used to
# override variable values set by NSPR's build system.
# This file, if present, is included at the end of config.mk.
#
# For example:
#
# DIST=/usr/local/nspr
#
ifndef NSPR_MY_OVERRIDES_MK
NSPR_MY_OVERRIDES_MK = $(MOD_DEPTH)/config/my_overrides.mk
endif
-include $(NSPR_MY_CONFIG_MK)
include $(MOD_DEPTH)/config/module.df
include $(MOD_DEPTH)/config/arch.mk
ifndef NSDEPTH
NSDEPTH = $(MOD_DEPTH)/..
endif
#
# Default command macros; can be overridden in <arch>.mk.
#
# XXX FIXME: I removed CCF and LINKEXE.
AS = $(CC)
ASFLAGS = $(CFLAGS)
PURIFY = purify $(PURIFYOPTIONS)
LINK_DLL = $(LINK) $(OS_DLLFLAGS) $(DLLFLAGS)
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)
include $(MOD_DEPTH)/config/$(OS_TARGET).mk
# Figure out where the binary code lives.
BUILD = $(OBJDIR_NAME)
OBJDIR = $(OBJDIR_NAME)
DIST = $(NSDEPTH)/dist/$(OBJDIR_NAME)
ifeq ($(MOZ_BITS),16)
MOZ_INCL = $(NSDEPTH)/dist/public/win16
MOZ_DIST = $(NSDEPTH)/dist/WIN16D_D.OBJ
endif
VPATH = $(OBJDIR)
DEPENDENCIES = $(OBJDIR)/.md
ifdef BUILD_DEBUG_GC
DEFINES += -DDEBUG_GC
endif
GARBAGE += $(DEPENDENCIES) core $(wildcard core.[0-9]*)
####################################################################
#
# The NSPR-specific configuration
#
####################################################################
OS_CFLAGS += -DFORCE_PR_LOG
ifeq ($(_PR_NO_CLOCK_TIMER),1)
OS_CFLAGS += -D_PR_NO_CLOCK_TIMER
endif
ifeq ($(USE_PTHREADS), 1)
OS_CFLAGS += -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM
endif
ifeq ($(PTHREADS_USER), 1)
OS_CFLAGS += -DPTHREADS_USER -UHAVE_CVAR_BUILT_ON_SEM
endif
ifeq ($(USE_IPV6),1)
OS_CFLAGS += -D_PR_INET6
endif
ifdef GC_LEAK_DETECTOR
OS_CFLAGS += -DGC_LEAK_DETECTOR
endif
####################################################################
#
# Configuration for the release process
#
####################################################################
ifeq ($(USE_INT), 1)
MDIST = /share/builds/integration
else
MDIST = /share/builds/components
endif
ifeq ($(OS_ARCH),WINNT)
MDIST = //helium/dist
MDIST_DOS = $(subst /,\\,$(MDIST))
endif
# RELEASE_DIR is ns/dist/<module name>
RELEASE_DIR = $(NSDEPTH)/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
-include $(NSPR_MY_OVERRIDES_MK)
endif # USE_AUTOCONF

View File

@@ -1,19 +1,35 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
/* -*- 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 */

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,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,592 @@
/* -*- 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_LCHOWN
#if defined(AIX) || defined(BSDI) || defined(HPUX) || defined(LINUX) \
|| defined(SUNOS4) || defined(SCO) || defined(UNIXWARE) \
|| defined(RHAPSODY) || defined(NEXTSTEP) || defined(QNX) \
|| defined(BEOS) || defined(VMS)
#undef HAVE_LCHOWN
#endif
#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,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 mozilla.org code.
#
# 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 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,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 mozilla.org code.
#
# 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 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,42 @@
/* -*- 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,18 @@
REM
REM The contents of this file are subject to the Netscape Public License
REM Version 1.1 (the "NPL"); you may not use this file except in
REM compliance with the NPL. You may obtain a copy of the NPL at
REM http://www.mozilla.org/NPL/
REM
REM Software distributed under the NPL is distributed on an "AS IS" basis,
REM WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
REM for the specific language governing rights and limitations under the
REM NPL.
REM
REM The Initial Developer of this code under the NPL is Netscape
REM Communications Corporation. Portions created by Netscape are
REM Copyright (C) 1998 Netscape Communications Corporation. All Rights
REM Reserved.
REM
mkdir %1

View File

@@ -0,0 +1,480 @@
#! 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 WIN16 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:.s=.$(OBJ_SUFFIX)))
endif
ifeq ($(OS_TARGET), WIN16)
comma := ,
empty :=
space := $(empty) $(empty)
W16OBJS = $(subst $(space),$(comma)$(space),$(strip $(OBJS)))
W16TEMP =$(OS_LIBS) $(EXTRA_LIBS)
ifeq ($(strip $(W16TEMP)),)
W16LIBS =
else
W16LIBS = library $(subst $(space),$(comma)$(space),$(strip $(W16TEMP)))
endif
W16DEF = $(notdir $(basename $(SHARED_LIBRARY))).DEF
endif
ifeq ($(OS_ARCH), WINNT)
ifneq ($(OS_TARGET), WIN16)
OBJS += $(RES)
endif
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 libs install
export::
+$(LOOP_OVER_DIRS)
libs::
+$(LOOP_OVER_DIRS)
install::
+$(LOOP_OVER_DIRS)
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)
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
$(LIBRARY): $(OBJS)
@$(MAKE_OBJDIR)
rm -f $@
ifeq ($(MOZ_OS2_TOOLS),VACPP)
$(AR) $(subst /,\\,$(OBJS)) $(AR_EXTRA_ARGS)
else
ifdef USE_AUTOCONF
$(AR) $(AR_FLAGS) $(OBJS) $(AR_EXTRA_ARGS)
else
$(AR) $(OBJS) $(AR_EXTRA_ARGS)
endif # USE_AUTOCONF
endif
$(RANLIB) $@
ifeq ($(OS_TARGET), WIN16)
$(IMPORT_LIBRARY): $(SHARED_LIBRARY)
wlib $(OS_LIB_FLAGS) $@ +$(SHARED_LIBRARY)
endif
ifeq ($(OS_TARGET), OS2)
$(IMPORT_LIBRARY): $(SHARED_LIBRARY)
$(IMPLIB) $@ $(SHARED_LIBRARY).def
endif
$(SHARED_LIBRARY): $(OBJS)
@$(MAKE_OBJDIR)
rm -f $@
ifdef USE_AUTOCONF
$(MKSHLIB) $(OBJS) $(EXTRA_LIBS) $(OS_LIBS)
else
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)
ifeq ($(OS_TARGET), WIN16)
echo system windows dll initinstance >w16link
echo option map >>w16link
echo option oneautodata >>w16link
echo option heapsize=32K >>w16link
echo option $(OS_DLL_OPTION) >>w16link
echo debug $(DEBUGTYPE) all >>w16link
echo name $@ >>w16link
echo file >>w16link
echo $(W16OBJS) >>w16link
echo $(W16IMPORTS) >>w16link
echo $(W16LIBS) >>w16link
echo $(W16_EXPORTS) >>w16link
echo libfile libentry >>w16link
$(LINK) @w16link.
rm w16link
else # WIN16
$(LINK_DLL) -MAP $(DLLBASE) $(OS_LIBS) $(EXTRA_LIBS) $(OBJS)
endif # WINNT
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); \
mv VMSuni.opt $(OBJDIR); \
fi
$(MKSHLIB) -o $@ $(OBJS) $(EXTRA_LIBS) $(OS_LIBS) $(OBJDIR)/VMSuni.opt
@echo "`translate $@`" > $(@:.$(DLL_SUFFIX)=.vms)
else # OpenVMS
$(MKSHLIB) -o $@ $(OBJS) $(EXTRA_LIBS) $(OS_LIBS)
endif # OpenVMS
endif # OS2
endif # WINNT
endif # AIX 4.1
endif # USE_AUTOCONF
ifeq (,$(filter-out WINNT OS2,$(OS_ARCH)))
$(RES): $(RESNAME)
@$(MAKE_OBJDIR)
ifeq ($(OS_TARGET),OS2)
$(RC) -DOS2 -r $(RESNAME) $(RES)
else
# The resource compiler does not understand the -U option.
$(RC) $(filter-out -U%,$(DEFINES)) $(INCLUDES) -Fo$(RES) $(RESNAME)
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)
ifeq ($(OS_TARGET), WIN16)
# $(MOD_DEPTH)/config/w16opt $(WCCFLAGS3)
echo $(WCCFLAGS3) >w16wccf
$(CC) -zq -fo$(OBJDIR)\\$*.$(OBJ_SUFFIX) @w16wccf $*.c
rm w16wccf
else
$(CC) -Fo$@ -c $(CFLAGS) $<
endif
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 $<
%.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,115 @@
#
# 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
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 = #

View File

@@ -0,0 +1,62 @@
#
# 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 Communicator client code, released
# March 31, 1998.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-1999 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../../..
NSPR_TREE = ..
MOD_DEPTH = ..
include $(NSPR_TREE)/config/rules.mk
include ../build.mk
SRCDIRS = build include libraries
ifeq ($(BUILDCLU), 1)
SRCDIRS += clients/tools
endif
all export:: FORCE
@for i in $(SRCDIRS); do \
echo " cd $$i; $(MAKE) -f Makefile.client $(MFLAGS) export"; \
( cd $$i; $(MAKE) -f Makefile.client $(MFLAGS) export ); \
done
libs install:: FORCE
@for i in $(SRCDIRS); do \
echo "cd $$i; $(MAKE) -f Makefile.client $(MFLAGS) install"; \
( cd $$i; $(MAKE) -f Makefile.client $(MFLAGS) install ); \
done
clean clobber:: FORCE
@for i in $(SRCDIRS); do \
echo "cd $$i; $(MAKE) -f Makefile.client $(MFLAGS) clean"; \
( cd $$i; $(MAKE) -f Makefile.client $(MFLAGS) clean ); \
done
cd clients/tools; $(MAKE) -f Makefile.client $(MFLAGS) clean
realclean clobber_all:: FORCE
@for i in $(SRCDIRS); do \
echo "cd $$i; $(MAKE) -f Makefile.client $(MFLAGS) realclean"; \
( cd $$i; $(MAKE) -f Makefile.client $(MFLAGS) realclean ); \
done
FORCE:

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 mozilla.org code.
#
# 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.
#
DEPTH = ../../..
srcdir = @srcdir@
ldaptopsrcdir = @top_srcdir@
SRCDIRS = build include libraries
include build/autoconf.mk
include $(NSPR_TREE)/config/rules.mk
all export:: FORCE
@for i in $(SRCDIRS); do \
echo " cd $$i; $(MAKE) $(MFLAGS) export"; \
( cd $$i; $(MAKE) $(MFLAGS) export ); \
done
libs install:: FORCE
@for i in $(SRCDIRS); do \
echo "cd $$i; $(MAKE) $(MFLAGS) install"; \
( cd $$i; $(MAKE) $(MFLAGS) install ); \
done
clean clobber:: FORCE
@for i in $(SRCDIRS); do \
echo "cd $$i; $(MAKE) $(MFLAGS) clean"; \
( cd $$i; $(MAKE) $(MFLAGS) clean ); \
done
realclean clobber_all:: FORCE
@for i in $(SRCDIRS); do \
echo "cd $$i; $(MAKE) $(MFLAGS) realclean"; \
( cd $$i; $(MAKE) $(MFLAGS) realclean ); \
done
FORCE:

View File

@@ -0,0 +1,31 @@
The autoconf files here are the barest shim to allow the LDAP C SDK to
build with autoconf, including in a --objdir. These are really just a
wrapper around the existing (NSPR-based) build-system; they propagate
very little information from the autconf command line or environment.
The Makefile.in files are all just slightly edited forks of the
Makefile.client files. These files are:
Makefile.in
configure
configure.in
build/Makefile.in
build/autoconf.mk.in
build/my_overrides.mk
include/Makefile.in
libraries/Makefile.in
libraries/liblber/Makefile.in
libraries/libldap/Makefile.in
Note that as in the main browser tree, I've checked in the (generated)
configure script so that autoconf isn't a prerequisite to build.
At some point after the most current LDAP SDK code lands in Mozilla,
then perhaps it will be worth spending some time creating a more
correctly autoconfified build process that isn't just a shim and
doesn't depend on NSPR.
Comments to <news://news.mozilla.org/netscape.public.mozilla.directory>,
please.
Dan Mosedale
<dmose@mozilla.org>

View File

@@ -0,0 +1,57 @@
#
# 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 Communicator client code, released
# March 31, 1998.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-1999 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../../../..
MOD_DEPTH = ../..
NSPR_TREE = ../..
CSRCS = dirver.c
include $(NSPR_TREE)/config/rules.mk
include ../../build.mk
TARGETS = $(OBJDIR)/dirver$(EXE_SUFFIX)
GARBAGE += $(TARGETS)
ifeq ($(OS_ARCH), WINNT)
$(OBJS) = $(addprefix $(OBJDIR)/, $(CSRCS:.c=.o))
$(TARGETS): $(OBJS)
@$(MAKE_OBJDIR)
$(LINK_EXE)
endif
ifeq ($(OS_ARCH), OS2)
$(OBJS) = $(addprefix $(OBJDIR)/, $(CSRCS:.c=.o))
$(TARGETS): $(OBJS)
@$(MAKE_OBJDIR)
$(LINK_EXE) -OUT:$@ $(OBJS)
endif
export:: $(TARGETS)
$(INSTALL) -m 555 $(TARGETS) ../$(DIST)/bin
install:: export
clean::
rm -rf $(OBJDIR_NAME)

View File

@@ -0,0 +1,62 @@
#
# 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 mozilla.org code.
#
# 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.
#
DEPTH = ../../../..
srcdir = @srcdir@
ldaptopsrcdir = @top_srcdir@
CSRCS = dirver.c
include autoconf.mk
include $(NSPR_TREE)/config/rules.mk
TARGETS = $(OBJDIR)/dirver$(BIN_SUFFIX)
GARBAGE += $(TARGETS)
ifeq ($(OS_ARCH), OS2)
$(OBJS) = $(addprefix $(OBJDIR)/, $(CSRCS:.c=.o))
$(TARGETS): $(OBJS)
@$(MAKE_OBJDIR)
$(LINK_EXE) -OUT:$@ $(OBJS)
endif
export:: $(TARGETS)
$(INSTALL) -m 555 $(TARGETS) $(DIST)/bin
install:: export
clean::
rm -rf $(OBJDIR_NAME)

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 mozilla.org LDAP SDK autoconf glue.
#
# The Initial Developer of the Original Code is Netscape
# Commmunications Corp. Portions created by Netscape are
# Copyright (C) 2000, Netscape Communications Corp. All
# Rights Reserved.
#
# Contributor(s): Dan Mosedale <dmose@mozilla.org>
#
# this is used to override DIST and VPATH
#
NSPR_MY_OVERRIDES_MK = $(ldaptopsrcdir)/build/my_overrides.mk
# common to all the ldap sdk makefiles
#
NSPR_TREE = $(ldaptopsrcdir)/../../../nsprpub
topsrcdir = $(ldaptopsrcdir)/../../../nsprpub
# various stuff from the ldap sdk documentation
#
MOZILLA_CLIENT = 1
NO_MDUPDATE = 1
MOZ_LDAP_SDK = 1
MOZ_LI =
MOZ_LITE =
MOZ_MEDIUM =
NO_SECURITY =
# we have to cope if nspr was built using autoconf (which we only know is
# is true if our configure was passed --enable-nspr-autoconf -- which
# the top-level configure does automagically, as appropriate).
#
NSPR_USE_AUTOCONF = @NSPR_USE_AUTOCONF@
ifeq ($(NSPR_USE_AUTOCONF), 1)
MOD_DEPTH = $(DEPTH)
include $(DEPTH)/nsprpub/config/autoconf.mk
VPATH = $(srcdir)
DIST = $(DEPTH)/dist
else
MOD_DEPTH = $(NSPR_TREE)
endif

View File

@@ -0,0 +1,91 @@
#!/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-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.
#
# compver.sh - a script to check if the correct component version is
# available. If it is not available, it uses the nsftp.sh script to
# download the component version. The component release is assumed
# to be under /share/builds/components on a UNIX box.
#
COMP_ROOT=$1
COMP_VERSION=$2
COMP_VERSION_FILE=${COMP_ROOT}/Version
COMPOBJDIR=$3
MCOM_ROOT=$4
MODULE=$5 # Module which needs this component
COMP_RELEASE=$6 # Component release dir
COMP_NAME=$7 # component name (e.g. ldapsdk, rouge)
COMP_SUBDIRS=$8 # subdirs to ftp over
TEST_FILE=$9 # to test if ftp was successful
if test -r ${COMP_VERSION_FILE}; then \
CUR_VERSION=`cat ${COMP_VERSION_FILE}`; \
if test "${CUR_VERSION}" = "${COMP_VERSION}"; then \
if test -d ${COMP_ROOT}/${COMPOBJDIR}; then \
exit 0; \
fi; \
fi; \
fi
echo "************************ WARNING *************************"
echo "The MODULE ${MODULE} needs ${COMP_NAME} client libraries."
echo "The ${COMP_NAME} client libraries are missing. "
echo ""
echo "Attempting to download..."
rm -rf ${COMP_ROOT}/${COMPOBJDIR} ${COMP_VERSION_FILE}
mkdir -p ${COMP_ROOT}/${COMPOBJDIR}
sh ../../build/nsftp.sh ${COMP_NAME}/${COMP_VERSION}/${COMPOBJDIR} ${COMP_ROOT}/${COMPOBJDIR}
for d in ${COMP_SUBDIRS}; do \
mkdir -p ${COMP_ROOT}/${COMPOBJDIR}/${d}; \
sh ../../build/nsftp.sh ${COMP_NAME}/${COMP_VERSION}/${COMPOBJDIR}/${d} ${COMP_ROOT}/${COMPOBJDIR}/${d}
done
if test -f ${TEST_FILE}; then \
echo "${COMP_VERSION}" > ${COMP_VERSION_FILE}; \
echo "************************ SUCCESS! ************************"; \
else \
echo ""; \
echo "Attempt to ftp over ${COMP_NAME} failed!!!"; \
echo "Please ftp over (${COMP_SUBDIRS}) subdirectories under:"; \
echo " ${COMP_RELEASE}"; \
echo "and put them under:"; \
echo " ${COMP_ROOT}/${COMPOBJDIR}"; \
echo "Also, execute the following command: "; \
echo " echo \"${COMP_VERSION}\" > ${COMP_VERSION_FILE}"; \
echo "Note: Above directories are w.r.t. the MODULE ${MODULE}"; \
echo "**********************************************************"; \
exit 1; \
fi

View File

@@ -0,0 +1,237 @@
/*
* 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 Communicator client code, released
* March 31, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
/*--------------------------------------------------------------------------
/
/ Name: Netscape File Version Generator
/ Platforms: WIN32
/ ......................................................................
/ This program generates an ascii format of the 64-bit FILEVERSION
/ resource identifier used by Windows executable binaries.
/
/ Usage Syntax:
/ fversion <major.minor.patch> [mm/dd/yyyy] [outfile]
/ If date is not specified, the current GMT date is used. yyyy must be
/ greater than 1980
/
/ Usage Example:
/ fversion 3.0.0
/ fversion 6.5.4 1/30/2001
/ fversion 6.5.4 1/30/2001 fileversion.h
/
/ see http://ntsbuild/sd/30ver.htm for specification
/ ......................................................................
/ Revision History:
/ 01-30-97 Initial Version, Andy Hakim (ahakim@netscape.com)
/ --------------------------------------------------------------------------*/
#ifdef _WIN32
#include <windows.h>
#endif
#ifdef macintosh
#include <console.h>
#endif
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
unsigned _CalcVersion(unsigned nMajor, unsigned nMinor, unsigned nPatch)
{
unsigned nVersion;
nVersion = nMajor;
nVersion <<= 5;
nVersion += nMinor;
nVersion <<= 7;
nVersion += nPatch;
nVersion &= 0xFFFF;
return(nVersion);
}
static void _GetVersions(char *szVer, unsigned *nMajor, unsigned *nMinor,
unsigned *nPatch)
{
char szVersion[128];
/* unsigned nReturn = 0; Unused? */
char *szToken;
*nMajor = 0;
*nMinor = 0;
*nPatch = 0;
strcpy(szVersion, szVer);
if((szToken = strtok(szVersion, ".\n")) != NULL)
{
*nMajor = atoi(szToken);
if((szToken = strtok(NULL, ".\n")) != NULL)
{
*nMinor = atoi(szToken);
if((szToken = strtok(NULL, ".\n")) != NULL)
{
*nPatch = atoi(szToken);
}
}
}
}
unsigned _CalcBuildDate(unsigned nYear, unsigned nMonth, unsigned nDay)
{
unsigned nBuildDate = 0;
if(nYear < 1900) /* they really mean 1900 + nYear */
nYear += 1900;
nYear -= 1980;
nBuildDate = nYear;
/*
nBuildDate <<= 5;
*/
nBuildDate <<= 4;
nBuildDate += nMonth;
/* nBuildDate <<= 4; */
nBuildDate <<= 5;
nBuildDate += nDay;
nBuildDate &= 0xFFFF;
return(nBuildDate);
}
unsigned _GenBuildDate(char *szBuildDate)
{
unsigned nReturn = 0;
char *szToken;
unsigned nYear = 0;
unsigned nMonth = 0;
unsigned nDay = 0;
if((szBuildDate) && (strchr(szBuildDate, '\\') || strchr(szBuildDate, '/')) && (szToken = strtok(szBuildDate, "\\/")))
{
nMonth = atoi(szToken);
nMonth--; /* use months in the range [0..11], as in struct tm */
if((szToken = strtok(NULL, "\\/")) != NULL)
{
nDay = atoi(szToken);
if((szToken = strtok(NULL, "\\/")) != NULL)
{
nYear = atoi(szToken);
if(nYear < 70) { /* handle 2 digit years like (20)00 */
nYear += 100;
}
else if (nYear < 100) {
}
else if (nYear > 1900){
nYear -= 1900;
}
}
}
}
else
{
struct tm *newtime;
time_t ltime;
time( &ltime );
/* Obtain coordinated universal time: */
newtime = gmtime( &ltime );
nYear = newtime->tm_year;
nMonth = newtime->tm_mon;
nDay = newtime->tm_mday;
}
nReturn = _CalcBuildDate(nYear, nMonth, nDay);
return(nReturn);
}
static void ShowHelp(char *szFilename)
{
fprintf(stdout, "%s: Generates ascii format #define for FILEVERSION\n", szFilename);
fprintf(stdout, " resource identifier used by Windows executable binaries.\n");
fprintf(stdout, "\n");
fprintf(stdout, "Usage: %s <major.minor.patch> [mm/dd/yy] [outfile]\n", szFilename);
fprintf(stdout, "\n");
fprintf(stdout, "Examples:\n");
fprintf(stdout, "%s 3.0.0\n", szFilename);
fprintf(stdout, "%s 6.5.2 1/30/2001\n", szFilename);
fprintf(stdout, "%s 6.5.2 1/30/2001 fileversion.h\n", szFilename);
}
int
main(int nArgc, char **lpArgv)
{
int nReturn = 0;
unsigned nVersion = 0;
unsigned nBuildDate = 0;
#ifdef macintosh
nArgc = ccommand( &lpArgv );
#endif
if(nArgc < 2)
{
ShowHelp(lpArgv[0]);
nReturn = 1;
}
else
{
char *szVersion = NULL;
char *szDate = NULL;
char *szOutput = NULL;
FILE *f = stdout;
unsigned nMajor = 0;
unsigned nMinor = 0;
unsigned nPatch = 0;
szVersion = (char *)lpArgv[1];
szDate = (char *)lpArgv[2];
szOutput = (char *)lpArgv[3];
_GetVersions( szVersion, &nMajor, &nMinor, &nPatch );
nVersion = _CalcVersion(nMajor, nMinor, nPatch);
nBuildDate = _GenBuildDate(szDate);
if(nArgc >= 4) {
if (( f = fopen(szOutput, "w")) == NULL ) {
perror( szOutput );
exit( 1 );
}
}
fprintf(f, "#define VI_PRODUCTVERSION %u.%u\n", nMajor, nMinor);
fprintf(f, "#define PRODUCTTEXT \"%s\"\n", szVersion );
fprintf(f, "#define VI_FILEVERSION %u, 0, 0,%u\n",
nVersion, nBuildDate);
fprintf(f, "#define VI_FileVersion \"%s Build %u\\0\"\n",
szVersion, nBuildDate);
if(nArgc >= 4)
fclose(f);
nReturn = (nVersion && !nBuildDate);
}
return(nReturn);
}

View File

@@ -0,0 +1,388 @@
#
# 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 mozilla.org code.
#
# 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.
#
#
# genexports.pl: create up-to-date export and .def files
#
# created 31 August 1997 by Mark Smith <mcs@netscape.com>
$type = $ARGV[0];
$tmplfile = $ARGV[1];
$expfile = $ARGV[2];
$buildtype = $ARGV[3];
if ( $type ne "Win16" && $type ne "Win16Rev" && $type ne "Win32" &&
$type ne "WinBC" && $type ne "AIX" && $type ne "IRIX" &&
$type ne "MacOS" && $type ne "SOLARIS" && $type ne "SunOS" )
{
usage();
}
if ( $tmplfile eq "" || $expfile eq "" )
{
usage();
}
if ( $tmplfile ne "Standard" )
{
open( TMPL, $tmplfile );
while(<TMPL>)
{
$line = $_;
&process_line( $type, $expfile, $line, $ARGV[3+1], $ARGV[3+2],
$ARGV[3+3] );
}
}
else
{
if ( substr( $type, 0, 3 ) eq "Win" )
{
&windows_std( $type, $expfile, $ARGV[3+1], $ARGV[3+2], $ARGV[3+3] );
}
elsif ( $type eq "SOLARIS" || $type eq "SunOS" )
{
&solaris_std( $type, $expfile, $ARGV[3+1], $ARGV[3+2], $ARGV[3+3] );
}
else
{
# Simple standard template just includes exports; this works for all others.
&simple_std( $type, $expfile, $ARGV[3+1], $ARGV[3+2], $ARGV[3+3] );
}
}
# process_line( type, expfile, line, arg1, arg2, arg3 )
sub
process_line
{
local( $type, $expfile, $line, $arg1, $arg2, $arg3 ) = @_;
if ( $line eq "\$EXPORTS\n" )
{
&print_exports( $type, $expfile );
}
else
{
$line =~ s/\$1/$arg1/;
$line =~ s/\$2/$arg2/;
$line =~ s/\$3/$arg3/;
print $line;
}
}
# usage()
sub
usage
{
print STDERR "usage: genexports.pl TYPE TMPLFILE|Standard EXPFILE BUILDTYPE [ARG1 [[ARG2] [ARG3]]] > OUTFILE\n";
print STDERR " where TYPE is Win16, Win16Rev, Win32, WinBC, AIX, IRIX, MacOS, or SOLARIS.\n";
print STDERR " and where BUILDTYPE is matched against last field in export file.\n";
exit 1;
}
# print_exports( type, exports-file )
sub
print_exports
{
local( $type, $expfile ) = @_;
$SunOSType = "<SunOS>";
$SunOSType_len = length($SunOSType);
$SolarisType = "<SOLARIS>";
$SolarisType_len = length($SolarisType);
$curType = "<" . $type . ">";
$curType_len = length($curType);
$SASLType = "<SASL>";
$SASLType_len = length($SASLType);
$OS_Version = `uname -r`;
open( EXP, $expfile );
&print_comment( $type, "\n" );
&print_comment( $type, "exports list (generated by genexports.pl)\n" );
&print_comment( $type, "\n" );
while( <EXP> )
{
$line = $_;
if ( substr( $line, 0, 1 ) eq "#" )
{
# --------------------------------------------------------------------
# special processing for output embedded in the comments
# Any line in the ex file starts with "#" and follows immediately
# with "<".$type.">" will have the this prefix striped off and
# the rest of that line sent to output.
# for example:
# #<SunOS>abcdefg
# where # is the first character of the comment line
# abcdefg will be sent to the output if the $type is SunOS
# #<SunOS>abcdefg will be sent unchanged to the output if
# the $type is not SunOS
#
# Allowing embedded output in the comment makes it possible to
# generate platform specific output.
#
# If the type is SunOS or SOLARIS, the two are treated as
# interchangable in the comment line by this script. Thus,
# if the type is "SunOS" or "SOLARIS", either "#<SunOS>" or
# "#<SOLARIS>" as leading prefix is considered matched.
# --------------------------------------------------------------------
# determine if the current comment line is for embedded output
$embeddedOutput = false;
if ( $type eq "SunOS" || $type eq "SOLARIS" )
{ # for SunOS and SOLAIRS, the two are treated as interchangable
if ( (substr( $line, 1, $SunOSType_len ) eq $SunOSType) )
{
$embeddedOutput = true;
$line = substr( $line, $SunOSType_len + 1 );
}
elsif ( (substr( $line, 1, $SolarisType_len ) eq $SolarisType) )
{
$embeddedOutput = true;
$line = substr( $line, $SolarisType_len + 1 );
}
}
else
{ # any other type
if ((substr( $line, 1, $curType_len ) eq $curType) )
{
$embeddedOutput = true;
$line = substr( $line, $curType_len + 1 );
}
}
if (substr( $line, 1, $SASLType_len ) eq $SASLType)
{
if ( ($type eq "SunOS" || $type eq "SOLARIS") && (substr($OS_Version, 0, 3) eq "5.6") )
{
print STDERR "Ignoring SASL symbol:\t",$line;
}
else
{
# remove SASL symbols in Solaris 5.6
$line = substr( $line, $SASLType_len + 1 );
&print_export( $type, $line );
next;
}
}
# generate the output
if ( $embeddedOutput eq true )
{
process_line( $type, $expfile, $line );
}
else
{
$line = substr( $line, 1 );
$_ = $line;
if ( /^[0-9]+[\t ]/ )
{
&print_comment( $type, "" );
&print_export( $type, $line );
}
else
{
&print_comment( $type, $line );
}
}
}
elsif ( length( $line ) eq 1 && substr( $line, 0, 1 ) eq "\n" )
{
print "\n";
}
else
{
&print_export( $type, $line );
}
}
&print_comment( $type, "\n" );
&print_comment( $type, "end of generated exports list.\n" );
}
# print_comment( type, s )
sub
print_comment
{
local( $type, $s ) = @_;
if ( $type eq "AIX" )
{
$prefix = "* ";
}
elsif ( substr( $type, 0, 3 ) ne "Win" )
{
$prefix = "# ";
}
else
{
$prefix = "; ";
}
print $prefix,$s
}
# print_export( type, expline )
sub
print_export
{
local( $type, $expline ) = @_;
# strip trailing newline
$expline =~ s/\n$//;
# split into pieces
# lines look like: ORDINAL SYMBOL [SYMTYPE] [BUILDTYPE]
# where SYMTYPE is "P" (for Pascal), "C", or "G" (for globals).
# P is the default.
($ordinal,$symbol,$symtype,$bldtype) = split( /[ \t]+/, $expline, 4 );
$upcase_symbol = $symbol;
$upcase_symbol =~ tr/a-z/A-Z/;
if ( $symtype eq "" )
{
$symtype = "P";
}
if ( $bldtype ne "" && $bldtype ne $buildtype )
{
return;
}
# finally, print out an appropriate export line
if ( $type eq "Win32" )
{
if ( $symtype ne "G" )
{
print "\t$symbol\t\t\@$ordinal\n";
}
}
elsif ( $type eq "Win16" )
{
if ( $symtype eq "C" )
{
print "\t_$symbol\t\t\@$ordinal\n";
}
elsif ( $symtype eq "P" )
{
print "\t_$symbol=$upcase_symbol\t\t\@$ordinal\n";
}
}
elsif ( $type eq "Win16Rev" )
{
if ( $symtype ne "G" )
{
print "\t$upcase_symbol=_$symbol\t\t\@$ordinal\n";
}
}
elsif ( $type eq "WinBC" )
{
if ( $symtype ne "G" )
{
print "\t_$symbol=$symbol\t\t\@$ordinal\n";
}
}
elsif ( $type eq "MacOS" )
{
if ( $symtype ne "G" )
{
print "$symbol\n";
}
}
elsif ( $type eq "AIX" || $type eq "IRIX" )
{
print "$symbol\n";
}
elsif ( $type eq "SOLARIS" || $type eq "SunOS")
{
print "\t$symbol;\n";
}
else
{
print STDERR "print_export: unknown type <$type>\n";
exit 1;
}
}
# windows_std( type, expfile, arg1, arg2, arg3 )
sub
windows_std
{
local( $type, $expfile, $arg1, $arg2, $arg3 ) = @_;
process_line( $type, $expfile, "LIBRARY\tNSLIB\$1\n" );
if ( substr( $type, 0, 5 ) eq "Win16" )
{
process_line( $type, $expfile, "CODE\tPRELOAD MOVEABLE DISCARDABLE\n" );
process_line( $type, $expfile, "DATA\tPRELOAD MOVEABLE SINGLE\n" );
}
process_line( $type, $expfile, "VERSION\t\$2\n" );
process_line( $type, $expfile, "HEAPSIZE\t4096\n" );
process_line( $type, $expfile, "EXPORTS\n" );
process_line( $type, $expfile, "\$EXPORTS\n" );
}
# solaris_std( type, expfile, arg1, arg2, arg3 )
sub
solaris_std
{
local( $type, $expfile, $arg1, $arg2, $arg3 ) = @_;
# process_line( $type, $expfile, "{\n" );
# process_line( $type, $expfile, "global:\n" );
process_line( $type, $expfile, "\$EXPORTS\n" );
process_line( $type, $expfile, "\n" );
# process_line( $type, $expfile, "local:\n" );
# process_line( $type, $expfile, "\t*;\n" );
# process_line( $type, $expfile, "};\n" );
}
# simple_std( type, expfile, arg1, arg2, arg3 )
sub
simple_std
{
local( $type, $expfile, $arg1, $arg2, $arg3 ) = @_;
process_line( $type, $expfile, "\$EXPORTS\n" );
}

View File

@@ -0,0 +1,23 @@
#
# 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 mozilla.org LDAP SDK autoconf glue.
#
# The Initial Developer of the Original Code is Netscape
# Commmunications Corp. Portions created by Netscape are
# Copyright (C) 2000, Netscape Communications Corp. All
# Rights Reserved.
#
# Contributor(s): Dan Mosedale <dmose@mozilla.org>
#
DIST = $(DEPTH)/dist
VPATH = $(srcdir)

View File

@@ -0,0 +1,72 @@
#!/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-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.
#
# FTP script for downloading /share/builds/components stuff.
#
# syntax:
# nsftp <srcdir-relative to /share/builds/components> <destdir>
#
# Example
#
# nsftp ldapsdk/19961108 c:\3.0\ns\components\ldapsdk
#
#JSERVER=ftp-rel
#SERVER=gaida
SERVER=$COMPONENT_FTP_SERVER
USER=ftpman
PASSWD=ftpman
TMPFILE=tmp.foo
SRC=$1
DEST=$2
if [ -z "$3" ]; then
FILENAME=*
else
FILENAME=$3
fi
echo ${USER} contents of ${SRC} to ${DEST}
cd ${DEST}
ftp -n ${SERVER} << -=EOF=-
user ${USER} ${PASSWD}
binary
hash
prompt
cd ${SRC}
mget ${FILENAME}
quit
-=EOF=-

View File

@@ -0,0 +1,69 @@
#
# 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 mozilla.org code.
#
# 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.
#
# replace.pl: perform simple string substitution on a file
# the first line in the input (template) file is also discarded.
#
# usage: perl replace.pl KEYWORD=VALUE... < TMPLFILE > OUTFILE
#
# created 17 October 2001 by Mark Smith <mcs@netscape.com>
@keywords = ();
@values = ();
$count = 0;
foreach $str (@ARGV) {
($key,$val) = split( "=", $str, 2 );
push (@keywords, $key);
push (@values, $val);
++$count;
}
$first_line = 1;
while(<STDIN>) {
$line = $_;
$count = 0;
foreach $str (@keywords) {
$line =~ s/{{$str}}/$values[$count]/g;
++$count;
}
if ( ! $first_line ) {
print $line;
} else {
$first_line = 0;
}
}
exit 0;

View File

@@ -0,0 +1,522 @@
#
# 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 Communicator client code, released
# March 31, 1998.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998-1999 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
NS_DEPTH = ../../../..
DEPTH = ../../../../..
LDAP_SRC = ../..
NSCP_DISTDIR = ../../../../../dist
NSPR_TREE = ../../..
MOD_DEPTH = ../../..
include $(NSPR_TREE)/config/rules.mk
include ../../../build.mk
INSTALLDIR = $(NSCP_DISTDIR)/$(OBJDIR_NAME)/bin
HEADERDIR = $(DEPTH)/dist/$(OBJDIR_NAME)
INCLUDES += -I$(HEADERDIR)/include \
-I../../../../../dist/include/obsolete \
-I../../../../../dist/include \
-I../../../../../dist/public/security \
-I../../../../../dist/public/nss \
-I$(NSCP_DISTDIR)/public/ldap \
-I../../../ldap/include
ifdef HAVE_SASL
INCLUDES += -I$(LIBSASL_INCLUDES)
endif
#for including SASL options
ifdef HAVE_SASL
HAVESASLOPTIONS = -DHAVE_SASL_OPTIONS
# we don't need the -2 version of sasl any more.
#HAVESASLOPTIONS += -DHAVE_SASL_OPTIONS_2
else
HAVESASLOPTIONS =
endif
ifeq ($(HAVE_CCONF), 1)
COMPS_FROM_OBJDIR=1
endif
#
# keep this defined for ldapssl_pkcs_init->NSS_Initialize
# so that custom NSS secdb filenames/prefixes can be used
#
CFLAGS+=-DLDAP_TOOL_PKCS11
ifdef HAVE_LIBICU
INCLUDES += -I$(LIBICU_INCLUDES)
endif
ifeq ($(OS_ARCH), WINNT)
DEFS += -DXP_WIN -DXP_WIN32
endif
DEFINES += $(DEFS)
CXXSRCS = convutf8.cpp
OBJDEST = $(OBJDIR_NAME)
BINDIR = $(OBJDIR_NAME)/bin
LIBDIR = $(OBJDIR_NAME)/lib
ifneq ($(OS_ARCH), WINNT)
ifeq ($(USE_64), 1)
RPATHFLAG = '$$'ORIGIN/../lib:/opt/sun/private/lib/64
else
RPATHFLAG = '$$'ORIGIN/../lib:/opt/sun/private/lib
endif
ifeq ($(OS_ARCH), SunOS)
ifeq ($(USE_64), 1)
RPATHFLAG = '$$'ORIGIN/../lib:/usr/lib/mps/sasl2/64:/usr/lib/mps/secv1/64:/usr/lib/mps/64
else
RPATHFLAG = '$$'ORIGIN/../lib:/usr/lib/mps/sasl2:/usr/lib/mps/secv1:/usr/lib/mps
endif
endif
ifeq ($(OS_ARCH), Linux)
ifeq ($(USE_64), 1)
RPATHFLAG = '$$'ORIGIN/../lib:/opt/sun/private/lib64
else
RPATHFLAG = '$$'ORIGIN/../lib:/opt/sun/private/lib
endif
endif
ifeq ($(OS_ARCH), HP-UX)
ifeq ($(USE_64), 1)
RPATHFLAG = '$$'ORIGIN/../lib:/opt/sun/private/lib/64
else
RPATHFLAG = '$$'ORIGIN/../lib:/opt/sun/private/lib
endif
endif
ifeq ($(OS_ARCH), AIX)
ifeq ($(USE_64), 1)
RPATHFLAG = ../lib:/opt/sun/private/lib/64
else
RPATHFLAG = ../lib:/opt/sun/private/lib
endif
endif
endif
ifeq ($(OS_ARCH), WINNT)
LDAPDELETE_OBJ = $(addprefix $(OBJDEST)/, ldapdelete.obj)
LDAPMODIFY_OBJ = $(addprefix $(OBJDEST)/, ldapmodify.obj)
LDAPSEARCH_OBJ = $(addprefix $(OBJDEST)/, ldapsearch.obj)
LDAPCOMPARE_OBJ = $(addprefix $(OBJDEST)/, ldapcompare.obj)
LDAPCMP_OBJ = $(addprefix $(OBJDEST)/, ldapcmp.obj)
LDAPPASSWD_OBJ = $(addprefix $(OBJDEST)/, ldappasswd.obj)
LDAPTOOLCOMMON_OBJ = $(addprefix $(OBJDEST)/, common.obj) \
$(addprefix $(OBJDEST)/, convutf8.obj) \
$(addprefix $(OBJDEST)/, fileurl.obj)
ifdef HAVE_SASL
LDAPTOOLCOMMON_OBJ += $(addprefix $(OBJDEST)/, ldaptool-sasl.obj)
endif
else
LDAPDELETE_OBJ = $(addprefix $(OBJDEST)/, ldapdelete.o)
LDAPMODIFY_OBJ = $(addprefix $(OBJDEST)/, ldapmodify.o)
LDAPSEARCH_OBJ = $(addprefix $(OBJDEST)/, ldapsearch.o)
LDAPCOMPARE_OBJ = $(addprefix $(OBJDEST)/, ldapcompare.o)
LDAPCMP_OBJ = $(addprefix $(OBJDEST)/, ldapcmp.o)
LDAPPASSWD_OBJ = $(addprefix $(OBJDEST)/, ldappasswd.o)
ifeq ($(OS_ARCH), HP-UX)
LDAPTOOLCOMMON_OBJ = $(addprefix $(OBJDEST)/, common.o) \
$(addprefix $(OBJDEST)/, fileurl.o)
else
LDAPTOOLCOMMON_OBJ = $(addprefix $(OBJDEST)/, common.o) \
$(addprefix $(OBJDEST)/, convutf8.o) \
$(addprefix $(OBJDEST)/, fileurl.o)
endif
ifdef HAVE_SASL
LDAPTOOLCOMMON_OBJ += $(addprefix $(OBJDEST)/, ldaptool-sasl.o)
endif
endif
ifeq ($(OS_ARCH), HP-UX)
LDAPTOOLCPPCOMMON_OBJ = $(addprefix $(OBJDEST)/, convutf8.o)
endif
CLIENT_OBJS = $(LDAPDELETE_OBJ) $(LDAPMODIFY_OBJ) \
$(LDAPSEARCH_OBJ) $(LDAPCOMPARE_OBJ) $(LDAPCMP_OBJ) $(LDAPPASSWD_OBJ) $(LDAPTOOLCOMMON_OBJ)
ifeq ($(OS_ARCH), WINNT)
LDAPCOMPARE_RES = $(addprefix $(OBJDEST)/, ldapcompare.res)
LDAPCOMPARE_OBJS_RES = $(LDAPCOMPARE_RES)
LDAPDELETE_RES = $(addprefix $(OBJDEST)/, ldapdelete.res)
LDAPDELETE_OBJS_RES = $(LDAPDELETE_RES)
LDAPMODIFY_RES = $(addprefix $(OBJDEST)/, ldapmodify.res)
LDAPMODIFY_OBJS_RES = $(LDAPMODIFY_RES)
LDAPSEARCH_RES = $(addprefix $(OBJDEST)/, ldapsearch.res)
LDAPSEARCH_OBJS_RES = $(LDAPSEARCH_RES)
LDAPCMP_RES = $(addprefix $(OBJDEST)/, ldapcmp.res)
LDAPCMP_OBJS_RES = $(LDAPCMP_RES)
LDAPPASSWD_RES = $(addprefix $(OBJDEST)/, ldappasswd.res)
LDAPPASSWD_OBJS_RES = $(LDAPPASSWD_RES)
endif
LDAPDELETE = $(addsuffix $(EXE_SUFFIX), $(addprefix $(BINDIR)/, ldapdelete))
LDAPMODIFY = $(addsuffix $(EXE_SUFFIX), $(addprefix $(BINDIR)/, ldapmodify))
LDAPSEARCH = $(addsuffix $(EXE_SUFFIX), $(addprefix $(BINDIR)/, ldapsearch))
LDAPCOMPARE = $(addsuffix $(EXE_SUFFIX), $(addprefix $(BINDIR)/, ldapcompare))
LDAPCMP = $(addsuffix $(EXE_SUFFIX), $(addprefix $(BINDIR)/, ldapcmp))
LDAPPASSWD = $(addsuffix $(EXE_SUFFIX), $(addprefix $(BINDIR)/, ldappasswd))
BINS= $(LDAPDELETE) $(LDAPMODIFY) $(LDAPSEARCH) $(LDAPCOMPARE) $(LDAPCMP) $(LDAPPASSWD)
ifeq ($(OS_ARCH), WINNT)
LDTOOLS_LIBS += $(LIBNSPR)
else
LDTOOLS_LIBS += $(DYNAMICNSPR)
endif
ifeq ($(OS_ARCH), SunOS)
EXTRA_LIBS = -L$(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib -l$(LDAP_LIBNAME) \
-l$(LDIF_LIBNAME) -l$(SSLDAP_LIBNAME) -l$(PRLDAP_LIBNAME) \
-L$(NSCP_DISTDIR)/lib $(SVRCORE_LINK) \
-l$(SSL_LIBNAME) -l$(NSS_LIBNAME) \
-lposix4 -lsocket -lnsl \
-ldl -lresolv -lgen
EXTRA_LIBS += -L$(NSCP_DISTDIR)/lib $(DYNAMICNSPR)
endif
ifeq ($(OS_ARCH), WINNT)
EXTRA_LIBS =wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib \
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \
rpcrt4.lib uuid.lib odbc32.lib odbccp32.lib winmm.lib
EXTRA_LIBS += $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(LBER_LIBNAME).lib
EXTRA_LIBS += $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(LDAP_LIBNAME).lib
EXTRA_LIBS += $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(LDIF_LIBNAME).lib
EXTRA_LIBS += $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(PLC_BASENAME).lib
EXTRA_LIBS += $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(PLDS_BASENAME).lib
EXTRA_LIBS += $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(NSPR_BASENAME).lib
EXTRA_LIBS += $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(UTIL_LIBNAME).lib
EXTRA_LIBS += $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(SSLDAP_LIBNAME).lib
EXTRA_LIBS += $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(PRLDAP_LIBNAME).lib
EXTRA_LIBS += $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(NSS_LIBNAME).lib
EXTRA_LIBS += $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(SSL_LIBNAME).lib
endif
ifeq ($(OS_ARCH), OSF1)
EXTRA_LIBS = -L$(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib -l$(LDAP_LIBNAME) \
-l$(LDIF_LIBNAME) -l$(SSLDAP_LIBNAME) -l$(PRLDAP_LIBNAME) \
-L$(NSCP_DISTDIR)/lib $(SVRCORE_LINK) \
-l$(SSL_LIBNAME) -l$(NSS_LIBNAME) \
-lcxx -lpthread -lrt -lmach -lexc
EXTRA_LIBS += -L$(NSCP_DISTDIR)/lib $(DYNAMICNSPR)
endif
ifeq ($(OS_ARCH), Linux)
EXTRA_LIBS += -L$(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib -l$(LDAP_LIBNAME) \
-l$(LDIF_LIBNAME) -l$(SSLDAP_LIBNAME) -l$(PRLDAP_LIBNAME) \
-L$(NSCP_DISTDIR)/lib $(SVRCORE_LINK) \
-l$(SSL_LIBNAME) -l$(NSS_LIBNAME) \
-l$(STKN_LIBNAME) -l$(LBER_LIBNAME) \
-ldl -lresolv -lc -lstdc++
EXTRA_LIBS += -L$(NSCP_DISTDIR)/lib $(DYNAMICNSPR)
endif
ifeq ($(OS_ARCH), HP-UX)
EXTRA_LIBS = -ldld -lm -lrt \
-L$(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib -l$(LDAP_LIBNAME) \
-l$(LDIF_LIBNAME) -l$(SSLDAP_LIBNAME) -l$(PRLDAP_LIBNAME) \
-L$(NSCP_DISTDIR)/lib $(SVRCORE_LINK) \
-l$(SSL_LIBNAME) -l$(NSS_LIBNAME) -l$(LBER_LIBNAME)
EXTRA_LIBS += -L$(NSCP_DISTDIR)/lib $(DYNAMICNSPR)
endif
ifeq ($(OS_ARCH), AIX)
EXTRA_LIBS = -L$(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib -l$(LDAP_LIBNAME) \
-l$(LDIF_LIBNAME) -l$(SSLDAP_LIBNAME) -l$(PRLDAP_LIBNAME) \
-L$(NSCP_DISTDIR)/lib $(SVRCORE_LINK) \
-l$(SSL_LIBNAME) -l$(NSS_LIBNAME) \
-ldl -brtl -lpthreads -lc_r -lm
EXTRA_LIBS += -L$(NSCP_DISTDIR)/lib $(DYNAMICNSPR)
endif
ifdef HAVE_SASL
ifeq ($(OS_ARCH), WINNT)
EXTRA_LIBS += $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/sasl32.lib
else
EXTRA_LIBS += -lsasl
endif
endif
ifdef HAVE_LIBICU
ifeq ($(OS_ARCH), SunOS)
OS_VERS := $(shell uname -r)
ifeq ($(OS_VERS),5.6)
EXTRA_LIBS += -lC
else
EXTRA_LIBS += -lCrun
endif
endif
endif
ifeq ($(OS_ARCH), WINNT)
EXTRA_LIBS += $(LIBICU)
else
EXTRA_LIBS += $(ICULINK)
endif
LDTOOLS_LIBS += $(EXTRA_LIBS)
LIBLOCATION = $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib
###########################################################################
all:: $(BINS) $(OBJDEST) linklibicu libdir $(BINS)
libdir: linklibicu
ifeq ($(OS_ARCH), WINNT)
@echo "Install libldap provided libraries - NT only"
$(NSINSTALL) $(LIBLOCATION)/$(LDAP_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
$(NSINSTALL) $(LIBLOCATION)/$(PRLDAP_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
$(NSINSTALL) $(LIBLOCATION)/$(SSLDAP_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
else
@echo "Install libldap provided libraries - Unix'es"
$(NSINSTALL) $(LIBLOCATION)/lib$(LDAP_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
$(NSINSTALL) $(LIBLOCATION)/lib$(PRLDAP_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
$(NSINSTALL) $(LIBLOCATION)/lib$(SSLDAP_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
endif
ifeq ($(COMPS_FROM_OBJDIR), 1)
ifeq ($(OS_ARCH), WINNT)
@echo "Install libraries from specified location - NT only"
ifeq ($(HAVE_SASL), 1)
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(SASL_BASENAME).$(DLL_SUFFIX) $(LIBDIR)
endif
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(PLC_BASENAME).$(DLL_SUFFIX) $(LIBDIR)
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(PLDS_BASENAME).$(DLL_SUFFIX) $(LIBDIR)
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(NSPR_BASENAME).$(DLL_SUFFIX) $(LIBDIR)
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(SSL_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(NSS_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
else
@echo "Install libraries from specified location - Unix'es"
ifeq ($(HAVE_SASL), 1)
ifneq ($(HAVE_SASL_LOCAL), 1)
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/lib$(SASL_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
endif
endif
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/lib$(PLC_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/lib$(PLDS_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/lib$(NSPR_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/lib$(SSL_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/lib$(NSS_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
endif
else
ifeq ($(OS_ARCH), WINNT)
@echo "Install libraries needed by libldap - NT only"
ifeq ($(HAVE_SASL), 1)
$(NSINSTALL) $(NSCP_DISTDIR)/lib/$(SASL_BASENAME).$(DLL_SUFFIX) $(LIBDIR)
endif
$(NSINSTALL) $(NSCP_DISTDIR)/lib/$(PLC_BASENAME).$(DLL_SUFFIX) $(LIBDIR)
$(NSINSTALL) $(NSCP_DISTDIR)/lib/$(PLDS_BASENAME).$(DLL_SUFFIX) $(LIBDIR)
$(NSINSTALL) $(NSCP_DISTDIR)/lib/$(NSPR_BASENAME).$(DLL_SUFFIX) $(LIBDIR)
$(NSINSTALL) $(NSCP_DISTDIR)/lib/$(SSL_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
$(NSINSTALL) $(NSCP_DISTDIR)/lib/$(NSS_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
else
@echo "Install libraries needed by libldap - UNIX'es only"
ifeq ($(OS_ARCH), WINNT)
$(NSINSTALL) $(NSCP_DISTDIR)/lib/lib$(SASL_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
endif
$(NSINSTALL) $(NSCP_DISTDIR)/lib/lib$(PLC_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
$(NSINSTALL) $(NSCP_DISTDIR)/lib/lib$(PLDS_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
$(NSINSTALL) $(NSCP_DISTDIR)/lib/lib$(NSPR_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
$(NSINSTALL) $(NSCP_DISTDIR)/lib/lib$(SSL_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
$(NSINSTALL) $(NSCP_DISTDIR)/lib/lib$(NSS_LIBNAME).$(DLL_SUFFIX) $(LIBDIR)
endif
endif
ifeq ($(COPYFREEBL), 1)
ifeq ($(OS_ARCH), WINNT)
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/$(FREEBL_LIBNAME) $(LIBDIR)
else
$(NSINSTALL) $(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib/lib$(FREEBL_LIBNAME) $(LIBDIR)
endif
endif
linklibsasl: FORCE
ifeq ($(HAVE_SASL), 1)
ifneq ($(HAVE_SASL_LOCAL), 1)
ifneq ($(COMPONENT_PULL_METHOD), FTP)
@echo ""
@echo "IMPORTING .... libsasl"
@echo ""
$(RM) -f $(LIBSASL_INCLUDES)
$(RM) -f $(LIBSASL_LIBDIR)
ln -s $(LIBSASL_INCLUDES_LOC) $(LIBSASL_INCLUDES)
ln -s $(LIBSASL_LIB_LOC) $(LIBSASL_LIBDIR)
else
@echo ""
@echo "IMPORTING .... libsasl"
@echo ""
$(NSINSTALL) -D ../../../../../dist/$(OBJDIR_NAME)/libsasl
$(NSINSTALL) -D ../../../../../dist/public
$(NSINSTALL) -D ../../../../../dist/public/libsasl
sh ../../build/nsftp.sh /share/builds/integration/sasl$(SASLVERS)/$(SASL_RELEASE_TAG)/$(OBJDIR_NAME)/lib ../../../../../dist/$(OBJDIR_NAME)/libsasl
sh ../../build/nsftp.sh /share/builds/integration/sasl$(SASLVERS)/$(SASL_RELEASE_TAG)/$(OBJDIR_NAME)/include ../../../../../dist/public/libsasl
endif
ifeq ($(OS_ARCH),WINNT)
$(NSINSTALL) $(LIBSASL_LIBDIR)/$(SASL_BASENAME).* ../../../../../dist/$(OBJDIR_NAME)/lib
else
$(NSINSTALL) $(LIBSASL_LIBDIR)/lib$(SASL_LIBNAME).$(DLL_SUFFIX) ../../../../../dist/$(OBJDIR_NAME)/lib
endif
else
@echo ""
@echo "WARNING: HAVE_SASL_LOCAL is set for libsasl; default to local version provided by OS"
@echo ""
endif
endif
linklibicu: FORCE
ifneq ($(COMPONENT_PULL_METHOD), FTP)
ifeq ($(HAVE_LIBICU), 1)
ifneq ($(HAVE_LIBICU_LOCAL), 1)
@echo ""
@echo "IMPORTING .... libicu"
@echo ""
$(RM) -f $(LIBICU_INCLUDES)
$(RM) -f $(LIBICU_LIBDIR)
ln -s $(LIBICU_INCLUDES_LOC) $(LIBICU_INCLUDES)
ln -s $(LIBICU_LIB_LOC) $(LIBICU_LIBDIR)
endif
endif
else
ifeq ($(HAVE_LIBICU), 1)
ifneq ($(HAVE_LIBICU_LOCAL), 1)
@echo ""
@echo "IMPORTING .... libicu"
@echo ""
# The following shell script recalculates $(ICU_INCLUDE), $(ICU_LIBPATH)
ifeq ($(USE_INT), 1)
sh ../../build/compver.sh $(LIBICU_DIR) $(LIBICU_RELDATE) \
$(OBJDIR_NAME) ../../../../dist ldapsdk \
/share/builds/components/icu/$(ICU_LIBVERSION)/$(LIBICU_RELDATE)/$(OBJDIR_NAME) \
libicu$(ICU_LIBVERSION) \
"include lib"
else
$(NSINSTALL) -D ../../../../../dist/$(OBJDIR_NAME)/libicu
$(NSINSTALL) -D ../../../../../dist/public
$(NSINSTALL) -D ../../../../../dist/public/libicu
$(NSINSTALL) -D ../../../../../dist/public/libicu/unicode
$(NSINSTALL) -D ../../../../../dist/public/libicu/layout
sh ../../build/nsftp.sh /share/builds/integration/icu/$(ICU_LIBVERSION)/$(LIBICU_RELDATE)/$(ICUOBJDIR)/lib ../../../../../dist/$(OBJDIR_NAME)/libicu
ifeq ($(OS_ARCH), WINNT)
sh ../../build/nsftp.sh /share/builds/integration/icu/$(ICU_LIBVERSION)/$(LIBICU_RELDATE)/$(ICUOBJDIR)/bin ../../../../../dist/$(OBJDIR_NAME)/libicu
endif
sh ../../build/nsftp.sh /share/builds/integration/icu/$(ICU_LIBVERSION)/$(LIBICU_RELDATE)/$(ICUOBJDIR)/include ../../../../../dist/public/libicu
sh ../../build/nsftp.sh /share/builds/integration/icu/$(ICU_LIBVERSION)/$(LIBICU_RELDATE)/$(ICUOBJDIR)/include/unicode ../../../../../dist/public/libicu/unicode
sh ../../build/nsftp.sh /share/builds/integration/icu/$(ICU_LIBVERSION)/$(LIBICU_RELDATE)/$(ICUOBJDIR)/include/layout ../../../../../dist/public/libicu/layout
endif
else
@echo ""
@echo "WARNING: HAVE_LIBICU_LOCAL is set for libicu; default to local version provided by OS"
@echo ""
endif
endif
endif
ifeq ($(OS_ARCH), SunOS)
ifneq ($(HAVE_LIBICU_LOCAL), 1)
$(NSINSTALL) -D $(LIBDIR)
cp ../../../../../dist/$(OBJDIR_NAME)/libicu/libicu* $(LIBDIR)
endif
endif
$(LDAPTOOLCOMMON_OBJ):
ifeq ($(OS_ARCH), HP-UX)
$(LDAPTOOLCPPCOMMON_OBJ): convutf8.cpp
ifneq ($(USE_64), 1)
/opt/aCC/bin/aCC -ext -DHPUX_ACC -D__STDC_EXT__ -D_POSIX_C_SOURCE=199506L -c -DHPUX11 -DHPUX11_00 +DAportable +DS1.1 -D_LARGEFILE64_SOURCE -D_PR_HAVE_OFF64_T -DNO_NODELOCK -DNO_LIBLCACHE -DXP_UNIX -DHPUX -DMCC_HTTPD -DNS_DOMESTIC -DNET_SSL -DCLIENT_AUTH -DNSPR20 -D_PR_NTHREAD -D_PR_USECPU -D_REENTRANT -DNS_DS -DSPAPI20 -DBUILD_NUM=\"01.081.1519\" -DCPU_hppa -DOS_hpux -D_NO_THREADS_ -Dhpux -Dhpux -D_HPUX_SOURCE -D_REENTRANT -Aa -DLDAP_REFERRALS -DLDAP_LDBM -DLDAP_LDIF -DLDBM_USE_DBBTREE -DSLAPD_PASSWD_SHA1 -D__DBINTERFACE_PRIVATE -DNO_LIBLCACHE -DNS_DIRECTORY -DNET_SSL -DUSE_NSPR_MT -O $(INCLUDES) convutf8.cpp -o $(OBJDIR_NAME)/convutf8.o
else
/opt/aCC/bin/aCC -DHPUX_ACC -D__STDC_EXT__ -D_POSIX_C_SOURCE=199506L +DA2.0W +DS2.0 -c -DHPUX11 -DHPUX11_00 -DIS_64 +e +DA2.0W +DS2.0 -D_LARGEFILE64_SOURCE -D_PR_HAVE_OFF64_T -DNO_NODELOCK -DNO_LIBLCACHE -DXP_UNIX -DHPUX -DMCC_DEBUG -g -DMCC_HTTPD -DNS_DOMESTIC -DNET_SSL -DCLIENT_AUTH -DNSPR20 -D_PR_NTHREAD -D_PR_USECPU -D_REENTRANT -DNS_DS -DSPAPI20 -DBUILD_NUM=\"01.081.1617\" -DCPU_hppa -DOS_hpux -D_NO_THREADS_ -Dhpux -Dhpux -D_HPUX_SOURCE -D_REENTRANT -Aa -DLDAP_DEBUG -DLDAP_REFERRALS -DLDAP_LDBM -DLDAP_LDIF -DLDBM_USE_DBBTREE -DSLAPD_PASSWD_SHA1 -D__DBINTERFACE_PRIVATE -DNO_LIBLCACHE -DNS_DIRECTORY -DNET_SSL -DUSE_NSPR_MT $(INCLUDES) -g convutf8.cpp -o $(OBJDIR_NAME)/convutf8.o
endif
else
$(LDAPTOOLCPPCOMMON_OBJ):
endif
$(LDAPCOMPARE_RES) $(LDAPDELETE_RES) $(LDAPMODIFY_RES) $(LDAPSEARCH_RES) $(LDAPCMP_RES) $(LDAPPASSWD_RES): ldaptools.rc
$(RSC) -fo $@ -d LDAP_TOOLNAME=$(LDAP_TOOLNAME) \
-d YY=`date +%y` -d MMDD=`date +%m%d` -d HH=`date +%H` \
-d MMSS=`date +%M%S` -d DEBUG=$(DEBUG) \
-i ../../../../../dist/public/ldap $<
$(LDAPCOMPARE): LDAP_TOOLNAME = ldapcompare
$(LDAPCOMPARE): $(LDAPCOMPARE_OBJ) $(LDAPTOOLCOMMON_OBJ) \
$(LDAPTOOLCPPCOMMON_OBJ) $(LDAPCOMPARE_RES) $(LDTOOLS_LIBS_DEP)
$(LINK_EXE) $(LDAPCOMPARE_OBJ) $(LDAPTOOLCOMMON_OBJ) $(LDAPTOOLCPPCOMMON_OBJ) \
$(LDTOOLS_LIBS) $(LDAPCOMPARE_OBJS_RES)
$(LDAPDELETE): LDAP_TOOLNAME = ldapdelete
$(LDAPDELETE): $(LDAPDELETE_OBJ) $(LDAPTOOLCOMMON_OBJ) \
$(LDAPTOOLCPPCOMMON_OBJ) $(LDAPDELETE_RES) $(LDTOOLS_LIBS_DEP)
$(LINK_EXE) $(LDAPDELETE_OBJ) $(LDAPTOOLCOMMON_OBJ) $(LDAPTOOLCPPCOMMON_OBJ) \
$(LDTOOLS_LIBS) $(LDAPDELETE_OBJS_RES)
$(LDAPMODIFY): LDAP_TOOLNAME = ldapmodify
$(LDAPMODIFY): $(LDAPMODIFY_OBJ) $(LDAPTOOLCOMMON_OBJ) \
$(LDAPTOOLCPPCOMMON_OBJ) $(LDAPMODIFY_RES) $(LDTOOLS_LIBS_DEP)
$(LINK_EXE) $(LDAPMODIFY_OBJ) $(LDAPTOOLCOMMON_OBJ) $(LDAPTOOLCPPCOMMON_OBJ) \
$(LDTOOLS_LIBS) $(LDAPMODIFY_OBJS_RES)
$(LDAPSEARCH): LDAP_TOOLNAME = ldapsearch
$(LDAPSEARCH): $(LDAPSEARCH_OBJ) $(LDAPTOOLCOMMON_OBJ) \
$(LDAPTOOLCPPCOMMON_OBJ) $(LDAPSEARCH_RES) $(LDTOOLS_LIBS_DEP)
$(LINK_EXE) $(LDAPSEARCH_OBJ) $(LDAPTOOLCOMMON_OBJ) $(LDAPTOOLCPPCOMMON_OBJ) \
$(LDTOOLS_LIBS) $(LDAPSEARCH_OBJS_RES)
$(LDAPCMP): LDAP_TOOLNAME = ldapcmp
$(LDAPCMP): $(LDAPCMP_OBJ) $(LDAPTOOLCOMMON_OBJ) \
$(LDAPTOOLCPPCOMMON_OBJ) $(LDAPCMP_RES) $(LDTOOLS_LIBS_DEP)
$(LINK_EXE) $(LDAPCMP_OBJ) $(LDAPTOOLCOMMON_OBJ) $(LDAPTOOLCPPCOMMON_OBJ) \
$(LDTOOLS_LIBS) $(LDAPCMP_OBJS_RES)
$(LDAPPASSWD): LDAP_TOOLNAME = ldappasswd
$(LDAPPASSWD): $(LDAPPASSWD_OBJ) $(LDAPTOOLCOMMON_OBJ) \
$(LDAPTOOLCPPCOMMON_OBJ) $(LDAPPASSWD_RES) $(LDTOOLS_LIBS_DEP)
$(LINK_EXE) $(LDAPPASSWD_OBJ) $(LDAPTOOLCOMMON_OBJ) $(LDAPTOOLCPPCOMMON_OBJ) \
$(LDTOOLS_LIBS) $(LDAPPASSWD_OBJS_RES)
$(OBJDEST):
$(NSINSTALL) -D $(OBJDEST)
$(NSINSTALL) -D $(BINDIR)
$(NSINSTALL) -D $(LIBDIR)
clean::
$(RM) -rf $(OBJDEST)
install:: $(OBJDEST) libdir $(BINS)
$(NSINSTALL) $(LDAPDELETE) $(INSTALLDIR)
$(NSINSTALL) $(LDAPSEARCH) $(INSTALLDIR)
$(NSINSTALL) $(LDAPMODIFY) $(INSTALLDIR)
$(NSINSTALL) $(LDAPCOMPARE) $(INSTALLDIR)
$(NSINSTALL) $(LDAPCMP) $(INSTALLDIR)
$(NSINSTALL) $(LDAPPASSWD) $(INSTALLDIR)
#
# Simple, local dependencies
#
LDAPTOOL_COMMON_DEPS = ldaptool.h Makefile
$(LDAPTOOLCOMMON_OBJ): $(LDAPTOOL_COMMON_DEPS)
$(LDAPDELETE_OBJ): $(LDAPTOOL_COMMON_DEPS)
$(LDAPMODIFY_OBJ): $(LDAPTOOL_COMMON_DEPS) fileurl.h
$(LDAPSEARCH_OBJ): $(LDAPTOOL_COMMON_DEPS) fileurl.h
$(LDAPCOMPARE_OBJ): $(LDAPTOOL_COMMON_DEPS)
$(LDAPCMP_OBJ): $(LDAPTOOL_COMMON_DEPS)
$(LDAPPASSWD_OBJ): $(LDAPTOOL_COMMON_DEPS)
FORCE:

View File

@@ -0,0 +1,59 @@
Summary of options used by the LDAP tools
Updated 5-May-2000 by Mark Smith <mcs@netscape.com>
Only single letter options in the sets [0-9], [A-Z], and [a-z] are
listed.
The "raw" lists are taken from the calls to getopt() and
ldaptool_process_args().
The "sorted" lists are just that -- sorted versions of the raw list.
The "all" lists include options from common.c as well as the tool-specific
options.
The "avail" lists included options that are available for use.
common.c (supported by all of the tools):
raw: nvEMRHZ0d:D:f:h:I:j:K:N:O:P:p:Q:W:w:V:X:m:i:k:y:Y:J:
sorted: 0 DEHIJKMNOPQRVWXYZ dfhikmnpvwy
avail: 2 [4-9] g (not used by any of the tools)
ldapcmp.c:
raw: Bb:l:s:z:
sorted: B blsz
all: 0 BDHIKMNOPQRVWXYZ bdfhiklmnpsvwyz
avail: [12] [4-9] ACFGLSTU acegjoqrtu
ldapcompare.c:
raw: cq
sorted: cq
all: 0 DEHIKMNOPQRVWXYZ cdfhikmnpqvwy
avail: [12] [4-9] ABCFLSTU abegjlorstuxz
ldapdelete.c (deprecated)
raw: c
sorted: c
all: 0 DHIKMNOPQRVWXYZ cdfhikmnpvwy
avail: [12] [4-9] ABCFGLSTU abegjloqrstuxz
ldapmodify.c
raw: aAbcFe:B:q
sorted: ABF abceq
all: 0 ABDFHIKMNOPQRVWXYZ abcdefhikmnpqvwy
avail: [12] [4-9] CGLSTU gjlorstuxz
ldapmodrdn.c (deprecated)
raw: cr
sorted: cr
all: 0 DHIKMNOPQRVWXYZ cdfhikmnprvwy
avail: [12] [4-9] ABCFGLSTU abegjloqstuxz
ldapsearch.c
raw: ABLTU1eotuxa:b:F:G:l:S:s:z:C:
sorted: 1 ABCFGLSTU abeostuxz
all: 01 ABCDFGHIKLMNOPQRSTUVWXYZ abdefhikmnopstuvwxyz
avail: 2 [4-9] cgjlqr

View File

@@ -0,0 +1,147 @@
/*
* 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 Communicator client code, released
* March 31, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
/******************************************************
*
* argpin.c - Returns pin for token specified in a
* command line paramenter.
*
******************************************************/
#include <stdio.h>
#include <string.h>
#include "argpin.h"
struct SVRCOREArgPinObj
{
SVRCOREPinObj base;
char *tokenName;
char *password;
SVRCOREPinObj *alt;
};
static const struct SVRCOREPinMethods vtable;
/* XXXceb these are two hacks to fix a problem with the debug builds
* of svrcore. With the optimizer turned off, there is a situation
* in user.c, where these two functions need to be available for the
* linker (they are imported, and no lib exports them, since they are
* declared static on XP_UNIX platforms) The short term hack solution
* is to define them here. Yeah, it is ugly but, it will need to be
* here, until a new version of svrcore is done.
*/
void echoOff(int fd)
{
}
void echoOn(int fd)
{
}
/* ------------------------------------------------------------ */
SVRCOREError
SVRCORE_CreateArgPinObj(SVRCOREArgPinObj **out, const char * tokenName, const char *password, SVRCOREPinObj *pinObj)
{
SVRCOREError err = 0;
SVRCOREArgPinObj *obj = 0;
do {
obj = (SVRCOREArgPinObj*)malloc(sizeof (SVRCOREArgPinObj));
if (!obj) { err = 1; break; }
obj->base.methods = &vtable;
obj->tokenName=NULL;
obj->password=NULL;
obj->alt=pinObj;
if ( tokenName == NULL) {
PK11SlotInfo *slot = PK11_GetInternalKeySlot();
obj->tokenName = strdup(PK11_GetTokenName(slot));
PK11_FreeSlot(slot);
}
else
{
obj->tokenName = strdup(tokenName);
}
if (obj->tokenName == NULL) { err = 1; break; }
obj->password = strdup(password);
if (obj->password == NULL) { err = 1; break; }
} while(0);
if (err)
{
SVRCORE_DestroyArgPinObj(obj);
obj = 0;
}
*out = obj;
return err;
}
void
SVRCORE_DestroyArgPinObj(SVRCOREArgPinObj *obj)
{
if (obj->tokenName) free(obj->tokenName);
if (obj->password)
{
memset(obj->password, 0, strlen(obj->password));
free(obj->password);
}
if (obj) free(obj);
}
static void destroyObject(SVRCOREPinObj *obj)
{
SVRCORE_DestroyArgPinObj((SVRCOREArgPinObj*)obj);
}
static char *getPin(SVRCOREPinObj *obj, const char *tokenName, PRBool retry)
{
SVRCOREArgPinObj *p = (SVRCOREArgPinObj*)obj;
if (tokenName == NULL) return NULL;
/* On first attempt, return the password if the token name
* matches.
*/
if (!retry && strcmp(p->tokenName, tokenName) == 0)
{
return strdup(p->password);
}
if (p->alt != NULL) return SVRCORE_GetPin(p->alt, tokenName, retry);
return (NULL);
}
/*
* VTable
*/
static const SVRCOREPinMethods vtable =
{ 0, 0, destroyObject, getPin };

View File

@@ -0,0 +1,36 @@
/*
* 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 Communicator client code, released
* March 31, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef __ARGPIN_H__
#define __ARGPIN_H__
#include <svrcore.h>
typedef struct SVRCOREArgPinObj SVRCOREArgPinObj;
SVRCOREError
SVRCORE_CreateArgPinObj(SVRCOREArgPinObj **out, const char * tokenName, const char *password, SVRCOREPinObj *pinObj);
void
SVRCORE_DestroyArgPinObj(SVRCOREArgPinObj *obj);
#endif

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,615 @@
/*
* 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 Communicator client code, released
* March 31, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <locale.h>
#include <ctype.h>
#ifndef HAVE_LIBICU
#ifdef __cplusplus
extern "C" {
#endif
extern char *ldaptool_charset;
char *ldaptool_convdir = NULL;
static int charsetset = 0;
char *ldaptool_local2UTF8( const char *src );
char *
ldaptool_local2UTF8( const char *src )
{
char *utf8;
charsetset = 0;
if (src == NULL)
{
return NULL;
}
utf8 = strdup(src);
return ( utf8 );
}
#else /* HAVE_LIBICU */
#include "unicode/utypes.h"
#include "unicode/ucnv.h"
#define NSPR20
#ifdef XP_WIN32
#define VC_EXTRALEAN
#include <afxwin.h>
#include <winnls.h>
#endif
extern char *ldaptool_charset;
static int charsetset = 0;
static int icu_err_once = 0;
extern "C" {
char *ldaptool_convdir = NULL;
char *ldaptool_local2UTF8( const char * );
}
#ifndef XP_WIN32
char * GetNormalizedLocaleName(void);
char *
GetNormalizedLocaleName(void)
{
#ifdef _HPUX_SOURCE
int len;
char *locale;
locale = setlocale(LC_CTYPE, "");
if (locale && *locale) {
len = strlen(locale);
} else {
locale = (char *)"C";
len = 1;
}
if ((!strncmp(locale, "/\x03:", 3)) &&
(!strcmp(&locale[len - 2], ";/"))) {
locale += 3;
len -= 5;
}
locale = strdup(locale);
if (locale) {
locale[len] = 0;
}
return locale;
#else
char *locale;
locale = setlocale(LC_CTYPE, "");
if (locale && *locale) {
return strdup(locale);
}
return strdup("C");
#endif
}
#if defined(IRIX)
const char *CHARCONVTABLE[] =
{
"! This table maps the host's locale names to IANA charsets",
"!",
"C: ISO_8859-1:1987",
"cs: ISO_8859-2:1987",
"da: ISO_8859-1:1987",
"de: ISO_8859-1:1987",
"de_AT: ISO_8859-1:1987",
"de_CH: ISO_8859-1:1987",
"en: ISO_8859-1:1987",
"en_AU: ISO_8859-1:1987",
"en_CA: ISO_8859-1:1987",
"en_TH: ISO_8859-1:1987",
"en_US: ISO_8859-1:1987",
"es: ISO_8859-1:1987",
"fi: ISO_8859-1:1987",
"fr: ISO_8859-1:1987",
"fr_BE: ISO_8859-1:1987",
"fr_CA: ISO_8859-1:1987",
"fr_CH: ISO_8859-1:1987",
"is: ISO_8859-1:1987",
"it: ISO_8859-1:1987",
"it_CH: ISO_8859-1:1987",
"ja_JP.EUC: Extended_UNIX_Code_Packed_Format_for_Japanese",
"ko_KR.euc: EUC-KR",
"nl: ISO_8859-1:1987",
"nl_BE: ISO_8859-1:1987",
"no: ISO_8859-1:1987",
"pl: ISO_8859-2:1987",
"pt: ISO_8859-1:1987",
"sh: ISO_8859-2:1987",
"sk: ISO_8859-2:1987",
"sv: ISO_8859-1:1987",
"zh_CN.ugb: GB2312",
"zh_TW.ucns: cns11643_1",
NULL
};
#elif defined(SOLARIS)
const char *CHARCONVTABLE[] =
{
"! This table maps the host's locale names to IANA charsets",
"!",
"C: ISO_8859-1:1987",
"ja: Extended_UNIX_Code_Packed_Format_for_Japanese",
"ja_JP.EUC: Extended_UNIX_Code_Packed_Format_for_Japanese",
"ja_JP.PCK: Shift_JIS",
"en: ISO_8859-1:1987",
"en_AU: ISO_8859-1:1987",
"en_CA: ISO_8859-1:1987",
"en_UK: ISO_8859-1:1987",
"en_US: ISO_8859-1:1987",
"es: ISO_8859-1:1987",
"es_AR: ISO_8859-1:1987",
"es_BO: ISO_8859-1:1987",
"es_CL: ISO_8859-1:1987",
"es_CO: ISO_8859-1:1987",
"es_CR: ISO_8859-1:1987",
"es_EC: ISO_8859-1:1987",
"es_GT: ISO_8859-1:1987",
"es_MX: ISO_8859-1:1987",
"es_NI: ISO_8859-1:1987",
"es_PA: ISO_8859-1:1987",
"es_PE: ISO_8859-1:1987",
"es_PY: ISO_8859-1:1987",
"es_SV: ISO_8859-1:1987",
"es_UY: ISO_8859-1:1987",
"es_VE: ISO_8859-1:1987",
"fr: ISO_8859-1:1987",
"fr_BE: ISO_8859-1:1987",
"fr_CA: ISO_8859-1:1987",
"fr_CH: ISO_8859-1:1987",
"de: ISO_8859-1:1987",
"de_AT: ISO_8859-1:1987",
"de_CH: ISO_8859-1:1987",
"nl: ISO_8859-1:1987",
"nl_BE: ISO_8859-1:1987",
"it: ISO_8859-1:1987",
"sv: ISO_8859-1:1987",
"no: ISO_8859-1:1987",
"da: ISO_8859-1:1987",
"iso_8859_1: ISO_8859-1:1987",
"japanese: Extended_UNIX_Code_Packed_Format_for_Japanese",
"ko: EUC-KR",
"zh: GB2312",
"zh_TW: cns11643_1",
NULL
};
#elif defined(OSF1)
const char *CHARCONVTABLE[] =
{
"! This table maps the host's locale names to IANA charsets",
"!",
"C: ISO_8859-1:1987",
"cs_CZ.ISO8859-2: ISO_8859-2:1987",
"cs_CZ: ISO_8859-2:1987",
"da_DK.ISO8859-1: ISO_8859-1:1987",
"de_CH.ISO8859-1: ISO_8859-1:1987",
"de_DE.ISO8859-1: ISO_8859-1:1987",
"en_GB.ISO8859-1: ISO_8859-1:1987",
"en_US.ISO8859-1: ISO_8859-1:1987",
"es_ES.ISO8859-1: ISO_8859-1:1987",
"fi_FI.ISO8859-1: ISO_8859-1:1987",
"fr_BE.ISO8859-1: ISO_8859-1:1987",
"fr_CA.ISO8859-1: ISO_8859-1:1987",
"fr_CH.ISO8859-1: ISO_8859-1:1987",
"fr_FR.ISO8859-1: ISO_8859-1:1987",
"hu_HU.ISO8859-2: ISO_8859-2:1987",
"hu_HU: ISO_8859-2:1987",
"is_IS.ISO8859-1: ISO_8859-1:1987",
"it_IT.ISO8859-1: ISO_8859-1:1987",
"ja_JP.SJIS: Shift_JIS",
"ja_JP.eucJP: Extended_UNIX_Code_Packed_Format_for_Japanese",
"ja_JP: Extended_UNIX_Code_Packed_Format_for_Japanese",
"ko_KR.eucKR: EUC-KR",
"ko_KR: EUC-KR",
"nl_BE.ISO8859-1: ISO_8859-1:1987",
"nl_NL.ISO8859-1: ISO_8859-1:1987",
"no_NO.ISO8859-1: ISO_8859-1:1987",
"pl_PL.ISO8859-2: ISO_8859-2:1987",
"pl_PL: ISO_8859-2:1987",
"pt_PT.ISO8859-1: ISO_8859-1:1987",
"sk_SK.ISO8859-2: ISO_8859-2:1987",
"sk_SK: ISO_8859-2:1987",
"sv_SE.ISO8859-1: ISO_8859-1:1987",
"zh_CN: GB2312",
"zh_HK.big5: Big5",
"zh_HK.eucTW: cns11643_1",
"zh_TW.big5: Big5",
"zh_TW.big5@chuyin: Big5",
"zh_TW.big5@radical: Big5",
"zh_TW.big5@stroke: Big5",
"zh_TW.eucTW: cns11643_1",
"zh_TW.eucTW@chuyin: cns11643_1",
"zh_TW.eucTW@radical: cns11643_1",
"zh_TW.eucTW@stroke: cns11643_1",
"zh_TW: cns11643_1",
NULL
};
#elif defined(HPUX)
const char *CHARCONVTABLE[] =
{
"! This table maps the host's locale names to IANA charsets",
"!",
"C: ISO_8859-1:1987",
"ja_JP: Extended_UNIX_Code_Packed_Format_for_Japanese",
"ja_JP.SJIS: Shift_JIS",
"ja_JP.eucJP: Extended_UNIX_Code_Packed_Format_for_Japanese",
"es_ES: ISO_8859-1:1987",
"es_ES.iso88591: ISO_8859-1:1987",
"sv_SE: ISO_8859-1:1987",
"sv_SE.iso88591: ISO_8859-1:1987",
"da_DK: ISO_8859-1:1987",
"da_DK.iso88591: ISO_8859-1:1987",
"nl_NL: ISO_8859-1:1987",
"nl_NL.iso88591: ISO_8859-1:1987",
"en: ISO_8859-1:1987",
"en_GB: ISO_8859-1:1987",
"en_GB.iso88591: ISO_8859-1:1987",
"en_US: ISO_8859-1:1987",
"en_US.iso88591: ISO_8859-1:1987",
"fi_FI: ISO_8859-1:1987",
"fi_FI.iso88591: ISO_8859-1:1987",
"fr_CA: ISO_8859-1:1987",
"fr_CA.iso88591: ISO_8859-1:1987",
"fr_FR: ISO_8859-1:1987",
"fr_FR.iso88591: ISO_8859-1:1987",
"de_DE: ISO_8859-1:1987",
"de_DE.iso88591: ISO_8859-1:1987",
"is_IS: ISO_8859-1:1987",
"is_IS.iso88591: ISO_8859-1:1987",
"it_IT: ISO_8859-1:1987",
"it_IT.iso88591: ISO_8859-1:1987",
"no_NO: ISO_8859-1:1987",
"no_NO.iso88591: ISO_8859-1:1987",
"pt_PT: ISO_8859-1:1987",
"pt_PT.iso88591: ISO_8859-1:1987",
"hu_HU: ISO_8859-2:1987",
"hu_HU.iso88592: ISO_8859-2:1987",
"cs_CZ: ISO_8859-2:1987",
"cs_CZ.iso88592: ISO_8859-2:1987",
"pl_PL: ISO_8859-2:1987",
"pl_PL.iso88592: ISO_8859-2:1987",
"ro_RO: ISO_8859-2:1987",
"ro_RO.iso88592: ISO_8859-2:1987",
"hr_HR: ISO_8859-2:1987",
"hr_HR.iso88592: ISO_8859-2:1987",
"sk_SK: ISO_8859-2:1987",
"sk_SK.iso88592: ISO_8859-2:1987",
"sl_SI: ISO_8859-2:1987",
"sl_SI.iso88592: ISO_8859-2:1987",
"american.iso88591: ISO_8859-1:1987",
"bulgarian: ISO_8859-2:1987",
"c-french.iso88591: ISO_8859-1:1987",
"chinese-s: GB2312",
"chinese-t.big5: Big5",
"czech: ISO_8859-2:1987",
"danish.iso88591: ISO_8859-1:1987",
"dutch.iso88591: ISO_8859-1:1987",
"english.iso88591: ISO_8859-1:1987",
"finnish.iso88591: ISO_8859-1:1987",
"french.iso88591: ISO_8859-1:1987",
"german.iso88591: ISO_8859-1:1987",
"hungarian: ISO_8859-2:1987",
"icelandic.iso88591: ISO_8859-1:1987",
"italian.iso88591: ISO_8859-1:1987",
"japanese.euc: Extended_UNIX_Code_Packed_Format_for_Japanese",
"japanese: Shift_JIS",
"katakana: Shift_JIS",
"korean: EUC-KR",
"norwegian.iso88591: ISO_8859-1:1987",
"polish: ISO_8859-2:1987",
"portuguese.iso88591: ISO_8859-1:1987",
"rumanian: ISO_8859-2:1987",
"serbocroatian: ISO_8859-2:1987",
"slovene: ISO_8859-2:1987",
"spanish.iso88591: ISO_8859-1:1987",
"swedish.iso88591: ISO_8859-1:1987",
NULL
};
#elif defined(AIX)
const char *CHARCONVTABLE[] =
{
"! This table maps the host's locale names to IANA charsets",
"!",
"C: ISO_8859-1:1987",
"En_JP.IBM-932: Shift_JIS",
"En_JP: Shift_JIS",
"Ja_JP.IBM-932: Shift_JIS",
"Ja_JP: Shift_JIS",
"da_DK.ISO8859-1: ISO_8859-1:1987",
"da_DK: ISO_8859-1:1987",
"de_CH.ISO8859-1: ISO_8859-1:1987",
"de_CH: ISO_8859-1:1987",
"de_DE.ISO8859-1: ISO_8859-1:1987",
"de_DE: ISO_8859-1:1987",
"en_GB.ISO8859-1: ISO_8859-1:1987",
"en_GB: ISO_8859-1:1987",
"en_JP.IBM-eucJP: Extended_UNIX_Code_Packed_Format_for_Japanese",
"en_JP: Extended_UNIX_Code_Packed_Format_for_Japanese",
"en_KR.IBM-eucKR: EUC-KR",
"en_KR: EUC-KR",
"en_TW.IBM-eucTW: cns11643_1",
"en_TW: cns11643_1",
"en_US.ISO8859-1: ISO_8859-1:1987",
"en_US: ISO_8859-1:1987",
"es_ES.ISO8859-1: ISO_8859-1:1987",
"es_ES: ISO_8859-1:1987",
"fi_FI.ISO8859-1: ISO_8859-1:1987",
"fi_FI: ISO_8859-1:1987",
"fr_BE.ISO8859-1: ISO_8859-1:1987",
"fr_BE: ISO_8859-1:1987",
"fr_CA.ISO8859-1: ISO_8859-1:1987",
"fr_CA: ISO_8859-1:1987",
"fr_CH.ISO8859-1: ISO_8859-1:1987",
"fr_CH: ISO_8859-1:1987",
"fr_FR.ISO8859-1: ISO_8859-1:1987",
"fr_FR: ISO_8859-1:1987",
"is_IS.ISO8859-1: ISO_8859-1:1987",
"is_IS: ISO_8859-1:1987",
"it_IT.ISO8859-1: ISO_8859-1:1987",
"it_IT: ISO_8859-1:1987",
"ja_JP.IBM-eucJP: Extended_UNIX_Code_Packed_Format_for_Japanese",
"ja_JP: Extended_UNIX_Code_Packed_Format_for_Japanese",
"ko_KR.IBM-eucKR: EUC-KR",
"ko_KR: EUC-KR",
"nl_BE.ISO8859-1: ISO_8859-1:1987",
"nl_BE: ISO_8859-1:1987",
"nl_NL.ISO8859-1: ISO_8859-1:1987",
"nl_NL: ISO_8859-1:1987",
"no_NO.ISO8859-1: ISO_8859-1:1987",
"no_NO: ISO_8859-1:1987",
"pt_PT.ISO8859-1: ISO_8859-1:1987",
"pt_PT: ISO_8859-1:1987",
"sv_SE.ISO8859-1: ISO_8859-1:1987",
"sv_SE: ISO_8859-1:1987",
"zh_TW.IBM-eucTW: cns11643_1",
"zh_TW: cns11643_1",
NULL
};
#else // sunos by default
const char *CHARCONVTABLE[] =
{
"! This table maps the host's locale names to IANA charsets",
"!",
"C: ISO_8859-1:1987",
"de: ISO_8859-1:1987",
"en_US: ISO_8859-1:1987",
"es: ISO_8859-1:1987",
"fr: ISO_8859-1:1987",
"iso_8859_1: ISO_8859-1:1987",
"it: ISO_8859-1:1987",
"ja: Extended_UNIX_Code_Packed_Format_for_Japanese",
"ja_JP.EUC: Extended_UNIX_Code_Packed_Format_for_Japanese",
"japanese: Extended_UNIX_Code_Packed_Format_for_Japanese",
"ko: EUC-KR",
"sv: ISO_8859-1:1987",
"zh: GB2312",
"zh_TW: cns11643_1",
NULL
};
#endif
#define BSZ 256
char *
GetCharsetFromLocale(char *locale)
{
char *tmpcharset = NULL;
char buf[BSZ];
char *p;
const char *line;
int i=0;
line = CHARCONVTABLE[i];
while (line != NULL)
{
if (*line == 0)
{
break;
}
strcpy(buf, line);
line = CHARCONVTABLE[++i];
if (strlen(buf) == 0 || buf[0] == '!')
{
continue;
}
p = strchr(buf, ':');
if (p == NULL)
{
tmpcharset = NULL;
break;
}
*p = 0;
if (strcmp(buf, locale) == 0) {
while (*++p == ' ' || *p == '\t')
;
if (isalpha(*p)) {
tmpcharset = strdup(p);
} else
tmpcharset = NULL;
break;
}
}
return tmpcharset;
}
#endif /* Not defined XP_WIN32 */
#ifdef XP_WIN32
char *_convertor(const char *instr, int bFromUTF8)
{
char *outstr = NULL;
int inlen, wclen, outlen;
LPWSTR wcstr;
if (instr == NULL)
return NULL;
if ((inlen = strlen(instr)) <= 0)
return NULL;
/* output never becomes longer than input,
* thus we don't have to ask for the length
*/
wcstr = (LPWSTR) malloc( sizeof( WCHAR ) * (inlen+1) );
if (!wcstr)
return NULL;
wclen = MultiByteToWideChar(bFromUTF8 ? CP_UTF8 : CP_ACP, 0, instr,
inlen, wcstr, inlen);
outlen = WideCharToMultiByte(bFromUTF8 ? CP_ACP : CP_UTF8, 0, wcstr,
wclen, NULL, 0, NULL, NULL);
if (outlen > 0) {
outstr = (char *) malloc(outlen + 2);
outlen = WideCharToMultiByte(bFromUTF8 ? CP_ACP : CP_UTF8, 0, wcstr,
wclen, outstr, outlen, NULL, NULL);
if (outlen > 0)
*(outstr+outlen) = _T('\0');
else
return NULL;
}
free( wcstr );
return outstr;
}
#endif
char *
ldaptool_local2UTF8( const char *src )
{
char *utf8;
#ifndef XP_WIN32
char *locale, *newcharset;
size_t outLen, resultLen;
UErrorCode err = U_ZERO_ERROR;
UConverter *cnv;
if (src == NULL)
{
return NULL;
}
else if (*src == 0 || (ldaptool_charset == NULL)
|| (!strcmp( ldaptool_charset, "" )))
{
/* no charset specified, lets try to get charset from locale */
newcharset = (char *)ucnv_getDefaultName();
if (newcharset != NULL) {
/* the default codepage lives in ICU */
ldaptool_charset = strdup(newcharset);
if (ldaptool_charset == NULL) {
utf8 = strdup(src);
return utf8;
}
}
charsetset = 1;
}
if( !strcmp( ldaptool_charset, "0" ) && (!charsetset) ) {
/* zero option specified to override any conversions */
utf8 = strdup(src);
return utf8;
}
else
if( strcmp( ldaptool_charset, "" ) && (!charsetset) ) {
/* -i option specified with charset name */
charsetset = 1;
}
/* do the preflight - get the size needed for the target buffer */
outLen = (size_t) ucnv_convert( "utf-8", ldaptool_charset, NULL, 0, src,
strlen( src ) * sizeof(char), &err);
if ( ( U_FAILURE(err) ) && ( !icu_err_once ) ) {
if ( err == U_FILE_ACCESS_ERROR ) {
fprintf( stderr,
"\nWARNING: no converter found for charset: %s\n\n",
ldaptool_charset );
} else if ( err != U_BUFFER_OVERFLOW_ERROR) {
fprintf( stderr,
"\nWARNING: charset conversion failed in preflight: %s\n\n",
u_errorName(err) );
}
icu_err_once = 1;
}
if ((err != U_BUFFER_OVERFLOW_ERROR) || (outLen == 0)) {
/* default to just a copy of the string - this covers
the case of an illegal charset also */
return strdup(src);
}
utf8 = (char *) malloc( outLen + 1);
if( utf8 == NULL ) {
/* if we're already out of memory, does strdup just return NULL? */
return strdup(src);
}
/* do the actual conversion this time */
err = U_ZERO_ERROR;
resultLen = ucnv_convert( "utf-8", ldaptool_charset, utf8, (outLen + 1), src,
strlen(src) * sizeof(char), &err );
if (!U_SUCCESS(err)) {
if ( !icu_err_once ) {
fprintf( stderr, "\nWARNING: charset conversion failed: %s\n\n",
u_errorName(err) );
icu_err_once = 1;
}
free(utf8);
return strdup(src);
}
#else
utf8 = _convertor(src, FALSE);
if( utf8 == NULL )
utf8 = strdup(src);
#endif
return utf8;
}
#endif /* HAVE_LIBICU */
#ifndef HAVE_LIBICU
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -0,0 +1,181 @@
# LDIF examples, taken from the specification which was found at:
# http://www.ietf.org/internet-drafts/draft-good-ldap-ldif-03.txt
# Example 1: An simple LDAP file with two entries
version: 1
dn: cn=Barbara Jensen, ou=Product Development, dc=airius, dc=com
objectclass: top
objectclass: person
objectclass: organizationalPerson
cn: Barbara Jensen
cn: Barbara J Jensen
cn: Babs Jensen
sn: Jensen
uid: bjensen
telephonenumber: +1 408 555 1212
description: A big sailing fan.
dn: cn=Bjorn Jensen, ou=Accounting, dc=airius, dc=com
objectclass: top
objectclass: person
objectclass: organizationalPerson
cn: Bjorn Jensen
sn: Jensen
telephonenumber: +1 408 555 1212
# Example 2: A file containing an entry with a folded attribute value
version: 1
dn:cn=Barbara Jensen, ou=Product Development, dc=airius, dc=com
objectclass:top
objectclass:person
objectclass:organizationalPerson
cn:Barbara Jensen
cn:Barbara J Jensen
cn:Babs Jensen
sn:Jensen
uid:bjensen
telephonenumber:+1 408 555 1212
description:Babs is a big sailing fan, and travels extensively in search of
perfect sailing conditions.
title:Product Manager, Rod and Reel Division
# Example 3: A file containing a base-64-encoded value
version: 1
dn: cn=Gern Jensen, ou=Product Testing, dc=airius, dc=com
objectclass: top
objectclass: person
objectclass: organizationalPerson
cn: Gern Jensen
cn: Gern O Jensen
sn: Jensen
uid: gernj
telephonenumber: +1 408 555 1212
description:: V2hhdCBhIGNhcmVmdWwgcmVhZGVyIHlvdSBhcmUhICBUaGlzIHZhbHVlIGlzIGJ
hc2UtNjQtZW5jb2RlZCBiZWNhdXNlIGl0IGhhcyBhIGNvbnRyb2wgY2hhcmFjdGVyIGluIGl0ICh
hIENSKS4NICBCeSB0aGUgd2F5LCB5b3Ugc2hvdWxkIHJlYWxseSBnZXQgb3V0IG1vcmUu
# Example 4: A file containing an entries with UTF-8-encoded attribute
# values, including language tags. Comments indicate the contents
# of UTF-8-encoded attributes and distinguished names.
version: 1
dn:: b3U95Za25qWt6YOoLG89QWlyaXVz
# dn:: ou=<JapaneseOU>,o=Airius
objectclass: top
objectclass: organizationalUnit
ou:: 5Za25qWt6YOo
# ou:: <JapaneseOU>
ou;lang-ja:: 5Za25qWt6YOo
# ou;lang-ja:: <JapaneseOU>
ou;lang-ja;phonetic:: 44GI44GE44GO44KH44GG44G2
# ou;lang-ja:: <JapaneseOU_in_phonetic_representation>
ou;lang-en: Sales
description: Japanese office
dn:: dWlkPXJvZ2FzYXdhcmEsb3U95Za25qWt6YOoLG89QWlyaXVz
# dn:: uid=<uid>,ou=<JapaneseOU>,o=Airius
userpassword: {SHA}O3HSv1MusyL4kTjP+HKI5uxuNoM=
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
uid: rogasawara
mail: rogasawara@airius.co.jp
givenname;lang-ja:: 44Ot44OJ44OL44O8
# givenname;lang-ja:: <JapaneseGivenname>
sn;lang-ja:: 5bCP56yg5Y6f
# sn;lang-ja:: <JapaneseSn>
cn;lang-ja:: 5bCP56yg5Y6fIOODreODieODi+ODvA==
# cn;lang-ja:: <JapaneseCn>
title;lang-ja:: 5Za25qWt6YOoIOmDqOmVtw==
# title;lang-ja:: <JapaneseTitle>
preferredlanguage: ja
givenname:: 44Ot44OJ44OL44O8
# givenname:: <JapaneseGivenname>
sn:: 5bCP56yg5Y6f
# sn:: <JapaneseSn>
cn:: 5bCP56yg5Y6fIOODreODieODi+ODvA==
# cn:: <JapaneseCn>
title:: 5Za25qWt6YOoIOmDqOmVtw==
# title:: <JapaneseTitle>
givenname;lang-ja;phonetic:: 44KN44Gp44Gr44O8
# givenname;lang-ja;phonetic:: <JapaneseGivenname_in_phonetic_representation_kana>
sn;lang-ja;phonetic:: 44GK44GM44GV44KP44KJ
# sn;lang-ja;phonetic:: <JapaneseSn_in_phonetic_representation_kana>
cn;lang-ja;phonetic:: 44GK44GM44GV44KP44KJIOOCjeOBqeOBq+ODvA==
# cn;lang-ja;phonetic:: <JapaneseCn_in_phonetic_representation_kana>
title;lang-ja;phonetic:: 44GI44GE44GO44KH44GG44G2IOOBtuOBoeOCh+OBhg==
# title;lang-ja;phonetic:: <JapaneseTitle_in_phonetic_representation_kana>
givenname;lang-en: Rodney
sn;lang-en: Ogasawara
cn;lang-en: Rodney Ogasawara
title;lang-en: Sales, Director
# Example 5: A file containing a reference to an external file
version: 1
dn: cn=Horatio Jensen, ou=Product Testing, dc=airius, dc=com
objectclass: top
objectclass: person
objectclass: organizationalPerson
cn: Horatio Jensen
cn: Horatio N Jensen
sn: Jensen
uid: hjensen
telephonenumber: +1 408 555 1212
# XXXmcs: In the spec, the following line reads:
# jpegphoto:< file:///usr/local/directory/photos/hjensen.jpg
# I changed the file URL to point to a more generic directory.
jpegphoto:< file:///tmp/hjensen.jpg
# Example 6: A file containing a series of change records and comments
version: 1
# Add a new entry
dn: cn=Fiona Jensen, ou=Marketing, dc=airius, dc=com
changetype: add
objectclass: top
objectclass: person
objectclass: organizationalPerson
cn: Fiona Jensen
sn: Jensen
uid: fiona
telephonenumber: +1 408 555 1212
# XXXmcs: In the spec, the following line reads:
# jpegphoto:< file:///usr/local/directory/photos/fiona.jpg
# I changed the file URL to point to a more generic directory.
jpegphoto:< file:///tmp/fiona.jpg
# Delete an existing entry
dn: cn=Robert Jensen, ou=Marketing, dc=airius, dc=com
changetype: delete
# Modify an entry's relative distinguished name
dn: cn=Paul Jensen, ou=Product Development, dc=airius, dc=com
changetype: modrdn
newrdn: cn=Paula Jensen
deleteoldrdn: 1
# Rename an entry and move all of its children to a new location in
# the directory tree (only implemented by LDAPv3 servers).
dn: ou=PD Accountants, ou=Product Development, dc=airius, dc=com
changetype: modrdn
newrdn: ou=Product Development Accountants
deleteoldrdn: 0
newsuperior: ou=Accounting, dc=airius, dc=com
# Modify an entry: add an additional value to the postaladdress attribute,
# completely delete the description attribute, replace the telephonenumber
# attribute with two values, and delete a specific value from the
# facsimiletelephonenumber attribute
dn: cn=Paula Jensen, ou=Product Development, dc=airius, dc=com
changetype: modify
add: postaladdress
postaladdress: 123 Anystreet $ Sunnyvale, CA $ 94086
-
delete: description
-
replace: telephonenumber
telephonenumber: +1 408 555 1234
telephonenumber: +1 408 555 5678
-
delete: facsimiletelephonenumber
facsimiletelephonenumber: +1 408 555 9876
-

View File

@@ -0,0 +1,501 @@
/*
* 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 Communicator client code, released
* March 31, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
/*
* LDAP tools fileurl.c -- functions for handling file URLs.
* Used by ldapmodify.
*/
#include "ldaptool.h"
#include "fileurl.h"
#include <ctype.h> /* for isalpha() */
static int str_starts_with( const char *s, char *prefix );
static void hex_unescape( char *s );
static int unhex( char c );
static void strcpy_escaped_and_convert( char *s1, char *s2 );
static int berval_from_file( const char *path, struct berval *bvp,
int reporterrs );
/*
* Convert a file URL to a local path.
*
* If successful, LDAPTOOL_FILEURL_SUCCESS is returned and *localpathp is
* set point to an allocated string. If not, an different LDAPTOOL_FILEURL_
* error code is returned.
*
* See RFCs 1738 and 2396 for a specification for file URLs... but
* Netscape Navigator seems to be a bit more lenient in what it will
* accept, especially on Windows).
*
* This function parses file URLs of these three forms:
*
* file:///path
* file:/path
* file://localhost/path
* file://host/path (rejected with a ...NONLOCAL error)
*
* On Windows, we convert leading drive letters of the form C| to C:
* and if a drive letter is present we strip off the slash that precedes
* path. Otherwise, the leading slash is returned.
*
*/
int
ldaptool_fileurl2path( const char *fileurl, char **localpathp )
{
const char *path;
char *pathcopy;
/*
* Make sure this is a file URL we can handle.
*/
if ( !str_starts_with( fileurl, "file:" )) {
return( LDAPTOOL_FILEURL_NOTAFILEURL );
}
path = fileurl + 5; /* skip past "file:" scheme prefix */
if ( *path != '/' ) {
return( LDAPTOOL_FILEURL_MISSINGPATH );
}
++path; /* skip past '/' at end of "file:/" */
if ( *path == '/' ) {
++path; /* remainder is now host/path or /path */
if ( *path != '/' ) {
/*
* Make sure it is for the local host.
*/
if ( str_starts_with( path, "localhost/" )) {
path += 9;
} else {
return( LDAPTOOL_FILEURL_NONLOCAL );
}
}
} else { /* URL is of the form file:/path */
--path;
}
/*
* The remainder is now of the form /path. On Windows, skip past the
* leading slash if a drive letter is present.
*/
#ifdef _WINDOWS
if ( isalpha( path[1] ) && ( path[2] == '|' || path[2] == ':' )) {
++path;
}
#endif /* _WINDOWS */
/*
* Duplicate the path so we can safely alter it.
* Unescape any %HH sequences.
*/
if (( pathcopy = strdup( path )) == NULL ) {
return( LDAPTOOL_FILEURL_NOMEMORY );
}
hex_unescape( pathcopy );
#ifdef _WINDOWS
/*
* Convert forward slashes to backslashes for Windows. Also,
* if we see a drive letter / vertical bar combination (e.g., c|)
* at the beginning of the path, replace the '|' with a ':'.
*/
{
char *p;
for ( p = pathcopy; *p != '\0'; ++p ) {
if ( *p == '/' ) {
*p = '\\';
}
}
}
if ( isalpha( pathcopy[0] ) && pathcopy[1] == '|' ) {
pathcopy[1] = ':';
}
#endif /* _WINDOWS */
*localpathp = pathcopy;
return( LDAPTOOL_FILEURL_SUCCESS );
}
/*
* Convert a local path to a file URL.
*
* If successful, LDAPTOOL_FILEURL_SUCCESS is returned and *urlp is
* set point to an allocated string. If not, an different LDAPTOOL_FILEURL_
* error code is returned. At present, the only possible error is
* LDAPTOOL_FILEURL_NOMEMORY.
*
* This function produces file URLs of the form file:path.
*
* On Windows, we convert leading drive letters to C|.
*
*/
int
ldaptool_path2fileurl( char *path, char **urlp )
{
char *p, *url, *prefix ="file:";
if ( NULL == path ) {
path = "/";
}
/*
* Allocate space for the URL, taking into account that path may
* expand during the hex escaping process.
*/
if (( url = malloc( strlen( prefix ) + 3 * strlen( path ) + 1 )) == NULL ) {
return( LDAPTOOL_FILEURL_NOMEMORY );
}
strcpy( url, prefix );
p = url + strlen( prefix );
#ifdef _WINDOWS
/*
* On Windows, convert leading drive letters (e.g., C:) to the correct URL
* syntax (e.g., C|).
*/
if ( isalpha( path[0] ) && path[1] == ':' ) {
*p++ = path[0];
*p++ = '|';
path += 2;
*p = '\0';
}
#endif /* _WINDOWS */
/*
* Append the path, encoding any URL-special characters using the %HH
* convention.
* On Windows, convert backwards slashes in the path to forward ones.
*/
strcpy_escaped_and_convert( p, path );
*urlp = url;
return( LDAPTOOL_FILEURL_SUCCESS );
}
/*
* Populate *bvp from "value" of length "vlen."
*
* If recognize_url_syntax is non-zero, :<fileurl is recognized.
* If always_try_file is recognized and no file URL was found, an
* attempt is made to stat and read the value as if it were the name
* of a file.
*
* If reporterrs is non-zero, specific error messages are printed to
* stderr.
*
* If successful, LDAPTOOL_FILEURL_SUCCESS is returned and bvp->bv_len
* and bvp->bv_val are set (the latter is set to malloc'd memory).
* Upon failure, a different LDAPTOOL_FILEURL_ error code is returned.
*/
int
ldaptool_berval_from_ldif_value( const char *value, int vlen,
struct berval *bvp, int recognize_url_syntax, int always_try_file,
int reporterrs )
{
int rc = LDAPTOOL_FILEURL_SUCCESS; /* optimistic */
const char *url = NULL;
struct stat fstats;
/* recognize "attr :< url" syntax if LDIF version is >= 1 */
#ifdef notdef
if ( ldaptool_verbose ) {
fprintf( stderr, "%s: ldaptool_berval_from_ldif_value: value: %s\n",
ldaptool_progname, value);
}
#endif
if ( recognize_url_syntax && *value == '<' ) {
for ( url = value + 1; isspace( *url ); ++url ) {
; /* NULL */
}
if (strlen(url) > 7 && strncasecmp(url, "file://", 7) != 0) {
/*
* We only support file:// URLs for now.
*/
url = NULL;
}
}
if ( NULL != url ) {
char *path;
rc = ldaptool_fileurl2path( url, &path );
switch( rc ) {
case LDAPTOOL_FILEURL_NOTAFILEURL:
if ( reporterrs ) fprintf( stderr, "%s: unsupported URL \"%s\";"
" use a file:// URL instead.\n", ldaptool_progname, url );
break;
case LDAPTOOL_FILEURL_MISSINGPATH:
if ( reporterrs ) fprintf( stderr,
"%s: unable to process URL \"%s\" --"
" missing path.\n", ldaptool_progname, url );
break;
case LDAPTOOL_FILEURL_NONLOCAL:
if ( reporterrs ) fprintf( stderr,
"%s: unable to process URL \"%s\" -- only"
" local file:// URLs are supported.\n",
ldaptool_progname, url );
break;
case LDAPTOOL_FILEURL_NOMEMORY:
if ( reporterrs ) perror( "ldaptool_fileurl2path" );
break;
case LDAPTOOL_FILEURL_SUCCESS:
if ( stat( path, &fstats ) != 0 ) {
if ( reporterrs ) perror( path );
} else if ( fstats.st_mode & S_IFDIR ) {
if ( reporterrs ) fprintf( stderr,
"%s: %s is a directory, not a file\n",
ldaptool_progname, path );
rc = LDAPTOOL_FILEURL_FILEIOERROR;
} else {
rc = berval_from_file( path, bvp, reporterrs );
}
free( path );
break;
default:
if ( reporterrs ) fprintf( stderr,
"%s: unable to process URL \"%s\""
" -- unknown error\n", ldaptool_progname, url );
}
} else if ( always_try_file && (stat( value, &fstats ) == 0) &&
!(fstats.st_mode & S_IFDIR)) { /* get value from file */
rc = berval_from_file( value, bvp, reporterrs );
} else {
bvp->bv_len = vlen;
if (( bvp->bv_val = (char *)malloc( vlen + 1 )) == NULL ) {
if ( reporterrs ) perror( "malloc" );
rc = LDAPTOOL_FILEURL_NOMEMORY;
} else {
SAFEMEMCPY( bvp->bv_val, value, vlen );
bvp->bv_val[ vlen ] = '\0';
}
}
return( rc );
}
/*
* Map an LDAPTOOL_FILEURL_ error code to an LDAP error code (crude).
*/
int
ldaptool_fileurlerr2ldaperr( int lderr )
{
int rc;
switch( lderr ) {
case LDAPTOOL_FILEURL_SUCCESS:
rc = LDAP_SUCCESS;
break;
case LDAPTOOL_FILEURL_NOMEMORY:
rc = LDAP_NO_MEMORY;
break;
default:
rc = LDAP_PARAM_ERROR;
}
return( rc );
}
/*
* Populate *bvp with the contents of the file named by "path".
*
* If reporterrs is non-zero, specific error messages are printed to
* stderr.
*
* If successful, LDAPTOOL_FILEURL_SUCCESS is returned and bvp->bv_len
* and bvp->bv_val are set (the latter is set to malloc'd memory).
* Upon failure, a different LDAPTOOL_FILEURL_ error code is returned.
*/
static int
berval_from_file( const char *path, struct berval *bvp, int reporterrs )
{
FILE *fp;
long rlen;
int eof;
#if defined( XP_WIN32 )
char mode[20] = "r+b";
#else
char mode[20] = "r";
#endif
if (( fp = ldaptool_open_file( path, mode )) == NULL ) {
if ( reporterrs ) perror( path );
return( LDAPTOOL_FILEURL_FILEIOERROR );
}
if ( fseek( fp, 0L, SEEK_END ) != 0 ) {
if ( reporterrs ) perror( path );
fclose( fp );
return( LDAPTOOL_FILEURL_FILEIOERROR );
}
bvp->bv_len = ftell( fp );
if (( bvp->bv_val = (char *)malloc( bvp->bv_len + 1 )) == NULL ) {
if ( reporterrs ) perror( "malloc" );
fclose( fp );
return( LDAPTOOL_FILEURL_NOMEMORY );
}
if ( fseek( fp, 0L, SEEK_SET ) != 0 ) {
if ( reporterrs ) perror( path );
fclose( fp );
return( LDAPTOOL_FILEURL_FILEIOERROR );
}
rlen = fread( bvp->bv_val, 1, bvp->bv_len, fp );
eof = feof( fp );
fclose( fp );
if ( rlen != (long)bvp->bv_len ) {
if ( reporterrs ) perror( path );
free( bvp->bv_val );
return( LDAPTOOL_FILEURL_FILEIOERROR );
}
bvp->bv_val[ bvp->bv_len ] = '\0';
return( LDAPTOOL_FILEURL_SUCCESS );
}
/*
* Return a non-zero value if the string s begins with prefix and zero if not.
*/
static int
str_starts_with( const char *s, char *prefix )
{
size_t prefix_len;
if ( s == NULL || prefix == NULL ) {
return( 0 );
}
prefix_len = strlen( prefix );
if ( strlen( s ) < prefix_len ) {
return( 0 );
}
return( strncmp( s, prefix, prefix_len ) == 0 );
}
/*
* Remove URL hex escapes from s... done in place. The basic concept for
* this routine is borrowed from the WWW library HTUnEscape() routine.
*
* A similar function called nsldapi_hex_unescape can be found in
* ../../libraries/libldap/unescape.c
*/
static void
hex_unescape( char *s )
{
char *p;
for ( p = s; *s != '\0'; ++s ) {
if ( *s == '%' ) {
if ( *++s != '\0' ) {
*p = unhex( *s ) << 4;
}
if ( *++s != '\0' ) {
*p++ += unhex( *s );
}
} else {
*p++ = *s;
}
}
*p = '\0';
}
/*
* Return the integer equivalent of one hex digit (in c).
*
* A similar function can be found in ../../libraries/libldap/unescape.c
*/
static int
unhex( char c )
{
return( c >= '0' && c <= '9' ? c - '0'
: c >= 'A' && c <= 'F' ? c - 'A' + 10
: c - 'a' + 10 );
}
#define HREF_CHAR_ACCEPTABLE( c ) (( c >= '-' && c <= '9' ) || \
( c >= '@' && c <= 'Z' ) || \
( c == '_' ) || \
( c >= 'a' && c <= 'z' ))
/*
* Like strcat(), except if any URL-special characters are found in s2
* they are escaped using the %HH convention and backslash characters are
* converted to forward slashes on Windows.
*
* Maximum space needed in s1 is 3 * strlen( s2 ) + 1.
*
* A similar function that does not convert the slashes called
* strcat_escaped() can be found in ../../libraries/libldap/tmplout.c
*/
static void
strcpy_escaped_and_convert( char *s1, char *s2 )
{
char *p, *q;
char *hexdig = "0123456789ABCDEF";
p = s1 + strlen( s1 );
for ( q = s2; *q != '\0'; ++q ) {
#ifdef _WINDOWS
if ( *q == '\\' ) {
*p++ = '/';
} else
#endif /* _WINDOWS */
if ( HREF_CHAR_ACCEPTABLE( *q )) {
*p++ = *q;
} else {
*p++ = '%';
*p++ = hexdig[ 0x0F & ((*(unsigned char*)q) >> 4) ];
*p++ = hexdig[ 0x0F & *q ];
}
}
*p = '\0';
}

View File

@@ -0,0 +1,84 @@
/*
* 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 Communicator client code, released
* March 31, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
/*
* LDAP tools fileurl.h -- defines for file URL functions.
* Used by ldapmodify.
*/
/*
* ldaptool_fileurl2path() convert a file URL to a local path.
*
* If successful, LDAPTOOL_FILEURL_SUCCESS is returned and *localpathp is
* set point to an allocated string. If not, a different LDAPTOOL_FILEURL_
* error code is returned.
*/
int ldaptool_fileurl2path( const char *fileurl, char **localpathp );
/*
* Convert a local path to a file URL.
*
* If successful, LDAPTOOL_FILEURL_SUCCESS is returned and *urlp is
* set point to an allocated string. If not, a different LDAPTOOL_FILEURL_
* error code is returned. At present, the only possible error is
* LDAPTOOL_FILEURL_NOMEMORY.
*
*/
int ldaptool_path2fileurl( char *path, char **urlp );
/*
* Populate *bvp from "value" of length "vlen."
*
* If recognize_url_syntax is non-zero, :<fileurl is recognized.
* If always_try_file is recognized and no file URL was found, an
* attempt is made to stat and read the value as if it were the name
* of a file.
*
* If reporterrs is non-zero, specific error messages are printed to
* stderr.
*
* If successful, LDAPTOOL_FILEURL_SUCCESS is returned and bvp->bv_len
* and bvp->bv_val are set (the latter is set to malloc'd memory).
* Upon failure, a different LDAPTOOL_FILEURL_ error code is returned.
*/
int ldaptool_berval_from_ldif_value( const char *value, int vlen,
struct berval *bvp, int recognize_url_syntax, int always_try_file,
int reporterrs );
/*
* Map an LDAPTOOL_FILEURL_ error code to an LDAP error code (crude).
*/
int ldaptool_fileurlerr2ldaperr( int lderr );
/*
* Possible return codes for the functions declared in this file:
*/
#define LDAPTOOL_FILEURL_SUCCESS 0
#define LDAPTOOL_FILEURL_NOTAFILEURL 1
#define LDAPTOOL_FILEURL_MISSINGPATH 2
#define LDAPTOOL_FILEURL_NONLOCAL 3
#define LDAPTOOL_FILEURL_NOMEMORY 4
#define LDAPTOOL_FILEURL_FILEIOERROR 5

View File

@@ -0,0 +1,607 @@
/*
* 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 Communicator client code, released
* March 31, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
/* tool to compare the contents of two LDAP directory subtrees */
#include <__version.h>
#include "ldaptool.h"
typedef struct attr {
char *name;
char **vals;
struct attr *next;
} ATTR; /* used for comparing two entries */
static void options_callback( int option, char *optarg );
static int docompare( LDAP *ld1, LDAP *ld2, char *base );
static int cmp2(LDAP *ld1, LDAP *ld2, LDAPMessage *e1, int findonly );
static void notfound(char *base, int dbaseno);
ATTR* get_attrs( LDAP *ld, LDAPMessage *e );
char* cmp_attrs( ATTR *a1, ATTR *a2 );
static void attr_free(ATTR *at);
#if 0 /* these functions are not used */
static void print_entry( LDAP *ld, LDAPMessage *entry, int attrsonly );
static void print_dn( LDAP *ld, LDAPMessage *entry );
static int write_ldif_value( char *type, char *value, unsigned long vallen );
#endif /* 0 */
static void
usage( void )
{
fprintf( stderr,
"usage: %s -b basedn [options]\nwhere:\n",
ldaptool_progname );
fprintf( stderr, " basedn\tbase dn for search\n" );
fprintf( stderr, "\t\t(if the environment variable LDAP_BASEDN is set,\n" );
fprintf( stderr, "\t\tthen the -b flag is not required)\n" );
fprintf( stderr, "options:\n" );
fprintf( stderr, " -s scope\tone of base, one, or sub (default is sub)\n" );
fprintf( stderr, " -l timelim\ttime limit (in seconds) for search (default is no limit)\n" );
fprintf( stderr, " -z sizelim\tsize limit (in entries) for search (default is no limit)\n" );
ldaptool_common_usage( 1 );
exit( LDAP_PARAM_ERROR );
}
static char *base = NULL;
static int allow_binary, vals2tmp, ldif, scope, deref, differ=0;
static int attrsonly, timelimit, sizelimit;
#if 0 /* these statics are referenced only by unused functions */
static char *sep = LDAPTOOL_DEFSEP;
static char **sortattr = NULL;
static int *skipsortattr = NULL;
static int includeufn;
#endif /* 0 */
int
main( int argc, char **argv )
{
int rc, optind;
LDAP *ld1, *ld2;
#ifdef notdef
#ifdef HPUX11
#ifndef __LP64__
_main( argc, argv);
#endif /* __LP64_ */
#endif /* HPUX11 */
#endif
deref = LDAP_DEREF_NEVER;
allow_binary = vals2tmp = attrsonly = 0;
ldif = 1;
sizelimit = timelimit = 0;
scope = LDAP_SCOPE_SUBTREE;
optind = ldaptool_process_args( argc, argv, "Bb:l:s:z:", 0,
options_callback );
if ( optind == -1 ) {
usage();
}
if ( base == NULL ) {
if (( base = getenv( "LDAP_BASEDN" )) == NULL ) {
usage();
}
}
ld1 = ldaptool_ldap_init( 0 );
ldap_set_option( ld1, LDAP_OPT_DEREF, &deref );
ldap_set_option( ld1, LDAP_OPT_TIMELIMIT, &timelimit );
ldap_set_option( ld1, LDAP_OPT_SIZELIMIT, &sizelimit );
ldaptool_bind( ld1 );
ld2 = ldaptool_ldap_init( 1 );
ldap_set_option( ld2, LDAP_OPT_DEREF, &deref );
ldap_set_option( ld2, LDAP_OPT_TIMELIMIT, &timelimit );
ldap_set_option( ld2, LDAP_OPT_SIZELIMIT, &sizelimit );
ldaptool_bind( ld2 );
if ( ldaptool_verbose ) {
printf( "Connections to servers established. Beginning comparison.\n" );
}
rc = docompare( ld1, ld2, base );
ldaptool_cleanup( ld1 );
ldaptool_cleanup( ld2 );
if ( ldaptool_verbose && !rc ) {
if ( !differ ) {
printf( "compare completed: no differences found\n" );
} else {
printf( "compare completed: ****differences were found****\n" );
}
}
return( rc );
}
static void
options_callback( int option, char *optarg )
{
switch( option ) {
case 'B': /* allow binary values to be printed */
++allow_binary;
break;
case 's': /* search scope */
if ( strncasecmp( optarg, "base", 4 ) == 0 ) {
scope = LDAP_SCOPE_BASE;
} else if ( strncasecmp( optarg, "one", 3 ) == 0 ) {
scope = LDAP_SCOPE_ONELEVEL;
} else if ( strncasecmp( optarg, "sub", 3 ) == 0 ) {
scope = LDAP_SCOPE_SUBTREE;
} else {
fprintf( stderr, "scope should be base, one, or sub\n" );
usage();
}
break;
case 'b': /* searchbase */
base = strdup( optarg );
break;
case 'l': /* time limit */
timelimit = atoi( optarg );
break;
case 'z': /* size limit */
sizelimit = atoi( optarg );
break;
default:
usage();
break;
}
}
/*
* Returns an LDAP error code.
*/
static int
docompare( LDAP *ld1, LDAP *ld2, char *base )
{
int rc, msgid;
LDAPMessage *res, *e;
LDAPControl *ctrls[2], **serverctrls;
if ( ldaptool_verbose ) {
printf( "Base: %s\n\n", base );
}
if ( ldaptool_not ) {
return( LDAP_SUCCESS );
}
if (( ctrls[0] = ldaptool_create_manage_dsait_control()) != NULL ) {
ctrls[1] = NULL;
serverctrls = ctrls;
} else {
serverctrls = NULL;
}
if ( ldap_search_ext( ld1, base, scope, "objectClass=*", NULL,
0, serverctrls, NULL, NULL, -1, &msgid ) != LDAP_SUCCESS ) {
return( ldaptool_print_lderror( ld1, "ldap_search",
LDAPTOOL_CHECK4SSL_IF_APPROP ));
}
/* XXXmcs: this code should be modified to display referrals and references */
while ( (rc = ldap_result( ld1, LDAP_RES_ANY, 0, NULL, &res )) ==
LDAP_RES_SEARCH_ENTRY ) {
e = ldap_first_entry( ld1, res );
rc = cmp2( ld1, ld2, e , 0);
ldap_msgfree( res );
}
if ( rc == -1 ) {
return( ldaptool_print_lderror( ld1, "ldap_result",
LDAPTOOL_CHECK4SSL_IF_APPROP ));
}
if (( rc = ldap_result2error( ld1, res, 0 )) != LDAP_SUCCESS ) {
ldaptool_print_lderror( ld1, "ldap_search",
LDAPTOOL_CHECK4SSL_IF_APPROP );
}
ldap_msgfree( res );
if ( ldap_search_ext( ld2, base, scope, "objectClass=*", NULL,
0, serverctrls, NULL, NULL, -1, &msgid ) == -1 ) {
return( ldaptool_print_lderror( ld2, "ldap_search",
LDAPTOOL_CHECK4SSL_IF_APPROP ));
}
/* XXXmcs: this code should be modified to display referrals and references */
while ( (rc = ldap_result( ld2, LDAP_RES_ANY, 0, NULL, &res )) ==
LDAP_RES_SEARCH_ENTRY ) {
e = ldap_first_entry( ld2, res );
rc = cmp2( ld2, ld1, e , 1);
ldap_msgfree( res );
}
if ( rc == -1 ) {
return( ldaptool_print_lderror( ld2, "ldap_result",
LDAPTOOL_CHECK4SSL_IF_APPROP ));
}
if (( rc = ldap_result2error( ld1, res, 0 )) != LDAP_SUCCESS ) {
ldaptool_print_lderror( ld1, "ldap_search",
LDAPTOOL_CHECK4SSL_IF_APPROP );
}
ldap_msgfree( res );
return( rc );
}
/*
* Returns an LDAP error code.
*/
static int
cmp2( LDAP *ld1, LDAP *ld2, LDAPMessage *e1, int findonly)
{
LDAPMessage *e2, *res;
char *dn, *attrcmp;
int found=0, rc;
ATTR *a1, *a2;
dn = ldap_get_dn( ld1, e1 );
if ( ldaptool_verbose ) {
if ( findonly ) {
printf( "Checking that %s exists on both servers\n", dn );
} else {
printf("Comparing entry %s on both servers\n", dn );
}
}
if ( ldap_search( ld2, dn, LDAP_SCOPE_BASE, "objectClass=*", NULL, 0 ) == -1 ) {
return( ldaptool_print_lderror( ld2, "ldap_search",
LDAPTOOL_CHECK4SSL_IF_APPROP ));
}
/* XXXmcs: this code should be modified to display referrals and references */
while ( (rc = ldap_result( ld2, LDAP_RES_ANY, 0, NULL, &res )) ==
LDAP_RES_SEARCH_ENTRY ) {
e2 = ldap_first_entry( ld1, res );
found = 1;
if ( !findonly ) {
a1 = get_attrs( ld1, e1 );
a2 = get_attrs( ld2, e2 );
attrcmp = cmp_attrs( a1, a2 );
if ( strcmp( attrcmp, "") != 0 ) {
printf("\n%s%s\n", dn, attrcmp);
}
}
ldap_msgfree( res );
}
if ( !found ) {
notfound( dn, findonly );
differ = 1;
}
if ( rc == -1 ) {
return( ldaptool_print_lderror( ld2, "ldap_result",
LDAPTOOL_CHECK4SSL_IF_APPROP ));
}
ldap_msgfree( res );
ldap_memfree( dn );
return(rc);
}
ATTR*
get_attrs( LDAP *ld, LDAPMessage *e )
{
char *a;
ATTR *head, *tail, *tmp;
BerElement *ber;
head=tail=tmp=NULL;
for ( a = ldap_first_attribute( ld, e, &ber ); a != NULL;
a = ldap_next_attribute( ld, e, ber ) ) {
tmp = (ATTR*)malloc(sizeof(ATTR));
if(head == NULL)
head = tail = tmp;
else {
tail->next = tmp;
tail = tmp;
}
tmp->name = a;
tmp->vals = ldap_get_values( ld, e, a );
tmp->next = NULL;
}
if ( ber != NULL ) {
ber_free( ber, 0 );
}
/* used for debugging
tmp=head;
while(tmp!= NULL) {
printf("\n%s :", tmp->name);
for(i=0; tmp->vals[i] != NULL; i++)
printf("\n\t%d %s", i, tmp->vals[i]);
tmp = tmp->next;
}
*/
return(head);
}
char*
cmp_attrs( ATTR *a1, ATTR *a2 )
{
static char result[5000];
char res[1000], partial[1000], *name = "";
ATTR *head1, *head2, *tmp, *prev, *start;
int i, j, found;
head1 = a1;
head2 = a2;
tmp = a2;
prev = NULL;
strcpy(result, "");
while(head1 != NULL) {
name = head1->name;
if(head2 == NULL) {
while(head1 != NULL) {
sprintf(partial, "\ndifferent: %s(*)", head1->name);
strcat(result, partial);
for(i=0; head1->vals[i] != NULL; i++) {
sprintf(partial,"\n\t1: %s", head1->vals[i]);
strcat(result, partial);
}
tmp = head1;
head1 = head1->next;
attr_free(tmp);
}
differ = 1;
break;
}
name = head1->name;
start = tmp;
while(tmp != NULL) {
if(!strcmp(name, tmp->name)) { /* attr found */
strcpy(res, "");
for(i=0; (head1->vals[i]) != NULL; i++) {
found = 0;
for(j=0; (tmp->vals[j]) != NULL; j++)
if(!strcmp(head1->vals[i], tmp->vals[j])) {
found = 1;
tmp->vals[j][0] = 7;
break;
}
if(!found) {
sprintf(partial, "\n\t1: %s", head1->vals[i]);
strcat(res, partial);
}
}
for(j=0; tmp->vals[j] != NULL; j++)
if(tmp->vals[j][0] != 7){
sprintf(partial, "\n\t2: %s", tmp->vals[j]);
strcat(res, partial);
}
if(strcmp(res, "")) {
sprintf(partial, "\ndifferent: %s%s", name, res);
differ = 1;
strcat(result, partial);
}
if(prev == NULL) { /* tmp = head2 */
head2 = head2->next;
attr_free(tmp);
tmp = head2;
}
else {
prev->next = tmp->next;
attr_free(tmp);
tmp = prev->next;
if(tmp == NULL) {
tmp = head2;
prev = NULL;
}
}
break;
}
else { /* attr not found */
if(prev == NULL)
prev = head2;
else
prev = tmp;
tmp = tmp->next;
if(tmp == NULL) { /* end of list */
tmp = head2;
prev = NULL;
}
if(tmp == start) { /* attr !exist in 2 */
sprintf(partial, "\ndifferent: %s(*)", name);
differ = 1;
strcat(result, partial);
for(i=0; head1->vals[i] != NULL; i++) {
sprintf(partial, "\n\t1: %s", head1->vals[i]);
strcat(result, partial);
}
break;
}
}
}
start = head1;
head1 = head1->next;
attr_free(start);
}
while(head2 != NULL) {
sprintf(partial, "\ndifferent: %s(*)", head2->name);
differ = 1;
strcat(result, partial);
for(i=0; head2->vals[i] != NULL; i++) {
sprintf(partial, "\n\t2: %s", head2->vals[i]);
strcat(result, partial);
}
tmp = head2;
head2 = head2->next;
attr_free(tmp);
}
return(result);
}
static void
attr_free(ATTR *at)
{
ldap_memfree(at->name);
ldap_value_free(at->vals);
free(at);
}
static void
notfound(char *base, int dbaseno)
{
printf("%donly: %s\n", dbaseno+1, base);
}
#if 0 /* these function is not used */
/* used for debugging */
static void
print_dn( LDAP *ld, LDAPMessage *entry )
{
char *dn, *ufn;
dn = ldap_get_dn( ld, entry );
if ( ldif ) {
write_ldif_value( "dn", dn, strlen( dn ));
} else {
printf( "%s\n", dn );
}
if ( includeufn ) {
ufn = ldap_dn2ufn( dn );
if ( ldif ) {
write_ldif_value( "ufn", ufn, strlen( ufn ));
} else {
printf( "%s\n", ufn );
}
free( ufn );
}
ldap_memfree( dn );
}
static void
print_entry( ld, entry, attrsonly )
LDAP *ld;
LDAPMessage *entry;
int attrsonly;
{
char *a, *dn, *ufn, tmpfname[ 256 ];
int i, notascii;
BerElement *ber;
struct berval **bvals;
FILE *tmpfp;
#if defined( XP_WIN32 )
char mode[20] = "w+b";
#else
char mode[20] = "w";
#endif
dn = ldap_get_dn( ld, entry );
if ( ldif ) {
write_ldif_value( "dn", dn, strlen( dn ));
} else {
printf( "%s\n", dn );
}
if ( includeufn ) {
ufn = ldap_dn2ufn( dn );
if ( ldif ) {
write_ldif_value( "ufn", ufn, strlen( ufn ));
} else {
printf( "%s\n", ufn );
}
free( ufn );
}
ldap_memfree( dn );
for ( a = ldap_first_attribute( ld, entry, &ber ); a != NULL;
a = ldap_next_attribute( ld, entry, ber ) ) {
if ( ldap_charray_inlist(sortattr, a) && /* in the list*/
skipsortattr[ldap_charray_position(sortattr, a)] ) {/* and skip it*/
continue; /* so skip it! */
}
if ( attrsonly ) {
if ( ldif ) {
write_ldif_value( a, "", 0 );
} else {
printf( "%s\n", a );
}
} else if (( bvals = ldap_get_values_len( ld, entry, a )) != NULL ) {
for ( i = 0; bvals[i] != NULL; i++ ) {
if ( vals2tmp ) {
sprintf( tmpfname, "%s/ldapcmp-%s-XXXXXX",
ldaptool_get_tmp_dir(), a );
tmpfp = NULL;
if ( LDAPTOOL_MKTEMP( tmpfname ) == NULL ) {
perror( tmpfname );
} else if (( tmpfp = fopen( tmpfname, mode)) == NULL ) {
perror( tmpfname );
} else if ( fwrite( bvals[ i ]->bv_val,
bvals[ i ]->bv_len, 1, tmpfp ) == 0 ) {
perror( tmpfname );
} else if ( ldif ) {
write_ldif_value( a, tmpfname, strlen( tmpfname ));
} else {
printf( "%s%s%s\n", a, sep, tmpfname );
}
if ( tmpfp != NULL ) {
fclose( tmpfp );
}
} else {
notascii = 0;
if ( !ldif && !allow_binary ) {
notascii = !ldaptool_berval_is_ascii( bvals[ i ] );
}
if ( ldif ) {
write_ldif_value( a, bvals[ i ]->bv_val,
bvals[ i ]->bv_len );
} else {
printf( "%s%s%s\n", a, sep,
notascii ? "NOT ASCII" : bvals[ i ]->bv_val );
}
}
}
ber_bvecfree( bvals );
}
}
if ( ber != NULL ) {
ber_free( ber, 0 );
}
}
static int
write_ldif_value( char *type, char *value, unsigned long vallen )
{
char *ldif;
if (( ldif = ldif_type_and_value( type, value, (int)vallen )) == NULL ) {
return( -1 );
}
fputs( ldif, stdout );
free( ldif );
return( 0 );
}
#endif /* 0 */

View File

@@ -0,0 +1,221 @@
/*
* 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 Communicator client code, released
* March 31, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
/* ldapdelete.c - simple program to delete an entry using LDAP */
#include <__version.h>
#include "ldaptool.h"
#include "fileurl.h"
static int contoper = 0;
static LDAP *ld;
static int ldapcompare_quiet = 0;
static int docompare( LDAP *ld, const char *dn, const char *attrtype,
const struct berval *bvalue, LDAPControl **serverctrls );
static void options_callback( int option, char *optarg );
static int typeval2berval( char *typeval, char **typep, struct berval *bvp );
static void
usage( int rc )
{
fprintf( stderr, "usage: %s [options] attributetype:value [dn...]\n",
ldaptool_progname );
fprintf( stderr, " %s [options] attributetype::base64value [dn...]\n",
ldaptool_progname );
fprintf( stderr, " %s [options] attributetype:<fileurl [dn...]\n",
ldaptool_progname );
fprintf( stderr, "options:\n" );
ldaptool_common_usage( 0 );
fprintf( stderr, " -c\t\tcontinuous mode (do not stop on errors)\n" );
fprintf( stderr, " -f file\tread DNs to compare against from file\n" );
fprintf( stderr, " -q\t\tbe quiet when comparing entries\n" );
exit( rc );
}
int
main( int argc, char **argv )
{
char buf[ 4096 ], *typeval = NULL, *type = NULL;
struct berval bv;
int rc, optind;
LDAPControl *ldctrl;
#ifdef notdef
#ifdef HPUX11
#ifndef __LP64__
_main( argc, argv);
#endif /* __LP64_ */
#endif /* HPUX11 */
#endif
optind = ldaptool_process_args( argc, argv, "cq", 0, options_callback );
if ( optind == -1 ) {
usage ( LDAP_PARAM_ERROR );
}
if ( ldaptool_fp == NULL && optind >= argc ) {
ldaptool_fp = stdin;
}
ld = ldaptool_ldap_init( 0 );
ldaptool_bind( ld );
if (( ldctrl = ldaptool_create_manage_dsait_control()) != NULL ) {
ldaptool_add_control_to_array( ldctrl, ldaptool_request_ctrls);
}
if ((ldctrl = ldaptool_create_proxyauth_control(ld)) !=NULL) {
ldaptool_add_control_to_array( ldctrl, ldaptool_request_ctrls);
}
if ( optind >= argc ) {
usage( LDAP_PARAM_ERROR );
}
typeval = ldaptool_local2UTF8( argv[optind] );
if (( rc = typeval2berval( typeval, &type, &bv )) != LDAP_SUCCESS ) {
fprintf( stderr, "%s: unable to parse \"%s\"\n",
ldaptool_progname, argv[optind] );
usage( rc );
free( typeval );
}
++optind;
rc = 0;
if ( ldaptool_fp == NULL ) {
for ( ; optind < argc &&
( contoper || !LDAPTOOL_RESULT_IS_AN_ERROR( rc ) );
++optind ) {
char *conv;
conv = ldaptool_local2UTF8( argv[ optind ] );
rc = docompare( ld, conv, type, &bv, ldaptool_request_ctrls );
if ( conv != NULL ) {
free( conv );
}
}
} else {
while (( contoper || !LDAPTOOL_RESULT_IS_AN_ERROR( rc )) &&
fgets(buf, sizeof(buf), ldaptool_fp) != NULL) {
buf[ strlen( buf ) - 1 ] = '\0'; /* remove trailing newline */
if ( *buf != '\0' ) {
rc = docompare( ld, buf, type, &bv, ldaptool_request_ctrls );
}
}
}
ldaptool_reset_control_array( ldaptool_request_ctrls );
ldaptool_cleanup( ld );
if ( typeval != NULL ) free( typeval );
if ( bv.bv_val != NULL ) free( bv.bv_val );
return( rc );
}
static void
options_callback( int option, char *optarg )
{
switch( option ) {
case 'c': /* continuous operation mode */
++contoper;
break;
case 'q': /* continuous operation mode */
++ldapcompare_quiet;
break;
default:
usage( LDAP_PARAM_ERROR );
}
}
static int
docompare( LDAP *ld, const char *dn, const char *attrtype,
const struct berval *bvalue, LDAPControl **serverctrls )
{
int rc;
if ( !ldapcompare_quiet ) {
char *valuestr, tmpbuf[256];
if ( ldaptool_berval_is_ascii( bvalue )) {
valuestr = bvalue->bv_val;
} else {
#ifdef HAVE_SNPRINTF
snprintf( tmpbuf, sizeof(tmpbuf), "NOT ASCII (%ld bytes)",
bvalue->bv_len );
#else
sprintf( tmpbuf, "NOT ASCII (%ld bytes)",
bvalue->bv_len );
#endif
valuestr = tmpbuf;
}
printf( "%scomparing type: \"%s\" value: \"%s\" in entry \"%s\"\n",
ldaptool_not ? "!" : "", attrtype, valuestr, dn );
}
if ( ldaptool_not ) {
rc = LDAP_COMPARE_TRUE;
} else {
rc = ldaptool_compare_ext_s( ld, dn, attrtype, bvalue,
serverctrls, NULL, "ldap_compare" );
if ( !ldapcompare_quiet ) {
if ( rc == LDAP_COMPARE_TRUE ) {
puts( "compare TRUE" );
} else if ( rc == LDAP_COMPARE_FALSE ) {
puts( "compare FALSE" );
}
}
}
return( rc );
}
/*
* Parse an ldapcompare type:value or type::value argument.
*
* The *typep is set to point into the typeval string.
* bvp->bv_val is created from malloc'd memory.
*
* This function returns an LDAP error code (LDAP_SUCCESS if all goes well).
*/
static int
typeval2berval( char *typeval, char **typep, struct berval *bvp )
{
char *value;
int vlen, rc;
if ( ldif_parse_line( typeval, typep, &value, &vlen ) != 0 ) {
return( LDAP_PARAM_ERROR );
}
rc = ldaptool_berval_from_ldif_value( value, vlen, bvp,
1 /* recognize file URLs */, 0 /* always try file */,
1 /* report errors */ );
return( ldaptool_fileurlerr2ldaperr( rc ));
}

View File

@@ -0,0 +1,221 @@
/*
* 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 Communicator client code, released
* March 31, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
/* ldapdelete.c - simple program to delete an entry using LDAP */
#include <__version.h>
#include "ldaptool.h"
static int contoper;
#ifdef later
static int delbypasscmd, yestodelete;
#endif
static LDAP *ld;
LDAPMessage *result, *e;
char *my_filter = "(objectclass=*)";
static int dodelete( LDAP *ld, char *dn, LDAPControl **serverctrls );
static void options_callback( int option, char *optarg );
static void
usage( void )
{
fprintf( stderr, "usage: %s [options] [dn...]\n", ldaptool_progname );
fprintf( stderr, "options:\n" );
ldaptool_common_usage( 0 );
#ifdef later
fprintf( stderr, " -a\t\tBy-pass confirmation question when deleting a branch\n" );
#endif
fprintf( stderr, " -c\t\tcontinuous mode (do not stop on errors)\n" );
fprintf( stderr, " -f file\tread DNs to delete from file (default: standard input)\n" );
exit( LDAP_PARAM_ERROR );
}
int
main( int argc, char **argv )
{
char buf[ 4096 ];
int rc, deref, optind;
LDAPControl *ldctrl;
#ifdef notdef
#ifdef HPUX11
#ifndef __LP64__
_main( argc, argv);
#endif /* __LP64_ */
#endif /* HPUX11 */
#endif
contoper = 0;
#ifdef later
delbypasscmd = 0;
#endif
optind = ldaptool_process_args( argc, argv, "c", 0, options_callback );
if ( optind == -1 ) {
usage();
}
if ( ldaptool_fp == NULL && optind >= argc ) {
ldaptool_fp = stdin;
}
ld = ldaptool_ldap_init( 0 );
deref = LDAP_DEREF_NEVER; /* prudent, but probably unnecessary */
ldap_set_option( ld, LDAP_OPT_DEREF, &deref );
ldaptool_bind( ld );
if (( ldctrl = ldaptool_create_manage_dsait_control()) != NULL ) {
ldaptool_add_control_to_array( ldctrl, ldaptool_request_ctrls);
}
if ((ldctrl = ldaptool_create_proxyauth_control(ld)) !=NULL) {
ldaptool_add_control_to_array( ldctrl, ldaptool_request_ctrls);
}
if ( ldaptool_fp == NULL ) {
for ( ; optind < argc; ++optind ) {
char *conv;
conv = ldaptool_local2UTF8( argv[ optind ] );
rc = dodelete( ld, conv, ldaptool_request_ctrls );
if( conv != NULL ) {
free( conv );
}
}
} else {
rc = 0;
while ((rc == 0 || contoper) &&
fgets(buf, sizeof(buf), ldaptool_fp) != NULL) {
buf[ strlen( buf ) - 1 ] = '\0'; /* remove trailing newline */
if ( *buf != '\0' ) {
rc = dodelete( ld, buf, ldaptool_request_ctrls );
}
}
}
ldaptool_reset_control_array( ldaptool_request_ctrls );
ldaptool_cleanup( ld );
return( rc );
}
static void
options_callback( int option, char *optarg )
{
switch( option ) {
case 'c': /* continuous operation mode */
++contoper;
break;
default:
usage();
}
}
static int
dodelete( LDAP *ld, char *dn, LDAPControl **serverctrls )
{
int rc;
if ( ldaptool_verbose ) {
printf( "%sdeleting entry %s\n", ldaptool_not ? "!" : "", dn );
}
if ( ldaptool_not ) {
rc = LDAP_SUCCESS;
} else if (( rc = ldaptool_delete_ext_s( ld, dn, serverctrls, NULL,
"ldap_delete" )) == LDAP_SUCCESS && ldaptool_verbose ) {
printf( "entry removed\n" );
}
return( rc );
}
#ifdef later
/* This code broke iDS.....it will have to be revisited */
static int
dodelete( LDAP *ld, char *dn, LDAPControl **serverctrls )
{
int rc;
Head HeadNode;
Element *datalist;
char ch;
if ( ldaptool_verbose ) {
printf( "%sdeleting entry %s\n", ldaptool_not ? "!" : "", dn );
}
if ( ldaptool_not ) {
rc = LDAP_SUCCESS;
}
else { /* else 1 */
L_Init(&HeadNode);
if ( (rc = ldap_search_s( ld, dn, LDAP_SCOPE_SUBTREE, my_filter, NULL, 0, &result )) != LDAP_SUCCESS ) {
ldaptool_print_lderror( ld, "ldap_search", LDAPTOOL_CHECK4SSL_IF_APPROP );
}
else { /* else 2 */
for ( e = ldap_first_entry( ld, result ); e != NULL; e = ldap_next_entry( ld, e ) ) {
if ( ( dn = ldap_get_dn( ld, e ) ) != NULL ) {
datalist = (Element *)malloc(sizeof(Element));
datalist->data = dn;
L_Insert(datalist, &HeadNode);
}
}
if ( ((Head *)&HeadNode)->count > 1 ) {
yestodelete = 0;
if ( delbypasscmd == 0 ) {
printf( "Are you sure you want to delete the entire branch rooted at %s? [no]\n", (char *)((Element *)(((Head *)&HeadNode)->first))->data);
ch = getchar();
if ( (ch == 'Y') || (ch == 'y')) {
yestodelete = 1;
}
} else {
yestodelete = 1;
}
} else {
yestodelete = 1;
}
if ( yestodelete == 1 ) {
for ( datalist = ((Head *)&HeadNode)->last; datalist; datalist = datalist->left ) {
if (datalist) {
if ((rc = ldaptool_delete_ext_s( ld, (char *)datalist->data, serverctrls, NULL, "ldap_delete" )) == LDAP_SUCCESS && ldaptool_verbose ) {
printf( "%s entry removed\n", (char *)datalist->data );
}
L_Remove(datalist, (Head *)&HeadNode);
ldap_memfree(datalist->data);
free ( datalist );
}
}
} /* end if (yestodelete) */
} /* else 2 */
} /* else 1 */
return (rc);
} /* function end bracket */
#endif

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,170 @@
/*
* 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 Communicator client code, released
* March 31, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
/* ldapmodrdn.c - generic program to modify an entry's RDN using LDAP */
#include "ldaptool.h"
static int domodrdn( LDAP *ld, char *dn, char *rdn, int remove,
LDAPControl **serverctrls);
static void options_callback( int option, char *optarg );
static int contoper, remove_oldrdn;
static LDAP *ld;
static void
usage( void )
{
fprintf( stderr, "usage: %s [options] [dn rdn]\n", ldaptool_progname );
fprintf( stderr, "options:\n" );
ldaptool_common_usage( 0 );
fprintf( stderr, " -c\t\tcontinuous mode (do not stop on errors)\n" );
fprintf( stderr, " -r\t\tremove old RDN\n" );
fprintf( stderr, " -f file\tread changes from file\n" );
exit( LDAP_PARAM_ERROR );
}
int main( int argc, char **argv )
{
char *entrydn, *rdn, buf[ 4096 ];
int rc, havedn, deref, optind;
LDAPControl *ctrls[2], **serverctrls;
contoper = remove_oldrdn = 0;
optind = ldaptool_process_args( argc, argv, "cr", 0, options_callback );
if ( optind == -1 ) {
usage();
}
if ( ldaptool_fp == NULL ) {
ldaptool_fp = stdin;
}
havedn = 0;
if (argc - optind == 2) {
if (( rdn = strdup( argv[argc - 1] )) == NULL ) {
perror( "strdup" );
exit( LDAP_NO_MEMORY );
}
if (( entrydn = strdup( argv[argc - 2] )) == NULL ) {
perror( "strdup" );
exit( LDAP_NO_MEMORY );
}
++havedn;
} else if ( argc - optind != 0 ) {
fprintf( stderr, "%s: invalid number of arguments, only two allowed\n",
ldaptool_progname );
usage();
}
ld = ldaptool_ldap_init( 0 );
if ( !ldaptool_not ) {
deref = LDAP_DEREF_NEVER; /* this seems prudent */
ldap_set_option( ld, LDAP_OPT_DEREF, &deref );
}
ldaptool_bind( ld );
if (( ctrls[0] = ldaptool_create_manage_dsait_control()) != NULL ) {
ctrls[1] = NULL;
serverctrls = ctrls;
} else {
serverctrls = NULL;
}
rc = 0;
if (havedn) {
rc = domodrdn(ld, entrydn, rdn, remove_oldrdn, serverctrls);
} else while ((rc == 0 || contoper) &&
fgets(buf, sizeof(buf), ldaptool_fp) != NULL) {
if ( *buf != '\0' && *buf != '\n' ) { /* skip blank lines */
buf[ strlen( buf ) - 1 ] = '\0'; /* remove nl */
if ( havedn ) { /* have DN, get RDN */
if (( rdn = strdup( buf )) == NULL ) {
perror( "strdup" );
exit( LDAP_NO_MEMORY );
}
rc = domodrdn(ld, entrydn, rdn, remove_oldrdn, serverctrls);
havedn = 0;
} else if ( !havedn ) { /* don't have DN yet */
if (( entrydn = strdup( buf )) == NULL ) {
perror( "strdup" );
exit( LDAP_NO_MEMORY );
}
++havedn;
}
}
}
ldaptool_cleanup( ld );
exit( rc );
}
static void
options_callback( int option, char *optarg )
{
switch( option ) {
case 'c': /* continuous operation mode */
++contoper;
break;
case 'r': /* remove old RDN */
++remove_oldrdn;
break;
default:
usage();
}
}
static int
domodrdn( LDAP *ld, char *dn, char *rdn, int remove_oldrdn,
LDAPControl **serverctrls )
{
int i;
if ( ldaptool_verbose ) {
printf( "modrdn %s:\n\t%s\n", dn, rdn );
if (remove_oldrdn)
printf("removing old RDN\n");
else
printf("keeping old RDN\n");
}
if ( !ldaptool_not ) {
if (( i = ldaptool_rename_s( ld, dn, rdn, NULL, remove_oldrdn,
serverctrls, NULL, "ldap_rename" )) == LDAP_SUCCESS
&& ldaptool_verbose ) {
printf( "modrdn complete\n" );
}
} else {
i = LDAP_SUCCESS;
}
return( i );
}

View File

@@ -0,0 +1,256 @@
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 Sun LDAP C SDK.
*
* The Initial Developer of the Original Code is Sun Microsystems, Inc.
*
* Portions created by Sun Microsystems, Inc are Copyright (C) 2005
* Sun Microsystems, Inc. All Rights Reserved.
*
* Contributor(s): abobrov
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/*
* ldappasswd.c - generic program to change LDAP users password
* by using password modify extended operation.
*/
#include <__version.h>
#include "ldaptool.h"
#include "fileurl.h"
static int prompt_old_password = 0;
static int prompt_new_password = 0;
static int is_file_old = 0;
static int is_file_new = 0;
static FILE *old_password_fp = NULL;
static FILE *new_password_fp = NULL;
static char *old_password_string = "Old Password: ";
static char *new_password_string = "New Password: ";
static char *re_new_password_string = "Re-enter new Password: ";
static struct berval genpasswd = { 0, NULL };
static struct berval oldpasswd = { 0, NULL };
static struct berval newpasswd = { 0, NULL };
static struct berval userid = { 0, NULL };
static void usage( void );
static void options_callback( int option, char *optarg );
static void
usage( void )
{
fprintf( stderr, "usage: %s [options] [user]\n", ldaptool_progname );
fprintf( stderr, "where:\n" );
fprintf( stderr, " user\tauthentication id\n" );
fprintf( stderr, " \te.g, uid=bjensen,dc=example,dc=com\n" );
fprintf( stderr, "options:\n" );
ldaptool_common_usage( 0 );
fprintf( stderr, " -a passwd\told password\n" );
fprintf( stderr, " -A\t\tprompt for old password\n" );
fprintf( stderr, " -t file\tread old password from 'file'\n" );
fprintf( stderr, " -s passwd\tnew password\n" );
fprintf( stderr, " -S\t\tprompt for new password\n" );
fprintf( stderr, " -T file\tread new password from 'file'\n" );
exit( LDAP_PARAM_ERROR );
}
int
main( int argc, char **argv )
{
int optind;
int rc = LDAP_SUCCESS; /* being superoptimistic for -n */
LDAP *ld;
#ifdef notdef
#ifdef HPUX11
#ifndef __LP64__
_main( argc, argv);
#endif /* __LP64_ */
#endif /* HPUX11 */
#endif
optind = ldaptool_process_args( argc, argv, "ASa:t:s:T:", 0, options_callback );
if ( (optind == -1) || (argc <= 1) ) {
usage();
}
if ( (argc - optind) >= 1 ) {
if ( argv[ optind ] ) {
if ( (userid.bv_val = ldaptool_local2UTF8(argv[ optind ]) ) == NULL ) {
fprintf( stderr, "%s: not enough memory\n", ldaptool_progname );
exit( LDAP_NO_MEMORY );
}
userid.bv_len = strlen( userid.bv_val );
++optind;
}
}
ld = ldaptool_ldap_init( 0 );
ldaptool_bind( ld );
if ( ldaptool_nobind && (userid.bv_val == NULL) && (userid.bv_len == 0) ) {
usage();
}
if ( !ldaptool_not ) {
rc = ldap_passwd_s( ld, userid.bv_val ? &userid : NULL,
oldpasswd.bv_val ? &oldpasswd : NULL,
newpasswd.bv_val ? &newpasswd : NULL,
&genpasswd, NULL, NULL );
if ( rc != LDAP_SUCCESS ) {
fprintf( stderr, "ldap_passwd_s: %s\n",
ldap_err2string( rc ) );
} else {
fprintf( stderr, "%s: password successfully changed\n",
ldaptool_progname );
}
if ( (genpasswd.bv_val != NULL) && (genpasswd.bv_len != 0) ) {
fprintf( stderr, "New password: %s\n", genpasswd.bv_val );
}
}
ldaptool_cleanup( ld );
return( rc );
}
static void
options_callback( int option, char *optarg )
{
char *old_passwd = NULL;
char *new_passwd = NULL;
char *re_newpasswd = NULL;
switch( option ) {
case 'a': /* old password */
old_passwd = strdup( optarg );
if (NULL == old_passwd)
{
perror("malloc");
exit( LDAP_NO_MEMORY );
}
break;
case 'A': /* prompt old password */
prompt_old_password = 1;
break;
case 't': /* old password from file */
if ((old_password_fp = fopen( optarg, "r" )) == NULL ) {
fprintf(stderr, "%s: Unable to open '%s' file\n",
ldaptool_progname, optarg);
exit( LDAP_PARAM_ERROR );
}
is_file_old = 1;
break;
case 's': /* new password */
new_passwd = strdup( optarg );
if (NULL == new_passwd)
{
perror("malloc");
exit( LDAP_NO_MEMORY );
}
break;
case 'S': /* prompt new password */
prompt_new_password = 1;
break;
case 'T': /* new password from file */
if ((new_password_fp = fopen( optarg, "r" )) == NULL ) {
fprintf(stderr, "%s: Unable to open '%s' file\n",
ldaptool_progname, optarg);
exit( LDAP_PARAM_ERROR );
}
is_file_new = 1;
break;
default:
usage();
break;
}
if ( (oldpasswd.bv_val == NULL) && (oldpasswd.bv_len == 0)
&& (prompt_old_password) ) {
old_passwd = ldaptool_prompt_password( old_password_string );
} else if ( (oldpasswd.bv_val == NULL) && (oldpasswd.bv_len == 0)
&& (is_file_old) ) {
old_passwd = ldaptool_read_password( old_password_fp );
}
if ( old_passwd ) {
if ( !ldaptool_noconv_passwd ) {
oldpasswd.bv_val = ldaptool_local2UTF8( old_passwd );
} else {
oldpasswd.bv_val = strdup( old_passwd );
}
if (NULL == oldpasswd.bv_val)
{
perror("malloc");
exit( LDAP_NO_MEMORY );
}
oldpasswd.bv_len = strlen( oldpasswd.bv_val );
}
if ( (newpasswd.bv_val == NULL) && (newpasswd.bv_len == 0)
&& (prompt_new_password) ) {
try_again:
new_passwd = ldaptool_prompt_password( new_password_string );
re_newpasswd = ldaptool_prompt_password( re_new_password_string );
if ( (NULL == new_passwd) || (NULL == re_newpasswd) )
{
perror("malloc");
exit( LDAP_NO_MEMORY );
}
if ( (strncmp( new_passwd, re_newpasswd,
strlen( new_passwd ) ) ) ) {
fprintf( stderr,
"%s: They don't match.\n\nPlease try again\n",
ldaptool_progname );
free( re_newpasswd );
free( new_passwd );
re_newpasswd = NULL;
new_passwd = NULL;
goto try_again;
}
} else if ( (newpasswd.bv_val == NULL) && (newpasswd.bv_len == 0)
&& (is_file_new) ) {
new_passwd = ldaptool_read_password( new_password_fp );
}
if ( new_passwd ) {
if ( !ldaptool_noconv_passwd ) {
newpasswd.bv_val = ldaptool_local2UTF8( new_passwd );
} else {
newpasswd.bv_val = strdup( new_passwd );
}
if (NULL == newpasswd.bv_val) {
perror("malloc");
exit( LDAP_NO_MEMORY );
}
newpasswd.bv_len = strlen( newpasswd.bv_val );
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,219 @@
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 Sun LDAP C SDK.
*
* The Initial Developer of the Original Code is Sun Microsystems, Inc.
*
* Portions created by Sun Microsystems, Inc are Copyright (C) 2005
* Sun Microsystems, Inc. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/*
* File for ldaptool routines for SASL
*/
#include <ldap.h>
#include "ldaptool.h"
#include "ldaptool-sasl.h"
#include <sasl.h>
#include <stdio.h>
#ifdef HAVE_SASL_OPTIONS
#define SASL_PROMPT "SASL"
typedef struct {
char *mech;
char *authid;
char *username;
char *passwd;
char *realm;
} ldaptoolSASLdefaults;
static int get_default(ldaptoolSASLdefaults *defaults, sasl_interact_t *interact);
static int get_new_value(sasl_interact_t *interact, unsigned flags);
void *
ldaptool_set_sasl_defaults ( LDAP *ld, char *mech, char *authid, char *username,
char *passwd, char *realm )
{
ldaptoolSASLdefaults *defaults;
if ((defaults = calloc(sizeof(defaults[0]), 1)) == NULL)
return NULL;
if (mech)
defaults->mech = mech;
else
ldap_get_option(ld, LDAP_OPT_X_SASL_MECH, &defaults->mech);
if (authid)
defaults->authid = authid;
else
ldap_get_option(ld, LDAP_OPT_X_SASL_AUTHCID, &defaults->authid);
if (username)
defaults->username = username;
else
ldap_get_option(ld, LDAP_OPT_X_SASL_AUTHZID, &defaults->username);
defaults->passwd = passwd;
if (realm)
defaults->realm = realm;
else
ldap_get_option(ld, LDAP_OPT_X_SASL_REALM, &defaults->realm);
return defaults;
}
int
ldaptool_sasl_interact( LDAP *ld, unsigned flags, void *defaults, void *prompts ) {
sasl_interact_t *interact;
ldaptoolSASLdefaults *sasldefaults = defaults;
int rc;
if (prompts == NULL || flags != LDAP_SASL_INTERACTIVE)
return (LDAP_PARAM_ERROR);
for (interact = prompts; interact->id != SASL_CB_LIST_END; interact++) {
/* Obtain the default value */
if ((rc = get_default(sasldefaults, interact)) != LDAP_SUCCESS)
return (rc);
/* If no default, get the new value from stdin */
if (interact->result == NULL) {
if ((rc = get_new_value(interact, flags)) != LDAP_SUCCESS)
return (rc);
}
}
return (LDAP_SUCCESS);
}
static int
get_default(ldaptoolSASLdefaults *defaults, sasl_interact_t *interact) {
const char *defvalue = interact->defresult;
if (defaults != NULL) {
switch( interact->id ) {
case SASL_CB_AUTHNAME:
defvalue = defaults->authid;
break;
case SASL_CB_USER:
defvalue = defaults->username;
break;
case SASL_CB_PASS:
defvalue = defaults->passwd;
break;
case SASL_CB_GETREALM:
defvalue = defaults->realm;
break;
}
}
if (defvalue != NULL) {
interact->result = (char *)malloc(strlen(defvalue)+1);
strcpy((char *)interact->result,defvalue);
/* Clear passwd */
if (interact->id == SASL_CB_PASS && defaults != NULL) {
/* At this point defaults->passwd is not NULL */
memset( defaults->passwd, '\0', strlen(defaults->passwd));
defaults->passwd = NULL;
}
if ((char *)interact->result == NULL)
return (LDAP_NO_MEMORY);
interact->len = strlen((char *)(interact->result));
}
return (LDAP_SUCCESS);
}
static int
get_new_value(sasl_interact_t *interact, unsigned flags) {
char *newvalue, str[1024];
int len;
if (interact->id == SASL_CB_ECHOPROMPT || interact->id == SASL_CB_NOECHOPROMPT) {
if (interact->challenge)
fprintf(stderr, "Challenge:%s\n", interact->challenge);
}
#ifdef HAVE_SNPRINTF
snprintf(str, sizeof(str), "%s:", interact->prompt?interact->prompt:SASL_PROMPT);
#else
sprintf(str, "%s:", interact->prompt?interact->prompt:SASL_PROMPT);
#endif
/* Get the new value */
if (interact->id == SASL_CB_PASS || interact->id == SASL_CB_NOECHOPROMPT) {
#if defined(_WIN32)
char pbuf[257];
fputs(str,stdout);
fflush(stdout);
if (fgets(pbuf,256,stdin) == NULL) {
newvalue = NULL;
} else {
char *tmp;
tmp = strchr(pbuf,'\n');
if (tmp) *tmp = '\0';
tmp = strchr(pbuf,'\r');
if (tmp) *tmp = '\0';
newvalue = strdup(pbuf);
}
if ( newvalue == NULL) {
#else
#if defined(SOLARIS)
if ((newvalue = (char *)getpassphrase(str)) == NULL) {
#else
if ((newvalue = (char *)getpass(str)) == NULL) {
#endif
#endif
return (LDAP_UNAVAILABLE);
}
len = strlen(newvalue);
} else {
fputs(str, stderr);
if ((newvalue = fgets(str, sizeof(str), stdin)) == NULL)
return (LDAP_UNAVAILABLE);
len = strlen(str);
if (len > 0 && str[len - 1] == '\n')
str[len - 1] = 0;
}
interact->result = (char *) strdup(newvalue);
memset(newvalue, '\0', len);
if (interact->result == NULL)
return (LDAP_NO_MEMORY);
interact->len = len;
return (LDAP_SUCCESS);
}
#endif /* HAVE_SASL_OPTIONS */

View File

@@ -0,0 +1,46 @@
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 Sun LDAP C SDK.
*
* The Initial Developer of the Original Code is Sun Microsystems, Inc.
*
* Portions created by Sun Microsystems, Inc are Copyright (C) 2005
* Sun Microsystems, Inc. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _LDAPTOOL_SASL_H
#define _LDAPTOOL_SASL_H
/*
* Include file for ldaptool routines for SASL
*/
void *ldaptool_set_sasl_defaults ( LDAP *ld, char *mech, char *authid, char *username, char *passwd, char *realm );
int ldaptool_sasl_interact ( LDAP *ld, unsigned flags, void *defaults, void *p );
#endif /* _LDAPTOOL_SASL_H */

View File

@@ -0,0 +1,214 @@
/*
* 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 Communicator client code, released
* March 31, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef _LDAPTOOL_H
#define _LDAPTOOL_H
/* XXX:mhein The following is a workaround for the redefinition of */
/* const problem on OSF. Fix to be provided by NSS */
/* This is a pretty benign workaround for us which */
/* should not cause problems in the future even if */
/* we forget to take it out :-) */
#ifdef OSF1V4D
#ifndef __STDC__
# define __STDC__
#endif /* __STDC__ */
#endif /* OSF1V4D */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#ifdef AIX
#include <strings.h>
#endif
#ifdef SCOOS
#include <sys/types.h>
#endif
#ifdef _WINDOWS
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
extern int getopt (int argc, char *const *argv, const char *optstring);
#include <io.h> /* for _mktemp() */
#define LDAPTOOL_MKTEMP( p ) _mktemp( p )
#else
#include <sys/file.h>
#include <sys/stat.h>
#include <unistd.h>
#define LDAPTOOL_MKTEMP( p ) mktemp( p )
#endif
#ifdef LINUX
#include <getopt.h> /* not always included from unistd.h */
#endif
#include <ctype.h>
#ifndef SCOOS
#include <sys/types.h>
#endif
#include <sys/stat.h>
#include <fcntl.h>
#if defined(NET_SSL)
#include <ssl.h>
#endif
#include <portable.h>
#include <ldap.h>
#ifndef NO_LIBLCACHE
#include <lcache.h>
#endif
#include <ldaplog.h>
#include <ldif.h>
#if defined(NET_SSL)
#include <ldap_ssl.h>
#endif
#include <ldappr.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* shared macros, structures, etc.
*/
#define LDAPTOOL_RESULT_IS_AN_ERROR( rc ) \
( (rc) != LDAP_SUCCESS && (rc) != LDAP_COMPARE_TRUE \
&& (rc) != LDAP_COMPARE_FALSE )
#define LDAPTOOL_DEFSEP "=" /* used by ldapcmp and ldapsearch */
#define LDAPTOOL_DEFHOST "localhost"
#define LDAPTOOL_DEFSSLSTRENGTH LDAPSSL_AUTH_CERT
#define LDAPTOOL_DEFCERTDBPATH "."
#define LDAPTOOL_DEFKEYDBPATH "."
#define LDAPTOOL_DEFREFHOPLIMIT 5
#define LDAPTOOL_SAFEREALLOC( ptr, size ) ( ptr == NULL ? malloc( size ) : \
realloc( ptr, size ))
/* this defines the max number of control requests for the tools */
#define CONTROL_REQUESTS 50
/*
* globals (defined in common.c)
*/
extern char *ldaptool_host;
extern char *ldaptool_host2;
extern int ldaptool_port;
extern int ldaptool_port2;
extern int ldaptool_verbose;
extern int ldaptool_not;
extern int ldaptool_nobind;
extern int ldaptool_noconv_passwd;
extern char *ldaptool_progname;
extern FILE *ldaptool_fp;
extern char *ldaptool_charset;
extern char *ldaptool_convdir;
extern LDAPControl *ldaptool_request_ctrls[];
/*
* function prototypes
*/
void ldaptool_common_usage( int two_hosts );
int ldaptool_process_args( int argc, char **argv, char *extra_opts,
int two_hosts, void (*extra_opt_callback)( int option, char *optarg ));
LDAP *ldaptool_ldap_init( int second_host );
void ldaptool_bind( LDAP *ld );
void ldaptool_cleanup( LDAP *ld );
int ldaptool_print_lderror( LDAP *ld, char *msg, int check4ssl );
#define LDAPTOOL_CHECK4SSL_NEVER 0
#define LDAPTOOL_CHECK4SSL_ALWAYS 1
#define LDAPTOOL_CHECK4SSL_IF_APPROP 2 /* if appropriate */
LDAPControl *ldaptool_create_manage_dsait_control( void );
void ldaptool_print_referrals( char **refs );
int ldaptool_print_extended_response( LDAP *ld, LDAPMessage *res, char *msg );
LDAPControl *ldaptool_create_proxyauth_control( LDAP *ld );
LDAPControl *ldaptool_create_geteffectiveRights_control ( LDAP *ld,
const char *authzid,
const char **attrlist );
void ldaptool_add_control_to_array( LDAPControl *ctrl, LDAPControl **array);
void ldaptool_reset_control_array( LDAPControl **array );
char *ldaptool_get_tmp_dir( void );
char *ldaptool_local2UTF8( const char * );
char *ldaptool_prompt_password( char *mod_password_string );
char *ldaptool_read_password( FILE *mod_password_fp );
int ldaptool_berval_is_ascii( const struct berval *bvp );
int ldaptool_sasl_bind_s( LDAP *ld, const char *dn, const char *mechanism,
const struct berval *cred, LDAPControl **serverctrls,
LDAPControl **clientctrls, struct berval **servercredp, char *msg );
int ldaptool_simple_bind_s( LDAP *ld, const char *dn, const char *passwd,
LDAPControl **serverctrls, LDAPControl **clientctrls, char *msg );
int ldaptool_add_ext_s( LDAP *ld, const char *dn, LDAPMod **attrs,
LDAPControl **serverctrls, LDAPControl **clientctrls, char *msg );
int ldaptool_modify_ext_s( LDAP *ld, const char *dn, LDAPMod **mods,
LDAPControl **serverctrls, LDAPControl **clientctrls, char *msg );
int ldaptool_delete_ext_s( LDAP *ld, const char *dn, LDAPControl **serverctrls,
LDAPControl **clientctrls, char *msg );
int ldaptool_rename_s( LDAP *ld, const char *dn, const char *newrdn,
const char *newparent, int deleteoldrdn, LDAPControl **serverctrls,
LDAPControl **clientctrls, char *msg );
int ldaptool_compare_ext_s( LDAP *ld, const char *dn, const char *attrtype,
const struct berval *bvalue, LDAPControl **serverctrls,
LDAPControl **clientctrls, char *msg );
int ldaptool_boolean_str2value ( const char *s, int strict );
int ldaptool_parse_ctrl_arg ( char *ctrl_arg, char sep, char **ctrl_oid,
int *ctrl_criticality, char **ctrl_value, int *vlen);
FILE * ldaptool_open_file(const char *filename, const char *mode);
/* Definition for list in ldapdelete.c */
typedef struct Element { /* double-linked list data type */
struct Element *right;
struct Element *left;
char *data;
} Element;
typedef struct { /* generic double-linked list head */
Element *first;
Element *last;
long count;
} Head;
void L_Init(Head *list);
void L_Insert(Element *Node, Head *HeadNode);
void L_Remove(Element *Node, Head *HeadNode);
#ifdef __cplusplus
}
#endif
#endif /* LDAPTOOL_H */

View File

@@ -0,0 +1,259 @@
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 Sun LDAP C SDK.
*
* The Initial Developer of the Original Code is Sun Microsystems, Inc.
*
* Portions created by Sun Microsystems, Inc are Copyright (C) 2005
* Sun Microsystems, Inc. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "ldaptool.h"
#include "list.h"
/* Initialize the pointer to the Head of the list
* The QHead is not allocated internally
*/
void q_init(QHead *list)
{
if(list)
{
list->first = NULL;
list->last = NULL;
list->nnodes = 0;
}
}
/* Append the node given to the end of the queue */
/* The node is NOT internally malloced */
void q_append(QElement *node, QHead *headNode)
{
if (!node || !headNode)
return;
node->next = NULL;
if (headNode->first == NULL)
{
node->prev= NULL;
headNode->last = headNode->first = node;
}
else
{
node->prev = headNode->last;
headNode->last = node->prev->next = node;
}
headNode->nnodes++;
}
/* Pre-pend the node given to the start of the queue */
/* The node is NOT internally malloced */
void q_prepend(QElement *node, QHead *headNode)
{
if(!node || !headNode )
return;
node->prev = NULL;
if((node->next = headNode->first) == NULL)
{
headNode->first = headNode->last = node;
}
else
{
headNode->first = node->next->prev = node;
}
headNode->nnodes++;
}
/* Find the node in the list - helper function */
void *q_find(QElement *node, QHead *headNode)
{
QElement *walker=NULL;
if(!node || !headNode)
return NULL;
for(walker = headNode->first; walker; walker = walker->next)
{
if(node == walker)
{
return walker;
}
}
return NULL;
}
/* Insert the element 1 (elem1) BEFORE element 2 (elem2) in the list */
/* It is assumed though there is no proof of this in any application code
* that the elem2 is already in the list and that ele1 is being inserted,
* positioning it before elem2
* If the elem1 already exits in the list, it is removed from its old position
* and then repositioned as follows:
* elem1 gets inserted before elem2
* elem1 gets prepended before elem2
*/
void q_before(QElement *elem1, QElement *elem2, QHead *headNode)
{
/* insert element 1 before element 2 now ----prepend it */
QElement *walker=NULL;
QElement *insertnode=NULL;
QElement *newnode = elem1;
if(!elem1 || !elem2 || !headNode )
return;
if((walker = (QElement *)q_find(elem2, headNode)) != NULL)
{
if((insertnode = (QElement *)q_find(elem1, headNode)) != NULL)
{
/* the node already exists in the list
remove the node and the proceed to add it
to the right spot in the list */
q_remove(insertnode, headNode);
}
if(headNode->first == walker)
{
/* elem 2 is the first node in the list
update the HeadNode pointers to point to the new node */
q_prepend(newnode, headNode );
return;
}
newnode->next = walker;
newnode->prev = walker->prev;
walker->prev->next = newnode;
walker->prev = newnode;
headNode->nnodes++;
}
}
/* Insert the element 1(elem1) after element 2 (elem2) in the list */
/* The semantics of these routines is determined from their use in
* the Universal Connector application
* It is assumed that element 2 is already in the list and that
* element 1 gets inserted after element 2
* If elem1 already exists in the list then the elem1 is removed and
* repostioned as follows:
* element 1 after element 2
* elem1 appened to elem2
*/
void q_after(QElement *elem1, QElement *elem2, QHead *headNode)
{
/* insert element 1 after element 2 now ----append after it */
QElement *walker = NULL;
QElement *insertnode = NULL;
QElement *newnode = elem1;
if(!elem1 || !elem2 || !headNode )
return;
if((walker = (QElement *)q_find(elem2, headNode)) != NULL)
{
if((insertnode = (QElement *)q_find(elem1, headNode)) != NULL)
{
/* the node already exists in the list
remove the node and the proceed to add it
to the right spot in the list */
q_remove(insertnode, headNode);
}
if(headNode->last == walker)
{
/* elem 2 is the last node in the list
update the headNode pointers */
q_append(newnode, headNode);
return;
}
newnode->next = walker->next;
walker->next->prev = newnode;
walker->next = newnode;
newnode->prev = walker;
headNode->nnodes++;
}
}
/* Remove the node from the list */
void q_remove(QElement *node, QHead *headNode)
{
QElement *walker = NULL;
QElement *prevnode = NULL;
if(!node || !headNode)
return;
for(walker = headNode->first; walker; walker = walker->next)
{
if(walker == node)
{
if(headNode->first == walker)
{
headNode->first = walker->next;
}
if(headNode->last == walker)
{
headNode->last = prevnode;
}
walker = walker->next;
if(prevnode != NULL)
{
prevnode->next = walker;
}
if(walker != NULL)
{
walker->prev = prevnode;
}
headNode->nnodes--;
return;
}
else /* walker != node */
{
prevnode = walker;
}
}
}
/* Move the node from list with HeadNode1 to list with HeadNode2 */
void q_move(QElement *node, QHead *headNode1, QHead *headNode2)
{
QElement *walker=NULL;
if((walker = (QElement *)q_find(node, headNode1)) != NULL)
{
q_remove(walker, headNode1);
q_append(walker, headNode2);
}
}

View File

@@ -0,0 +1,70 @@
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 Sun LDAP C SDK.
*
* The Initial Developer of the Original Code is Sun Microsystems, Inc.
*
* Portions created by Sun Microsystems, Inc are Copyright (C) 2005
* Sun Microsystems, Inc. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/*************************************************************************
double linked list declaration
**************************************************************************/
typedef struct QElement { /* double-linked list data type */
struct QElement *next; /* pointer to next entry (NULL if none) */
struct QElement *prev; /* pointer to previous entry (NULL if none) */
char *buffer;
} QElement;
typedef struct { /* generic double-linked list head */
QElement *first; /* pointer to first entry (NULL if empty list) */
QElement *last; /* pointer to last entry (NULL if empty list) */
long nnodes;
} QHead;
void q_init(QHead *list);
void q_append(QElement *node, QHead *headNode);
void q_prepend(QElement *node, QHead *headNode);
void *q_find(QElement *node, QHead *headNode);
void q_after(QElement *elem1, QElement *elem2, QHead *headNode);
void q_before(QElement *ele1, QElement *ele2, QHead *headNode);
void q_remove(QElement *node, QHead *headNode);
void q_move(QElement *node, QHead *headNode1, QHead *headNode2);
/* The Qhead Node is passed in an allocated entity */
#define QInit(qh) q_init((QHead *)(qh))
#define QInsert(q, qh) q_append((QElement *)(q), (QHead *)(qh))
#define QAppend(q, qh) q_append((QElement *)(q), (QHead *)(qh))
#define QPrepend(q, qh) q_prepend((QElement *)(q), (QHead *)(qh))
#define QAfter(q1, q2, qh) q_after((QElement *)(q1), (QElement *)(q2), (QHead *)(qh))
#define QBefore(q1, q2, qh) q_before((QElement *)(q1), (QElement *)(q2), (QHead *)(qh))
#define QRemove(q, qh) q_remove((QElement *)(q), (QHead *)(qh))
#define QMove(q, from, to) q_move((QElement *)(q), (QHead *)(from), (QHead *)(to))

View File

@@ -0,0 +1,115 @@
/*
* 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 Communicator client code, released
* March 31, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
/******************************************************
*
* ntuserpin.c - Prompts for the key
* database passphrase.
*
******************************************************/
#if defined( _WIN32 ) && defined ( NET_SSL )
#include <conio.h>
#include "ntuserpin.h"
#undef Debug
#undef OFF
#undef LITTLE_ENDIAN
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
static int i=0;
static int cbRemotePassword = 0;
static const char nt_retryWarning[] =
"Warning: You entered an incorrect PIN.\nIncorrect PIN may result in disabling the token";
static const char prompt[] = "Enter PIN for";
#define SZ_LOCAL_PWD 1024
static char loclpwd[SZ_LOCAL_PWD] = "";
struct SVRCORENTUserPinObj
{
SVRCOREPinObj base;
};
static const struct SVRCOREPinMethods vtable;
/* ------------------------------------------------------------ */
SVRCOREError
SVRCORE_CreateNTUserPinObj(SVRCORENTUserPinObj **out)
{
SVRCOREError err = 0;
SVRCORENTUserPinObj *obj = 0;
do {
obj = (SVRCORENTUserPinObj*)malloc(sizeof (SVRCORENTUserPinObj));
if (!obj) { err = 1; break; }
obj->base.methods = &vtable;
} while(0);
if (err)
{
SVRCORE_DestroyNTUserPinObj(obj);
obj = 0;
}
*out = obj;
return err;
}
void
SVRCORE_DestroyNTUserPinObj(SVRCORENTUserPinObj *obj)
{
if (obj) free(obj);
}
static void destroyObject(SVRCOREPinObj *obj)
{
SVRCORE_DestroyNTUserPinObj((SVRCORENTUserPinObj*)obj);
}
static char *getPin(SVRCOREPinObj *obj, const char *tokenName, PRBool retry)
{
char *pwd;
int ch;
if (retry)
printf("%s\n",nt_retryWarning);
printf("%s %s:", prompt, tokenName);
pwd = &loclpwd[0];
do
{
ch = _getch();
*pwd++ = (char )ch;
} while( ch != '\r' && (pwd < &loclpwd[SZ_LOCAL_PWD - 1]));
*(pwd-1)='\0';
printf("\n");
/* test for zero length password. if zero length, return null */
if ('\0' == loclpwd[0])
return NULL;
return &loclpwd[0];
}
/*
* VTable
*/
static const SVRCOREPinMethods vtable =
{ 0, 0, destroyObject, getPin };
#endif /* defined( _WIN32 ) && defined ( NET_SSL ) */

View File

@@ -0,0 +1,43 @@
/*
* 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 Communicator client code, released
* March 31, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
/******************************************************
*
* ntuserpin.h - Prompts for the key
* database passphrase.
*
******************************************************/
#ifndef _NTUSERPIN_H_
#define _NTUSERPIN_H_
#include "svrcore.h"
typedef struct SVRCORENTUserPinObj SVRCORENTUserPinObj;
SVRCOREError
SVRCORE_CreateNTUserPinObj(SVRCORENTUserPinObj **out);
void
SVRCORE_SetNTUserPinInteractive(SVRCORENTUserPinObj *obj, PRBool interactive);
void
SVRCORE_DestroyNTUserPinObj(SVRCORENTUserPinObj *obj);
#endif

File diff suppressed because it is too large Load Diff

798
mozilla/directory/c-sdk/ldap/configure vendored Executable file
View File

@@ -0,0 +1,798 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.13
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
# Defaults:
ac_help=
ac_default_prefix=/usr/local
# Any additions from configure.in:
ac_help="$ac_help
--enable-nspr-autoconf Enable building with an autoconf'ed NSPR tree"
# Initialize some variables set by options.
# The variables have the same names as the options, with
# dashes changed to underlines.
build=NONE
cache_file=./config.cache
exec_prefix=NONE
host=NONE
no_create=
nonopt=NONE
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
target=NONE
verbose=
x_includes=NONE
x_libraries=NONE
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'
# Initialize some other variables.
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12
ac_prev=
for ac_option
do
# If the previous option needs an argument, assign it.
if test -n "$ac_prev"; then
eval "$ac_prev=\$ac_option"
ac_prev=
continue
fi
case "$ac_option" in
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) ac_optarg= ;;
esac
# Accept the important Cygnus configure options, so we can diagnose typos.
case "$ac_option" in
-bindir | --bindir | --bindi | --bind | --bin | --bi)
ac_prev=bindir ;;
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bindir="$ac_optarg" ;;
-build | --build | --buil | --bui | --bu)
ac_prev=build ;;
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
build="$ac_optarg" ;;
-cache-file | --cache-file | --cache-fil | --cache-fi \
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
ac_prev=cache_file ;;
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
cache_file="$ac_optarg" ;;
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
ac_prev=datadir ;;
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
| --da=*)
datadir="$ac_optarg" ;;
-disable-* | --disable-*)
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
# Reject names that are not valid shell variable names.
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
fi
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
eval "enable_${ac_feature}=no" ;;
-enable-* | --enable-*)
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
# Reject names that are not valid shell variable names.
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
fi
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
case "$ac_option" in
*=*) ;;
*) ac_optarg=yes ;;
esac
eval "enable_${ac_feature}='$ac_optarg'" ;;
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
| --exec | --exe | --ex)
ac_prev=exec_prefix ;;
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
| --exec=* | --exe=* | --ex=*)
exec_prefix="$ac_optarg" ;;
-gas | --gas | --ga | --g)
# Obsolete; use --with-gas.
with_gas=yes ;;
-help | --help | --hel | --he)
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat << EOF
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
--cache-file=FILE cache test results in FILE
--help print this message
--no-create do not create output files
--quiet, --silent do not print \`checking...' messages
--version print the version of autoconf that created configure
Directory and file names:
--prefix=PREFIX install architecture-independent files in PREFIX
[$ac_default_prefix]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[same as prefix]
--bindir=DIR user executables in DIR [EPREFIX/bin]
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
--datadir=DIR read-only architecture-independent data in DIR
[PREFIX/share]
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data in DIR
[PREFIX/com]
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
--includedir=DIR C header files in DIR [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
--infodir=DIR info documentation in DIR [PREFIX/info]
--mandir=DIR man documentation in DIR [PREFIX/man]
--srcdir=DIR find the sources in DIR [configure dir or ..]
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM
run sed PROGRAM on installed program names
EOF
cat << EOF
Host type:
--build=BUILD configure for building on BUILD [BUILD=HOST]
--host=HOST configure for HOST [guessed]
--target=TARGET configure for TARGET [TARGET=HOST]
Features and packages:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--x-includes=DIR X include files are in DIR
--x-libraries=DIR X library files are in DIR
EOF
if test -n "$ac_help"; then
echo "--enable and --with options recognized:$ac_help"
fi
exit 0 ;;
-host | --host | --hos | --ho)
ac_prev=host ;;
-host=* | --host=* | --hos=* | --ho=*)
host="$ac_optarg" ;;
-includedir | --includedir | --includedi | --included | --include \
| --includ | --inclu | --incl | --inc)
ac_prev=includedir ;;
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
| --includ=* | --inclu=* | --incl=* | --inc=*)
includedir="$ac_optarg" ;;
-infodir | --infodir | --infodi | --infod | --info | --inf)
ac_prev=infodir ;;
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
infodir="$ac_optarg" ;;
-libdir | --libdir | --libdi | --libd)
ac_prev=libdir ;;
-libdir=* | --libdir=* | --libdi=* | --libd=*)
libdir="$ac_optarg" ;;
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
| --libexe | --libex | --libe)
ac_prev=libexecdir ;;
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
| --libexe=* | --libex=* | --libe=*)
libexecdir="$ac_optarg" ;;
-localstatedir | --localstatedir | --localstatedi | --localstated \
| --localstate | --localstat | --localsta | --localst \
| --locals | --local | --loca | --loc | --lo)
ac_prev=localstatedir ;;
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
localstatedir="$ac_optarg" ;;
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
ac_prev=mandir ;;
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
mandir="$ac_optarg" ;;
-nfp | --nfp | --nf)
# Obsolete; use --without-fp.
with_fp=no ;;
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
| --no-cr | --no-c)
no_create=yes ;;
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
no_recursion=yes ;;
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
| --oldin | --oldi | --old | --ol | --o)
ac_prev=oldincludedir ;;
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
oldincludedir="$ac_optarg" ;;
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
ac_prev=prefix ;;
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
prefix="$ac_optarg" ;;
-program-prefix | --program-prefix | --program-prefi | --program-pref \
| --program-pre | --program-pr | --program-p)
ac_prev=program_prefix ;;
-program-prefix=* | --program-prefix=* | --program-prefi=* \
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
program_prefix="$ac_optarg" ;;
-program-suffix | --program-suffix | --program-suffi | --program-suff \
| --program-suf | --program-su | --program-s)
ac_prev=program_suffix ;;
-program-suffix=* | --program-suffix=* | --program-suffi=* \
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
program_suffix="$ac_optarg" ;;
-program-transform-name | --program-transform-name \
| --program-transform-nam | --program-transform-na \
| --program-transform-n | --program-transform- \
| --program-transform | --program-transfor \
| --program-transfo | --program-transf \
| --program-trans | --program-tran \
| --progr-tra | --program-tr | --program-t)
ac_prev=program_transform_name ;;
-program-transform-name=* | --program-transform-name=* \
| --program-transform-nam=* | --program-transform-na=* \
| --program-transform-n=* | --program-transform-=* \
| --program-transform=* | --program-transfor=* \
| --program-transfo=* | --program-transf=* \
| --program-trans=* | --program-tran=* \
| --progr-tra=* | --program-tr=* | --program-t=*)
program_transform_name="$ac_optarg" ;;
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
| -silent | --silent | --silen | --sile | --sil)
silent=yes ;;
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
ac_prev=sbindir ;;
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
| --sbi=* | --sb=*)
sbindir="$ac_optarg" ;;
-sharedstatedir | --sharedstatedir | --sharedstatedi \
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
| --sharedst | --shareds | --shared | --share | --shar \
| --sha | --sh)
ac_prev=sharedstatedir ;;
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
| --sha=* | --sh=*)
sharedstatedir="$ac_optarg" ;;
-site | --site | --sit)
ac_prev=site ;;
-site=* | --site=* | --sit=*)
site="$ac_optarg" ;;
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
ac_prev=srcdir ;;
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
srcdir="$ac_optarg" ;;
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
| --syscon | --sysco | --sysc | --sys | --sy)
ac_prev=sysconfdir ;;
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
sysconfdir="$ac_optarg" ;;
-target | --target | --targe | --targ | --tar | --ta | --t)
ac_prev=target ;;
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
target="$ac_optarg" ;;
-v | -verbose | --verbose | --verbos | --verbo | --verb)
verbose=yes ;;
-version | --version | --versio | --versi | --vers)
echo "configure generated by autoconf version 2.13"
exit 0 ;;
-with-* | --with-*)
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
# Reject names that are not valid shell variable names.
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
fi
ac_package=`echo $ac_package| sed 's/-/_/g'`
case "$ac_option" in
*=*) ;;
*) ac_optarg=yes ;;
esac
eval "with_${ac_package}='$ac_optarg'" ;;
-without-* | --without-*)
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
# Reject names that are not valid shell variable names.
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
fi
ac_package=`echo $ac_package| sed 's/-/_/g'`
eval "with_${ac_package}=no" ;;
--x)
# Obsolete; use --with-x.
with_x=yes ;;
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
| --x-incl | --x-inc | --x-in | --x-i)
ac_prev=x_includes ;;
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
x_includes="$ac_optarg" ;;
-x-libraries | --x-libraries | --x-librarie | --x-librari \
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
ac_prev=x_libraries ;;
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
x_libraries="$ac_optarg" ;;
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
;;
*)
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
echo "configure: warning: $ac_option: invalid host type" 1>&2
fi
if test "x$nonopt" != xNONE; then
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
fi
nonopt="$ac_option"
;;
esac
done
if test -n "$ac_prev"; then
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
fi
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
# File descriptor usage:
# 0 standard input
# 1 file creation
# 2 errors and warnings
# 3 some systems may open it to /dev/tty
# 4 used on the Kubota Titan
# 6 checking for... messages and results
# 5 compiler messages saved in config.log
if test "$silent" = yes; then
exec 6>/dev/null
else
exec 6>&1
fi
exec 5>./config.log
echo "\
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
" 1>&5
# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell metacharacters.
ac_configure_args=
for ac_arg
do
case "$ac_arg" in
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
| --no-cr | --no-c) ;;
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
esac
done
# NLS nuisances.
# Only set these to C if already set. These must not be set unconditionally
# because not all systems understand e.g. LANG=C (notably SCO).
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
# Non-C LC_CTYPE values break the ctype check.
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h
# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
ac_unique_file=build/dirver.c
# Find the source files, if location was not specified.
if test -z "$srcdir"; then
ac_srcdir_defaulted=yes
# Try the directory containing this script, then its parent.
ac_prog=$0
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
srcdir=$ac_confdir
if test ! -r $srcdir/$ac_unique_file; then
srcdir=..
fi
else
ac_srcdir_defaulted=no
fi
if test ! -r $srcdir/$ac_unique_file; then
if test "$ac_srcdir_defaulted" = yes; then
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
else
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
fi
fi
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
if test "x$prefix" != xNONE; then
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
else
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
fi
fi
for ac_site_file in $CONFIG_SITE; do
if test -r "$ac_site_file"; then
echo "loading site script $ac_site_file"
. "$ac_site_file"
fi
done
if test -r "$cache_file"; then
echo "loading cache $cache_file"
. $cache_file
else
echo "creating cache $cache_file"
> $cache_file
fi
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross
ac_exeext=
ac_objext=o
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
' ac_t=' '
else
ac_n=-n ac_c= ac_t=
fi
else
ac_n= ac_c='\c' ac_t=
fi
# Check whether --enable-nspr-autoconf or --disable-nspr-autoconf was given.
if test "${enable_nspr_autoconf+set}" = set; then
enableval="$enable_nspr_autoconf"
NSPR_USE_AUTOCONF=1
else
NSPR_USE_AUTOCONF=0
fi
MAKEFILES="
Makefile
build/Makefile
build/autoconf.mk
include/Makefile
libraries/Makefile
libraries/libldap/Makefile
libraries/liblber/Makefile
"
trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs. It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already. You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in
*ac_space=\ *)
# `set' does not quote correctly, so add quotes (double-quote substitution
# turns \\\\ into \\, and sed turns \\ into \).
sed -n \
-e "s/'/'\\\\''/g" \
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
;;
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
;;
esac >> confcache
if cmp -s $cache_file confcache; then
:
else
if test -w $cache_file; then
echo "updating cache $cache_file"
cat confcache > $cache_file
else
echo "not updating unwritable cache $cache_file"
fi
fi
rm -f confcache
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
fi
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
# Transform confdefs.h into DEFS.
# Protect against shell expansion while executing Makefile rules.
# Protect against Makefile macro expansion.
cat > conftest.defs <<\EOF
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
s%\[%\\&%g
s%\]%\\&%g
s%\$%$$%g
EOF
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
rm -f conftest.defs
# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}
echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
# $0 $ac_configure_args
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
do
case "\$ac_option" in
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
echo "$CONFIG_STATUS generated by autoconf version 2.13"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;;
*) echo "\$ac_cs_usage"; exit 1 ;;
esac
done
ac_given_srcdir=$srcdir
trap 'rm -fr `echo "$MAKEFILES" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
s%@SHELL@%$SHELL%g
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
s%@FFLAGS@%$FFLAGS%g
s%@DEFS@%$DEFS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@LIBS@%$LIBS%g
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
s%@bindir@%$bindir%g
s%@sbindir@%$sbindir%g
s%@libexecdir@%$libexecdir%g
s%@datadir@%$datadir%g
s%@sysconfdir@%$sysconfdir%g
s%@sharedstatedir@%$sharedstatedir%g
s%@localstatedir@%$localstatedir%g
s%@libdir@%$libdir%g
s%@includedir@%$includedir%g
s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@NSPR_USE_AUTOCONF@%$NSPR_USE_AUTOCONF%g
CEOF
EOF
cat >> $CONFIG_STATUS <<\EOF
# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
if test $ac_beg -gt 1; then
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
else
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
fi
if test ! -s conftest.s$ac_file; then
ac_more_lines=false
rm -f conftest.s$ac_file
else
if test -z "$ac_sed_cmds"; then
ac_sed_cmds="sed -f conftest.s$ac_file"
else
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
fi
ac_file=`expr $ac_file + 1`
ac_beg=$ac_end
ac_end=`expr $ac_end + $ac_max_sed_cmds`
fi
done
if test -z "$ac_sed_cmds"; then
ac_sed_cmds=cat
fi
EOF
cat >> $CONFIG_STATUS <<EOF
CONFIG_FILES=\${CONFIG_FILES-"$MAKEFILES"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case "$ac_file" in
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
*) ac_file_in="${ac_file}.in" ;;
esac
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
# Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
# A "../" for each directory in $ac_dir_suffix.
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
else
ac_dir_suffix= ac_dots=
fi
case "$ac_given_srcdir" in
.) srcdir=.
if test -z "$ac_dots"; then top_srcdir=.
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
*) # Relative path.
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
top_srcdir="$ac_dots$ac_given_srcdir" ;;
esac
echo creating "$ac_file"
rm -f "$ac_file"
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
case "$ac_file" in
*Makefile*) ac_comsub="1i\\
# $configure_input" ;;
*) ac_comsub= ;;
esac
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*
EOF
cat >> $CONFIG_STATUS <<EOF
EOF
cat >> $CONFIG_STATUS <<\EOF
exit 0
EOF
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1

View File

@@ -0,0 +1,50 @@
dnl
dnl The contents of this file are subject to the Mozilla Public
dnl License Version 1.1 (the "License"); you may not use this file
dnl except in compliance with the License. You may obtain a copy of
dnl the License at http://www.mozilla.org/MPL/
dnl
dnl Software distributed under the License is distributed on an "AS
dnl IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
dnl implied. See the License for the specific language governing
dnl rights and limitations under the License.
dnl
dnl The Original Code is mozilla.org LDAP SDK autoconf glue.
dnl
dnl The Initial Developer of the Original Code is Netscape
dnl Communications Corp. Portions created by Netscape are
dnl Copyright (C) 2000, Netscape Communications Corp. All
dnl Rights Reserved.
dnl
dnl Contributor(s): Dan Mosedale <dmose@mozilla.org>
dnl
dnl Process this file with autoconf to produce a configure script.
AC_INIT(build/dirver.c)
dnl Checks for programs.
dnl Checks for libraries.
dnl Checks for header files.
dnl Checks for typedefs, structures, and compiler characteristics.
dnl Checks for library functions.
dnl If the nsprpub whose configuration system we're using has been built with
dnl --enable-nspr-autoconf, we need to cope with that here.
dnl
AC_ARG_ENABLE(nspr-autoconf,
[ --enable-nspr-autoconf Enable building with an autoconf'ed NSPR tree],
NSPR_USE_AUTOCONF=1, NSPR_USE_AUTOCONF=0)
AC_SUBST(NSPR_USE_AUTOCONF)
dnl Generate output files
dnl
MAKEFILES="
Makefile
build/Makefile
build/autoconf.mk
include/Makefile
libraries/Makefile
libraries/libldap/Makefile
libraries/liblber/Makefile
"
AC_OUTPUT([$MAKEFILES])

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,170 @@
LDAP SDK for C Examples
-----------------------
This directory contains some sample LDAP code to help you understand
how to use the LDAP SDK for C. These examples are designed to work against
the sample data contained in the Sun[tm] Java[tm] System Directory Server
distribution. If you want to run these samples, you will need to have
a working LDAP server running, and the sample "example.com" data
loaded.
-----------------
Building examples
-----------------
There is a simple Makefile provided which is sufficient to build on
UNIX[R] platforms. If you are not building on a Solaris[tm] system,
comment out the Solaris section and uncomment the appropriate section
for your platform. If you are building on Windows it is best to build
using Cygwin like environment by invoking gmake -f win32.mak <target>.
Targets are same for all platforms. While "all" and "clean" are
standard ones, you can use each example name without ".c" extention as a
target to build a partucular example. See the Makefile/s for all details.
--------------------
Synchronous examples
--------------------
These samples use the synchronous LDAP calls. These calls are more
straightforward to use, and it's suggested you look at these examples
first. These calls will block the calling process until all results
have been returned, so they are probably not appropriate for use in a
client with a graphical user interface which relies an an event loop.
However, they're fine for command-line clients and CGI programs.
search.c
--------
Shows how to use ldap_search_s() to search for all entries which have
an attribute value which exactly matches what you're searching for. In
this example, all entries with the surname (last name) "Jensen" are
retrieved and displayed.
csearch.c
---------
Like search.c, but enables an in-memory cache.
ssnoauth.c
----------
Like search.c, but the search is done over SSL.
ssearch.c
---------
Like ssnoauth.c, but with certificate based authentication thrown in.
srvrsort.c
----------
Shows how to use server side sorting in conjunction with the
ldap_search_ext_s() function.
rdentry.c
---------
Shows how to use ldap_search_s() to retrieve a particular entry from the
directory. In this example, the entry:
uid=bjensen,ou=People,dc=example,dc=com
is retrieved and displayed.
getattrs.c
----------
Just like read.c, but retrieves specific attributes from an entry.
compare.c
---------
Show how to use ldap_compare_s(), which allows you to test if a particular
value is contained in an attribute of an entry.
modattrs.c
----------
Shows how to use ldap_modify_s() to replace and add to values in an attribute.
modrdn.c
--------
Shows how to use ldap_modrdn2_s() to change the relative distinguished name
(rdn) of an entry.
getfilt.c
---------
Shows how to use the ldap_getfilter family of routines, which help generate
LDAP filters based on an arbitrary search string provided by a user.
crtfilt.c
---------
Shows how to use the ldap_create_filter() function to generate LDAP filters.
authzid.c
---------
Shows how to get the authorization ID for an operation.
effright.c
----------
Shows how to get effective rights for a user.
pwdextop.c
----------
Shows how to change a password using the LDAP Password Modification
extended operation.
pwdpolicy.c
-----------
Shows how to get password policy information using the password
policy control.
realattr.c
----------
Shows how to return only real attributes from a search.
starttls.c
----------
Shows how to use the Start TLS extended operation.
userstatus.c
------------
Shows how to get account status using the account status control.
virtattr.c
----------
Shows how to return only virtual attributes from a search.
whoami.c
--------
Shows how to perform the Who am I? extended operation.
---------------------
Asynchronous examples
---------------------
These examples use the asynchronous LDAP calls. The general idea is that
you begin an operation, and then periodically poll to see if any results
have been returned.
asearch.c
---------
Initiates a search for entries, and polls for results, printing them as
they arrive.
nsprio.c
--------
Like asearch.c but using the prldap routines to incorporate NSPR.
add.c
------
Add an entry to the directory.
del.c
------
Delete an entry from the directory.
psearch.c
---------
Shows how to use the Persistent Search LDAPv3 protocol extension to
monitor a directory server for changes.
ppolicy.c
---------
Attempt to bind to the directory, and report back any password expiration
information received. This demonstrates how clients can process password
policy information that is optionally returned by Directory Server 3.0
and later.
------------------------------------------------------------------------
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved
Use of this product is subject to license terms.

View File

@@ -0,0 +1,180 @@
/*
* Copyright 2005 Sun Microsystems, Inc. All Rights Reserved
* Use of this product is subject to license terms.
*/
/*
* 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 Communicator client code, released
* March 31, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
/*
* Add a new entry to the directory.
*
* Instead of calling the synchronous ldap_add_s() routine, we call
* the asynchronous routine ldap_add() and poll for results using
* ldap_result().
*
* Since it is an error to attempt to add an entry which already exists,
* you cannot run this example program twice in a row. You can use the
* adel.c example program to delete the entry which this example adds.
*
*/
#include "examples.h"
static void do_other_work();
unsigned long global_counter = 0;
static void free_mods( LDAPMod **mods );
#define NMODS 5
int
main( int argc, char **argv )
{
LDAP *ld;
LDAPMessage *result;
char *dn;
int i;
int rc;
int msgid;
int finished;
struct timeval zerotime;
LDAPMod **mods;
char *objectclass_values[] = { "top", "person", "organizationalPerson",
"inetOrgPerson", NULL };
char *cn_values[] = { "William B Jensen", "William Jensen", "Bill Jensen",
NULL };
char *sn_values[] = { "Jensen", NULL };
char *givenname_values[] = { "William", "Bill", NULL };
char *telephonenumber_values[] = { "+1 415 555 1212", NULL };
zerotime.tv_sec = zerotime.tv_usec = 0L;
/* Specify the DN we're adding */
dn = "cn=William B Jensen, " PEOPLE_BASE; /* see examples.h */
/* get a handle to an LDAP connection */
if ( (ld = ldap_init( MY_HOST, MY_PORT )) == NULL ) {
perror( "ldap_init" );
return( 1 );
}
/* authenticate to the directory as the Directory Manager */
if ( ldap_simple_bind_s( ld, MGR_DN, MGR_PW ) != LDAP_SUCCESS ) {
ldap_perror( ld, "ldap_simple_bind_s" );
return( 1 );
}
/* Construct the array of values to add */
mods = ( LDAPMod ** ) malloc(( NMODS + 1 ) * sizeof( LDAPMod * ));
if ( mods == NULL ) {
fprintf( stderr, "Cannot allocate memory for mods array\n" );
}
for ( i = 0; i < NMODS; i++ ) {
if (( mods[ i ] = ( LDAPMod * ) malloc( sizeof( LDAPMod ))) == NULL ) {
fprintf( stderr, "Cannot allocate memory for mods element\n" );
exit( 1 );
}
}
mods[ 0 ]->mod_op = 0;
mods[ 0 ]->mod_type = "objectclass";
mods[ 0 ]->mod_values = objectclass_values;
mods[ 1 ]->mod_op = 0;
mods[ 1 ]->mod_type = "cn";
mods[ 1 ]->mod_values = cn_values;
mods[ 2 ]->mod_op = 0;
mods[ 2 ]->mod_type = "sn";
mods[ 2 ]->mod_values = sn_values;
mods[ 3 ]->mod_op = 0;
mods[ 3 ]->mod_type = "givenname";
mods[ 3 ]->mod_values = givenname_values;
mods[ 4 ]->mod_op = 0;
mods[ 4 ]->mod_type = "telephonenumber";
mods[ 4 ]->mod_values = telephonenumber_values;
mods[ 5 ] = NULL;
/* Initiate the add operation */
if (( msgid = ldap_add( ld, dn, mods )) < 0 ) {
ldap_perror( ld, "ldap_add" );
free_mods( mods );
return( 1 );
}
/* Poll for the result */
finished = 0;
while ( !finished ) {
rc = ldap_result( ld, msgid, LDAP_MSG_ONE, &zerotime, &result );
switch ( rc ) {
case -1:
/* some error occurred */
ldap_perror( ld, "ldap_result" );
free_mods( mods );
return( 1 );
case 0:
/* Timeout was exceeded. No entries are ready for retrieval */
break;
default:
/* Should be finished here */
finished = 1;
if (( rc = ldap_result2error( ld, result, 0 )) == LDAP_SUCCESS ) {
printf( "Entry added successfully. I counted to %ld "
"while waiting.\n", global_counter );
} else {
printf( "Error while adding entry: %s\n",
ldap_err2string( rc ));
}
ldap_msgfree( result );
}
do_other_work();
}
ldap_unbind( ld );
free_mods( mods );
return 0;
}
/*
* Free a mods array.
*/
static void
free_mods( LDAPMod **mods )
{
int i;
for ( i = 0; i < NMODS; i++ ) {
free( mods[ i ] );
}
free( mods );
}
/*
* Perform other work while polling for results. This doesn't do anything
* useful, but it could.
*/
static void
do_other_work()
{
global_counter++;
}

View File

@@ -0,0 +1,156 @@
/*
* Copyright 2005 Sun Microsystems, Inc. All Rights Reserved
* Use of this product is subject to license terms.
*/
/*
* 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 Communicator client code, released
* March 31, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
/*
* Search the directory for all people whose surname (last name) is
* "Jensen". Since the "sn" attribute is a caseignorestring (cis), case
* is not significant when searching.
*
* Instead of calling the synchronous ldap_search_s() routine, we call
* the asynchronous routine ldap_search() and poll for results using
* ldap_result().
*
*/
#include "examples.h"
static void do_other_work();
unsigned long global_counter = 0;
int
main( int argc, char **argv )
{
LDAP *ld;
LDAPMessage *result, *e;
BerElement *ber;
char *a, *dn;
char **vals;
int i;
int rc;
int finished;
int msgid;
int num_entries = 0;
struct timeval zerotime;
zerotime.tv_sec = zerotime.tv_usec = 0L;
/* get a handle to an LDAP connection */
if ( (ld = ldap_init( MY_HOST, MY_PORT )) == NULL ) {
perror( "ldap_init" );
return( 1 );
}
/* authenticate to the directory as nobody */
if ( ldap_simple_bind_s( ld, NULL, NULL ) != LDAP_SUCCESS ) {
ldap_perror( ld, "ldap_simple_bind_s" );
return( 1 );
}
/* search for all entries with surname of Jensen */
if (( msgid = ldap_search( ld, MY_SEARCHBASE, LDAP_SCOPE_SUBTREE,
MY_FILTER, NULL, 0 )) < 0 ) {
ldap_perror( ld, "ldap_search" );
return( 1 );
}
/* Loop, polling for results until finished */
finished = 0;
while ( !finished ) {
/*
* Poll for results. We call ldap_result with the "all" argument
* set to LDAP_MSG_ONE. This causes ldap_result() to return exactly one
* entry if at least one entry is available. This allows us to
* display the entries as they are received.
*/
result = NULL;
rc = ldap_result( ld, msgid, LDAP_MSG_ONE, &zerotime, &result );
switch ( rc ) {
case -1:
/* some error occurred */
ldap_perror( ld, "ldap_result" );
return( 1 );
case 0:
/* Timeout was exceeded. No entries are ready for retrieval. */
if ( result != NULL ) {
ldap_msgfree( result );
}
break;
default:
/*
* Either an entry is ready for retrieval, or all entries have
* been retrieved.
*/
if (( e = ldap_first_entry( ld, result )) == NULL ) {
/* All done */
finished = 1;
if ( result != NULL ) {
ldap_msgfree( result );
}
continue;
}
/* for each entry print out name + all attrs and values */
num_entries++;
if (( dn = ldap_get_dn( ld, e )) != NULL ) {
printf( "dn: %s\n", dn );
ldap_memfree( dn );
}
for ( a = ldap_first_attribute( ld, e, &ber );
a != NULL; a = ldap_next_attribute( ld, e, ber ) ) {
if (( vals = ldap_get_values( ld, e, a )) != NULL ) {
for ( i = 0; vals[ i ] != NULL; i++ ) {
printf( "%s: %s\n", a, vals[ i ] );
}
ldap_value_free( vals );
}
ldap_memfree( a );
}
if ( ber != NULL ) {
ber_free( ber, 0 );
}
printf( "\n" );
ldap_msgfree( result );
}
/* Do other work here while you are waiting... */
do_other_work();
}
/* All done. Print a summary. */
printf( "%d entries retrieved. I counted to %ld "
"while I was waiting.\n", num_entries,
global_counter );
ldap_unbind( ld );
return( 0 );
}
/*
* Perform other work while polling for results. This doesn't do anything
* useful, but it could.
*/
static void
do_other_work()
{
global_counter++;
}

View File

@@ -0,0 +1,149 @@
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 Sun LDAP C SDK.
*
* The Initial Developer of the Original Code is Sun Microsystems, Inc.
*
* Portions created by Sun Microsystems, Inc are Copyright (C) 2005
* Sun Microsystems, Inc. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/*
* Get the authorization ID for an operation.
*/
#include "examples.h"
int
main( int argc, char **argv )
{
int version;
LDAP *ld;
int rc;
LDAPControl *authzidctrl = NULL;
LDAPControl *requestctrls[ 2 ];
int msgid;
LDAPMessage *result;
int parse_rc;
char *matched = NULL;
char *errmsg = NULL;
char **referrals;
LDAPControl **resultctrls = NULL;
char *authzid;
/* Use LDAPv3. */
version = LDAP_VERSION3;
if ( ldap_set_option( NULL, LDAP_OPT_PROTOCOL_VERSION, &version )
!= 0 ) {
fprintf( stderr,
"ldap_set_option protocol version to %d failed\n",
version );
return ( 1 );
}
/* Get a handle to an LDAP connection. */
if ( (ld = ldap_init( MY_HOST, MY_PORT )) == NULL ) {
perror( "ldap_init" );
return( 1 );
}
/* Create a authorization ID control. */
rc = ldap_create_authzid_control( ld, 1, &authzidctrl );
if ( rc != LDAP_SUCCESS ) {
fprintf( stderr, "ldap_create_authzid_control: %s\n",
ldap_err2string( rc ) );
ldap_unbind( ld );
return( 1 );
}
requestctrls[ 0 ] = authzidctrl;
requestctrls[ 1 ] = NULL;
/* Use the authorization ID control for the bind. */
rc = ldap_set_option( ld, LDAP_OPT_SERVER_CONTROLS, &authzidctrl );
if ( rc != LDAP_SUCCESS ) {
ldap_perror( ld, "ldap_set_option" );
return ( 1 );
}
/* Authenticate to the directory, checking for result controls. */
msgid = ldap_simple_bind( ld, ENTRYDN, ENTRYPW );
if ( msgid < 0 ) {
fprintf( stderr, "ldap_simple_bind: %s\n", ldap_err2string( rc ) );
if ( errmsg != NULL && errmsg != '\0' ) {
fprintf( stderr, "%s\n", errmsg );
}
ldap_unbind( ld );
return ( 1 );
}
rc = ldap_result( ld, msgid, LDAP_MSG_ALL, NULL, &result );
if ( rc < 0 ) {
rc = ldap_get_lderrno( ld, NULL, NULL );
fprintf( stderr, "ldap_result: %s\n", ldap_err2string( rc ) );
ldap_unbind( ld );
return ( 1 );
}
parse_rc = ldap_parse_result( ld, result, &rc, &matched, &errmsg,
&referrals, &resultctrls, 0 );
if ( parse_rc != LDAP_SUCCESS ) {
fprintf( stderr, "ldap_parse_result: %s\n", ldap_err2string( rc ) );
ldap_unbind( ld );
return ( 1 );
}
if ( rc != LDAP_SUCCESS ) {
fprintf( stderr, "ldap_simple_bind: %s\n", ldap_err2string( rc ) );
if ( errmsg != NULL && errmsg != '\0' ) {
fprintf( stderr, "%s\n", errmsg );
}
}
if ( resultctrls == NULL ) {
fprintf( stderr, "No result control from server.\n" );
ldap_unbind( ld );
return ( 1 );
}
/* Show the authorization ID. */
parse_rc = ldap_parse_authzid_control( ld, resultctrls, &authzid );
if ( parse_rc != LDAP_SUCCESS ) {
fprintf( stderr, "ldap_parse_authzid_control: %s\n",
ldap_err2string( rc ) );
ldap_unbind( ld );
return ( 1 );
}
printf( "DN: %s\n", ENTRYDN );
printf( "Authz ID: %s\n", authzid );
ldap_msgfree( result );
ldap_control_free( authzidctrl );
ldap_controls_free( resultctrls );
ldap_unbind( ld );
return( 0 );
}

View File

@@ -0,0 +1,89 @@
/*
* Copyright 2005 Sun Microsystems, Inc. All Rights Reserved
* Use of this product is subject to license terms.
*/
/*
* 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 Communicator client code, released
* March 31, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
/*
* Use ldap_compare() to compare values agains values contained in entry
* ENTRYDN (defined in examples.h)
* We test to see if (1) the value "person" is one of the values in the
* objectclass attribute (it is), and if (2) the value "xyzzy" is in the
* objectlass attribute (it isn't, or at least, it shouldn't be).
*
*/
#include "examples.h"
int
main( int main, char **argv )
{
LDAP *ld;
int rc;
/* get a handle to an LDAP connection */
if ( (ld = ldap_init( MY_HOST, MY_PORT )) == NULL ) {
perror( "ldap_init" );
return( 1 );
}
/* authenticate to the directory as nobody */
if ( ldap_simple_bind_s( ld, NULL, NULL ) != LDAP_SUCCESS ) {
ldap_perror( ld, "ldap_simple_bind_s" );
return( 1 );
}
/* compare the value "person" against the objectclass attribute */
rc = ldap_compare_s( ld, ENTRYDN, "objectclass", "person" );
switch ( rc ) {
case LDAP_COMPARE_TRUE:
printf( "The value \"person\" is contained in the objectclass "
"attribute.\n" );
break;
case LDAP_COMPARE_FALSE:
printf( "The value \"person\" is not contained in the objectclass "
"attribute.\n" );
break;
default:
ldap_perror( ld, "ldap_compare_s" );
}
/* compare the value "xyzzy" against the objectclass attribute */
rc = ldap_compare_s( ld, ENTRYDN, "objectclass", "xyzzy" );
switch ( rc ) {
case LDAP_COMPARE_TRUE:
printf( "The value \"xyzzy\" is contained in the objectclass "
"attribute.\n" );
break;
case LDAP_COMPARE_FALSE:
printf( "The value \"xyzzy\" is not contained in the objectclass "
"attribute.\n" );
break;
default:
ldap_perror( ld, "ldap_compare_s" );
}
ldap_unbind( ld );
return( 0 );
}

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