Some bug fixes for the January release
Here are some bug fixes to the January release of Hugs
****************************************************************************
****
*** BUG ***: HugsHood crashes if the user does not input a valid command
Change the definition of brkCmds in src\hugs.c to this one
****************************************************************************
****
static struct cmd brkCmds[] =
{ {"p", BRK_DISPLAY}
, {"c", BRK_CONTINUE}
, {"s", BRK_SET}
, {"r", BRK_RESET}
, {0,0}
};
****************************************************************************
****
*** BUG ***: The open file dialog in winhugs does not take into account the
current dir.
Change the GetaFileName function in src\winhugs\winhugs.c to this one
****************************************************************************
****
static CHAR* local GetaFileName(HWND hWnd, UINT Mask)
{
#define MAXEXTENSIONS 15
static CHAR Extensions[MAXEXTENSIONS][_MAX_EXT+1];
static OPENFILENAME ofn;
static CHAR szFileName[_MAX_PATH];
CHAR szFile[_MAX_PATH], szFileTitle[_MAX_PATH];
UINT i, j, cbString, n;
CHAR chReplace; /* Separator between different filters in szFilter
*/
CHAR szFilter[300];
char currentDir[_MAX_PATH];
szFile[0] = '\0';
if ((cbString = LoadString(hThisInstance, Mask,
szFilter, sizeof(szFilter))) == 0) {
/* Error */
return NULL;
}
chReplace = szFilter[cbString - 1]; /* Get separator */
/* Get valid extensions for files */
for (n=0, i=0;szFilter[i];) {
while (szFilter[i] != chReplace) i++;
i++;
do {
while (szFilter[i] != '.') i++;
i++;
j=0;
while ((szFilter[i] != ';')&&(szFilter[i] != chReplace)){
Extensions[n][j++] = szFilter[i++];
}
Extensions[n++][j] = (CHAR) 0;
} while (szFilter[i] == ';');
i++;
}
for (;n
I don't have a long list of bug fixes at hand, I only want to reiterate my concerns about the incomplete H98 library support in Hugs, see: http://www.cse.ogi.edu/PacSoft/projects/Hugs/pages/hugsman/diffs.html#sect9.... I consider this a rather fundamental omission and a constant source of porting troubles, so I hoped that these things would be in the next Hugs release. But given the release date in just a week (IIRC), there's little hope for this. :-( It's a little bit like having a Java system without a complete java.lang.* package... And another thing: On Unix platforms, two files are *always* compiled without optimizations due to some problems with some compilers, IIRC. Shouldn't this be autoconf-ed? Cheers, Sven
participants (2)
-
Pepe Gallardo -
Sven Panne