GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Macros | Functions | Variables File Reference
#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"
Include dependency graph for

Go to the source code of this file.


#define OCTAVE_PREFIX   "/usr/local"
#define OCTAVE_VERSION   "4.0.0"
#define WEXITSTATUS(stat_val)   (static_cast<unsigned> (stat_val) >> 8)
#define WIFEXITED(stat_val)   (((stat_val) & 255) == 0)


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)


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

Macro Definition Documentation

#define OCTAVE_PREFIX   "/usr/local"

Definition at line 63 of file

Referenced by initialize().

#define OCTAVE_VERSION   "4.0.0"

Definition at line 59 of file

#define WEXITSTATUS (   stat_val)    (static_cast<unsigned> (stat_val) >> 8)

Definition at line 53 of file

Referenced by main(), octave_wexitstatus(), and run_command().

#define WIFEXITED (   stat_val)    (((stat_val) & 255) == 0)

Definition at line 49 of file

Referenced by main(), octave_wifexited(), and run_command().

Function Documentation

static std::string basename ( const std::string &  s,
bool  strip_path = false 

Definition at line 323 of file

References max().

Referenced by main().

bool ends_with ( const std::string &  s,
const std::string &  suffix 

Definition at line 352 of file

Referenced by main().

static std::string get_line ( FILE *  fp)

Definition at line 69 of file

Referenced by main().

static std::string get_variable ( const char name,
const std::string &  defval 

Definition at line 92 of file

Referenced by initialize().

static void initialize ( void  )
bool is_true ( const std::string &  s)

Definition at line 373 of file

Referenced by Fcellstr(), Fmkstemp(), and main().

int main ( int  argc,
char **  argv 
static std::string quote_path ( const std::string &  s)

Definition at line 102 of file

Referenced by initialize(), and main().

static int run_command ( const std::string &  cmd)

Definition at line 359 of file

References debug, WEXITSTATUS, and WIFEXITED.

Referenced by main().

bool starts_with ( const std::string &  s,
const std::string &  prefix 

Definition at line 346 of file

Referenced by main().

Variable Documentation

bool debug = false

Definition at line 227 of file

Referenced by main_window::execute_debug_callback(), main(), and run_command().

std::string help_msg

Definition at line 228 of file

Referenced by main().

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

Definition at line 225 of file

Referenced by main().

std::map<std::string, std::string> vars
std::string version_msg = "mkoctfile, version " "4.0.0"

Definition at line 226 of file

Referenced by main().