GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <string>
#include <cstring>
#include <map>
#include <list>
#include <algorithm>
#include <iostream>
#include <fstream>
#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_PREFIX "/usr/local" |
#define | OCTAVE_VERSION "4.2.1" |
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 " "4.2.1" |
#define OCTAVE_PREFIX "/usr/local" |
Definition at line 54 of file mkoctfile.cc.
Referenced by initialize().
#define OCTAVE_VERSION "4.2.1" |
Definition at line 50 of file mkoctfile.cc.
|
static |
|
inline |
Definition at line 371 of file mkoctfile.cc.
Referenced by main().
|
static |
|
static |
Definition at line 104 of file mkoctfile.cc.
Referenced by initialize().
|
static |
Definition at line 123 of file mkoctfile.cc.
References get_octave_home(), get_variable(), OCTAVE_PREFIX, quote_path(), string, and subst_octave_home().
Referenced by load_path::dir_info::dir_info(), jit_index_operation::initialize(), ODE::integrate(), jit_typeinfo::join(), and main().
bool is_true | ( | const std::string & | s | ) |
Definition at line 398 of file mkoctfile.cc.
Referenced by octave_base_diag< DMT, MT >::is_true(), main(), and file_editor_tab::save_file().
Definition at line 404 of file mkoctfile.cc.
References arg, argc, b, basename(), empty, ends_with(), f, file, find(), get_line(), help_msg, initialize(), is_true(), link(), octave_unlink_wrapper(), ofile(), quote_path(), result, run_command(), starts_with(), octave::string::strcmp(), string, usage_msg, and version_msg.
|
static |
|
static |
Definition at line 378 of file mkoctfile.cc.
References octave_wexitstatus_wrapper(), octave_wifexited_wrapper(), result, and system().
Referenced by main().
|
inline |
Definition at line 365 of file mkoctfile.cc.
Referenced by main().
Definition at line 239 of file mkoctfile.cc.
|
static |
Definition at line 240 of file mkoctfile.cc.
Referenced by main().
|
static |
Definition at line 237 of file mkoctfile.cc.
Referenced by main().
|
static |
Definition at line 47 of file mkoctfile.cc.
Referenced by dump_octave_core(), Ffunctions(), octave_fcn_handle::save_ascii(), octave_fcn_handle::save_binary(), octave_fcn_handle::save_hdf5(), and save_vars().
|
static |
Definition at line 238 of file mkoctfile.cc.
Referenced by main().