Actual source code: zbagf.c

      1: #include <petsc/private/ftnimpl.h>
      2: #include <petscbag.h>

      4: #if defined(PETSC_HAVE_FORTRAN_CAPS)
      5:   #define petscbagregisterenumprivate_ PETSCBAGREGISTERENUMPRIVATE
      6: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE)
      7:   #define petscbagregisterenumprivate_ petscbagregisterenumprivate
      8: #endif

     10: PETSC_EXTERN void petscbagregisterenumprivate_(PetscBag *bag, void *addr, const char *const *list, PetscEnum *def, char *name, char *help, PetscErrorCode *ierr, PETSC_FORTRAN_CHARLEN_T len1, PETSC_FORTRAN_CHARLEN_T len2)
     11: {
     12:   char *c1, *c2;

     14:   FIXCHAR(name, len1, c1);
     15:   FIXCHAR(help, len2, c2);
     16:   *ierr = PetscBagRegisterEnum(*bag, addr, list, *def, c1, c2);
     17:   if (*ierr) return;
     18:   FREECHAR(name, c1);
     19:   FREECHAR(help, c2);
     20: }