Bug Report 2002/02/25-v1.0b28-br01


[MAIN]
[News]
[Intro]
[Features]
[Download]
[Installation]
[Support]
[Support+]
[Docu]
[Tutorial]
[Bugs]
[forum ]
[wiki]
[Mirror]
[Authors]
[Future]
[License]
[Win98 Setup Bug]
[Subscribe]
Bug Report id=2002/02/25-v1.0b28-br01
Affected versions:v1.0b28
Severity:Low

Bug Description

BASIC programs compiled to executable via the C format do not handle the command line arguments.

Bug Reason, What Causes the Bug

The main() code of the variation that handles the standalone version BASIC program does not handle the command lines. This piece of code is missing.

Solution

The next release will deliver a corrected version. The modification to the file variations/standalone/libscriba.c needed:
102c102
< #define FULL_PATH_BUFFER_LENGTH 256
---
> #define FULL_PATH_BUFFER_LENGTH 1024
104a105,111
>   int i;
>   
>   CmdLinBuffer[0] = (char)0;
>   for( i=1 ; i < argc ; i++ ){
>     strcat(CmdLinBuffer,argv[i]);
>     if( i < argc-1 )strcat(CmdLinBuffer," ");
>     }

Bug Workaround Until Solution is Available

Those, who wish to use this feature may have some experience in compiling C programs, and can try to recompile the libscriba.lib or libscriba.a file with the modified source.

Acknowledgement

Peter van Eerten [peter.van.eerten@home.nl] recognized this error.

This page was generated January 28, 2010 9:58:44