GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
main.in.cc File Reference
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <iostream>
#include <string>
#include "fcntl-wrappers.h"
#include "getopt-wrapper.h"
#include "signal-wrappers.h"
#include "unistd-wrappers.h"
#include "wait-wrappers.h"
#include "display-available.h"
#include "options.h"
#include "shared-fcns.h"
Include dependency graph for main.in.cc:

Go to the source code of this file.

Macros

#define OCTAVE_API
 
#define OCTAVE_ARCHLIBDIR   %OCTAVE_ARCHLIBDIR%
 
#define OCTAVE_BINDIR   %OCTAVE_BINDIR%
 
#define OCTAVE_EXEC_PREFIX   %OCTAVE_EXEC_PREFIX%
 
#define OCTAVE_PREFIX   %OCTAVE_PREFIX%
 
#define OCTAVE_VERSION   %OCTAVE_VERSION%
 

Functions

static std::string get_octave_archlibdir (void)
 
static std::string get_octave_bindir (void)
 
static void gui_driver_set_signal_handler (const char *signame, octave_sig_handler *handler)
 
static void gui_driver_sig_handler (int sig)
 
static void install_signal_handlers (void)
 
int main (int argc, char **argv)
 
static int octave_exec (const std::string &file, char **argv)
 
static char * strsave (const char *s)
 

Variables

static int caught_signal = -1
 
static bool fork_and_exec = false
 
static pid_t gui_pid = 0
 

Macro Definition Documentation

◆ OCTAVE_API

#define OCTAVE_API

Definition at line 55 of file main.in.cc.

◆ OCTAVE_ARCHLIBDIR

#define OCTAVE_ARCHLIBDIR   %OCTAVE_ARCHLIBDIR%

Definition at line 67 of file main.in.cc.

◆ OCTAVE_BINDIR

#define OCTAVE_BINDIR   %OCTAVE_BINDIR%

Definition at line 71 of file main.in.cc.

◆ OCTAVE_EXEC_PREFIX

#define OCTAVE_EXEC_PREFIX   %OCTAVE_EXEC_PREFIX%

Definition at line 79 of file main.in.cc.

◆ OCTAVE_PREFIX

#define OCTAVE_PREFIX   %OCTAVE_PREFIX%

Definition at line 75 of file main.in.cc.

◆ OCTAVE_VERSION

#define OCTAVE_VERSION   %OCTAVE_VERSION%

Definition at line 63 of file main.in.cc.

Function Documentation

◆ get_octave_archlibdir()

static std::string get_octave_archlibdir ( void  )
static

Definition at line 186 of file main.in.cc.

References OCTAVE_ARCHLIBDIR, octave_getenv(), and prepend_octave_exec_home().

Referenced by main().

◆ get_octave_bindir()

static std::string get_octave_bindir ( void  )
static

Definition at line 172 of file main.in.cc.

References OCTAVE_BINDIR, octave_getenv(), and prepend_octave_exec_home().

Referenced by main().

◆ gui_driver_set_signal_handler()

static void gui_driver_set_signal_handler ( const char *  signame,
octave_sig_handler handler 
)
static

Definition at line 107 of file main.in.cc.

References octave_set_signal_handler_by_name().

Referenced by install_signal_handlers().

◆ gui_driver_sig_handler()

static void gui_driver_sig_handler ( int  sig)
static

Definition at line 100 of file main.in.cc.

References caught_signal, and gui_pid.

Referenced by install_signal_handlers().

◆ install_signal_handlers()

static void install_signal_handlers ( void  )
static

Definition at line 114 of file main.in.cc.

References gui_driver_set_signal_handler(), and gui_driver_sig_handler().

Referenced by interpreter::interpreter(), and main().

◆ main()

◆ octave_exec()

static int octave_exec ( const std::string &  file,
char **  argv 
)
static

Definition at line 200 of file main.in.cc.

References octave_execv_wrapper().

Referenced by main().

◆ strsave()

static char* strsave ( const char *  s)
static

Variable Documentation

◆ caught_signal

int caught_signal = -1
static

Definition at line 97 of file main.in.cc.

Referenced by gui_driver_sig_handler(), and main().

◆ fork_and_exec

bool fork_and_exec = false
static

Definition at line 89 of file main.in.cc.

Referenced by main().

◆ gui_pid

pid_t gui_pid = 0
static

Definition at line 95 of file main.in.cc.

Referenced by gui_driver_sig_handler(), and main().