#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_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) |
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) |
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 std::string | replace_prefix (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) |
static std::string | tmp_objfile_name (void) |
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 80 of file mkoctfile.in.cc.
#define OCTAVE_PREFIX %OCTAVE_CONF_PREFIX% |
Definition at line 76 of file mkoctfile.in.cc.
#define OCTAVE_VERSION %OCTAVE_CONF_VERSION% |
Definition at line 72 of file mkoctfile.in.cc.
|
static |
Definition at line 528 of file mkoctfile.in.cc.
Referenced by main(), unique_symbol_name(), and octave::xzip().
|
static |
Definition at line 653 of file mkoctfile.in.cc.
References octave_unlink_wrapper().
Referenced by main().
|
inline |
Definition at line 560 of file mkoctfile.in.cc.
Referenced by main().
|
static |
Definition at line 122 of file mkoctfile.in.cc.
Referenced by main().
|
static |
Definition at line 593 of file mkoctfile.in.cc.
References octave_getenv().
Referenced by tmp_objfile_name().
|
static |
|
static |
Definition at line 174 of file mkoctfile.in.cc.
References get_variable(), OCTAVE_API_VERSION, OCTAVE_ARCHLIBDIR, OCTAVE_BINDIR, OCTAVE_CANONICAL_HOST_TYPE, OCTAVE_DATADIR, OCTAVE_DATAROOTDIR, OCTAVE_DEFAULT_PAGER, OCTAVE_FCNFILEDIR, OCTAVE_IMAGEDIR, OCTAVE_INFODIR, OCTAVE_INFOFILE, OCTAVE_LIBEXECDIR, OCTAVE_LOCALAPIARCHLIBDIR, OCTAVE_LOCALAPIFCNFILEDIR, OCTAVE_LOCALAPIOCTFILEDIR, OCTAVE_LOCALARCHLIBDIR, OCTAVE_LOCALFCNFILEDIR, OCTAVE_LOCALOCTFILEDIR, OCTAVE_LOCALSTARTUPFILEDIR, OCTAVE_LOCALVERARCHLIBDIR, OCTAVE_LOCALVERFCNFILEDIR, OCTAVE_LOCALVEROCTFILEDIR, OCTAVE_MAN1DIR, OCTAVE_MAN1EXT, OCTAVE_MANDIR, OCTAVE_OCTDATADIR, OCTAVE_OCTDOCDIR, OCTAVE_OCTFILEDIR, OCTAVE_OCTFONTSDIR, OCTAVE_STARTUPFILEDIR, 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 octave::load_path::dir_info::dir_info(), ODE::integrate(), and main().
bool is_true | ( | const std::string & | s | ) |
Definition at line 587 of file mkoctfile.in.cc.
Referenced by Fcellstr(), Fmkstemp(), Fopenvar(), and main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 660 of file mkoctfile.in.cc.
References basename(), clean_up_tmp_files(), debug, ends_with(), f, find(), free(), get_line(), help_msg, initialize(), is_true(), len, octave::jit_convention::length, octave_u8_conv_to_encoding(), octave_unlink_wrapper(), octave::sys::ofstream(), octave::pclose(), octave::popen(), quote_path(), run_command(), starts_with(), octave::string::strcmp(), tmp_objfile_name(), usage_msg, vars, and version_msg.
|
static |
Definition at line 151 of file mkoctfile.in.cc.
Referenced by initialize(), and main().
|
static |
Definition at line 160 of file mkoctfile.in.cc.
References prepend_octave_exec_home().
Referenced by initialize().
|
static |
Definition at line 567 of file mkoctfile.in.cc.
References debug, octave_wexitstatus_wrapper(), and octave_wifexited_wrapper().
Referenced by main().
|
inline |
Definition at line 554 of file mkoctfile.in.cc.
Referenced by main().
|
static |
Definition at line 633 of file mkoctfile.in.cc.
References get_temp_directory(), octave_mkostemps_wrapper(), and retval.
Referenced by main().
|
static |
Definition at line 378 of file mkoctfile.in.cc.
Referenced by main(), and run_command().
|
static |
Definition at line 380 of file mkoctfile.in.cc.
Referenced by main().
|
static |
Definition at line 374 of file mkoctfile.in.cc.
Referenced by main().
|
static |
Definition at line 69 of file mkoctfile.in.cc.
Referenced by initialize(), and main().
|
static |
Definition at line 376 of file mkoctfile.in.cc.
Referenced by main().