diff options
author | Baruch Sterin <baruchs@gmail.com> | 2011-10-24 15:21:08 -0700 |
---|---|---|
committer | Baruch Sterin <baruchs@gmail.com> | 2011-10-24 15:21:08 -0700 |
commit | ef0fbf03726ced96a8ad09a40721b02c5778e3cb (patch) | |
tree | 2bda2271b00aec5b85660245f31f641abd94b6ce | |
parent | 9d652062b76e1e603cd98988d3c0f4d51d0c802d (diff) | |
download | abc-ef0fbf03726ced96a8ad09a40721b02c5778e3cb.tar.gz abc-ef0fbf03726ced96a8ad09a40721b02c5778e3cb.tar.bz2 abc-ef0fbf03726ced96a8ad09a40721b02c5778e3cb.zip |
completely silence the "source" command when the -s option is given
-rw-r--r-- | src/base/cmd/cmdUtils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/cmd/cmdUtils.c b/src/base/cmd/cmdUtils.c index f97a2c6a..683d336e 100644 --- a/src/base/cmd/cmdUtils.c +++ b/src/base/cmd/cmdUtils.c @@ -454,7 +454,7 @@ FILE * CmdFileOpen( Abc_Frame_t * pAbc, char *sFileName, char *sMode, char **pFi 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 ) + if ( !silent && strlen(sRealName) >= 6 && strcmp( sRealName + strlen(sRealName) - 6, "abc.rc" ) == 0 ) printf( "Loading resource file \"%s\".\n", sRealName ); } } |