chiark
/
gitweb
/
~mdw
/
pyke
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
26a7f37
)
Deploy the new <ctype.h> and `foocmp' macros from mLib.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 4 Oct 2019 14:40:28 +0000
(15:40 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 4 Oct 2019 16:08:46 +0000
(17:08 +0100)
catacomb.c
patch
|
blob
|
blame
|
history
diff --git
a/catacomb.c
b/catacomb.c
index affb5d3e88509461c57d756ea8102b8337cc7479..572f80f53c0f1d6be911efc5fead210271277702 100644
(file)
--- a/
catacomb.c
+++ b/
catacomb.c
@@
-140,7
+140,7
@@
static PyObject *meth__ego(PyObject *me, PyObject *arg)
char *argv0;
if (!PyArg_ParseTuple(arg, "s:_ego", &argv0))
return (0);
char *argv0;
if (!PyArg_ParseTuple(arg, "s:_ego", &argv0))
return (0);
- if (
strcmp(QUIS, "<UNNAMED>") == 0
)
+ if (
STRCMP(QUIS, ==, "<UNNAMED>")
)
ego(argv0);
RETURN_NONE;
}
ego(argv0);
RETURN_NONE;
}
@@
-160,7
+160,7
@@
static void init_random(void)
if (!Py_HashRandomizationFlag) return;
seed = getenv("PYTHONHASHSEED");
if (!Py_HashRandomizationFlag) return;
seed = getenv("PYTHONHASHSEED");
- if (!seed ||
strcmp(seed, "random") == 0
) r = GR_WORD(&rand_global);
+ if (!seed ||
STRCMP(seed, ==, "random")
) r = GR_WORD(&rand_global);
else r = strtoul(seed, 0, 0);
if (!r) r = 0xe011f220; /* zero doesn't work well */
unihash_setkey(&unihash_global, r);
else r = strtoul(seed, 0, 0);
if (!r) r = 0xe011f220; /* zero doesn't work well */
unihash_setkey(&unihash_global, r);