Commit a37de7cc by Alan Mishchenko

Printing out the path/name of the resource file that is being sourced.

parent 10953634
...@@ -445,11 +445,18 @@ FILE * CmdFileOpen( Abc_Frame_t * pAbc, char *sFileName, char *sMode, char **pFi ...@@ -445,11 +445,18 @@ FILE * CmdFileOpen( Abc_Frame_t * pAbc, char *sFileName, char *sMode, char **pFi
if (sRealName == NULL) { if (sRealName == NULL) {
sRealName = Extra_UtilTildeExpand(sFileName); sRealName = Extra_UtilTildeExpand(sFileName);
} }
if ((pFile = fopen(sRealName, sMode)) == NULL) { if ((pFile = fopen(sRealName, sMode)) == NULL) {
if (! silent) { if (! silent) {
perror(sRealName); perror(sRealName);
} }
} }
else
{
// print the path/name of the resource file 'abc.rc' that is being loaded
if ( strlen(sRealName) >= 6 && strcmp( sRealName + strlen(sRealName) - 6, "abc.rc" ) == 0 )
printf( "Loading resource file \"%s\".\n", sRealName );
}
} }
if ( pFileNameReal ) if ( pFileNameReal )
*pFileNameReal = sRealName; *pFileNameReal = sRealName;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment