Log of /trunk/core/rint/src/TTabCom.cxx
Parent Directory
Revision
44507 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jun 4 12:30:41 2012 UTC (2 years, 7 months ago) by
axel
File length: 90849 byte(s)
Diff to
previous 43709
Remove
using namespace std;
from Riostream.h, which has huge consequences for all of ROOT.
Riostream.h is now a simple wrapper for fstream, iostream, iomanip for backward compatibility; Riosfwd.h simply wraps iosfwd.
Because of templates and their inline functions, Riostream.h needed to be included in headers, too (e.g. TParameter.h), which violated the assumption that Riostream.h is not exposing its using namespace std to headers.
ROOT now requires R__ANSISTREAM, R__SSTREAM, which does not change the set of supported compilers.
Without "using namespace std", several identifiers are now prefixed by std::; e.g. roofit/* source files now have a using namespace std to keep their coding style.
TFile::MakeProject() now generates "using namespace std" to convert the CINT-style class names into C++ ones.
Revision
41318 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Oct 11 08:48:03 2011 UTC (3 years, 3 months ago) by
pcanal
File length: 89862 byte(s)
Diff to
previous 41244
Fix Coverity issues:
TTreePlayer.cxx: another instance of 34037 Dereference null return value
TBranchElement.cxx: 2nd attempt for 34040,34042 Dereference null return (stat)
TTabCom.cxx: another instance of 34168 Explicit null dereferenced
Revision
41244 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Oct 6 19:42:35 2011 UTC (3 years, 3 months ago) by
pcanal
File length: 89750 byte(s)
Diff to
previous 39402
Fix Coverity issues:
TBranchSTL: cov 34339 Resource leak (false positive)
TTableDescriptor.cxx: cov 34219,34220 explicit null dereference
TSQLStructure.cxx: cov 34204,34205,34206 Explicit null dereferenced
TTabCom.cxx: cov 34168 Explicit null dereferenced
TClassRef.cxx: cove 34165 Explicit null dereferenced (false positive but still confusing coding).
TBufferXML.cxx: 34070 Explicit null dereferenced
TFriendProxyDescriptor.cxx: cov 34066 Uninitialized scalar field
TTreeCloner.cxx: cov 34034057 Dereference null return (stat) 63 Uninitialized scalar field
TParallelCoordEditor.cxx: 34051,34059,34060,34061 Dereference null return value
TParallelCoord.cxx: 34050,34056, 34057 Dereference null return (stat)
TBranchProxy.h: 34048 Dereference null return value
TBranchProxy.cxx: 34043,34044,34045 Dereference null return value
TTree.cxx: 34039 Dereference null return value
TTreePlayer.cxx: 34037 Dereference null return value
TLeafC.cxx: 34036 Dereference null return value
Revision
39402 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu May 26 12:56:31 2011 UTC (3 years, 8 months ago) by
axel
File length: 89732 byte(s)
Diff to
previous 35775
Replace legacy clib/getline and editline by a new library, textinput,
located at core/textinput/src/textinput. That new library is written
in C++, standalone (no external dependencies), cross platform
including Windows, and contains only what we need - unlike
e.g. editline. It implements almost all bash-like editing commands,
color highlighting, history etc. It allows for multiple input objects
and multiple display objects, e.g. GUI and terminal in parallel. It
can be used as a stand-alone library, too, and will become part of
cling - which explains the different license and file names (.cpp).
core/textinputs/src/Getline* contains the adapters to ROOT; the
previous core/editline/enhance.cxx is transformed to
Getline_color.cxx. This new adapter interfaces with TTabCom directly,
without going via an extern "C" function pointer, to allow for an
ostream being passed that will contain all completion options, one per
line. TApplication now defines a virtual function to be called for tab
completion; TRint implements it using TTabCom.
One major change is that the user input string is accessible as const
char* instead of being a char* - the buffer length is unknown
anyway. This caused changes in callers of Getline(); the history and
the getline function types needed to change for CINT.
--enable-editline has been deprecated and is inoperable.
Revision
30749 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Oct 15 16:33:04 2009 UTC (5 years, 3 months ago) by
brun
File length: 89713 byte(s)
Diff to
previous 30215
From Matthew Strait:
This patch fixes the spelling of "function" in the root source code
and documentation, which is misspelled (sometimes as part of larger
"function"-based words) at least 152 times:
* "funciton" 48 times
* "funcion" 36 times
* "funtion" 23 times
* "fucntion" 17 times
* "functionn" 6 times
* "fuction" 6 times
* "fuunction" 4 times
* "functioin" 3 times
* "fonction" 3 times
* "funstion" twice
* "fnuction" once
* "functiom" once
* "functio" once
* "funcition" once
Revision
29400 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jul 8 22:01:32 2009 UTC (5 years, 6 months ago) by
pcanal
File length: 88487 byte(s)
Diff to
previous 29270
Fix:
When pressing Tab it convert my arrow to dot.
My listing:
root [0] TLine l
root [1] l.IsA()-> // here I press Tab
"l" is not of pointer type. Use this operator: .
...
root [1] l.IsA().
Revision
26979 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Dec 17 05:35:30 2008 UTC (6 years, 1 month ago) by
pcanal
File length: 87911 byte(s)
Diff to
previous 26490
From Matevz:
I've been after this for a long time ... tab completion was not working in alice event display.
I traced it down today to occurence of '::' in my macro-path.
I add a string:
":$ALICE_ROOT/EVE/alice-macros"
to the macro path - but the existing/default macro-path already ends with an ':' as it is defined in etc/system.rootrc:
Unix.*.Root.MacroPath: .:$(ROOTSYS)/macros:
The same is true for all paths in rootrc - maybe they should be changed after the release?
While I can avoid it now that i know of it, it is likely that it will or does bite someone else, too.
This patch properly parseis ::s - the problem was in NewListOfFilesInPath() which abandoned processing after receiving an empty string for a match, which occurs when one has '::'. I remodelled the logic to be the same as in ExtendPath().
Revision
24077 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat May 31 19:39:09 2008 UTC (6 years, 7 months ago) by
brun
File length: 87790 byte(s)
Diff to
previous 23432
Extend the TInterpreter class to support the CINT API used so far by ROOT.
The concrete implementation of the class is in TCint.
The new functions are essentially interfaces to the existing CINT C++ classes
like G__ClassInfo, G__CallFunc, G__DataMemberInfo, G__MethodInfo, G__TypeInfo
and G__TypedefInfo. Most of these functions will call the Reflex interface
once the CINT/Reflex interface will be available later this year.
All direct calls to CINT are replaced by calls like gCint->ClassInfo_xxx where gCint
points to the TCint implementation.
The existing calls to TCint via gInterpreter are kept because on Windows
gInterpreter does not call directly TCint, but instead call TWin32InterpreterProxy
that in turns call TCint.
On Linux and Mac, gInterpreter and gCint are equivalent.
Once the transformation using gCint will be completed, it will be possible
to specify at startup time which version of CINT (CINT or CINT7) by loading
dynamically TCint or TCint7.--This line, and those below, will be ignored--
M core/meta/src/TStreamerElement.cxx
M core/meta/src/TCint.cxx
M core/meta/src/TGlobal.cxx
M core/meta/src/TBaseClass.cxx
M core/meta/src/TDataMember.cxx
M core/meta/src/TInterpreter.cxx
M core/meta/src/TClass.cxx
M core/meta/src/TMethodArg.cxx
M core/meta/src/TDataType.cxx
M core/meta/src/TMethodCall.cxx
M core/meta/src/TIsAProxy.cxx
M core/meta/src/TMethod.cxx
M core/meta/src/TFunction.cxx
M core/meta/inc/TClass.h
M core/meta/inc/TDictionary.h
M core/meta/inc/TMethodArg.h
M core/meta/inc/TDataType.h
M core/meta/inc/TMethodCall.h
M core/meta/inc/TMethod.h
M core/meta/inc/TFunction.h
M core/meta/inc/TCint.h
M core/meta/inc/TGlobal.h
M core/meta/inc/TBaseClass.h
M core/meta/inc/TDataMember.h
M core/meta/inc/TInterpreter.h
M core/thread/src/TThread.cxx
M core/base/src/TVirtualFitter.cxx
M core/base/src/TStorage.cxx
M core/base/src/TQConnection.cxx
M core/base/src/TROOT.cxx
M core/base/src/TSystem.cxx
M core/base/src/TQObject.cxx
M core/rint/src/TRint.cxx
M core/rint/src/TTabCom.cxx
M math/foam/src/TFoam.cxx
M math/minuit2/src/TFitterMinuit.cxx
M math/mathcore/src/FunctorCint.cxx
M math/minuit/src/TMinuit.cxx
M tree/tree/src/TTree.cxx
M tree/tree/src/TSelectorCint.cxx
M tree/tree/src/TSelector.cxx
M tree/tree/inc/TSelectorCint.h
M roofit/roofitcore/src/RooGenCategory.cxx
M roofit/roofitcore/src/RooWorkspace.cxx
M hist/hist/src/TF1.cxx
M gui/guibuilder/src/TGuiBldDragManager.cxx
M net/alien/inc/TAlienSystem.h
Revision
22961 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Apr 3 13:32:57 2008 UTC (6 years, 9 months ago) by
rdm
File length: 87401 byte(s)
Diff to
previous 22433
move the directories:
base clib cont meta metautils newdelete pcre rint thread unix utils
winnt zip
under the new core meta directory.
Revision
20411 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Oct 19 12:37:58 2007 UTC (7 years, 3 months ago) by
rdm
Original Path:
trunk/rint/src/TTabCom.cxx
File length: 87182 byte(s)
Diff to
previous 19826
remove conditional around include of RConfigure.h:
#ifdef R__HAVE_CONFIG
#include "RConfigure.h"
#endif
Having this conditional caused RConfigure.h to be missing from the .d
files and hence these files would not be recompiled after re-configuring
using --prefix.
Revision
16796 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Nov 16 17:18:32 2006 UTC (8 years, 2 months ago) by
rdm
Original Path:
trunk/rint/src/TTabCom.cxx
File length: 87144 byte(s)
Diff to
previous 16356
Changes to get rid of the config.h and HAVE_CONFIG define. These were way
too trivial (just do a locate config.h to see how many there are):
- replace occurances of config.h by RConfigure.h
- add #warning in config.h that is should not be used
- change HAVE_CONFIG to R__HAVE_CONFIG
Revision
14451 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Mar 28 16:35:00 2006 UTC (8 years, 9 months ago) by
brun
Original Path:
trunk/rint/src/TTabCom.cxx
File length: 86931 byte(s)
Diff to
previous 14188
From Axel:
this is the patch for the beep suppression. With that, all beeps I found
are re-routed to TSystem::Beep, which checks whether it should really
beep, and then invokes virtual TSystem::DoBeep. TSystem checks what gEnv
says - if Root.System.BeepDuration for Root.System.BeepFreq is <0 it'll
silence all beeps. Otherwise these settings do what one would expect -
on windows (until someone implements TUnixSystem::DoBeep).
Revision
12866 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Sep 29 08:27:58 2005 UTC (9 years, 3 months ago) by
pcanal
Original Path:
trunk/rint/src/TTabCom.cxx
File length: 86145 byte(s)
Diff to
previous 12756
Repair: h->SetXTitle(a->GetTi<TAB>
Repair: h->SetXTitle(<TAB>
Add support for: new ROOT::Math::Ax<TAB>
Add support for: new ROOT::Math::AxisAngle<TAB>
Add support for: h->GetXaxis()->SetTitle(<TAB>
In case of function with all parameters with default value,
do not close the paranthesis:
gROOT->SetTit<TAB>
now gives
gROOT->SetTitle(
and
gROOT->SetTitle(<TAB>
gives:
void SetTitle(const char* title = "") // *MENU*
Revision
12528 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Aug 24 12:52:09 2005 UTC (9 years, 5 months ago) by
brun
Original Path:
trunk/rint/src/TTabCom.cxx
File length: 85107 byte(s)
Diff to
previous 12203
From Pedro Ramalhete:
Even though I use Eclipse most of the time to write my code because it has infinite recursiveness for members/prototypes/whatever, sometimes I feel the need for the tab completion in the root shell of things like:
class_a_ptr->GetVariable1ptr()->GetVar2Ptr()->[tab]
(this is specially nice in aliroot and na60root) so I decided to implement it in TTabCom!
Now, this is more a "proof of concept" than an actual feature addition, but hopefully it will help you guys to add the feature to the next root release ;)
All the things that I added/changed are marked with a comment starting with "// frodo" so they are easy to find.
Revision
12203 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jun 27 14:49:40 2005 UTC (9 years, 6 months ago) by
brun
Original Path:
trunk/rint/src/TTabCom.cxx
File length: 79737 byte(s)
Diff to
previous 10460
From Bertrand Bellenot
Fix for a problem reported by Gordon Watts when running under Windows:
Apparently, tmpnam returns a temp name in the root directory,
instead of value of the TMP environment variable...(M$ bug ?)
Revision
8105 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Feb 2 15:32:57 2004 UTC (10 years, 11 months ago) by
brun
Original Path:
trunk/rint/src/TTabCom.cxx
File length: 75845 byte(s)
Diff to
previous 8061
From valeriy Onuchin:
console corruption is solved:
- the problem was in cint/pause.c
For stdout/stderr redirection "freopen" is used. At "freopen" the current
stdout/stderr is closed. That causes console curruption.
I replaced "freopen" with "fopen". The problem dissapeared.
- I replaced in TTabCom the calls like
gROOT->ProcessLine(".class > somefile") with direct
calls of CINT API, e.g. G__display_class(fout,"",0,0)
long time at exit:
- fixed according LIFO(last in first out) principle for releasing resources
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.