Xref: utzoo comp.lang.c:35931 comp.lang.fortran:4707 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!goanna!ok From: ok@goanna.cs.rmit.oz.au (Richard A. O'Keefe) Newsgroups: comp.lang.c,comp.lang.fortran Subject: Re: f2c conversion Message-ID: <4730@goanna.cs.rmit.oz.au> Date: 8 Feb 91 08:05:48 GMT References: Followup-To: comp.lang.fortran Organization: Comp Sci, RMIT, Melbourne, Australia Lines: 25 In article , lt1g+@andrew.cmu.edu (Luke David Tuttle) writes: > I am trying to make a fortran to c conversion, but f2c does not allow a > few fortran commands. The command ACCEPT and the conditional > statements ON DOUBLE PRESION OVERFLOW are not accepted > by f2c. [Origin thought to be hp8000] They're not standard Fortran, are they? I have added comp.lang.fortran to the newsgroups line because it's really a Fortran (dialect) problem. The simplest thing to do with your ON DOUBLE PRECISION OVERFLOW statements is to comment them out. There isn't anything that it could translate into. (Yes, I know about signal(SIGFPE, ...) but that may not be useful.) The best way to handle overflow is to prevent it in the first place; I would have ***serious*** doubts about the numerical quality of the code you are trying to port. Find someone who understands numerical analysis and ask for advice. ACCEPT may be a "read from console"; if it is then you can just use an ordinary READ statement: for ACCEPT use READ *, -- Professional programming is paranoid programming