GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
mkoctfile.in.cc File Reference
#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"
Include dependency graph for mkoctfile.in.cc:

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::stringvars
 
static std::string version_msg = "mkoctfile, version " %OCTAVE_CONF_VERSION%
 

Macro Definition Documentation

◆ OCTAVE_EXEC_PREFIX

#define OCTAVE_EXEC_PREFIX   %OCTAVE_CONF_EXEC_PREFIX%

Definition at line 63 of file mkoctfile.in.cc.

◆ OCTAVE_PREFIX

#define OCTAVE_PREFIX   %OCTAVE_CONF_PREFIX%

Definition at line 59 of file mkoctfile.in.cc.

◆ OCTAVE_VERSION

#define OCTAVE_VERSION   %OCTAVE_CONF_VERSION%

Definition at line 55 of file mkoctfile.in.cc.

Function Documentation

◆ basename()

static std::string basename ( const std::string s,
bool  strip_path = false 
)
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().

◆ ends_with()

bool ends_with ( const std::string s,
const std::string suffix 
)
inline

Definition at line 422 of file mkoctfile.in.cc.

References s.

Referenced by main().

◆ get_line()

static std::string get_line ( FILE *  fp)
static

Definition at line 91 of file mkoctfile.in.cc.

References c.

Referenced by main().

◆ get_variable()

static std::string get_variable ( const char *  name,
const std::string defval 
)
static

Definition at line 109 of file mkoctfile.in.cc.

References name, string, and val.

Referenced by initialize().

◆ initialize()

◆ is_true()

bool is_true ( const std::string s)

◆ main()

◆ quote_path()

static std::string quote_path ( const std::string s)
static

Definition at line 120 of file mkoctfile.in.cc.

References s.

Referenced by initialize(), and main().

◆ run_command()

static int run_command ( const std::string cmd,
bool  printonly = false 
)
static

Definition at line 429 of file mkoctfile.in.cc.

References debug, octave_wexitstatus_wrapper(), octave_wifexited_wrapper(), result, and system().

Referenced by main().

◆ starts_with()

bool starts_with ( const std::string s,
const std::string prefix 
)
inline

Definition at line 416 of file mkoctfile.in.cc.

References s.

Referenced by main().

Variable Documentation

◆ debug

bool debug = false
static

Definition at line 286 of file mkoctfile.in.cc.

Referenced by main(), and run_command().

◆ help_msg

std::string help_msg
static

Definition at line 288 of file mkoctfile.in.cc.

Referenced by main().

◆ usage_msg

std::string usage_msg = "usage: mkoctfile [options] file ..."
static

Definition at line 282 of file mkoctfile.in.cc.

Referenced by main().

◆ vars

◆ version_msg

std::string version_msg = "mkoctfile, version " %OCTAVE_CONF_VERSION%
static

Definition at line 284 of file mkoctfile.in.cc.

Referenced by main().