#include <string>
#include <cstring>
#include <map>
#include <list>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <cstdlib>
#include "unistd-wrappers.h"
#include "wait-wrappers.h"
#include "shared-fcns.h"
Go to the source code of this file.
Macros | |
#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) |
bool | ends_with (const std::string &s, const std::string &suffix) |
static std::string | get_line (FILE *fp) |
static std::string | get_variable (const char *name, const std::string &defval) |
static void | initialize (void) |
bool | is_true (const std::string &s) |
int | main (int argc, char **argv) |
static std::string | quote_path (const std::string &s) |
static int | run_command (const std::string &cmd, bool printonly=false) |
bool | starts_with (const std::string &s, const std::string &prefix) |
Variables | |
static bool | debug = false |
static std::string | help_msg |
static std::string | usage_msg = "usage: mkoctfile [options] file ..." |
static std::map< std::string, std::string > | vars |
static std::string | version_msg = "mkoctfile, version " %OCTAVE_CONF_VERSION% |
#define OCTAVE_EXEC_PREFIX %OCTAVE_CONF_EXEC_PREFIX% |
Definition at line 63 of file mkoctfile.in.cc.
#define OCTAVE_PREFIX %OCTAVE_CONF_PREFIX% |
Definition at line 59 of file mkoctfile.in.cc.
#define OCTAVE_VERSION %OCTAVE_CONF_VERSION% |
Definition at line 55 of file mkoctfile.in.cc.
|
static |
Definition at line 390 of file mkoctfile.in.cc.
References max(), retval, s, and string.
Referenced by main(), unique_symbol_name(), and octave::xzip().
|
inline |
|
static |
|
static |
Definition at line 109 of file mkoctfile.in.cc.
References name, string, and val.
Referenced by initialize().
|
static |
Definition at line 129 of file mkoctfile.in.cc.
References get_variable(), prepend_octave_exec_home(), prepend_octave_home(), quote_path(), set_octave_home(), string, vars, Voctave_exec_home, and Voctave_home.
Referenced by octave::load_path::dir_info::dir_info(), ODE::integrate(), and main().
bool is_true | ( | const std::string & | s | ) |
Definition at line 449 of file mkoctfile.in.cc.
References s.
Referenced by Fopenvar(), octave_base_diag< DiagMatrix, Matrix >::is_true(), main(), and octave::file_editor_tab::save_file().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 455 of file mkoctfile.in.cc.
References arg, argc, argv, b, basename(), debug, empty, ends_with(), f, file, find(), get_line(), help_msg, i, initialize(), is_true(), link(), octave_unlink_wrapper(), ofile(), quote_path(), run_command(), starts_with(), octave::string::strcmp(), string, usage_msg, vars, and version_msg.
|
static |
Definition at line 120 of file mkoctfile.in.cc.
References s.
Referenced by initialize(), and main().
|
static |
Definition at line 429 of file mkoctfile.in.cc.
References debug, octave_wexitstatus_wrapper(), octave_wifexited_wrapper(), result, and system().
Referenced by main().
|
inline |
Definition at line 286 of file mkoctfile.in.cc.
Referenced by main(), and run_command().
|
static |
Definition at line 288 of file mkoctfile.in.cc.
Referenced by main().
|
static |
Definition at line 282 of file mkoctfile.in.cc.
Referenced by main().
|
static |
Definition at line 52 of file mkoctfile.in.cc.
Referenced by dump_octave_core(), Ffunctions(), initialize(), main(), octave_fcn_handle::save_ascii(), octave_fcn_handle::save_binary(), octave_fcn_handle::save_hdf5(), and save_vars().
|
static |
Definition at line 284 of file mkoctfile.in.cc.
Referenced by main().