xref: /haiku/src/apps/tracker/main.cpp (revision 25a7b01d15612846f332751841da3579db313082)
141281cf3SAxel Dörfler /*
241281cf3SAxel Dörfler Open Tracker License
341281cf3SAxel Dörfler 
441281cf3SAxel Dörfler Terms and Conditions
541281cf3SAxel Dörfler 
641281cf3SAxel Dörfler Copyright (c) 1991-2000, Be Incorporated. All rights reserved.
741281cf3SAxel Dörfler 
841281cf3SAxel Dörfler Permission is hereby granted, free of charge, to any person obtaining a copy of
941281cf3SAxel Dörfler this software and associated documentation files (the "Software"), to deal in
1041281cf3SAxel Dörfler the Software without restriction, including without limitation the rights to
1141281cf3SAxel Dörfler use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
1241281cf3SAxel Dörfler of the Software, and to permit persons to whom the Software is furnished to do
1341281cf3SAxel Dörfler so, subject to the following conditions:
1441281cf3SAxel Dörfler 
1541281cf3SAxel Dörfler The above copyright notice and this permission notice applies to all licensees
1641281cf3SAxel Dörfler and shall be included in all copies or substantial portions of the Software.
1741281cf3SAxel Dörfler 
1841281cf3SAxel Dörfler THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1941281cf3SAxel Dörfler IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF TITLE, MERCHANTABILITY,
2041281cf3SAxel Dörfler FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
2141281cf3SAxel Dörfler BE INCORPORATED BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
2241281cf3SAxel Dörfler AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION
2341281cf3SAxel Dörfler WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2441281cf3SAxel Dörfler 
2541281cf3SAxel Dörfler Except as contained in this notice, the name of Be Incorporated shall not be
2641281cf3SAxel Dörfler used in advertising or otherwise to promote the sale, use or other dealings in
2741281cf3SAxel Dörfler this Software without prior written authorization from Be Incorporated.
2841281cf3SAxel Dörfler 
2941281cf3SAxel Dörfler Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered trademarks
3041281cf3SAxel Dörfler of Be Incorporated in the United States and other countries. Other brand product
3141281cf3SAxel Dörfler names are registered trademarks or trademarks of their respective holders.
3241281cf3SAxel Dörfler All rights reserved.
3341281cf3SAxel Dörfler */
3441281cf3SAxel Dörfler 
3571302e7cSJonas Sundström 
3641281cf3SAxel Dörfler #include "Tracker.h"
3741281cf3SAxel Dörfler 
3871302e7cSJonas Sundström #include <Catalog.h>
3971302e7cSJonas Sundström 
4071302e7cSJonas Sundström 
4141281cf3SAxel Dörfler #if DEBUG
4241281cf3SAxel Dörfler //#define LEAK_CHECKING
4341281cf3SAxel Dörfler 
4441281cf3SAxel Dörfler  #ifdef LEAK_CHECKING
4541281cf3SAxel Dörfler   #include "LeakChecking.h"
4641281cf3SAxel Dörfler  #endif
4741281cf3SAxel Dörfler #endif
4841281cf3SAxel Dörfler 
4941281cf3SAxel Dörfler #ifdef PROFILE
5041281cf3SAxel Dörfler  #include "libprof.h"
5141281cf3SAxel Dörfler #endif
5241281cf3SAxel Dörfler 
main(int,char **)5341281cf3SAxel Dörfler int main(int , char **)
5441281cf3SAxel Dörfler {
5541281cf3SAxel Dörfler #ifdef PROFILE
5641281cf3SAxel Dörfler 	PROFILE_INIT(1024);
5741281cf3SAxel Dörfler #endif
5841281cf3SAxel Dörfler 
5941281cf3SAxel Dörfler #ifdef LEAK_CHECKING
6041281cf3SAxel Dörfler 	SetNewLeakChecking(true);
6141281cf3SAxel Dörfler 	SetMallocLeakChecking(true);
6241281cf3SAxel Dörfler #endif
63*541ff51aSOliver Tappe 	B_TRANSLATE_MARK_SYSTEM_NAME_VOID("Tracker");
6441281cf3SAxel Dörfler 
6541281cf3SAxel Dörfler 	TTracker tracker;
6641281cf3SAxel Dörfler 	tracker.Run();
6741281cf3SAxel Dörfler 
6841281cf3SAxel Dörfler #ifdef PROFILE
6941281cf3SAxel Dörfler 	PROFILE_DUMP("/boot/home/Desktop/trackerProfile");
7041281cf3SAxel Dörfler #endif
7141281cf3SAxel Dörfler 
7241281cf3SAxel Dörfler 	return 0;
7341281cf3SAxel Dörfler }
74