Back to index

texmacs  1.0.7.15
Classes | Functions
list_environment.hpp File Reference
#include "basic_environment.hpp"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  list_environment
class  list_environment_rep

Functions

 ABSTRACT_NULL_CODE (list_environment)
int total_size (list_environment l)
basic_environment flatten (list_environment l)

Function Documentation

Definition at line 90 of file list_environment.cpp.

                             {
  if (is_nil (l)) return basic_environment (2);
  if (is_nil (l->next)) return l->env;
  int size= total_size (l);
  int n=2;
  while (n < size) n= n<<1;
  basic_environment env (n);
  flatten (env, l);
  return env;
}

Here is the call graph for this function:

Definition at line 74 of file list_environment.cpp.

                                {
  if (is_nil (l)) return 0;
  return l->env->size + total_size (l->next);
}

Here is the call graph for this function: