From 61355eafd47fdabf8a4d80985dc6a06f22bdcb35 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Fri, 4 Oct 2019 15:40:28 +0100 Subject: [PATCH] Deploy the new and `foocmp' macros from mLib. --- catacomb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/catacomb.c b/catacomb.c index affb5d3..572f80f 100644 --- 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); - if (strcmp(QUIS, "") == 0) + if (STRCMP(QUIS, ==, "")) ego(argv0); RETURN_NONE; } @@ -160,7 +160,7 @@ static void init_random(void) 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); -- 2.11.0