From owner-svn-src-head@freebsd.org Fri May 27 07:00:37 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 014EDB4B384 for ; Fri, 27 May 2016 07:00:37 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: from mail-yw0-x22f.google.com (mail-yw0-x22f.google.com [IPv6:2607:f8b0:4002:c05::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B57C71B45 for ; Fri, 27 May 2016 07:00:36 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: by mail-yw0-x22f.google.com with SMTP id x189so98174373ywe.3 for ; Fri, 27 May 2016 00:00:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuxi-nl.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-transfer-encoding; bh=zOmzHdelzm3P6EGnTFBLUi43+JMhJDPo7GQPnBzBsOo=; b=F4D0zPhThAtkUQZsEa5g7oq66d5jXuCTwYbHhTgNiAEAGkGsWgZCcSdOP18s82n1e9 X/wPGvOS5dEMK16IsPRtwWBjfisb3Rx1HDzhZ6CHm+NGC3JBBWoy+l72MFAaivgZcIRu +u4QxoVPKiHwilC3K/o3KEQ9D5knNYYGYABxGpEsoWsJYg79iqyJ8fvsBPlP0m0HIiHn 9OPXqWXwRFJsEMrRPYWTOj4rstF+6CY/ZtXWgGi7ycyEdT9yuGh6S0utRNmNdHOhIh0b bKxaG7AJwl3vykiWDbJOCsCUiVEVtERCweI7EPutarDu1t7DgUQhEV9svr/5GjpNSlmA T/Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-transfer-encoding; bh=zOmzHdelzm3P6EGnTFBLUi43+JMhJDPo7GQPnBzBsOo=; b=RnG0iE+85hcygQ0O3KUBQYfojzCzUrnSuCa9dkw5ftxkG3Tj2OvtXb5yH2lUJteGvN zjGhcyxH04ojBHvz+1KW4bwH6WFqVFDRl0gp+pU7VwKbvlYHejAI9wpzjgRNAoldNdpO w6FOOBQBJ36OW0dpxDKFRoqncB7gl1FO5t4tJcHw3zseicD9qaJA/6+etpLPj7NRSGUl gbRDvmA5bK71gU13LRrbstLajVKwW8410qiRGzvkYM5yDaZA++UGaIoYwgt+TC4hmcmR xsbPDA/ZHjMGLGj+eXV0SAO4JqUO3Ot5x5ffGZKitikSRxndruH6Ti00rQCjrk3OPLVL NHqw== X-Gm-Message-State: ALyK8tIxAICZlnWRzPFErMiY8SdAXeJsmadZFy2M+6bAVmhCgezp3WQ/cCtSPOFcfzc/Bmnix1fCT7d43R/lOA== MIME-Version: 1.0 X-Received: by 10.13.218.131 with SMTP id c125mr7889019ywe.310.1464332435947; Fri, 27 May 2016 00:00:35 -0700 (PDT) Received: by 10.13.201.199 with HTTP; Fri, 27 May 2016 00:00:35 -0700 (PDT) In-Reply-To: References: <201605270531.u4R5VE6R006890@repo.freebsd.org> Date: Fri, 27 May 2016 09:00:35 +0200 Message-ID: Subject: Re: svn commit: r300824 - head/lib/libmd From: Ed Schouten To: "Conrad E. Meyer" Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2016 07:00:37 -0000 2016-05-27 8:50 GMT+02:00 Conrad Meyer : > There's nothing to support =E2=80=94 literally ignoring the keyword is an > acceptable implementation. So it's disappointing C++ chooses to > reject C keywords. Keep in mind that C++ does not reject "static" altogether; only in this specific context. The reason for it is that in C++, there are other ways of enforcing similar properties. For example by using std::array, which has the size as part of its type. > If sys/md5.h includes a static inline function, there are bigger > problems with potentially trying to interpret C code as C++. We have quite a lot of public header files that contain static inline functions that also work well in C++ mode. is a good example. > Your proposed macro seems ok, although it is pretty long for where it > would be used. Maybe __min_size()? Sure! --=20 Ed Schouten Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717