"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Typeset/Table/cell.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.

cell.cpp  (TeXmacs-1.99.4-src):cell.cpp  (TeXmacs-1.99.5-src)
skipping to change at line 106 skipping to change at line 106
void void
cell_rep::cell_local_begin (tree fm) { cell_rep::cell_local_begin (tree fm) {
int i, l= N(fm); int i, l= N(fm);
for (i=0; i<l; i++) { for (i=0; i<l; i++) {
tree with= fm[i]; tree with= fm[i];
if (is_func (with, CWITH, 2) && if (is_func (with, CWITH, 2) &&
is_atomic (with[0]) && is_atomic (with[0]) &&
!starts (with[0]->label, "cell-")) { !starts (with[0]->label, "cell-")) {
tree old= env->local_begin (with[0]->label, with[1]); tree old= env->local_begin (with[0]->label, with[1]);
var (with[0]->label)= old; string v= with[0]->label * "-" * as_string (i);
var (v)= old;
} }
} }
} }
void void
cell_rep::cell_local_end (tree fm) { cell_rep::cell_local_end (tree fm) {
int i, l= N(fm); int i, l= N(fm);
for (i=l-1; i>=0; i--) { for (i=l-1; i>=0; i--) {
tree with= fm[i]; tree with= fm[i];
if (is_func (with, CWITH, 2) && if (is_func (with, CWITH, 2) &&
is_atomic (with[0]) && is_atomic (with[0]) &&
!starts (with[0]->label, "cell-")) { !starts (with[0]->label, "cell-")) {
tree old= var [with[0]->label]; string v= with[0]->label * "-" * as_string (i);
tree old= var [v];
env->local_end (with[0]->label, old); env->local_end (with[0]->label, old);
} }
} }
} }
/****************************************************************************** /******************************************************************************
* Formatting routines * Formatting routines
******************************************************************************/ ******************************************************************************/
void void
 End of changes. 2 change blocks. 
2 lines changed or deleted 4 lines changed or added

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