Back to index

texmacs  1.0.7.15
Functions | Variables
new_document.cpp File Reference
#include "new_document.hpp"

Go to the source code of this file.

Functions

path new_document ()
void delete_document (path rp)
void set_document (path rp, tree t)

Variables

tree the_et

Function Documentation

void delete_document ( path  rp)

Definition at line 33 of file new_document.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 21 of file new_document.cpp.

                {
  int i, n= N(the_et);
  for (i=0; i<n; i++)
    if (the_et[i] == UNINIT) {
      assign (the_et[i], tree (DOCUMENT, ""));
      return path (i); // obtain_ip (the_et[i]);
    }
  insert (the_et, n, tuple (tree (DOCUMENT, "")));
  return path (n); // obtain_ip (the_et[n]);
}

Here is the call graph for this function:

void set_document ( path  rp,
tree  t 
)

Definition at line 39 of file new_document.cpp.

                               {
  //assign (subtree (the_et, rp), t);
  assign (subtree (the_et, rp), copy (t));
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 18 of file new_document.cpp.