]> git.mxchange.org Git - simgear.git/log
simgear.git
22 years agoGetting ready for 0.2.0 stable release.
curt [Sat, 7 Sep 2002 01:25:02 +0000 (01:25 +0000)]
Getting ready for 0.2.0 stable release.

22 years agoFixes to allow MingW compilation.
curt [Fri, 6 Sep 2002 20:05:40 +0000 (20:05 +0000)]
Fixes to allow MingW compilation.

22 years agoFixes to better support the native irix compilers.
curt [Fri, 6 Sep 2002 15:30:11 +0000 (15:30 +0000)]
Fixes to better support the native irix compilers.

22 years agoAutomake version check is only done in autogen.sh and not in configure.
curt [Tue, 3 Sep 2002 21:44:44 +0000 (21:44 +0000)]
Automake version check is only done in autogen.sh and not in configure.

22 years agoFix a typo in acinclude.m4
curt [Tue, 3 Sep 2002 02:52:39 +0000 (02:52 +0000)]
Fix a typo in acinclude.m4

22 years agoAdditional configure changes.
curt [Mon, 2 Sep 2002 22:18:31 +0000 (22:18 +0000)]
Additional configure changes.

22 years agoTweaks for next prerelease.
curt [Mon, 2 Sep 2002 04:08:01 +0000 (04:08 +0000)]
Tweaks for next prerelease.

22 years agoMinor tweaks.
curt [Mon, 2 Sep 2002 03:43:05 +0000 (03:43 +0000)]
Minor tweaks.

22 years agoMake sure interpreters/ gets included with "make dist"
curt [Mon, 2 Sep 2002 03:41:39 +0000 (03:41 +0000)]
Make sure interpreters/ gets included with "make dist"

22 years agoPreparation for next pre-release.
curt [Sat, 31 Aug 2002 18:39:07 +0000 (18:39 +0000)]
Preparation for next pre-release.

22 years agoMore clean ups.
curt [Sat, 31 Aug 2002 13:18:49 +0000 (13:18 +0000)]
More clean ups.

22 years agoAdditional build system tweaks, regenerated the .dsp/.dsw's.
curt [Fri, 30 Aug 2002 15:03:30 +0000 (15:03 +0000)]
Additional build system tweaks, regenerated the .dsp/.dsw's.

22 years agoSeveral fixes and tweaks.
curt [Thu, 29 Aug 2002 14:00:35 +0000 (14:00 +0000)]
Several fixes and tweaks.

22 years agoAttempting more fixes to our autoconf/make scripts.
curt [Wed, 28 Aug 2002 14:08:12 +0000 (14:08 +0000)]
Attempting more fixes to our autoconf/make scripts.

22 years agoAdditional tweaks that got lost somehow.
curt [Tue, 27 Aug 2002 21:48:51 +0000 (21:48 +0000)]
Additional tweaks that got lost somehow.

22 years agoOoops, minor typo fixed.
curt [Tue, 27 Aug 2002 21:45:48 +0000 (21:45 +0000)]
Ooops, minor typo fixed.

22 years agoModernize the autoconf scripts a bit.
curt [Tue, 27 Aug 2002 21:44:39 +0000 (21:44 +0000)]
Modernize the autoconf scripts a bit.

22 years agoAdd #ifdef'd out support for plibs cheesy lens flare object.
curt [Tue, 27 Aug 2002 21:43:35 +0000 (21:43 +0000)]
Add #ifdef'd out support for plibs cheesy lens flare object.

22 years agoTidy up the autoconf/automake configuration a bit.
curt [Sun, 25 Aug 2002 17:31:47 +0000 (17:31 +0000)]
Tidy up the autoconf/automake configuration a bit.

- Removed some old cruft.

