Changeset ad30f62 in tol


Ignore:
Timestamp:
Mar 29, 2011, 2:53:48 PM (16 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
67102d7
Parents:
37576df
Message:

Fixes #992

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/stdlib/TolConfigManager/methods.tol

    r37576df rad30f62  
    6565Text _.autodoc.member.MergeOptions=
    6666"Merge default and user configurations";
    67 NameBlock MergeOptions(NameBlock a, NameBlock b)
     67NameBlock MergeOptions(NameBlock a, NameBlock b, Text prefix)
    6868//////////////////////////////////////////////////////////////////////////////
    6969{
    … …  
    7474    Text gra = Grammar(element);
    7575    Text name = Name(element);
     76    Text fullName = prefix+FullName(a)+"::"+name;
    7677    Case(
    7778    TextBeginWith(name, "_.autodoc.member."),
    … …  
    8182    !ObjectExist(gra,"b::"+name),             
    8283    {
    83       WriteLn("[MergeOptions] New configuration option "<<gra+" "+name+
    84       " will be set as default value \n"<<element ,"W");
     84      WriteLn("[MergeOptions] New configuration option \n"<<
     85      "\n  "+gra+" "+fullName+"="<<element+";\n\n"+
     86      "You can use this default value or change it running \n"+
     87      "\n  "+gra+" "+fullName+":= Copy(<new_value>); \n\n"+
     88      "Then you must run this line to avoid this messages at future\n"+
     89      "\n  Real TolConfigManager::Save(?); \n\n"
     90      ,"W");
     91
     92
    8593      element
    8694    },
    … …  
    9199    1==1,                                     
    92100    {
    93       MergeOptions(element,Eval(gra+" b::"+name))
     101      MergeOptions(element,Eval(gra+" b::"+name),prefix+FullName(a)+"::")
    94102    })
    95103  });
    … …  
    111119  {
    112120    NameBlock Config =
    113       MergeOptions(TolConfigManager::Default, { Include(_.path)[1] });
     121      MergeOptions(TolConfigManager::Default, { Include(_.path)[1] },
     122     "TolConfigManager::Config::");
    114123    Real SaveConfig(Config);
    115124    Config
Note: See TracChangeset for help on using the changeset viewer.