GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
mkoctfile.in.cc File Reference
#include <string>
#include <cstring>
#include <map>
#include <list>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <cstdlib>
#include "mkostemps-wrapper.h"
#include "uniconv-wrappers.h"
#include "unistd-wrappers.h"
#include "wait-wrappers.h"
#include "shared-fcns.h"
Include dependency graph for mkoctfile.in.cc:

Go to the source code of this file.

Macros

#define OCTAVE_API
 
#define OCTAVE_EXEC_PREFIX   %OCTAVE_CONF_EXEC_PREFIX%
 
#define OCTAVE_PREFIX   %OCTAVE_CONF_PREFIX%
 
#define OCTAVE_VERSION   %OCTAVE_CONF_VERSION%
 

Functions

static std::string basename (const std::string &s, bool strip_path=false)
 
static void clean_up_tmp_files (const std::list< std::string > &tmp_files)
 
static std::string create_interleaved_complex_file (void)
 
bool ends_with (const std::string &s, const std::string &suffix)
 
static std::string get_line (FILE *fp)
 
static std::string get_temp_directory (void)
 
static std::string get_variable (const char *name, const std::string &defval)
 
bool is_true (const std::string &s)
 
int main (int argc, char **sys_argv)
 
static std::map< std::string, std::string > make_vars_map (bool link_stand_alone, bool verbose, bool debug)
 
static std::string quote_path (const std::string &s)
 
static std::string replace_prefix (std::string s)
 
static int run_command (const std::string &cmd, bool verbose, bool printonly=false)
 
bool starts_with (const std::string &s, const std::string &prefix)
 
static std::string tmp_objfile_name (void)
 

Variables

static std::string help_msg
 
static std::string usage_msg = "usage: mkoctfile [options] file ..."
 
static std::string version_msg = "mkoctfile, version " %OCTAVE_CONF_VERSION%
 

Macro Definition Documentation

◆ OCTAVE_API

#define OCTAVE_API

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

◆ OCTAVE_EXEC_PREFIX

#define OCTAVE_EXEC_PREFIX   %OCTAVE_CONF_EXEC_PREFIX%

Definition at line 87 of file mkoctfile.in.cc.

◆ OCTAVE_PREFIX

#define OCTAVE_PREFIX   %OCTAVE_CONF_PREFIX%

Definition at line 83 of file mkoctfile.in.cc.

◆ OCTAVE_VERSION

#define OCTAVE_VERSION   %OCTAVE_CONF_VERSION%

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

Function Documentation

◆ basename()

static std::string basename ( const std::string &  s,
bool  strip_path = false 
)
static

Definition at line 545 of file mkoctfile.in.cc.

References max().

Referenced by main(), unique_symbol_name(), and xzip().

◆ clean_up_tmp_files()

static void clean_up_tmp_files ( const std::list< std::string > &  tmp_files)
static

Definition at line 697 of file mkoctfile.in.cc.

References octave_unlink_wrapper().

Referenced by main().

◆ create_interleaved_complex_file()

static std::string create_interleaved_complex_file ( void  )
static

Definition at line 651 of file mkoctfile.in.cc.

References get_temp_directory(), and octave_mkostemps_wrapper().

Referenced by main().

◆ ends_with()

bool ends_with ( const std::string &  s,
const std::string &  suffix 
)
inline

Definition at line 577 of file mkoctfile.in.cc.

Referenced by main().

◆ get_line()

static std::string get_line ( FILE *  fp)
static

Definition at line 121 of file mkoctfile.in.cc.

Referenced by main().

◆ get_temp_directory()

◆ get_variable()

static std::string get_variable ( const char *  name,
const std::string &  defval 
)
static

Definition at line 139 of file mkoctfile.in.cc.

Referenced by make_vars_map().

◆ is_true()

bool is_true ( const std::string &  s)

Definition at line 605 of file mkoctfile.in.cc.

Referenced by F__event_manager_gui_status_update__(), Fcellstr(), Fmkstemp(), and main().

◆ main()

◆ make_vars_map()

static std::map<std::string, std::string> make_vars_map ( bool  link_stand_alone,
bool  verbose,
bool  debug 
)
static

◆ quote_path()

static std::string quote_path ( const std::string &  s)
static

Definition at line 150 of file mkoctfile.in.cc.

Referenced by main(), and make_vars_map().

◆ replace_prefix()

static std::string replace_prefix ( std::string  s)
static

Definition at line 159 of file mkoctfile.in.cc.

References Voctave_exec_home.

Referenced by make_vars_map().

◆ run_command()

static int run_command ( const std::string &  cmd,
bool  verbose,
bool  printonly = false 
)
static

Definition at line 584 of file mkoctfile.in.cc.

References octave_wexitstatus_wrapper(), octave_wifexited_wrapper(), and system().

Referenced by main().

◆ starts_with()

bool starts_with ( const std::string &  s,
const std::string &  prefix 
)
inline

Definition at line 571 of file mkoctfile.in.cc.

Referenced by main().

◆ tmp_objfile_name()

static std::string tmp_objfile_name ( void  )
static

Definition at line 677 of file mkoctfile.in.cc.

References get_temp_directory(), and octave_mkostemps_wrapper().

Referenced by main().

Variable Documentation

◆ help_msg

std::string help_msg
static

Definition at line 397 of file mkoctfile.in.cc.

Referenced by main().

◆ usage_msg

std::string usage_msg = "usage: mkoctfile [options] file ..."
static

Definition at line 393 of file mkoctfile.in.cc.

Referenced by main().

◆ version_msg

std::string version_msg = "mkoctfile, version " %OCTAVE_CONF_VERSION%
static

Definition at line 395 of file mkoctfile.in.cc.

Referenced by main().