- Removed some support for older versions of automake which technically was
  correct, but caused the newer automakes to squawk warnings during an
  initial sanity check (which isn't done very intelligently.)

  NOTE: this fix is technically not correct for older version of automake.
  These older version use the variable "INCLUDES" internally and could have
  them already set to an important value.  That is why we were appending
  our values to them.  However, newer versions of automake don't set this
  value themselves so it is an error to append to a non-existant variable.
  We seem to "get away" with overwriting the value on older versions of
  automake, but if you have problems, consider upgrading to at least
  automake-1.5.

22 years agoIt probably is better not to hide warning messages. Removed spaces from
curt [Sat, 24 Aug 2002 18:21:49 +0000 (18:21 +0000)]
It probably is better not to hide warning messages.  Removed spaces from
AC_DEFINE( SYMBOL ) -> AC_DEFINE(SYMBOL)

22 years agoBrandon Bergren:
curt [Sat, 24 Aug 2002 03:54:45 +0000 (03:54 +0000)]
Brandon Bergren:

2. I changed Simgear's autogen.sh so it is quieter, and errors out if
autoheader or autoconf fails.  It puts all error output in autogen.err, and
deletes it if nothing errored out.  The patch is in (sg.autogen.sh.patch.gz)
This patch applies to flightgear, too.  If someone doesn't like what I did
here, please speak up!  I really believe that this patch will help cause
less confusion among people new to compiling flightgear.

22 years agoBernie Bright:
curt [Fri, 23 Aug 2002 17:52:10 +0000 (17:52 +0000)]
Bernie Bright:

Here are some changes that gave me a significant frame rate increase of about 10 fps with random objects disabled.  The interesting thing is that these changes aren't in the main loop but are in tile loader.  My guess is that I've reduced the memory footprint just enough to reduce CPU cache misses, though I have no hard evidence of this.

Initially I modified all SGBinObject member functions to pass/return by reference instead of by-value.  This gives little or no speed up but allows for some optimizations in fgBinObjLoad().  It is these changes that reduce the number of memory allocations.  Needless copying of vectors, and vectors of vectors, can be very memory intensive, especially if they are large.

Anyway I would be interested to see if you get similar results.  I would emphasize that the frame rate increase only occurs with random objects disabled.  I lose about 10-15 fps on my GF2MX 32MB with random objects, probably a fill-rate limitation or texture memory thing.

22 years agoChange from Norman Vine to add new random-number algorithm.
david [Mon, 5 Aug 2002 18:43:28 +0000 (18:43 +0000)]
Change from Norman Vine to add new random-number algorithm.

22 years agoRandom-number seed patch from Erik Hofman.
david [Wed, 31 Jul 2002 17:14:29 +0000 (17:14 +0000)]
Random-number seed patch from Erik Hofman.

22 years agoRemove efence support in favor of valgrind.
curt [Tue, 30 Jul 2002 14:10:08 +0000 (14:10 +0000)]
Remove efence support in favor of valgrind.

22 years agoRemove ECMAScript interpreter from the default build for now. It can
david [Tue, 30 Jul 2002 11:58:34 +0000 (11:58 +0000)]
Remove ECMAScript interpreter from the default build for now.  It can
still be built from inside the directory.

22 years agoPatch from Cameron Moore:
david [Thu, 18 Jul 2002 20:30:18 +0000 (20:30 +0000)]
Patch from Cameron Moore:

* Fixed (un)signed comparison

22 years agoPatch from Cameron Moore:
david [Thu, 18 Jul 2002 20:30:02 +0000 (20:30 +0000)]
Patch from Cameron Moore:

* Rearranged member initializers to shut gcc -Wall up

22 years agoAdded JavaScript interpreter, repackaged by Tony Peden. It's not tied
david [Thu, 18 Jul 2002 20:27:46 +0000 (20:27 +0000)]
Added JavaScript interpreter, repackaged by Tony Peden.  It's not tied
into anything yet, but it builds OK inside SimGear.

22 years agoDowngrade cloud-base alert to a debug warning.
david [Thu, 18 Jul 2002 20:23:30 +0000 (20:23 +0000)]
Downgrade cloud-base alert to a debug warning.

22 years agoQuick fix for bug reported by Julian Foad, where the simplify flag was
david [Thu, 18 Jul 2002 20:04:50 +0000 (20:04 +0000)]
Quick fix for bug reported by Julian Foad, where the simplify flag was
not honoured after the first call.  This isn't all that efficient, and
the return type probably should change to string eventually, but this
fix avoids changing the headers for now.

22 years agoFix deletes in destructor.
david [Sat, 6 Jul 2002 15:00:37 +0000 (15:00 +0000)]
Fix deletes in destructor.

22 years agoAdded new getDisplayName method that gets the name with its index.
david [Sat, 6 Jul 2002 14:58:38 +0000 (14:58 +0000)]
Added new getDisplayName method that gets the name with its index.
Suggested by Julian Foad.

22 years agoMade SGPropertyNode::getPath extremely efficient: it now caches its
david [Sat, 6 Jul 2002 13:19:02 +0000 (13:19 +0000)]
Made SGPropertyNode::getPath extremely efficient: it now caches its
result, so after the first call for any node, it simply tests and
returns a pointer.  This also fixes the problem of buffer conflicts
with make_string.

Added SGPropertyNode::hasChild(const char * name, int index = 0) to
provide a syntactically-cleaner way to test for the existence of a
child node, i.e.

  for (int i = 0; i < 9; i++) {
    if (node->hasChild("foo", i))
      foo[i] = node->getChild("foo", i)->getDoubleValue();
  }

22 years agoAdded simgear_config.h.in
david [Sat, 6 Jul 2002 12:06:40 +0000 (12:06 +0000)]
Added simgear_config.h.in

22 years agoFixed a couple minor compiler warnings.
curt [Wed, 3 Jul 2002 17:35:49 +0000 (17:35 +0000)]
Fixed a couple minor compiler warnings.

22 years agoMSVC++ bug work-around from Frederic Bouvier.
david [Wed, 3 Jul 2002 02:06:23 +0000 (02:06 +0000)]
MSVC++ bug work-around from Frederic Bouvier.

22 years agoFixes for IA-64 with Intel compiler.
curt [Tue, 2 Jul 2002 18:44:20 +0000 (18:44 +0000)]
Fixes for IA-64 with Intel compiler.

22 years agoFixed an MSVC compilation problem reported by Frederic Bouvier.
david [Fri, 28 Jun 2002 17:02:42 +0000 (17:02 +0000)]
Fixed an MSVC compilation problem reported by Frederic Bouvier.

22 years agoFixed bug reported by Julian Foad:
david [Fri, 28 Jun 2002 16:56:14 +0000 (16:56 +0000)]
Fixed bug reported by Julian Foad:

While investigating, I found that SGPropertyNode::getPath returns a
(char *) pointer to the character data of a string on its stack,
i.e. to undefined memory after it returns.  I remember someone was
changing strings to char* for efficiency.  Perhaps this bug was
introduced then.  I'll include a patch for it with my eventual patch
for the above, unless someone beats me to it.  I don't think it
affects any existing callers: they all want a string anyway.

22 years agoPatch from Julian Foad:
david [Fri, 28 Jun 2002 15:55:11 +0000 (15:55 +0000)]
Patch from Julian Foad:

Initialise a "possibly uninitialised" variable (which was already
functionally correct).

[Note from DPM: this patch will be blown away if we ever update to a
newer version of Expat.]

22 years agoPatch from Julian Foad:
david [Fri, 28 Jun 2002 15:54:34 +0000 (15:54 +0000)]
Patch from Julian Foad:

Remove a hack that originally worked around a buffer overflow
elsewhere in the file.  The buffer overflow was fixed long ago, but
the hack was not removed.

22 years agoPatch from Julian Foad:
david [Fri, 28 Jun 2002 15:54:15 +0000 (15:54 +0000)]
Patch from Julian Foad:

Remove trailing comma (unportable).

22 years agoPatch from Julian Foad:
david [Fri, 28 Jun 2002 15:53:58 +0000 (15:53 +0000)]
Patch from Julian Foad:

Remove unused static function (warning because it cannot possibly be used).

22 years agoPatch from Julian Foad:
david [Fri, 28 Jun 2002 15:53:31 +0000 (15:53 +0000)]
Patch from Julian Foad:

This file should be removed from CVS because it is generated by
autogen.sh.

22 years agoSignificant improvements to the change-listener support. There are
david [Tue, 18 Jun 2002 21:17:42 +0000 (21:17 +0000)]
Significant improvements to the change-listener support.  There are
now three different change events, and the listener base class removes
itself from the parent in the destructor.

22 years agoAdded a ptr() method to SGPropertyNode_ptr to get the raw pointer.
david [Tue, 18 Jun 2002 01:26:09 +0000 (01:26 +0000)]
Added a ptr() method to SGPropertyNode_ptr to get the raw pointer.

Added the SGPropertyChangeListener interface and addChangeListener and
firePropertyChange methods.

22 years agoPatch from Melchior Franz:
david [Fri, 7 Jun 2002 17:39:38 +0000 (17:39 +0000)]
Patch from Melchior Franz:

layer_span used uninitialized in SGCloudLayer::rebuild (line 162, 170, etc.)

22 years agoBe more conservative and reuse SSG objects.
david [Wed, 5 Jun 2002 19:12:50 +0000 (19:12 +0000)]
Be more conservative and reuse SSG objects.

22 years agoTry to avoid some memory leaks.
david [Wed, 5 Jun 2002 15:43:04 +0000 (15:43 +0000)]
Try to avoid some memory leaks.

22 years agoInclude the autogen.sh script in the distribution.
curt [Thu, 23 May 2002 13:46:19 +0000 (13:46 +0000)]
Include the autogen.sh script in the distribution.

22 years agoSkip drawing clear cloud layers.
david [Fri, 17 May 2002 16:53:19 +0000 (16:53 +0000)]
Skip drawing clear cloud layers.

22 years agoBernie Bright:
curt [Fri, 17 May 2002 14:38:03 +0000 (14:38 +0000)]
Bernie Bright:
I've defined snprintf as _snprintf in compiler.h for MSVC and MINGW
targets and removed duplicate definitions from FG sources.

22 years agoPreparation for making dynamic cloud layers -- moved cloud state out
david [Thu, 16 May 2002 23:16:39 +0000 (23:16 +0000)]
Preparation for making dynamic cloud layers -- moved cloud state out
of sky.[ch]xx and into cloud.[ch]xx, and added setters for modifying
the state of an existing layer.

22 years agoRemoved SG_STATIC_CONST define.
curt [Thu, 16 May 2002 02:44:35 +0000 (02:44 +0000)]
Removed SG_STATIC_CONST define.

22 years agoMinor tweaks.
curt [Thu, 16 May 2002 02:30:06 +0000 (02:30 +0000)]
Minor tweaks.

22 years agoErik Hofman:
curt [Wed, 15 May 2002 19:21:54 +0000 (19:21 +0000)]
Erik Hofman:
Some small patches to make the code Irix/Muli platform compatible and
one small fix to make it plib-1.4.2 compatible also.

22 years agoAdded SG_COMPILER macro. This is a string that identifies the build
curt [Tue, 14 May 2002 18:59:03 +0000 (18:59 +0000)]
Added SG_COMPILER macro.  This is a string that identifies the build
compiler and version.  It might be useful to display it during program
startup.

22 years agoModified to work with the new SGPropertyNode_ptr class.
david [Fri, 10 May 2002 22:58:03 +0000 (22:58 +0000)]
Modified to work with the new SGPropertyNode_ptr class.

22 years agoPatch from Frederic Bouvier:
david [Fri, 10 May 2002 22:57:36 +0000 (22:57 +0000)]
Patch from Frederic Bouvier:

I have modified the SGPropertyNode interface to support node removal
and address the issues you mention yesterday.

I added the SGPropertyNode_ptr class that is a smart pointer that
increment and decrement a counter in SGPropertyNode. The _children
vector is changed to a vector<SGPropertyNode_ptr> in order for the
node to hold a reference to its children. I also added a
_removedChildren vector of the same type. When removeChild is called
with the keep parameter set to true, the reference is removed from
_children and inserted in _removedChildren, and the attribute REMOVED
is set. When getChild is called with create set to true, the _children
vector is searched, then the _removedChildren and then a new node is
created. If a resurrected node is returned, the REMOVED bit is cleared.
The static const int LAST_USED_ATTRIBUTE is also added.

The footprint of this patch is light. SGPropertyNode is one int
longer in size, SGPropertyNode_ptr is one pointer large without
virtual functions. Some functions can be inlined if your current
policy change.

The FlightGear patch is to take account the change in the getChildren
function that now returns a vector<SGPropertyNode_ptr>. If the
removeChild functionnality is to be added in FlightGear, all those
SGPropertyNode * floating around should be changed to
SGPropertyNode_ptr.

22 years agoMac OS X fixes from Jonathan Polley.
david [Fri, 10 May 2002 21:33:12 +0000 (21:33 +0000)]
Mac OS X fixes from Jonathan Polley.

22 years agoIgnore binaries.
david [Fri, 10 May 2002 21:31:55 +0000 (21:31 +0000)]
Ignore binaries.

22 years agoEliminate an unsigned-int comparison warning.
david [Fri, 10 May 2002 21:31:15 +0000 (21:31 +0000)]
Eliminate an unsigned-int comparison warning.

22 years agoBernie Bright:
curt [Fri, 10 May 2002 13:53:22 +0000 (13:53 +0000)]
Bernie Bright:

Here's a first cut at SGSocket reimplemented using plib.net.  I've
maintained the same TCP server behaviour, that is only one client
connection at a time.  I don't think it is possible within the current
framework to handle simultaneous clients.

I've also added two simple test programs, tcp_client and tcp_server.

22 years agoBernie Bright:
curt [Fri, 10 May 2002 13:32:44 +0000 (13:32 +0000)]
Bernie Bright:

Here is a total rewrite of the strutils package.  I've reimplemented the
trimleft(), trimright() and trim() functions as lstrip(), rstrip() and
strip() respectively.  Additionally I've added a split() function that
behaves like its perl/python equivalent.  Just the thing for splitting
comma separated option strings or space separated telnet commands and
arguments.  I've also enclosed the whole thing in a namespace
simgear::strutils.  Since I seem to be the only one who uses these
functions, SimGear and FlightGear compile without change.

PS It is no coincidence that the new function names bear an uncanny
resemblance to the python functions of the same name.

22 years agoUpdated MSVC project files.
curt [Fri, 10 May 2002 13:31:44 +0000 (13:31 +0000)]
Updated MSVC project files.

22 years agoMake the skydome interface a little more flexible so we can scale the dome
curt [Sat, 27 Apr 2002 03:19:45 +0000 (03:19 +0000)]
Make the skydome interface a little more flexible so we can scale the dome
for other applications.

22 years agoPatches from Erik Hoffman:
david [Thu, 25 Apr 2002 15:09:10 +0000 (15:09 +0000)]
Patches from Erik Hoffman:

Tbis is a first patch in a series to clean up SimGear by removing
warning messages. Most of them are straight forwared, but in pops.hxx
the compile complaints about "type qualifier is meaningless on return
type". I think it's up to you to decide if you want that part applied.

22 years agoPatch from Melchior Franz:
david [Thu, 25 Apr 2002 14:56:03 +0000 (14:56 +0000)]
Patch from Melchior Franz:

From the cosmetics department ...

22 years agoPatch from Melchior Franz:
david [Thu, 25 Apr 2002 14:55:40 +0000 (14:55 +0000)]
Patch from Melchior Franz:

magvar and magdip are used before their initialization

22 years agoMake sure README.MSVC goes in the distribution.
curt [Tue, 23 Apr 2002 01:56:51 +0000 (01:56 +0000)]
Make sure README.MSVC goes in the distribution.

22 years agoMake sure zlib.dsp goes in the distribution.
curt [Tue, 23 Apr 2002 01:55:48 +0000 (01:55 +0000)]
Make sure zlib.dsp goes in the distribution.

22 years agoUpdated am2dsp.cfg file for creating MSVC project files.
curt [Mon, 22 Apr 2002 20:37:31 +0000 (20:37 +0000)]
Updated am2dsp.cfg file for creating MSVC project files.
New README.MSVC.
New src-libs/zlib.dsp for building zlib.

22 years agoBump up version number, remove boost from src-libs/Makefile.am
curt [Sat, 20 Apr 2002 22:03:35 +0000 (22:03 +0000)]
Bump up version number, remove boost from src-libs/Makefile.am

22 years agoUpdated for 0.0.18.
curt [Sat, 20 Apr 2002 21:06:05 +0000 (21:06 +0000)]
Updated for 0.0.18.

22 years agotweak.
curt [Sat, 20 Apr 2002 20:53:54 +0000 (20:53 +0000)]
tweak.

22 years agoRemoved boost dependency. Maybe we'll try again later.
curt [Fri, 12 Apr 2002 01:35:09 +0000 (01:35 +0000)]
Removed boost dependency.  Maybe we'll try again later.

22 years agoPatch from Frederic Bouvier:
david [Sun, 7 Apr 2002 21:28:43 +0000 (21:28 +0000)]
Patch from Frederic Bouvier:

A const char * is not supposed to change and cannot be deleted. So
here is a patch that remove unnecessary const from props.hxx and
props.cxx. There also is the addition of a friend directive because
nested classes do not receive special privileges and cannot access
private members of the outer class.

22 years agoImplemented a very simple hash-table cache for property lookup using
david [Sat, 6 Apr 2002 21:47:22 +0000 (21:47 +0000)]
Implemented a very simple hash-table cache for property lookup using
relative paths.

22 years agoInitial revision.
curt [Wed, 3 Apr 2002 21:22:52 +0000 (21:22 +0000)]
Initial revision.

22 years agoAdded src-libs subdirectory for keeping source code to extra libs. These
curt [Wed, 3 Apr 2002 21:21:29 +0000 (21:21 +0000)]
Added src-libs subdirectory for keeping source code to extra libs.  These
are things that are needed, but that many systems already have packages
available to install, and many users may have versions of these already
installed to support other projects.  So rather than build and install by
default with the main SimGear build/install, these are kept separate so that
those users that don't have them already installed can build and install
them separately.

22 years agoAdded a very crude/simple initial README.Install.
curt [Wed, 3 Apr 2002 21:18:13 +0000 (21:18 +0000)]
Added a very crude/simple initial README.Install.

22 years ago- Added src-libs/boost.tar.gz and README.boost. This is in anticipation
curt [Wed, 3 Apr 2002 21:05:51 +0000 (21:05 +0000)]
- Added src-libs/boost.tar.gz and README.boost.  This is in anticipation
  of actually using them in the flightgear event manager.
- Now that we have several add on libs we are bundling with simgear (but
  not automatically built as part of the simgear build) I have moved them
  to their own subdirectory (src-libs).

22 years agostring == "" -> string.empty() conversion.
curt [Wed, 3 Apr 2002 02:34:20 +0000 (02:34 +0000)]
string == "" -> string.empty() conversion.

22 years agoUpdated to the latest metakit release. This fixes a few bugs that could
curt [Thu, 28 Mar 2002 02:21:00 +0000 (02:21 +0000)]
Updated to the latest metakit release.  This fixes a few bugs that could
possibly affect some users.  For details, see the metakit changelog at
the metakit home page: ttp://www.equi4.com/metakit/

22 years agoPatch from Melchior Franz:
david [Wed, 27 Mar 2002 11:42:09 +0000 (11:42 +0000)]
Patch from Melchior Franz:

This module works mostly with char* and allocates memory with
strdup ... delete doesn't go well with malloc(). The transition
to string only would be nice, but some class interfaces return
char*, so it was more natural to just drop the deletes.

22 years agoPatch from Melchior Franz:
david [Mon, 25 Mar 2002 19:56:48 +0000 (19:56 +0000)]
Patch from Melchior Franz:

Here is a patch that fixes a little problem in dome.cxx: The fog_color
is created in a sgVec3 (227) but then handed over to ::repaint(), which
expects a sgVec4 (282). Then (343) center_color (although defined as
sgVec4) is only initialized with 3 values, but later (441) assigned to
'slot' via sgCopyVec4.

22 years agoPatch from Melchior Franz:
david [Mon, 25 Mar 2002 19:50:32 +0000 (19:50 +0000)]
Patch from Melchior Franz:

at several places material was copied to "buffer" using strncpy
without adding a closing '\0'. This again lead to access to non
initialized memory and potentially (and actually at least in one
case) to feeding garbage to atof(). In case the following garbage
happened to start with digits, we would get funny time
values.  :-)
   I just added the obligatory "buffer[n] = 0", which doesn't
