Changeset ad30f62 in tol
- Timestamp:
- Mar 29, 2011, 2:53:48 PM (16 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 67102d7
- Parents:
- 37576df
- File:
-
- 1 edited
-
tol/stdlib/TolConfigManager/methods.tol (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/stdlib/TolConfigManager/methods.tol
r37576df rad30f62 65 65 Text _.autodoc.member.MergeOptions= 66 66 "Merge default and user configurations"; 67 NameBlock MergeOptions(NameBlock a, NameBlock b )67 NameBlock MergeOptions(NameBlock a, NameBlock b, Text prefix) 68 68 ////////////////////////////////////////////////////////////////////////////// 69 69 { … … 74 74 Text gra = Grammar(element); 75 75 Text name = Name(element); 76 Text fullName = prefix+FullName(a)+"::"+name; 76 77 Case( 77 78 TextBeginWith(name, "_.autodoc.member."), … … 81 82 !ObjectExist(gra,"b::"+name), 82 83 { 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 85 93 element 86 94 }, … … 91 99 1==1, 92 100 { 93 MergeOptions(element,Eval(gra+" b::"+name) )101 MergeOptions(element,Eval(gra+" b::"+name),prefix+FullName(a)+"::") 94 102 }) 95 103 }); … … 111 119 { 112 120 NameBlock Config = 113 MergeOptions(TolConfigManager::Default, { Include(_.path)[1] }); 121 MergeOptions(TolConfigManager::Default, { Include(_.path)[1] }, 122 "TolConfigManager::Config::"); 114 123 Real SaveConfig(Config); 115 124 Config
Note: See TracChangeset
for help on using the changeset viewer.
