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,383 of 243,242   
   rbowman to Janis Papanagnou   
   Re: Nice way of allocating flexible stru   
   21 Oct 25 18:12:38   
   
   From: bowman@montana.com   
      
   On Tue, 21 Oct 2025 03:51:33 +0200, Janis Papanagnou wrote:   
      
   >> 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?   
      
   If it was to be used unchanged there wouldn't be. The code in question was   
   converting between geodetic coordinates and the State Plane Coordinate   
   System typically used in the US for local geodatabases. I needed to   
   refactor it and break out portions for the different base projections like   
   Lambert or Mercator.   
      
   Like the output of a disassembler f2c produced arbitrary labels and   
   variable names that would make it confusing to someone subsequently   
   modifying the code. Presumably one of the LLM tools would yield friendlier   
   output.   
      
   --- 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