summaryrefslogtreecommitdiff
path: root/src/z-util.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2014-06-27 18:05:52 +0200
committerBardur Arantsson <bardur@scientician.net>2014-06-27 18:05:52 +0200
commit899b8fb81a1d5fa66fa842e2ddc4f25e97231ae7 (patch)
tree13a1d7a602e987fc8e588c3012865ca518217119 /src/z-util.c
parentabf567b36fbaf67233c20345342536f754ae65ac (diff)
Remove unused variables and argv0
Diffstat (limited to 'src/z-util.c')
-rw-r--r--src/z-util.c61
1 files changed, 1 insertions, 60 deletions
diff --git a/src/z-util.c b/src/z-util.c
index 95f11d7a..4c59f793 100644
--- a/src/z-util.c
+++ b/src/z-util.c
@@ -8,65 +8,6 @@
/*
- * Global variables for temporary use
- */
-char char_tmp = 0;
-byte byte_tmp = 0;
-sint sint_tmp = 0;
-uint uint_tmp = 0;
-long long_tmp = 0;
-huge huge_tmp = 0;
-errr errr_tmp = 0;
-
-
-/*
- * Global pointers for temporary use
- */
-cptr cptr_tmp = NULL;
-vptr vptr_tmp = NULL;
-
-
-
-
-/*
- * Constant bool meaning true
- */
-bool_ bool_true = 1;
-
-/*
- * Constant bool meaning false
- */
-bool_ bool_false = 0;
-
-
-/*
- * Global NULL cptr
- */
-cptr cptr_null = NULL;
-
-
-/*
- * Global NULL vptr
- */
-vptr vptr_null = NULL;
-
-
-
-/*
- * Global SELF vptr
- */
-vptr vptr_self = (vptr)(&vptr_self);
-
-
-
-/*
- * Convenient storage of the program name
- */
-cptr argv0 = NULL;
-
-
-
-/*
* Determine if string "t" is equal to string "t"
*/
bool_ streq(cptr a, cptr b)
@@ -132,7 +73,7 @@ void plog(cptr str)
if (plog_aux) (*plog_aux)(str);
/* Just do a labeled fprintf to stderr */
- else (void)(fprintf(stderr, "%s: %s\n", argv0 ? argv0 : "???", str));
+ else (void)(fprintf(stderr, "%s\n", str));
}