[m2sci] kernel code reorganization: clarify dependencies & ease code browsing 14/21614/13
authorSamuel GOUGEON <sgougeon@free.fr>
Wed, 28 Oct 2020 03:43:19 +0000 (04:43 +0100)
committerClément David <clement.david@esi-group.com>
Mon, 22 Mar 2021 08:53:06 +0000 (09:53 +0100)
commit9829c9a69e0f56b188b53d330d71279d91288dd7
treea4bcc8d94baf72a5896a1eeb1f8f2d65de2499df
parent37e51bfe068a17be0e071a5dc099802712cd5f3c
[m2sci] kernel code reorganization: clarify dependencies & ease code browsing

  test_run("m2sci",[],"enable_lt")  // (no new failing tests)

  No code content changed.

  * changevarname() never called => DELETED
    old2newinstr() called only only in changevarname() => DELETED

  * Minor functions called within a single other one are transfered as
    private functions:
    ("A=>B" means "A() called only in B(), and so transfered into B.sci")
    get_unknown    => in getvar2sci
    default_trad   => in funcall2sci
       mtlbtoolfun => default_trad => funcall2sci
    transformtree  => mfile2sci
    multi_fun_file => mfile2sci
    infer2txt      => m2sci
    translateorder => translatepath
    variablesearch => lst_funcall
    funcallsearch  => lst_funcall
    get_unknown    => getvar2sci
    equal2sci      => instruction2sci
    clause2sci     => instruction2sci
    updatevarslist => (equal2sci, clause2sci) => instruction2sci
    i_notation     => m2sci_syntax
    replace_brackets   => syntax_m2sci
    replace_end_dollar => syntax_m2sci

   * Bigger functions called in a single one: left apart as public
     + dependency info added in their heading comment
      m2sci:            called only in mfile2sci()
      lst_funcall:      called only in translatepath()
      sci_m2scideclare: called only in expression2sci()
      funcall2sci:      called only in expression2sci()
      mtlbtoolfun:      called only in default_trad()

Change-Id: Ic444781ac118902253ee88386ffb195073acf3f4
37 files changed:
scilab/modules/helptools/images/x_matrix_booleans.png [new file with mode: 0644]
scilab/modules/helptools/images/x_matrix_complex.png [new file with mode: 0644]
scilab/modules/helptools/images/x_matrix_header_scrollbars.png [new file with mode: 0644]
scilab/modules/helptools/images/x_matrix_integers.png [new file with mode: 0644]
scilab/modules/helptools/images/x_matrix_reals.png [new file with mode: 0644]
scilab/modules/helptools/images/x_matrix_text.png [new file with mode: 0644]
scilab/modules/m2sci/macros/kernel/changevarname.sci [deleted file]
scilab/modules/m2sci/macros/kernel/clause2sci.sci [deleted file]
scilab/modules/m2sci/macros/kernel/default_trad.sci [deleted file]
scilab/modules/m2sci/macros/kernel/equal2sci.sci [deleted file]
scilab/modules/m2sci/macros/kernel/funcall2sci.sci
scilab/modules/m2sci/macros/kernel/funcallsearch.sci [deleted file]
scilab/modules/m2sci/macros/kernel/get_unknown.sci [deleted file]
scilab/modules/m2sci/macros/kernel/getvar2sci.sci
scilab/modules/m2sci/macros/kernel/i_notation.sci [deleted file]
scilab/modules/m2sci/macros/kernel/infer2txt.sci [deleted file]
scilab/modules/m2sci/macros/kernel/instruction2sci.sci
scilab/modules/m2sci/macros/kernel/lst_funcall.sci
scilab/modules/m2sci/macros/kernel/m2sci.sci
scilab/modules/m2sci/macros/kernel/m2sci_syntax.sci
scilab/modules/m2sci/macros/kernel/mfile_path.sci [deleted file]
scilab/modules/m2sci/macros/kernel/mtlbtoolfun.sci
scilab/modules/m2sci/macros/kernel/mtlbtree2sci.sci
scilab/modules/m2sci/macros/kernel/multi_fun_file.sci [deleted file]
scilab/modules/m2sci/macros/kernel/old2newinstr.sci [deleted file]
scilab/modules/m2sci/macros/kernel/replace_brackets.sci [deleted file]
scilab/modules/m2sci/macros/kernel/replace_end_dollar.sci [deleted file]
scilab/modules/m2sci/macros/kernel/sci_generic.sci [deleted file]
scilab/modules/m2sci/macros/kernel/sci_m2scideclare.sci
scilab/modules/m2sci/macros/kernel/transformtree.sci [deleted file]
scilab/modules/m2sci/macros/kernel/translateorder.sci [deleted file]
scilab/modules/m2sci/macros/kernel/updatevarslist.sci [deleted file]
scilab/modules/m2sci/macros/kernel/variablesearch.sci [deleted file]
scilab/modules/m2sci/macros/mfile2sci.sci
scilab/modules/m2sci/macros/translatepaths.sci
scilab/modules/m2sci/tests/unit_tests/conversion/END_index_syntax.dia.ref
scilab/modules/m2sci/tests/unit_tests/conversion/END_index_syntax.tst