Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #122882

Re: New and improved version of cdecl

From Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups comp.lang.c, comp.lang.c++
Subject Re: New and improved version of cdecl
Date 2025-10-26 15:38 -0700
Organization None to speak of
Message-ID <87qzupz3tx.fsf@example.invalid> (permalink)
References <87bjlyobts.fsf@example.invalid> <10dm4oi$9uhq$1@dont-email.me>

Cross-posted to 2 groups.

Show all headers | View raw


"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> writes:
> On 10/22/2025 2:39 PM, Keith Thompson wrote:
>> This is cross-posted to comp.lang.c and comp.lang.c++.
>> Consider redirecting followups as appropriate.
>> cdecl, along with c++decl, is a tool that translates C or C++
>> declaration syntax into English, and vice versa.  For example :
>>      $ cdecl
>>      Type `help' or `?' for help
>>      cdecl> explain const char *foo[42]
>>      declare foo as array 42 of pointer to const char
>>      cdecl> declare bar as pointer to function (void) returning int
>>      int (*bar)(void )
>> It's also available via the web site <https://cdecl.org/>.
> I must be doing something wrong:

Yes.

> int (*fp_read) (void* const, void*, size_t)
>
> is syntax error. It from one of my older experiments:

You're using the old 2.5 version.  The newer forked version handles that
declaration correctly, but you have to build it from source.  cdecl.org
uses the old version.

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

New and improved version of cdecl Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-10-22 14:39 -0700
  Re: New and improved version of cdecl Thiago Adams <thiago.adams@gmail.com> - 2025-10-22 22:19 -0300
  Re: New and improved version of cdecl Andrey Tarasevich <noone@noone.net> - 2025-10-26 12:09 -0700
    Re: New and improved version of cdecl Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-10-26 15:36 -0700
      Re: New and improved version of cdecl "Paul J. Lucas" <paul@lucasmail.org> - 2025-12-09 07:31 -0800
        Re: New and improved version of cdecl Kaz Kylheku <046-301-5902@kylheku.com> - 2025-12-09 20:38 +0000
          Re: New and improved version of cdecl "Paul J. Lucas" <paul@lucasmail.org> - 2025-12-09 16:46 -0800
            Re: New and improved version of cdecl Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-12-09 17:51 -0800
  Re: New and improved version of cdecl "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2025-10-26 14:44 -0700
    Re: New and improved version of cdecl Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-10-26 15:38 -0700
      Re: New and improved version of cdecl "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2025-10-27 11:51 -0700

csiph-web