aboutsummaryrefslogtreecommitdiffstats
path: root/missing_d/snprintf.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-11-25 21:54:48 +0200
committerArnold D. Robbins <arnold@skeeve.com>2012-11-25 21:54:48 +0200
commit9a9ff61bbd952c1263b55f82a269da5b09289a6b (patch)
tree4bc31b31d0bec6d27f77e55f1a88f50534fa6ed4 /missing_d/snprintf.c
parentdbabe5a569ad82a9faeb2f121e387ec6399f9dcb (diff)
parent7af1da783175273a26609911c3a95975ed0f5c13 (diff)
downloadegawk-9a9ff61bbd952c1263b55f82a269da5b09289a6b.tar.gz
egawk-9a9ff61bbd952c1263b55f82a269da5b09289a6b.tar.bz2
egawk-9a9ff61bbd952c1263b55f82a269da5b09289a6b.zip
Merge branch 'master' into array-iface
Diffstat (limited to 'missing_d/snprintf.c')
-rw-r--r--missing_d/snprintf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/missing_d/snprintf.c b/missing_d/snprintf.c
index 254a8e0b..6cee2bed 100644
--- a/missing_d/snprintf.c
+++ b/missing_d/snprintf.c
@@ -53,14 +53,14 @@ static void close_safe_f()
static FILE *
safe_tmpfile (void)
{
- static short first = TRUE;
+ static bool first = true;
static const char template[] = "snprintfXXXXXX";
int fd;
static char *tmpdir = NULL;
static int len = 0;
if (first) {
- first = FALSE;
+ first = false;
/*
* First try Unix stanadard env var, then Windows var,
* then fall back to /tmp.
@@ -86,10 +86,10 @@ safe_tmpfile (void)
if ((fd = mkstemp (tmpfilename)) < 0)
return NULL;
-#if ! defined(DJGPP) && ! defined(MSDOS) && ! defined(_MSC_VER) \
+#if ! defined(__DJGPP__) && ! defined(MSDOS) && ! defined(_MSC_VER) \
&& ! defined(_WIN32) && ! defined(__CRTRSXNT__) && ! defined(__EMX__) \
&& ! defined(__MINGW32__) && ! defined(__WIN32__)
- /* If not MS, unlink after opening. */
+ /* If not MS or OS/2, unlink after opening. */
unlink (tmpfilename);
free(tmpfilename);
tmpfilename = NULL;