Skip to content
This repository has been archived by the owner on Oct 31, 2021. It is now read-only.

Commit

Permalink
updated license + minor structuring
Browse files Browse the repository at this point in the history
  • Loading branch information
aidinabedi committed Jan 10, 2010
1 parent db1d400 commit 2605c0e
Show file tree
Hide file tree
Showing 30 changed files with 118 additions and 82 deletions.
2 changes: 1 addition & 1 deletion Samples/Advanced/Advanced.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2007-2009 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion Samples/Advanced/Main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2007-2009 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion Samples/Advanced/Shared.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2007-2009 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion Samples/MainLoop/MainLoop.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2007-2009 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion Samples/Simple/Simple.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2007-2009 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion Shiny/include/Shiny.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2007-2009 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
56 changes: 1 addition & 55 deletions Shiny/include/ShinyConfig.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2007-2009 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -26,15 +26,6 @@ THE SOFTWARE.
#define SHINY_CONFIG_H


/*---------------------------------------------------------------------------*/

#define SHINY_VERSION "2.5"
#define SHINY_SHORTNAME "Shiny"
#define SHINY_FULLNAME "Shiny Profiler"
#define SHINY_COPYRIGHT "Copyright (C) 2007-2009 Aidin Abedi"
#define SHINY_DESCRIPTION "Shiny is a elegent profiler designed to help finding bottlenecks in your project."


/*---------------------------------------------------------------------------*/

/* SHINY_IS_COMPILED is the master on or off swith at compile time. Define it to TRUE or FALSE before including header Shiny.h or inside ShinyConfig.h. Default is TRUE.
Expand Down Expand Up @@ -79,49 +70,4 @@ THE SOFTWARE.
#define SHINY_OUTPUT_MODE SHINY_OUTPUT_MODE_BOTH
#endif


/*---------------------------------------------------------------------------*/

#ifndef FALSE
#define FALSE 0x0
#endif

#ifndef TRUE
#define TRUE 0x1
#endif

#ifndef NULL
#define NULL 0
#endif


/*---------------------------------------------------------------------------*/

#define SHINY_PLATFORM_WIN32 0x1
#define SHINY_PLATFORM_POSIX 0x2

#if defined (_WIN32)
# define SHINY_PLATFORM SHINY_PLATFORM_WIN32

#else /* ASSUME: POSIX-compliant OS */
# define SHINY_PLATFORM SHINY_PLATFORM_POSIX
#endif


/*---------------------------------------------------------------------------*/

#define SHINY_COMPILER_MSVC 0x1
#define SHINY_COMPILER_GNUC 0x2
#define SHINY_COMPILER_OTHER 0x3

#if defined (_MSC_VER)
# define SHINY_COMPILER SHINY_COMPILER_MSVC

#elif defined (__GNUG__)
# define SHINY_COMPILER SHINY_COMPILER_GNUC

#else
# define SHINY_COMPILER SHINY_COMPILER_OTHER
#endif

#endif /* end of include guard */
2 changes: 1 addition & 1 deletion Shiny/include/ShinyData.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2007-2009 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion Shiny/include/ShinyMacros.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2007-2009 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion Shiny/include/ShinyManager.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2007-2009 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion Shiny/include/ShinyNode.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2007-2009 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion Shiny/include/ShinyNodePool.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2007-2009 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion Shiny/include/ShinyNodeState.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2007-2009 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion Shiny/include/ShinyOutput.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2007-2009 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
51 changes: 50 additions & 1 deletion Shiny/include/ShinyPrereqs.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2007-2009 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -26,6 +26,55 @@ THE SOFTWARE.
#define SHINY_PREREQS_H

#include "ShinyConfig.h"
#include "ShinyVersion.h"


/*---------------------------------------------------------------------------*/

#define SHINY_PLATFORM_WIN32 0x1
#define SHINY_PLATFORM_POSIX 0x2

#if defined (_WIN32)
# define SHINY_PLATFORM SHINY_PLATFORM_WIN32

#else /* ASSUME: POSIX-compliant OS */
# define SHINY_PLATFORM SHINY_PLATFORM_POSIX
#endif


/*---------------------------------------------------------------------------*/

#define SHINY_COMPILER_MSVC 0x1
#define SHINY_COMPILER_GNUC 0x2
#define SHINY_COMPILER_OTHER 0x3

#if defined (_MSC_VER)
# define SHINY_COMPILER SHINY_COMPILER_MSVC

#elif defined (__GNUG__)
# define SHINY_COMPILER SHINY_COMPILER_GNUC

#else
# define SHINY_COMPILER SHINY_COMPILER_OTHER
#endif


/*---------------------------------------------------------------------------*/

#ifndef FALSE
#define FALSE 0x0
#endif

#ifndef TRUE
#define TRUE 0x1
#endif

#ifndef NULL
#define NULL 0
#endif


/*---------------------------------------------------------------------------*/

#if SHINY_COMPILER == SHINY_COMPILER_GNUC
#include <sys/types.h>
Expand Down
2 changes: 1 addition & 1 deletion Shiny/include/ShinyTools.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2007-2009 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
37 changes: 37 additions & 0 deletions Shiny/include/ShinyVersion.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
The MIT License
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

#ifndef SHINY_VERSION_H
#define SHINY_VERSION_H


/*---------------------------------------------------------------------------*/

#define SHINY_VERSION "2.6 RC1"
#define SHINY_SHORTNAME "Shiny"
#define SHINY_FULLNAME "Shiny Profiler"
#define SHINY_COPYRIGHT "Copyright (C) 2007-2010 Aidin Abedi"
#define SHINY_DESCRIPTION "Shiny is a state of the art profiler designed to help finding bottlenecks in your project."

#endif /* end of include guard */
2 changes: 1 addition & 1 deletion Shiny/include/ShinyZone.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2007-2009 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 4 additions & 0 deletions Shiny/scripts/Shiny.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@
RelativePath="..\include\ShinyTools.h"
>
</File>
<File
RelativePath="..\include\ShinyVersion.h"
>
</File>
<File
RelativePath="..\include\ShinyZone.h"
>
Expand Down
2 changes: 1 addition & 1 deletion Shiny/src/ShinyManager.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2007-2009 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion Shiny/src/ShinyNode.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2007-2009 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion Shiny/src/ShinyNodePool.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2007-2009 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion Shiny/src/ShinyNodeState.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2007-2009 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion Shiny/src/ShinyOutput.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2007-2009 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion Shiny/src/ShinyTools.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2007-2009 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion Shiny/src/ShinyZone.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2007-2009 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion ShinyLua/include/ShinyLua.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2007-2009 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Copyright (c) 2007-2010 Aidin Abedi http:https://code.google.com/p/shinyprofiler/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

0 comments on commit 2605c0e

Please sign in to comment.