"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Kernel/Types/tree.cpp" between
TeXmacs-1.99.4-src.tar.gz and TeXmacs-1.99.5-src.tar.gz

About: GNU TeXmacs is a what-you-see-is-what-you-get scientific text editor, which was both inspired by TeX and GNU Emacs.

tree.cpp  (TeXmacs-1.99.4-src):tree.cpp  (TeXmacs-1.99.5-src)
skipping to change at line 383 skipping to change at line 383
} }
bool bool
is_mod_active_once (tree t) { is_mod_active_once (tree t) {
return (N(t) == 1) && return (N(t) == 1) &&
((L(t) == STYLE_ONLY) || (L(t) == ACTIVE) || (L(t) == INACTIVE)); ((L(t) == STYLE_ONLY) || (L(t) == ACTIVE) || (L(t) == INACTIVE));
} }
bool bool
is_graphical_text (tree t) { is_graphical_text (tree t) {
return is_func (t, TEXT_AT) || is_func (t, MATH_AT); return
is_func (t, TEXT_AT) ||
is_func (t, MATH_AT) ||
is_func (t, DOCUMENT_AT);
} }
bool bool
is_empty (tree t) { is_empty (tree t) {
if (is_atomic (t)) return (t == ""); if (is_atomic (t)) return (t == "");
if (is_document (t) || is_concat (t)) { if (is_document (t) || is_concat (t)) {
int i, n= N(t); int i, n= N(t);
for (i=0; i<n; i++) for (i=0; i<n; i++)
if (!is_empty (t[i])) return false; if (!is_empty (t[i])) return false;
return is_concat (t) || (n<=1); return is_concat (t) || (n<=1);
skipping to change at line 428 skipping to change at line 431
compound (string s, tree t1, tree t2, tree t3) { compound (string s, tree t1, tree t2, tree t3) {
return tree (make_tree_label (s), t1, t2, t3); return tree (make_tree_label (s), t1, t2, t3);
} }
tree tree
compound (string s, tree t1, tree t2, tree t3, tree t4) { compound (string s, tree t1, tree t2, tree t3, tree t4) {
return tree (make_tree_label (s), t1, t2, t3, t4); return tree (make_tree_label (s), t1, t2, t3, t4);
} }
tree tree
compound (string s, tree t1, tree t2, tree t3, tree t4, tree t5) {
return tree (make_tree_label (s), t1, t2, t3, t4, t5);
}
tree
compound (string s, tree t1, tree t2, tree t3, tree t4, tree t5, tree t6) {
return tree (make_tree_label (s), t1, t2, t3, t4, t5, t6);
}
tree
compound (string s, array<tree> a) { compound (string s, array<tree> a) {
return tree (make_tree_label (s), a); return tree (make_tree_label (s), a);
} }
bool bool
is_extension(tree_label l) { is_extension(tree_label l) {
return l >= START_EXTENSIONS; return l >= START_EXTENSIONS;
} }
bool bool
 End of changes. 2 change blocks. 
1 lines changed or deleted 14 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS