[petsc-dev] Compliant C89

Jed Brown jedbrown at mcs.anl.gov
Mon Jan 14 13:32:45 CST 2013


On Mon, Jan 14, 2013 at 1:29 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:

> > PetscErrorCode PetscBLASIntCast(PetscInt,PetscBLASInt*);
>
>    Ugly…. man, but I guess the right thing to do.


We can put it in a macro, but still use argument passing, i.e.,

#define PetscBLASIntCast(pint,blasint) do { ... } while (0)

which will now not be allowed in declarations, but still be syntactically
lighter.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130114/818775a7/attachment.html>


More information about the petsc-dev mailing list