Removed nop() macro.
committer: mfx <mfx> 979746778 +0000
This commit is contained in:
@@ -299,10 +299,6 @@ typedef RETSIGTYPE (SIGTYPEENTRY *sig_type)(int);
|
|||||||
#define outp upx_outp
|
#define outp upx_outp
|
||||||
|
|
||||||
|
|
||||||
// a dummy statement
|
|
||||||
#define nop ((void)0)
|
|
||||||
|
|
||||||
|
|
||||||
#define COMPILE_TIME_ASSERT(expr) \
|
#define COMPILE_TIME_ASSERT(expr) \
|
||||||
{ typedef int __upx_compile_time_assert_fail[(expr) ? 1 : -1]; }
|
{ typedef int __upx_compile_time_assert_fail[(expr) ? 1 : -1]; }
|
||||||
|
|
||||||
@@ -332,9 +328,6 @@ typedef RETSIGTYPE (SIGTYPEENTRY *sig_type)(int);
|
|||||||
// memory util
|
// memory util
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
#undef FREE
|
|
||||||
#define FREE(ptr) if (ptr) { free(ptr); ptr = NULL; }
|
|
||||||
|
|
||||||
#undef UNUSED
|
#undef UNUSED
|
||||||
#if 1
|
#if 1
|
||||||
# define UNUSED(var) { typedef int __upx_unused[sizeof(var) ? 2 : 1]; }
|
# define UNUSED(var) { typedef int __upx_unused[sizeof(var) ? 2 : 1]; }
|
||||||
|
|||||||
+5
-4
@@ -77,13 +77,14 @@ void do_one_file(const char *iname, char *oname)
|
|||||||
throwIOException("empty file -- skipped");
|
throwIOException("empty file -- skipped");
|
||||||
if ((st.st_mode & S_IWUSR) == 0)
|
if ((st.st_mode & S_IWUSR) == 0)
|
||||||
{
|
{
|
||||||
|
bool skip = true;
|
||||||
if (opt->output_name)
|
if (opt->output_name)
|
||||||
nop;
|
skip = false;
|
||||||
else if (opt->to_stdout)
|
else if (opt->to_stdout)
|
||||||
nop;
|
skip = false;
|
||||||
else if (opt->backup)
|
else if (opt->backup)
|
||||||
nop;
|
skip = false;
|
||||||
else
|
if (skip)
|
||||||
throwIOException("file is write protected -- skipped");
|
throwIOException("file is write protected -- skipped");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user