Actual source code: dmousef.c

  1: /* dmouse.c */
  2: /* Fortran interface file */

  4: /*
  5: * This file was generated automatically by bfort from the C source
  6: * file.  
  7:  */

  9: #ifdef PETSC_USE_POINTER_CONVERSION
 10: #if defined(__cplusplus)
 11: extern "C" {
 12: #endif 
 13: extern void *PetscToPointer(void *);
 14: extern int PetscFromPointer(void *);
 15: extern void PetscRmPointer(void *);
 16: #if defined(__cplusplus)
 17: }
 18: #endif 

 20: #else

 22: #define PetscToPointer(a) (*(long *)(a))
 23: #define PetscFromPointer(a) (long)(a)
 24: #define PetscRmPointer(a)
 25: #endif

 27: #include "petscdraw.h"
 28: #ifdef MPI_BUILD_PROFILING
 29: #ifdef PETSC_HAVE_FORTRAN_CAPS
 30: #define petscdrawgetmousebutton_ PPETSCDRAWGETMOUSEBUTTON
 31: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 32: #define petscdrawgetmousebutton_ ppetscdrawgetmousebutton
 33: #else
 34: #define petscdrawgetmousebutton_ ppetscdrawgetmousebutton_
 35: #endif
 36: #else
 37: #ifdef PETSC_HAVE_FORTRAN_CAPS
 38: #define petscdrawgetmousebutton_ PETSCDRAWGETMOUSEBUTTON
 39: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 40: #define petscdrawgetmousebutton_ petscdrawgetmousebutton
 41: #endif
 42: #endif

 44: #ifdef MPI_BUILD_PROFILING
 45: #ifdef PETSC_HAVE_FORTRAN_CAPS
 46: #define petscdrawsynchronizedgetmousebutton_ PPETSCDRAWSYNCHRONIZEDGETMOUSEBUTTON
 47: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 48: #define petscdrawsynchronizedgetmousebutton_ ppetscdrawsynchronizedgetmousebutton
 49: #else
 50: #define petscdrawsynchronizedgetmousebutton_ ppetscdrawsynchronizedgetmousebutton_
 51: #endif
 52: #else
 53: #ifdef PETSC_HAVE_FORTRAN_CAPS
 54: #define petscdrawsynchronizedgetmousebutton_ PETSCDRAWSYNCHRONIZEDGETMOUSEBUTTON
 55: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 56: #define petscdrawsynchronizedgetmousebutton_ petscdrawsynchronizedgetmousebutton
 57: #endif
 58: #endif



 62: /* Definitions of Fortran Wrapper routines */
 63: #if defined(__cplusplus)
 64: extern "C" {
 65: #endif
 66: void PETSC_STDCALL petscdrawgetmousebutton_(PetscDraw *draw,PetscDrawButton *button,PetscReal* x_user,PetscReal *y_user,PetscReal *x_phys,PetscReal *y_phys, int *__ierr ){
 67: *__PetscDrawGetMouseButton(*draw,
 68:         (PetscDrawButton* )PetscToPointer( (button) ),x_user,y_user,x_phys,y_phys);
 69: }
 70: void PETSC_STDCALL petscdrawsynchronizedgetmousebutton_(PetscDraw *draw,PetscDrawButton *button,PetscReal* x_user,PetscReal *y_user,PetscReal *x_phys,PetscReal *y_phys, int *__ierr ){
 71: *__PetscDrawSynchronizedGetMouseButton(*draw,
 72:         (PetscDrawButton* )PetscToPointer( (button) ),x_user,y_user,x_phys,y_phys);
 73: }
 74: #if defined(__cplusplus)
 75: }
 76: #endif