00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifdef HAVE_CONFIG_H
00025 #include <config.h>
00026 #endif
00027
00028 #include <stdlib.h>
00029 #include <string.h>
00030
00031 #include "f77-fcn.h"
00032 #include "quit.h"
00033 #include "lo-error.h"
00034
00035
00036
00037
00038
00039
00040
00041
00042 F77_RET_T
00043 #if defined (F77_USES_CRAY_CALLING_CONVENTION)
00044 F77_FUNC (xstopx, XSTOPX) (octave_cray_ftn_ch_dsc desc)
00045 #elif defined (F77_USES_VISUAL_FORTRAN_CALLING_CONVENTION)
00046 F77_FUNC (xstopx, XSTOPX) (const char *s, int slen)
00047 #else
00048 F77_FUNC (xstopx, XSTOPX) (const char *s, long slen)
00049 #endif
00050 {
00051 #if defined (F77_USES_CRAY_CALLING_CONVENTION)
00052 const char *s = desc.const_ptr = ptr_arg;
00053 unsigned long slen = desc.mask.len;
00054 #endif
00055
00056 f77_exception_encountered = 1;
00057
00058
00059 if (s && slen > 0 && ! (slen == 1 && *s == ' '))
00060 (*current_liboctave_error_handler) ("%.*s", slen, s);
00061
00062 octave_jump_to_enclosing_context ();
00063
00064 F77_RETURN (0)
00065 }
00066
00067
00068
00069
00070
00071