home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c      Meh, in C you gotta define EVERYTHING      243,242 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 241,464 of 243,242   
   Chris M. Thomasson to Keith Thompson   
   Re: New and improved version of cdecl   
   24 Oct 25 15:01:19   
   
   From: chris.m.thomasson.1@gmail.com   
      
   On 10/23/2025 4:04 PM, Keith Thompson wrote:   
   > bart  writes:   
   >> On 23/10/2025 02:19, Thiago Adams wrote:   
   >>> Em 22/10/2025 18:39, Keith Thompson escreveu:   
   >>>> 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 .   
   >>> This one does not work:   
   >>> void (*f(int i))(void)   
   >>   
   >> KT said the newer version is only available by building from source   
   >> code, which must be done under some Linux-compatible system.   
   >   
   > As far as I know, it should build on just about any Unix-like system,   
   > not just ones that happen to use the Linux kernel.  Perhaps that's what   
   > you mean by "Linux-compatible"?  If so, I suggest "Unix-like" would be   
   > clearer.  (I'm building it under Cygwin as I write this.)   
   >   
   >> I've had a look: it comprises 32Kloc of configure script, and 68Kloc   
   >> of C sources, so 100Kloc just to decode declarations! (A bit longer   
   >> than the 2-page version in K&R2.)   
   >   
   > Yes, and neither you nor I had to write any of it.  I cloned the repo,   
   > ran one command (my wrapper script for builds like this), and it works.   
   >   
   > I wonder how many lines of code are required for the specification of   
   > the x86_64 CPU in the computer I'm using to write this.  But really,   
   > it doesn't matter to me, since that work has been done, and all I   
   > have to do is use it.   
   >   
   > The configure script is automatically generated (I mentioned the   
   > "bootstrap" script that generates it if you build from the git repo).   
   >   
   > I suppose building it under Windows (without some Unix-like layer   
   > like MinGW or Cygwin) would be more difficult.  That's true of   
   > a lot of tools that are primarily used on Unix-like systems.   
   > It's likely that the author of the code doesn't care about Windows.   
   >   
   > I agree that it can be a problem that a lot of code developed for   
   > Unix-like systems is difficult to build on Windows.  For a lot   
   > of users, an emulation layer like Cygwin, MinGW, or WSL is a good   
   > enough solution.  If it isn't for you, perhaps you could help solve   
   > the problem.  Perhaps the GNU autotools could be updated with better   
   > Windows support.  I wouldn't know how to do that; perhaps you would.   
      
   Fwiw, if you can find the tool that you want to use here:   
      
   https://vcpkg.io   
      
   it can be automatically built and integrated into MSVC. So far, it works   
   okay...   
      
      
      
      
   [...]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca