Changeset 865a7b9d in tol


Ignore:
Timestamp:
Oct 9, 2009, 8:19:08 AM (17 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
5f10b30
Parents:
1065545
Message:

global functions are shown as returned from FullName() and methods as Name()

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@1506 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • toltcl/generic/tolaccess.cpp

    r1065545 r865a7b9d  
    7171BText GetObjectName(const BSyntaxObject * so)
    7272{
    73   return so->HasName() ? so->FullName() : so->LocalName();
     73  // antes estaba FullName pero salian cosas como:
     74  // estim::cycler::_.sampler::_.buildWorkSpace
     75  return so->HasName() ? so->Name() : so->LocalName();
    7476}
    7577
    7678static
    7779void GetName( const BSyntaxObject * so, BText & res )
     80{
     81  // antes estaba FullName pero salian cosas como:
     82  // estim::cycler::_.sampler::_.buildWorkSpace
     83  res = so->Name();
     84}
     85
     86static
     87void GetFullName( const BSyntaxObject * so, BText & res )
    7888{
    7989  res = so->FullName();
    … …  
    19962006      // function name
    19972007      Tcl_DStringInit(&dstr);
     2008      // antes estaba FullName
    19982009      Tcl_ExternalToUtfDString(NULL, opr->FullName(), -1, &dstr);
    19992010      Tcl_DStringAppend(&dstr_info, Tcl_DStringValue(&dstr), -1);
    … …  
    20662077  if (gra) {
    20672078    BList * lstOper = gra->GetOperators();
    2068     if (BList2TclList(interp,lstOper,obj_result,&GetName) != TCL_OK) {
     2079    if (BList2TclList(interp,lstOper,obj_result,&GetFullName) != TCL_OK) {
    20692080      Tcl_AppendObjToObj(obj_result,Tcl_GetObjResult(interp));
    20702081      DESTROY(lstOper);
Note: See TracChangeset for help on using the changeset viewer.