develooper Front page | perl.perl5.porters | Postings from April 2014

[perl #121712] [PATCH] Coverity: regcomp.c etc.

Thread Previous | Thread Next
From:
bulk88 via RT
Date:
April 23, 2014 08:38
Subject:
[perl #121712] [PATCH] Coverity: regcomp.c etc.
Message ID:
rt-4.0.18-26722-1398242326-1776.121712-15-0@perl.org
On Tue Apr 22 18:43:07 2014, tonyc wrote:
> be better handled with an assert?  Even a compile-time assert if we
> had the mechanism for it.
> 
> Tony

Add one.  For example

----------------------------
#define STATIC_ASSERT(expr) ((void)sizeof(char[1 - 2*!!!(expr)]))
----------------------------

from https://metacpan.org/source/BULKDD/Win32-API-0.77/API.h#L248

I've added new C compiler support macros before in https://github.com/Perl/perl5/commit/ae103e099635e075f433d5302425673c4fe7badf#diff-408899f5d0d5a90cdff082c8f0d0441aR3111 . 

-- 
bulk88 ~ bulk88 at hotmail.com

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=121712

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About