/[ascend]/trunk/ascend/general/ospath.c
ViewVC logotype

Log of /trunk/ascend/general/ospath.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 2326 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 21 11:35:07 2010 UTC (12 years, 5 months ago) by jpye
File length: 27084 byte(s)
Diff to previous 2036
Comment out some disused functions and variables (reverse_ad.c, cmslv.c, relation.c).
Add comments about ascConfig.h->platform.h rename.
Address some compiler warnings with minor code changes in ospath and importhandler.

Revision 2036 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 18 15:03:16 2009 UTC (14 years ago) by ballan
File length: 27073 byte(s)
Diff to previous 2011
issues resolved:
295
390
301
cmslv.c: unused var cleanup.
lsode/SConscript: fortran flags bugs-- may not work with 0.9x scons.
works with 1.2+. when adding -w, or any special flags, be sure to add
them and not replace the original flag.
system/var.c: 64bit clarity.
system/discrete.c: 64bit clarity.
system/analyze*: g_reuse declared in wrong place. 64bit clarity
system/diffvars: missing prototype function, 64bit clarity.
compiler/numlist.*: changed from int to glint.
compiler/simlist.c: missing includes needed for 64bit clarity.
compiler/instance_io.c: missing includes needed for 64bit clarity.
compiler/initialize.[ch]: const clarifications.
compiler/packages.c: const clarifications.
compiler/module.c: const clarifications.
compiler/statio.c: unused var cleanup.
compiler/procframe; const clarification. memory deallocation bugs.
compiler/notequery.c: repaired multiple casting and 64bit issues.
compiler/importhandler.c: const and free issues fixed.
compiler/type_desc.c: ridiculous if constructs clarified.
compiler/createinst.c: casting stupidity repaired.
linear/ranki2.c: missing includes needed for 64bitness.
solver/solver.c: const issues clarified.
utilities/ascConfig.h: added GLint typedefs for dealing with gllist
64bit portability.
utilities/ascPanic.c: removed extraneous const.
general/ospath.c: safer,quieter handling for string pointer difference.
integrator/integrator.c: const issues clarified.
packages/sensitivity.c: missing includes needed fo 64bit sanity.
tcltk/interface/Integrators.c: 64 bitness.
tcltk/interface/SimsProc.c: const errors.
tcltk/interface/Driver.c: fixed env var handling wrt ascend-config (295)
models/test/z*a4c: fixed meters -> m conversion; someone never ran the
test suite after teasing the default units to ambiguous abbreviations.
SConstruct: added sizeof checks; output might be better put in a ascend
system-wide header.



Revision 2011 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 28 08:58:48 2009 UTC (14 years, 1 month ago) by jpye
File length: 27026 byte(s)
Copied from: trunk/base/generic/general/ospath.c revision 2010
Diff to previous 1660
Moving libascend components from #/base/generic into #/ascend

Revision 1660 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 29 23:28:51 2007 UTC (15 years, 6 months ago) by jpye
Original Path: trunk/base/generic/general/ospath.c
File length: 27026 byte(s)
Diff to previous 1314
Removed references to <malloc.h> (replaced by <stdlib.h>).

