X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Fbuild.priv.h;h=84e4c52a220a314fc9d85bab4fabeca410f35e7e;hp=096a4431bc1e9076738c655daa2b693bc67caa5b;hb=b116355ab2af379e49fd0be31bdd440fc14fd902;hpb=8b06e371ed1bce3dd6f37138e6becb5e1a562fe0 diff --git a/ncurses/build.priv.h b/ncurses/build.priv.h index 096a4431..84e4c52a 100644 --- a/ncurses/build.priv.h +++ b/ncurses/build.priv.h @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2010,2012 Free Software Foundation, Inc. * + * Copyright (c) 2010-2012,2019 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -31,7 +31,7 @@ ****************************************************************************/ /* - * $Id: build.priv.h,v 1.9 2012/02/22 22:17:02 tom Exp $ + * $Id: build.priv.h,v 1.10 2019/05/11 14:14:00 tom Exp $ * * build.priv.h * @@ -77,7 +77,7 @@ extern "C" { #define EXIT_FAILURE 1 #endif -#define FreeAndNull(p) free(p); p = 0 +#define FreeAndNull(p) do { free(p); p = 0; } while (0) #define UChar(c) ((unsigned char)(c)) #define SIZEOF(v) (sizeof(v) / sizeof(v[0]))