Back to index

texmacs  1.0.7.15
Functions | Variables
env_exec.cpp File Reference
#include "env.hpp"
#include "convert.hpp"
#include "file.hpp"
#include "image_files.hpp"
#include "scheme.hpp"
#include "page_type.hpp"
#include "typesetter.hpp"
#include "drd_mode.hpp"
#include "dictionary.hpp"

Go to the source code of this file.

Functions

tree texmacs_exec (edit_env env, tree cmd)
static tree filter_style (tree t)

Variables

int script_status
static edit_env current_rewrite_env = edit_env ()
static bool quote_substitute = false

Function Documentation

static tree filter_style ( tree  t) [static]

Definition at line 887 of file env_exec.cpp.

                      {
  if (is_atomic (t)) return t;
  else switch (L(t)) {
  case STYLE_WITH:
  case VAR_STYLE_WITH:
    return filter_style (t[N(t)-1]);
  case STYLE_ONLY:
  case VAR_STYLE_ONLY:
    if (is_atomic (t[0])) return "";
    else return filter_style (t[0][N(t[0])-1]);
  case ACTIVE:
  case VAR_ACTIVE:
  case INACTIVE:
  case VAR_INACTIVE:
    return filter_style (t[0]);
  default:
    {
      int i, n= N(t);
      tree r (t, n);
      for (i=0; i<n; i++)
       r[i]= filter_style (t[i]);
      return r;
    }
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

tree texmacs_exec ( edit_env  env,
tree  cmd 
)

Definition at line 159 of file env_exec.cpp.

                                      {
  // re-entrancy
  if (!is_nil (current_rewrite_env)) env= current_rewrite_env;
  return env->exec (cmd);
}

Here is the call graph for this function:


Variable Documentation

Definition at line 41 of file env_exec.cpp.

bool quote_substitute = false [static]

Definition at line 742 of file env_exec.cpp.

Definition at line 25 of file sys_utils.cpp.