really look professional now. Maybe we should use the string
class or define a helper function that strncopies =and= adds
a trailing zero?
   The last hunk fixes another buglet, that wasn't dangerous
at all, but caused an error message. The loop that should cut
the string at hash marks ('#') did neither stop at such, nor at
string ends. It always scanned the whole 256 character long
buffer and accessed uninitialized memory. valgrind doesn't
like that. I dropped the 256 counter, because fgets =does=
add the closing zero. It is safe to scan until we either
get the zero or the hash mark.

22 years agoRemoved an unnecessary string allocation during copying.
david [Fri, 22 Mar 2002 15:02:50 +0000 (15:02 +0000)]
Removed an unnecessary string allocation during copying.

22 years agoRemoved commented-out dead code.
david [Fri, 22 Mar 2002 13:18:49 +0000 (13:18 +0000)]
Removed commented-out dead code.

22 years agoMore rearrangement of headers. Replaced delete with delete[] where
david [Fri, 22 Mar 2002 12:45:11 +0000 (12:45 +0000)]
More rearrangement of headers.  Replaced delete with delete[] where
appropriate.

22 years agoMoved up #include <algorithm>
david [Fri, 22 Mar 2002 12:38:34 +0000 (12:38 +0000)]
Moved up #include <algorithm>

22 years agoFix segfault when deleting a node with a string value.
david [Thu, 21 Mar 2002 15:19:26 +0000 (15:19 +0000)]
Fix segfault when deleting a node with a string value.

