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,367 of 243,242   
   Janis Papanagnou to Keith Thompson   
   Re: Nice way of allocating flexible stru   
   21 Oct 25 04:53:48   
   
   From: janis_papanagnou+ng@hotmail.com   
      
   On 21.10.2025 04:21, Keith Thompson wrote:   
   > Janis Papanagnou  writes:   
   >> On 20.10.2025 20:36, rbowman wrote:   
   > [...]   
   >>> I have converted F77 code from NOAA's public domain stuff to C.   
   >>>   
   >>> https://en.wikipedia.org/wiki/F2c   
   >>>   
   >>> The utility does indeed convert Fortran 77 to C code that will compile but   
   >>> it is barely human readable and nothing you would want to maintain.   
   >>   
   >> If the transformation is done correctly there's no reason to inspect   
   >> the details of the generated "C" code, or is it?   
   >   
   > Unless the goal is to continue maintenance of the code in C.   
   >   
   > A plausible scenario is that you have a body of code in Fortran that you   
   > want to continue maintaining, but it's easier to find C programmers than   
   > Fortran programmers.  (I don't know whether that's the case here.)   
      
   Well, I also cannot tell for the given case. (I see your scenario.)   
   In a one-shot transformation tasks one could pass the code through   
   a code-beautifier if necessary.   
      
   (I've written quite some code-generators the past decades. I always   
   tried to have the intermediate/resulting code be well structured   
   and readable, even if it shouldn't be touched.)   
      
   Janis   
      
   --- 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