Actual source code: xioerr.c

petsc-3.7.3 2016-08-01
Report Typos and Errors
  1: #include <../src/sys/classes/draw/impls/x/ximpl.h>         /*I  "petscsys.h" I*/

  3: #if defined(PETSC_HAVE_SETJMP_H)

  5: jmp_buf PetscXIOErrorHandlerJumpBuf;

  7: void PetscXIOErrorHandlerJump(PETSC_UNUSED void *ctx)
  8: {
  9:   longjmp(PetscXIOErrorHandlerJumpBuf, 1);
 10: }

 12: PetscXIOErrorHandler PetscSetXIOErrorHandler(PetscXIOErrorHandler xioerrhdl)
 13: {
 14:   return (PetscXIOErrorHandler)XSetIOErrorHandler((XIOErrorHandler)xioerrhdl);
 15: }


 18: #endif