From 6925b78750b2813d131f3a7129391baf1a4d5b8e Mon Sep 17 00:00:00 2001 From: Larry Rosenman Date: Wed, 17 Apr 2024 22:59:03 -0500 Subject: [PATCH] devel/cdecl: update to 16.3 ChangeLog: Better destructor parameter error message Attempting either to explain or declare a destructor having a parameter list now prints "destructors may not have parameters" explicitly. Defining a type more than once If a type is defined again where the current language is older than the language in which it was previously defined, the type's set of languages is now updated to be the current language and newer. For example, previously: cdecl> set c23 cdecl> typedef int Int cdecl> show typedef int Int; cdecl> set c17 cdecl> typedef int Int // Already exists so did nothing. cdecl> show // Would NOT show anything. cdecl> Now the second typedef would update Int to make it available in C17 and newer so the second show would show it. Multiple conflicting declarations Now exhaustively checking multiple declarations for conflicts in C. Previously, multiple declarations of a variable or function with conflicting types that was separated by a different variable or function wasn't caught: int x, x; // OK in C int x, *x; // error (different types) int x, y, *x; // error, but wasn't caught Now it is. Using macros elsewhere Previously, attempting to use a macro where names are generally allowed would result in an error like: cdecl> #define N 5 cdecl> explain int a[N] ^ 15: syntax error: "N": ']' expected because "N" was returned as a macro token by the lexer. Now, the lexer ignores the fact that a name might be a macro. --- devel/cdecl/Makefile | 3 +-- devel/cdecl/distinfo | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/devel/cdecl/Makefile b/devel/cdecl/Makefile index 1164420b11d9..cd972cf6df59 100644 --- a/devel/cdecl/Makefile +++ b/devel/cdecl/Makefile @@ -1,7 +1,6 @@ PORTNAME= cdecl -PORTVERSION= 16.2.1 +PORTVERSION= 16.3 DISTVERSIONPREFIX= ${PORTNAME}- -PORTREVISION= 1 CATEGORIES= devel MAINTAINER= ler@FreeBSD.org diff --git a/devel/cdecl/distinfo b/devel/cdecl/distinfo index 7975b6bd7e90..69f126200c8a 100644 --- a/devel/cdecl/distinfo +++ b/devel/cdecl/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1708489233 -SHA256 (paul-j-lucas-cdecl-cdecl-16.2.1_GH0.tar.gz) = 09b0ad9cf39f651dd07732c7baf46ef88c1c93e5dc2b0cd665c6887ccb852100 -SIZE (paul-j-lucas-cdecl-cdecl-16.2.1_GH0.tar.gz) = 963144 +TIMESTAMP = 1713412710 +SHA256 (paul-j-lucas-cdecl-cdecl-16.3_GH0.tar.gz) = ced9d93ad4bee071a8481867017c8db2b6621081178c27037e77fc9c16f102e9 +SIZE (paul-j-lucas-cdecl-cdecl-16.3_GH0.tar.gz) = 964259