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