Added GETCOMPONENTCOUNT and GETCOMPONENT fortran routines

git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/branches/class@4174 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
Scott R Charlton 2010-03-19 00:57:37 +00:00
parent 714570975e
commit 507f5dc891
4 changed files with 40 additions and 0 deletions

20
fwrap.c
View File

@ -167,6 +167,18 @@ GetErrorLineF(int* n, char* line, unsigned int line_length)
padfstring(line, ::GetErrorLine((*n) - 1), line_length);
}
int
GetComponentCountF(void)
{
return ::GetComponentCount();
}
void
GetComponentF(int *n, char* line, unsigned int line_length)
{
padfstring(line, ::GetComponent((*n) - 1), line_length);
}
int
RunF(void)
{
@ -353,6 +365,14 @@ void __stdcall GETERRORLINE(int *n, char* line, unsigned int line_length)
{
GetErrorLineF(n, line, line_length);
}
int __stdcall GETCOMPONENTCOUNT(void)
{
return GetComponentCountF();
}
void __stdcall GETCOMPONENT(int *n, char* line, unsigned int line_length)
{
GetComponentF(n, line, line_length);
}
int __stdcall RUN(void)
{
return RunF();

View File

@ -43,6 +43,10 @@ extern "C" {
void GetErrorLineF(int* n, char* line, unsigned int line_length);
int GetComponentCountF(void);
void GetComponentF(int* n, char* line, unsigned int line_length);
void OutputLastErrorF(void);
void OutputLinesF(void);

View File

@ -62,6 +62,14 @@ void GETERRORLINE(int *n, char* line, unsigned int line_length)
{
GetErrorLineF(n, line, line_length);
}
int GETCOMPONENTCOUNT(void)
{
return GetComponentCountF();
}
void GETCOMPONENT(int *n, char* line, unsigned int line_length)
{
GetComponentF(n, line, line_length);
}
int RUN(void)
{
return RunF();

View File

@ -62,6 +62,14 @@ void geterrorline_(int *n, char* line, unsigned int line_length)
{
GetErrorLineF(n, line, line_length);
}
int getcomponentcount_(void)
{
return GetComponentCountF();
}
void getcomponent_(int *n, char* line, unsigned int line_length)
{
GetComponentF(n, line, line_length);
}
int run_(void)
{
return RunF();