summaryrefslogtreecommitdiff
path: root/lib/sbin/CreateFunctionBindings.pl
Commit message (Collapse)AuthorAge
* Insert a single space also at the beginning of all string values withtradke2005-06-20
| | | | | | | | | | | "{USES|REQUIRES|PROVIDES} FUNCTION" keys in the interface database. When matching the function list against a specific function name, use that space as a delimiter. This closes PR Cactus/1947: "Name clashes for aliased functions". git-svn-id: http://svn.cactuscode.org/flesh/trunk@4080 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Catch too many tokens in an argument problem for aliasedhawke2004-12-15
| | | | | | | | | | functions. This usually implies that an error was made, such as a comma being accidentally missed. Fixes PR 1886. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3933 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Extended error message about required thorns which aren't listed in the ↵tradke2004-06-26
| | | | | | thornlist file. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3793 17b73243-c579-4c4c-a9d2-2d5706c11dac
* When a REQUIRED function is not provided also print the thorn that's doing ↵hawke2004-06-07
| | | | | | the REQUIREing in the first place. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3761 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Include header files for warning levels etc. to get rid of compiler warnings ↵hawke2004-06-01
| | | | | | about implicitly defined functions. Only occured when REQUIREing an aliased function. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3754 17b73243-c579-4c4c-a9d2-2d5706c11dac
* As a standard configuration now builds without warning abouthawke2004-05-15
| | | | | | | | inconsistent aliased functions, change this to be a level 0 error instead of just a warning. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3732 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Match the intent IN | OUT | INOUT exactly, so that (e.g.) INT is not a valid ↵hawke2004-05-10
| | | | | | intent. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3710 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Extra debugging info.goodale2004-05-07
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3701 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Ian's fix to compare function pointer arguments of aliased functions.tradke2004-05-07
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3696 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add a consistency check for aliased functions. Checks return types are ↵hawke2004-05-03
| | | | | | | | | argument types. Currently this is just a warning and not an error because many of the standard thorns actually lead to errors. When these are fixed this should be changed to an error and force-rebuild committed. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3682 17b73243-c579-4c4c-a9d2-2d5706c11dac
* s/...// -> s/...//ghawke2004-04-30
| | | | | | | Or, fixing function aliasing with multiple function pointer arguments. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3678 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed a syntax error which got accidentally committed.tradke2004-04-23
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3674 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Implement 'REQUIRES FUNCTION' for interface.ccl files.tradke2004-04-23
| | | | | | | | | | Added a CST check that a required function is provided by at least one thorn from the thornlist. Added a runtime check (to CCTKBindings_RegisterThornFunctions()) to verify that all required functions are provided by some active thorn. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3673 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed small optimization bug in generating IsFunctionAliased.c.tradke2004-04-23
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3670 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix for parsing alias function declarations with return type 'void'.tradke2004-03-13
| | | | | | | This closes PR Cactus/1628. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3588 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Don't forget to define F90CODE when preprocessing Fortran 90 code.schnetter2004-03-13
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3587 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Create function prototypes for thorns that provide an aliased functionschnetter2004-01-02
| | | | | | | | | as well as for those that use an aliased function. This is implemented by assuming that providing implies using. According to a comment in the code, that should have already been the case. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3484 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed a regex to parse a function pointer argument list.tradke2003-12-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3478 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Strip off FPTRARGS from the error message if a function pointerrideout2003-12-06
| | | | | | | argument is missing an intent statement. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3472 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Don't turn the return type of an aliased function into upper-case if ittradke2003-12-05
| | | | | | | doesn't return anything ('void aliased_fn(...);'). git-svn-id: http://svn.cactuscode.org/flesh/trunk@3470 17b73243-c579-4c4c-a9d2-2d5706c11dac
* interface.ccl should be case insensitive, thus so should the returnrideout2003-12-05
| | | | | | | types of aliased functions. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3469 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Create #include statements in cctk_Functions.h for all thorns, notschnetter2003-11-19
| | | | | | | | | just for those that actually use function aliasing. This prevents recompiling when a thorn starts to use or stops using function aliasing. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3461 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Sort keys before looping to avoid changing cctk_Functions.hschnetter2003-11-05
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3450 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Change the way in which pointers are passed to and from Fortran.schnetter2003-10-28
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3446 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Change include mechanism for aliased functions in Fortran. One now has toschnetter2003-10-27
| | | | | | | | #include "cctk_Functions.h" and then use the macro DECLARE_CCTK_FUNCTIONS. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3439 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Traverse all hashes alphabetically, so that all output files of theschnetter2003-10-07
| | | | | | | | CST stage will be identical. This is necessary at least since perl 5.8.1 to avoid redundant recompilation. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3425 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Ian's fix to provide aliased functions prototypes for the providing thorn.tradke2003-09-01
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3390 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Protect the function prototype for CCTK_IsFunctionAliased against C++. ↵jthorn2003-07-31
| | | | | | (Changes from Ian). git-svn-id: http://svn.cactuscode.org/flesh/trunk@3359 17b73243-c579-4c4c-a9d2-2d5706c11dac
* When calling C routines from Fortran, CCTK_POINTER* arguments shouldrideout2003-06-04
| | | | | | | | | be passed by value, without being dereferenced. We will be interested in the value of the pointer itself, not in the value of what it points to. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3231 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Using "CCTK_POINTER IN" as an argument type for an aliased functionrideout2003-05-21
| | | | | | | | | | | | now produces "CCTK_POINTER_TO_CONST", rather than "const CCTK_POINTER". This fixes compiler warnings with hyperslabbing functions. White space is now allowed between the name of a function pointer argument and its argument list. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3221 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix return for void functions in C. Patch by Ian Hawke.rideout2003-05-14
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3217 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Support for new(er) aliased function declaration format:rideout2003-05-02
| | | | | | | | | | | | <CCTK_TYPE> FUNCTION <function name> (<CCTK_TYPE> [ARRAY] IN|OUT|INOUT <argument name>) by Ian Hawke, with some minor fixes/enhancements by myself. void functions can now be declared as "SUBROUTINE". git-svn-id: http://svn.cactuscode.org/flesh/trunk@3208 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix explanatory documentation at beginning of file.rideout2003-03-06
| | | | | | | | | | | | Add some explanatory notes about what this creates in the bindings directory of a configuration. Clean up much commented-out code. Allow empty argument lists for aliased functions. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3163 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix grdoc header.rideout2003-03-06
| | | | | | | Fix return type void functions. (Patch from Ian Hawke.) git-svn-id: http://svn.cactuscode.org/flesh/trunk@3162 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Function aliasing code by Ian Hawke, with modifications by Thomasrideout2003-02-26
| | | | | | | | | | | Radke and David Rideout. Now Fortran aliasing is handled properly (for the most part). I tried to leave commented out versions of code I changed. This should be cleaned up. Also now the documentation at the beginning of CreateFunctionBindings.pl is no longer completely correct, so this must be addressed. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3153 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Only create CST files "${thorn}_Register.c" and "${thorn}_Prototypes.h" fortradke2003-01-25
| | | | | | | | thorns which provide or use overloadable functions. Configurations should be cleandep'ed and rebuilt after this update. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3102 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added missing '#include <string.h>' to CST-generated source filetradke2003-01-10
| | | | | | | IsFunctionAliased.c to prevent compiler warnings. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3088 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Adding thorn name to 'parse aliased function argument' error message.rideout2003-01-07
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3080 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Deactivated code generation for fortran wrappers of function aliases.tradke2002-11-06
| | | | | | | Pointer arguments are passed as illegal types. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3025 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Change CCTK_IsOverloaded to CCTK_IsFunctionAliasedallen2002-05-10
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2805 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Adding Fortran pointers for function aliasing, but not working yetallen2002-05-02
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2779 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Support for CCTK_POINTER in function aliasingallen2002-04-28
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2773 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Allow CCTK_POINTER to be used in aliased functionsallen2002-04-28
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2772 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Create aliased function bindings for both used and provided functions, not justallen2002-04-28
| | | | | | | those which are actually being used. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2767 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Patch from Ian Hawke for Function Aliasingallen2002-04-28
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2766 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Reworked treatment of CCTK_DECLARE macros. Now the C file preprocessortradke2002-03-27
| | | | | | | | | | | | | | | | | | | will put everything up to the closing bracket for a routine into a new block. Also, the USE_CCTK macro is now appended directly to the CCTK_DECLARE macro. There is no need anymore to use CCTK_NO_AUTOUSE_MACRO. Also changed the way how parameters and arguments are used within the USE_CCTK macros: now it's done by "(void) (parameter = 0);" which is better than assigning the address of it to some dummy pointer. This fixes problems where one had to parse for a possible return statement at the end of the routine. This fix closes PR Cactus/949. Also did some perl code optimization and added grdoc headers for files generated by the CST. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2676 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Untabified.goodale2001-10-14
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2408 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Adding a "help" argument to the CST_error call to start adding suggested ↵allen2001-08-19
| | | | | | | | | causes for the errors. At the moment the help message is always shown, since I've only added a couple so far. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2307 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed the USE_CCTK_PARAMETERS and CCTK_USE_ARGUMENTS macros to use atradke2001-06-12
| | | | | | | | 'const void *' dummy pointer for assignments. This should also fix PR Cactus-715. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2227 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removing compiler warningsallen2001-02-25
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2063 17b73243-c579-4c4c-a9d2-2d5706c11dac