#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"
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% |
#define OCTAVE_API |
Definition at line 71 of file mkoctfile.in.cc.
#define OCTAVE_EXEC_PREFIX %OCTAVE_CONF_EXEC_PREFIX% |
Definition at line 87 of file mkoctfile.in.cc.
#define OCTAVE_PREFIX %OCTAVE_CONF_PREFIX% |
Definition at line 83 of file mkoctfile.in.cc.
#define OCTAVE_VERSION %OCTAVE_CONF_VERSION% |
Definition at line 79 of file mkoctfile.in.cc.
|
static |
Definition at line 545 of file mkoctfile.in.cc.
References max().
Referenced by main(), unique_symbol_name(), and xzip().
|
static |
Definition at line 697 of file mkoctfile.in.cc.
References octave_unlink_wrapper().
Referenced by main().
|
static |
Definition at line 651 of file mkoctfile.in.cc.
References get_temp_directory(), and octave_mkostemps_wrapper().
Referenced by main().
|
inline |
Definition at line 577 of file mkoctfile.in.cc.
Referenced by main().
|
static |
Definition at line 121 of file mkoctfile.in.cc.
Referenced by main().
|
static |
Definition at line 611 of file mkoctfile.in.cc.
References octave_getenv().
Referenced by documentation::documentation(), create_interleaved_complex_file(), resource_manager::create_tmp_file(), Ftempdir(), Ftmpfile(), tmp_objfile_name(), and latex_renderer::write_tex_file().
|
static |
Definition at line 139 of file mkoctfile.in.cc.
Referenced by make_vars_map().
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().
int main | ( | int | argc, |
char ** | sys_argv | ||
) |
Definition at line 718 of file mkoctfile.in.cc.
References basename(), clean_up_tmp_files(), create_interleaved_complex_file(), ends_with(), f, find(), get_line(), help_msg, is_true(), len, make_vars_map(), octave_unlink_wrapper(), ofstream(), pclose(), popen(), quote_path(), run_command(), starts_with(), tmp_objfile_name(), usage_msg, vars, and version_msg.
|
static |
Definition at line 176 of file mkoctfile.in.cc.
References get_variable(), OCTAVE_ARCHLIBDIR, OCTAVE_BINDIR, OCTAVE_VERSION, prepend_octave_exec_home(), prepend_octave_home(), quote_path(), replace_prefix(), set_octave_home(), vars, Voctave_exec_home, and Voctave_home.
Referenced by main().
|
static |
Definition at line 150 of file mkoctfile.in.cc.
Referenced by main(), and make_vars_map().
|
static |
Definition at line 159 of file mkoctfile.in.cc.
References Voctave_exec_home.
Referenced by make_vars_map().
|
static |
Definition at line 584 of file mkoctfile.in.cc.
References octave_wexitstatus_wrapper(), octave_wifexited_wrapper(), and system().
Referenced by main().
|
inline |
Definition at line 571 of file mkoctfile.in.cc.
Referenced by main().
|
static |
Definition at line 677 of file mkoctfile.in.cc.
References get_temp_directory(), and octave_mkostemps_wrapper().
Referenced by main().
|
static |
Definition at line 397 of file mkoctfile.in.cc.
Referenced by main().
|
static |
Definition at line 393 of file mkoctfile.in.cc.
Referenced by main().
|
static |
Definition at line 395 of file mkoctfile.in.cc.
Referenced by main().