xercnt.cpp 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /* xercnt.f -- translated by f2c (version 20100827).
  2. This file no longer depends on f2c.
  3. */
  4. #include "slatec-internal.hpp"
  5. int xercnt_(char *librar, char *subrou, char *messg, integer
  6. *nerr, integer *level, integer *kontrl, ftnlen librar_len, ftnlen
  7. subrou_len, ftnlen messg_len)
  8. {
  9. /* ***BEGIN PROLOGUE XERCNT */
  10. /* ***SUBSIDIARY */
  11. /* ***PURPOSE Allow user control over handling of errors. */
  12. /* ***LIBRARY SLATEC (XERROR) */
  13. /* ***CATEGORY R3C */
  14. /* ***TYPE ALL (XERCNT-A) */
  15. /* ***KEYWORDS ERROR, XERROR */
  16. /* ***AUTHOR Jones, R. E., (SNLA) */
  17. /* ***DESCRIPTION */
  18. /* Abstract */
  19. /* Allows user control over handling of individual errors. */
  20. /* Just after each message is recorded, but before it is */
  21. /* processed any further (i.e., before it is printed or */
  22. /* a decision to abort is made), a call is made to XERCNT. */
  23. /* If the user has provided his own version of XERCNT, he */
  24. /* can then override the value of KONTROL used in processing */
  25. /* this message by redefining its value. */
  26. /* KONTRL may be set to any value from -2 to 2. */
  27. /* The meanings for KONTRL are the same as in XSETF, except */
  28. /* that the value of KONTRL changes only for this message. */
  29. /* If KONTRL is set to a value outside the range from -2 to 2, */
  30. /* it will be moved back into that range. */
  31. /* Description of Parameters */
  32. /* --Input-- */
  33. /* LIBRAR - the library that the routine is in. */
  34. /* SUBROU - the subroutine that XERMSG is being called from */
  35. /* MESSG - the first 20 characters of the error message. */
  36. /* NERR - same as in the call to XERMSG. */
  37. /* LEVEL - same as in the call to XERMSG. */
  38. /* KONTRL - the current value of the control flag as set */
  39. /* by a call to XSETF. */
  40. /* --Output-- */
  41. /* KONTRL - the new value of KONTRL. If KONTRL is not */
  42. /* defined, it will remain at its original value. */
  43. /* This changed value of control affects only */
  44. /* the current occurrence of the current message. */
  45. /* ***REFERENCES R. E. Jones and D. K. Kahaner, XERROR, the SLATEC */
  46. /* Error-handling Package, SAND82-0800, Sandia */
  47. /* Laboratories, 1982. */
  48. /* ***ROUTINES CALLED (NONE) */
  49. /* ***REVISION HISTORY (YYMMDD) */
  50. /* 790801 DATE WRITTEN */
  51. /* 861211 REVISION DATE from Version 3.2 */
  52. /* 891214 Prologue converted to Version 4.0 format. (BAB) */
  53. /* 900206 Routine changed from user-callable to subsidiary. (WRB) */
  54. /* 900510 Changed calling sequence to include LIBRARY and SUBROUTINE */
  55. /* names, changed routine name from XERCTL to XERCNT. (RWC) */
  56. /* 920501 Reformatted the REFERENCES section. (WRB) */
  57. /* ***END PROLOGUE XERCNT */
  58. /* ***FIRST EXECUTABLE STATEMENT XERCNT */
  59. return 0;
  60. } /* xercnt_ */