22 years agoPatch from Frederic Bouvier:
david [Wed, 20 Mar 2002 21:44:38 +0000 (21:44 +0000)]
Patch from Frederic Bouvier:

deletion of a const char * is not allowed with MSVC 6. I had to cast to char
*
to avoid compile errors.

22 years agoPatch from Tony Peden to remove unused variable and eliminate compiler
david [Wed, 20 Mar 2002 21:31:53 +0000 (21:31 +0000)]
Patch from Tony Peden to remove unused variable and eliminate compiler
warning.

22 years agoMoved includes higher to make sure that std::sort is known.
david [Wed, 20 Mar 2002 13:43:23 +0000 (13:43 +0000)]
Moved includes higher to make sure that std::sort is known.

22 years agoInclude <algorithm> and <stdio.hxx> to fix compilation errors on some
david [Tue, 19 Mar 2002 18:17:36 +0000 (18:17 +0000)]
Include <algorithm> and <stdio.hxx> to fix compilation errors on some
platforms (I should have done this anyway).

22 years agoMajor property-manager rewrite, using const char * throughout
david [Tue, 19 Mar 2002 16:07:47 +0000 (16:07 +0000)]
Major property-manager rewrite, using const char * throughout
interface instead of string.  This will result in a lot more
efficiency later, once I add in a simple hash table for caching
lookups, since it will avoid creating a lot of temporary string
objects.  The major considerations for users will be that they cannot
use

  node->getName() == "foo";

any more, and will have to use c_str() when setting a string value
from a C++ string.

22 years agoRemoved SGRawValueInternal class (it's now handled directly by
david [Mon, 18 Mar 2002 14:55:59 +0000 (14:55 +0000)]
Removed SGRawValueInternal class (it's now handled directly by
SGPropertyNode) and updated some out-of-date documentation comments.

22 years agoSome code fixes to keep untying clean with new optimizations.
david [Mon, 18 Mar 2002 14:55:15 +0000 (14:55 +0000)]
Some code fixes to keep untying clean with new optimizations.