GNU Octave
4.0.0
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.h>
#include <sys/types.h>
#include "shared-fcns.h"
Go to the source code of this file.
Macros | |
#define | OCTAVE_PREFIX %OCTAVE_CONF_PREFIX% |
#define | OCTAVE_VERSION %OCTAVE_CONF_VERSION% |
#define | WEXITSTATUS(stat_val) (static_cast<unsigned> (stat_val) >> 8) |
#define | WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
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 | 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_PREFIX %OCTAVE_CONF_PREFIX% |
Definition at line 63 of file mkoctfile.in.cc.
Referenced by initialize().
#define OCTAVE_VERSION %OCTAVE_CONF_VERSION% |
Definition at line 59 of file mkoctfile.in.cc.
#define WEXITSTATUS | ( | stat_val | ) | (static_cast<unsigned> (stat_val) >> 8) |
Definition at line 53 of file mkoctfile.in.cc.
Referenced by run_command().
#define WIFEXITED | ( | stat_val | ) | (((stat_val) & 255) == 0) |
Definition at line 49 of file mkoctfile.in.cc.
Referenced by run_command().
|
static |
|
inline |
Definition at line 352 of file mkoctfile.in.cc.
Referenced by main().
|
static |
Definition at line 69 of file mkoctfile.in.cc.
Referenced by main().
|
static |
Definition at line 92 of file mkoctfile.in.cc.
Referenced by initialize().
|
static |
Definition at line 111 of file mkoctfile.in.cc.
References get_octave_home(), get_variable(), OCTAVE_CONF_BLAS_LIBS, OCTAVE_CONF_CFLAGS, OCTAVE_CONF_CPICFLAG, OCTAVE_CONF_CPPFLAGS, OCTAVE_CONF_CXXFLAGS, OCTAVE_CONF_CXXPICFLAG, OCTAVE_CONF_F77_INTEGER_8_FLAG, OCTAVE_CONF_FFLAGS, OCTAVE_CONF_FFTW3_LDFLAGS, OCTAVE_CONF_FFTW3_LIBS, OCTAVE_CONF_FFTW3F_LDFLAGS, OCTAVE_CONF_FFTW3F_LIBS, OCTAVE_CONF_FLIBS, OCTAVE_CONF_FPICFLAG, OCTAVE_CONF_INCLUDEDIR, OCTAVE_CONF_LAPACK_LIBS, OCTAVE_CONF_LD_STATIC_FLAG, OCTAVE_CONF_LDFLAGS, OCTAVE_CONF_LIBS, OCTAVE_CONF_MKOCTFILE_DL_LDFLAGS, OCTAVE_CONF_OCT_LINK_DEPS, OCTAVE_CONF_OCT_LINK_OPTS, OCTAVE_CONF_OCTAVE_LINK_DEPS, OCTAVE_CONF_OCTAVE_LINK_OPTS, OCTAVE_CONF_OCTINCLUDEDIR, OCTAVE_CONF_OCTLIBDIR, OCTAVE_CONF_RDYNAMIC_FLAG, OCTAVE_CONF_SED, OCTAVE_CONF_XTRA_CFLAGS, OCTAVE_CONF_XTRA_CXXFLAGS, OCTAVE_PREFIX, quote_path(), and subst_octave_home().
Referenced by main().
bool is_true | ( | const std::string & | s | ) |
Definition at line 373 of file mkoctfile.in.cc.
Referenced by main().
Definition at line 379 of file mkoctfile.in.cc.
References arg(), basename(), debug, ends_with(), f, get_line(), help_msg, initialize(), is_true(), link(), quote_path(), run_command(), starts_with(), usage_msg, and version_msg.
|
static |
Definition at line 102 of file mkoctfile.in.cc.
Referenced by initialize(), and main().
|
static |
Definition at line 359 of file mkoctfile.in.cc.
References debug, WEXITSTATUS, and WIFEXITED.
Referenced by main().
|
inline |
Definition at line 346 of file mkoctfile.in.cc.
Referenced by main().
|
static |
Definition at line 227 of file mkoctfile.in.cc.
Referenced by main(), and run_command().
|
static |
Definition at line 228 of file mkoctfile.in.cc.
Referenced by main().
|
static |
Definition at line 225 of file mkoctfile.in.cc.
Referenced by main().
|
static |
Definition at line 56 of file mkoctfile.in.cc.
|
static |
Definition at line 226 of file mkoctfile.in.cc.
Referenced by main().