Actual source code: zprefixf.c

  1: #include <petsc/private/fortranimpl.h>

  3: #if defined(PETSC_HAVE_FORTRAN_CAPS)
  4:   #define petscobjectsetoptionsprefix PETSCOBJECTSETOPTIONSPREFIX
  5: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE)
  6:   #define petscobjectsetoptionsprefix_ petscobjectsetoptionsprefix
  7: #endif

  9: PETSC_EXTERN void petscobjectsetoptionsprefix_(PetscObject *obj, char *prefix, PetscErrorCode *ierr, PETSC_FORTRAN_CHARLEN_T len)
 10: {
 11:   char *t;

 13:   FIXCHAR(prefix, len, t);
 14:   *ierr = PetscObjectSetOptionsPrefix(*obj, t);
 15:   if (*ierr) return;
 16:   FREECHAR(prefix, t);
 17: }