/[ascend]/trunk/ascend/compiler/bintoken.c
ViewVC logotype

Log of /trunk/ascend/compiler/bintoken.c

Parent Directory Parent Directory | Revision Log Revision Log


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

Revision 2045 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 14 03:14:26 2009 UTC (13 years, 11 months ago) by jpye
File length: 28730 byte(s)
Diff to previous 2018
Some attempts to get Bintoken functionality running again.

Revision 2018 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 29 03:38:10 2009 UTC (14 years, 1 month ago) by jpye
File length: 28593 byte(s)
Diff to previous 2011
Fixed compile for new header file locations <ascend/compiler/xxx.h> etc.

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: 28523 byte(s)
Copied from: trunk/base/generic/compiler/bintoken.c revision 2010
Diff to previous 1684
Moving libascend components from #/base/generic into #/ascend

Revision 1684 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 20 22:30:30 2007 UTC (15 years, 5 months ago) by jpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 28523 byte(s)
Diff to previous 1353
Added test cases to instantiate models using the compiler, and test for resulting child instances etc.
Changed most 'AddSymbolL' to 'AddSymbol' (to reduce use of magic #s).
Cleaned up a few #include lists.
Renamed 'Asc_DeAllocSim' to 'sim_destroy'.
Removed some CVS 'lint'.
Removed 'SimsProc' commenting from 'simlist.c'.
Added some missing #includes in .h files (FWIW).
Removed the 'STATIC_xxx' headers from base/generic/solver/SConscript.

Revision 1353 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Mar 18 01:48:40 2007 UTC (16 years, 2 months ago) by jpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 28550 byte(s)
Diff to previous 1317
Removed some redundant #include statments.
Added some explanation of testtmy.a4c (although currently broken with IDA).


Revision 1317 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 5 14:11:37 2007 UTC (16 years, 3 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 28571 byte(s)
Diff to previous 1228
Added new 'system_jacobian' function for use by IDA (maybe elsewhere?)
Refactored the matrix output stuff in IDA.
Fixed the index checking in idaanalyse
Still a problem with checking rank of small matrices.

Revision 1228 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 25 06:57:40 2007 UTC (16 years, 4 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 28567 byte(s)
Diff to previous 1227
Added getParameter by name in SolverParameters.
Fixed up refences to signal-related header files.
Fixed up various warnings from -pedantic compilation.
Identified an apparent bug with RelationCalcGradient (unsafe version).
Added support for compilation of a standalone C++ program (idatest) in SCons build.

Revision 1227 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 25 00:27:14 2007 UTC (16 years, 4 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 28649 byte(s)
Diff to previous 1219
Header rearrangement for relation_type.h

Revision 1219 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 24 13:30:04 2007 UTC (16 years, 4 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 28676 byte(s)
Diff to previous 1211
Changed to ASC_STRDUP

Revision 1211 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 23 05:09:50 2007 UTC (16 years, 4 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 28675 byte(s)
Diff to previous 1210
Fixed dependencies on dimen.h and fractions.h.

Revision 1210 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 23 04:25:51 2007 UTC (16 years, 4 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 28715 byte(s)
Diff to previous 1142
Removed unnecessary #include <compiler.h>

Revision 1142 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 15 06:46:44 2007 UTC (16 years, 4 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 28754 byte(s)
Diff to previous 1071
Got paranoid about turning off signal handling... added '#ifdef ASC_SIGNAL_TRAPS' anywhere that signal handling referenced.
Signal handling is OFF by default now.

Revision 1071 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 9 00:29:16 2007 UTC (16 years, 4 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 28593 byte(s)
Diff to previous 1064
Removed some outstanding references to g_ascend_errors (see #ifdef REIMPLEMENT_STREAMS)
Added a check in integrator.cpp for badly formed integrator_get_engines() return.

Revision 1064 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jan 7 09:15:56 2007 UTC (16 years, 4 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 28561 byte(s)
Diff to previous 1046
Replaced all Asc_Panic calls with ASC_PANIC, which includes __FUNCTION__, __FILE__, __LINE__ reporting.

Revision 1046 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 5 11:15:16 2007 UTC (16 years, 4 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 28584 byte(s)
Diff to previous 1035
Several changes to get BinToken compilation active again from PyGTK interface. Still not working but the problems now are in the C layer.
Tidied doc for slvDOF.h
Changed BinTokenSetOptions to saner use of strings -- no more 'taking ownership' of char arrays passed.
Added Compiler.use_binary_compilation option in PyGTK GUI.
Moved all the bintoken stuff out of class Type and into Compiler, where it should be (C++).

Revision 1035 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 4 07:35:22 2007 UTC (16 years, 5 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 28960 byte(s)
Diff to previous 997
Softened error from bintoken.c
Improved error reporting in instantiate.c
Rearranged #includes in relation_util.[ch]
Changed to asc_assert in relman.c
Lots of fixed in slv3.c to get reporting of 'calc_ok' right.
Also some better error reporting from slv3.c.
Fixed usage info for error_reporter_tree_start().
Improved error/status reporting from bboxtest.c.
Set PyGTK GUI to correctly catch ::solve errors.
Improved reporting about when solver fails (diverged, inconsistent, exceeded time/iters)
Fixed TestBlackBox.testfail1 and TestBlackBox.testfail2.
Fixed type.cpp to throw errors when instantiation fails.

Revision 997 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 24 01:33:59 2006 UTC (16 years, 5 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 28947 byte(s)
Diff to previous 908
Refactored tests into a shared library of tests and a executable of
just the CUnit driver. This will allow the CUnit test suite to be executed via
python unittest as part of the growing Python-based test suite.
Renamed setjmp and longjmp to SETJMP and LONGJMP throughout ASCEND, to allow
some debugging output to be added at each call.

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/compiler/bintoken.c
File length: 28947 byte(s)
Diff to previous 737
first attempt at merging with Ben's changes on the trunk

Revision 737 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 5 12:36:29 2006 UTC (16 years, 11 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 28857 byte(s)
Diff to previous 716
DSG model converges, using 3 external functions :-)
Added more info in 'diagnose' varinfo and relinfo popups, plus tabstops in display.
Allowed parameters to be used with instantiation_error in instantiate.c.
Fixed up some error messages in bintoken.c.
Renamed 'newcalc_done' to 'evaluation_required' in rel.c.
Other minor changes to error messages and commenting.


Revision 716 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 1 03:18:30 2006 UTC (16 years, 11 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 28883 byte(s)
Diff to previous 709
Fixed up ExtRel_Evaluate_LHS (was not accessing the arglist correctly),
it seems pretty inefficient at the moment, but we'll persist.

Revision 709 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 28 16:28:57 2006 UTC (16 years, 11 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 28874 byte(s)
Diff to previous 708
Monster commit!
Lots of recommenting and reorganising of external relations-related stuff.
Replaced a lot of ascmalloc and asccalloc calls with the new ASC_NEW* macros.
Fixed (?) the problem Art is having with icons in PyGTK.
Turned on -Wall in SConstruct and fixed up a stack of warnings.
Removed the redundant exit(2) from after Asc_Panic calls and added __attribute__((noreturn)).
Set doxygen to create callgraphs to level 2, updated doxyfile to version 1.4.7.
Fixed up building of extfntest.c.

Revision 708 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 27 07:34:31 2006 UTC (16 years, 11 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 28939 byte(s)
Diff to previous 669
Replaced some references to ascmalloc with ASC_NEW_ARRAY

Revision 669 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 21 07:00:45 2006 UTC (16 years, 11 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 28957 byte(s)
Diff to previous 506
Merged changes from DAE branch (revisions 702 to 819) back into trunk.
This adds the Integration API to the ASCEND solver (in base/generic).
Also provides pre-alpha support for 'IDA' from the SUNDIALS suite, a DAE solver.
Many other minor code clean-ups, including adoption of new 'ASC_NEW' and friends (to replace 'ascmalloc')
Added some very sketchy stuff providing 'DIFF(...)' syntax, although it is anticipated that this will be removed.

Revision 506 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 18 14:30:39 2006 UTC (17 years, 1 month ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 28974 byte(s)
Diff to previous 485
The Visual C++ 2005 version now builds without linker errors.
But I ran the installer and it crashed during the first C++ call, so still problems.

Revision 485 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 18 04:47:11 2006 UTC (17 years, 1 month ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 29002 byte(s)
Diff to previous 480
Huge cleanup of file header comments (GPL notice etc).

Changed from ASC_DLLSPEC to ASC_DLLSPEC(TYPE) -- like python

Fixed up some badly export symbols (missing 'extern')

Fixed exporting of symbols from error.h

Removed ASC_DLLSPEC from .c files-- only in .h files now (hope that's right...)

Changed the way bintoken does its exporting, to take 
advantage of ASC_BUILDING_LIBASCEND (needs testing)

I wonder if the 'extern' keywork should be a part of the ASC_DLLSPEC macro?


Revision 480 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 17 10:45:23 2006 UTC (17 years, 1 month ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 29015 byte(s)
Diff to previous 399
Adding ASC_DLLSPEC to all functions that are being used by Python interface.
Also cleaned up some #ifdef header brackets and html-style comments inside doxygen comments.
Renamed pygtk/interface/config.in to pygtk/interface/config.h.in and made 
this active again (for ASC_BUILDING_INTERFACE) use.
Trying to catch error in ascpy.Library call with try/except, doesn't work though.

Revision 399 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 31 08:52:57 2006 UTC (17 years, 2 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 29009 byte(s)
Diff to previous 216
Normalised all #include statements so that files in the current directory
are included as "localfile.h" and files in other directories are included as
<directory/file.h>
This is in accordance with the spec at
http://gcc.gnu.org/onlinedocs/gcc-4.1.0/cpp/Include-Syntax.html#Include-Syntax

Revision 216 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 25 02:12:20 2006 UTC (17 years, 4 months ago) by jds
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 29227 byte(s)
Diff to previous 190
Minor rework of jam system to stop relinking of libraries when sources not modified.
Minor tweaks to stem the tide of compiler warnings.

Revision 190 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 16 08:53:30 2006 UTC (17 years, 4 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 29169 byte(s)
Diff to previous 163
- Simplifying many 'error_reporter' calls with new macros:
    ERROR_REPORTER_NOLINE and ERROR_REPORTER_HERE
- Adding some cygwin cases in the PyGTK build.

Revision 163 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 3 07:17:41 2006 UTC (17 years, 5 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 29215 byte(s)
Diff to previous 159
Fixed bug #198

Revision 159 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 2 09:54:52 2006 UTC (17 years, 5 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 29285 byte(s)
Diff to previous 158
Changing FPRINTF to error_reporter

Revision 158 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 2 09:02:52 2006 UTC (17 years, 5 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 29105 byte(s)
Diff to previous 154
Removed support for Ultrix, OSF, which seem to be dead. This
makes the ascDynaload.c file much smaller. Also removed unused DynamicLoad
function (use Asc_DynamicLoad instead). Please let me know if these changes
break anything for you.

Revision 154 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 22 15:18:02 2005 UTC (17 years, 5 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 29193 byte(s)
Diff to previous 122
Removing debug output, adding self_test to iapws95.

Revision 122 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 19 06:12:40 2005 UTC (17 years, 5 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 29166 byte(s)
Diff to previous 101
Refactoring all MAX, MIN, ABS calls to general/mathmacros.
Adding a GCC optimisation for these macros.

Revision 101 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Dec 10 04:22:07 2005 UTC (17 years, 5 months ago) by jds
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 29167 byte(s)
Diff to previous 95
A little more progress killing compiler warnings.

Revision 95 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 8 16:20:25 2005 UTC (17 years, 5 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 29154 byte(s)
Diff to previous 89
Fixing bug #162

Revision 89 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 7 15:44:43 2005 UTC (17 years, 5 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 29166 byte(s)
Diff to previous 76
Small changes to eliminate GCC warnings

Revision 76 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 5 17:31:00 2005 UTC (17 years, 5 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 29013 byte(s)
Diff to previous 62
More error_reporter calls.
Removed some C++-unfriendly var names.
Removed some debug messages.
Turned off compiler timing and relation debugging.

Revision 62 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 30 05:53:20 2005 UTC (17 years, 6 months ago) by johnpye
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 29006 byte(s)
Diff to previous 45
My first commit:
Added 'error_reporter' for standardised error reporting
Working on getting external functions running again
Also: issue 130, issue 68, issue 131, issue 89, issue 127, issue 138, issue 94.

Revision 45 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 5 01:53:39 2005 UTC (18 years, 3 months ago) by ben.allan
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 28798 byte(s)
Diff to previous 16
Split the tcl-io redirects out of the ascend core and moved
it to the tcltk98 interface directory. In the core
is now an expanded facility. by default  Driver.c
inits this facility to redirect stderr/out to tcl io channels.
It is also possible to add additional stderr/out
output clients for example to extra log files.

This has not been tested on windows.

in theory, we now have a tcl free core for ascend.


Revision 16 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 25 22:52:42 2004 UTC (18 years, 6 months ago) by ben.allan
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 28798 byte(s)
Diff to previous 14
replaced nonportable strdup with ascend equivalent.

Revision 14 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 18 06:17:50 2004 UTC (18 years, 6 months ago) by ben.allan
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 28795 byte(s)
Diff to previous 11
Lots of patches to enable debugging with valgrind and
gdb (conditional use of signal.h and friends, pool and friends).
Bug fix for compiler anontype.c that was breaking
arts model under relation sharing.

Revision 11 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 13 16:45:56 2004 UTC (18 years, 6 months ago) by aw0a
Original Path: trunk/base/generic/compiler/bintoken.c
File length: 28316 byte(s)
Copied from: trunk/ascend4/compiler/bintoken.c revision 10
Diff to previous 1
moving things to base/generic

Revision 1 - (view) (download) (as text) (annotate) - [select for diffs]
Added Fri Oct 29 20:54:12 2004 UTC (18 years, 7 months ago) by aw0a
Original Path: trunk/ascend4/compiler/bintoken.c
File length: 28316 byte(s)
Setting up web subdirectory in repository

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