Revision 1314 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 5 05:17:33 2007 UTC (16 years, 2 months ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 27026 byte(s)
Diff to previous 1063
Fixed problem with ospath_getparent() when path is just a relative dir, eg 'bin'.

Revision 1063 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jan 7 07:54:06 2007 UTC (16 years, 4 months ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 26722 byte(s)
Diff to previous 998
Changed ASC_DLLSPEC(TYPE) to ASC_DLLSPEC TYPE, because it was causing havoc with doxygen and ctags.

Revision 998 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Dec 30 06:05:48 2006 UTC (16 years, 5 months ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 26724 byte(s)
Diff to previous 965
Fixed some memory leaks in ospath.c and test_ospath.c.

Revision 965 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 13 23:53:57 2006 UTC (16 years, 5 months ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 26555 byte(s)
Diff to previous 954
Fixed OSPATH typo
Other minor doc changes.

Revision 954 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Dec 9 02:20:15 2006 UTC (16 years, 5 months ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 26555 byte(s)
Diff to previous 931
A few cleanups to get towards compilation on Solaris.

Revision 931 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 23 04:31:19 2006 UTC (16 years, 6 months ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 26493 byte(s)
Diff to previous 908
Added 'error_reporter_tree' that can organise error messages/output into a structured hierarchy.

Revision 908 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 26 10:18:53 2006 UTC (16 years, 7 months ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 26487 byte(s)
Diff to previous 866
first attempt at merging with Ben's changes on the trunk

Revision 866 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 29 06:22:21 2006 UTC (16 years, 8 months ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 26021 byte(s)
Diff to previous 864
Adding polar moment of inertia to atoms.a4l.
Fixing two small windows-related bugs in new importhandler stuff.

Revision 864 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 28 13:39:16 2006 UTC (16 years, 8 months ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 26025 byte(s)
Diff to previous 791
ImportHandler seems to be working, tested with datareader/testtmy.a4c and extfn/testextfn.a4c.

Revision 791 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 27 12:04:19 2006 UTC (16 years, 10 months ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 25885 byte(s)
Diff to previous 742
Moved 'SearchArchiveLibraryPath' into ascDynaLoad so that it can be shared between
compiler/packages and solver/conopt.

Changed debug messages in ospath.

Fixed conopt to search for consub3 in $LD_LIBRARY_PATH or /usr/lib:/usr/local/lib
by default on Linux (or %PATH% or c:\Program Files\ASCEND on Windows).

Modified definition of testconopt so that some parameters can be varied via the interface.

Revision 742 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 6 13:47:41 2006 UTC (16 years, 10 months ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 25889 byte(s)
Diff to previous 741
I think this almost resolves all the Visual C++ issues.
Just an outstanding issue with the use of the option struct in LibraryProc.c
eg use of &g_compiler_warnings in initialiser.

Revision 741 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 6 08:54:42 2006 UTC (16 years, 10 months ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 25914 byte(s)
Diff to previous 721
Fixes for MSVC++

Revision 721 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 3 06:22:42 2006 UTC (16 years, 10 months ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 25613 byte(s)
Diff to previous 715
Added '--models' option to ascend-config.
Fixed a bug with packages.c wrt generating absolute paths to library files.
Added SCons directives to install header files in INSTALL_INCLUDE subdirs.
Changed rel.c so that init function is only run if provided in the package.
Added 'ospath_getabs' to convert relative paths into absolute paths by adding prefix of fully-resolved '.'

Revision 715 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 1 03:17:37 2006 UTC (16 years, 11 months ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 25346 byte(s)
Diff to previous 704
Fixed up some memory leaks, hopefully.

Revision 704 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 26 23:00:56 2006 UTC (16 years, 11 months ago) by ben.allan
Original Path: trunk/base/generic/general/ospath.c
File length: 25305 byte(s)
Diff to previous 664
- fixed a minor bug in the use of dimensions in samplelist
and a #define misuse in ospath.
- defined eolstyle unix on the trunk, as I have encountered
at least 4 too many mixed-eol-style-in-one-file files in trying to 
rebuild today. obviously committer discipline is insufficient.


Revision 664 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 14 09:58:42 2006 UTC (16 years, 11 months ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 26306 byte(s)
Diff to previous 662
Fixed bug with pathless resolution of module filenames.

Revision 662 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 14 09:33:04 2006 UTC (16 years, 11 months ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 26296 byte(s)
Diff to previous 638
module.c switched over to use ospath_searchpath_iterate for REQUIRE statments.
Removed some too-new libglade keywords from ascend.glade.
Fixed up some error messages in scanner.l and library.c.
Corrected some non-terminated string bugs in ospath.c.

Revision 638 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 29 06:28:14 2006 UTC (17 years ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 25823 byte(s)
Diff to previous 635
Shifting to alleged ISO C++ form of 'getcwd' command, '_getcwd', for MSVC2005.

Revision 635 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 29 06:16:26 2006 UTC (17 years ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 25822 byte(s)
Diff to previous 607
Small fix to keep MSVC2005 happy.

Revision 607 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 16 04:19:20 2006 UTC (17 years ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 25817 byte(s)
Diff to previous 589
Updated license/doc blocks at start of files.
Added test_ospath.c and test_ospath.h.

Revision 589 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 11 03:10:43 2006 UTC (17 years ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 35366 byte(s)
Diff to previous 588
Fixing some malloc bugs.

Revision 588 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 11 02:06:46 2006 UTC (17 years ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 35347 byte(s)
Diff to previous 585
This fixes the new Driver.c implementation. Now, default values of the environment variables
are specified in the file base/generic/utilities/config.h.in, which should be tooled up with
you configuration process. These default values will be subject to environment substiution,
so that if you set the default ASCENDTK=$ASCENDDIST/TK, that will be expanded *at runtime*.
This is to help with the 'application folder' style of installation off-root.

Revision 585 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 10 17:02:21 2006 UTC (17 years ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 35323 byte(s)
Diff to previous 551
Making ospath accessible from other libraries. In progress.

Revision 551 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Apr 29 04:19:17 2006 UTC (17 years, 1 month ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 33503 byte(s)
Diff to previous 543
Added LICENSE.txt to root directory
Fixed a 'const' problem in ospath
Fixed up some variable names and key errors in SConstruct
Modified License-Warranty.tcl in accordance with the recommendations in the GPL.

Revision 543 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 27 00:04:13 2006 UTC (17 years, 1 month ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 33497 byte(s)
Diff to previous 542
Fix windows behaviour for 'IMPORT "johnpye/extfn/extfntest";'

Revision 542 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 26 15:15:40 2006 UTC (17 years, 1 month ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 33505 byte(s)
Diff to previous 541
This is a patch to allow statements like "IMPORT johnpye/extfn/extfntest".
It modifies the methods in packages.c. Plan is to reuse the same code for "REQUIRE xxxxxx" statements as well.


Revision 541 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 26 07:32:13 2006 UTC (17 years, 1 month ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 26595 byte(s)
Diff to previous 535
More work on the ospath.c file, trying to iron out some windows-specific issues
Fixed McGraw-Hill URL in TCL files.
Created platform-specific TCL_LIBPATH so that c:\Tcl\bin is used instead of c:\Tcl\lib for .dlls.

Revision 535 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 25 14:55:48 2006 UTC (17 years, 1 month ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 18943 byte(s)
Diff to previous 534
Little more progress on the ospath stuff. Hoping that this can be used to refactor the module (a4c) and external library (.so/.dll) search methods. Still some bugs though.

Revision 534 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue Apr 25 13:25:04 2006 UTC (17 years, 1 month ago) by johnpye
Original Path: trunk/base/generic/general/ospath.c
File length: 16621 byte(s)
Working on platform-independent pathnames for the IMPORT command.
Added 'ospath.c' to base/generic/general for this purpose.
Patched kvalues and sensitivity to use the 'IMPORT "libname";' syntax
instead of 'IMPORT registerfn FROM libname;'.
Fixed pathnames in create.nsi.
Added GPL header to coupla files.
Added quoting to 'IMPORT' syntax in ascParse.y.
Removed 'PackageOption' from Tcl/Tk related Scons options so that missing Tcl/Tk
doesn't cause breakage.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22