comparison liboctave/wrappers/getopt-wrapper.h @ 29910:0f41e117789f stable

disable getopt error reporting in wrapper program (bug #60886) * getopt-wrapper.h, getopt-wrapper.c (octave_get_opterr_wrapper, octave_set_opterr_wrapper): New functions. * main.in.cc (main): Call octave_set_opterr_wrapper to disable getopt error reporting.
author John W. Eaton <jwe@octave.org>
date Thu, 22 Jul 2021 13:52:49 -0400
parents 0a5b15007766
children 218716316e62
comparison
equal deleted inserted replaced
29908:3583b11e151b 29910:0f41e117789f
50 50
51 extern char * octave_optarg_wrapper (void); 51 extern char * octave_optarg_wrapper (void);
52 52
53 extern int octave_optind_wrapper (void); 53 extern int octave_optind_wrapper (void);
54 54
55 extern OCTAVE_API int octave_get_opterr_wrapper (void);
56 extern OCTAVE_API int octave_set_opterr_wrapper (int val);
57
55 #if defined __cplusplus 58 #if defined __cplusplus
56 } 59 }
57 #endif 60 #endif
58 61
59 #endif 62 #endif