Changeset 122


Ignore:
Timestamp:
02/10/14 17:07:20 (6 years ago)
Author:
sz
Message:

(c)opyright information added

Location:
cpp/common
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/2d.h

    r109 r122  
     1// This file is a part of the Framsticks GDK.
     2// Copyright (C) 2002-2014  Maciej Komosinski and Szymon Ulatowski.  See LICENSE.txt for details.
     3// Refer to http://www.framsticks.com/ for further information.
     4
    15#ifndef _2D_H_
    26#define _2D_H_
  • cpp/common/Convert.cpp

    r109 r122  
     1// This file is a part of the Framsticks GDK.
     2// Copyright (C) 2002-2014  Maciej Komosinski and Szymon Ulatowski.  See LICENSE.txt for details.
     3// Refer to http://www.framsticks.com/ for further information.
     4
    15#include "Convert.h"
    26
     
    1822int Convert::toInt(string s) {return atoi(s.c_str());}
    1923float Convert::toFloat(string s) {return (float)atof(s.c_str());}
    20 #ifndef __BORLANDC__ //szok: borland kompiluje ten plik w GUI i CLI ale nie w teatrze. Z jakichs powodow nie potrafi znalezc ::tolower i ::toupper, moze chodzi o pewne definy w <cctype> ale czemu tylko w teatrze?!
     24#ifndef __BORLANDC__ //the borland compiler compiles this file in GUI and CLI, but not in the theater app. Somehow it cannot find ::tolower and ::toupper; maybe this is because of various #defines in <cctype>, but why only in the theater app??
    2125string Convert::toLowerCase(string s) {std::transform(s.begin(), s.end(), s.begin(), ::tolower);  return s;}
    2226string Convert::toUpperCase(string s) {std::transform(s.begin(), s.end(), s.begin(), ::toupper);  return s;}
     
    118122return string(ret,24); //24 znaki z pominieciem ostatniego \n
    119123}
     124
  • cpp/common/Convert.h

    r109 r122  
     1// This file is a part of the Framsticks GDK.
     2// Copyright (C) 2002-2014  Maciej Komosinski and Szymon Ulatowski.  See LICENSE.txt for details.
     3// Refer to http://www.framsticks.com/ for further information.
     4
    15#ifndef _CONVERT_H_
    26#define _CONVERT_H_
  • cpp/common/framsg.cpp

    r109 r122  
     1// This file is a part of the Framsticks GDK.
     2// Copyright (C) 2002-2014  Maciej Komosinski and Szymon Ulatowski.  See LICENSE.txt for details.
     3// Refer to http://www.framsticks.com/ for further information.
     4
    15#include "framsg.h"
    26#include <common/nonstd_stdio.h>
    37#include "Convert.h"
    48
    5 char* MSG_LEVEL[]={"DEBUG","INFO","WARN","ERROR","CRITICAL"};
     9const char* MSG_LEVEL[]={"DEBUG","INFO","WARN","ERROR","CRITICAL"};
    610
    711void FMprintf_va(const char *o,const char *m,int w,const char *bl,va_list va)
  • cpp/common/framsg.h

    r109 r122  
     1// This file is a part of the Framsticks GDK.
     2// Copyright (C) 2002-2014  Maciej Komosinski and Szymon Ulatowski.  See LICENSE.txt for details.
     3// Refer to http://www.framsticks.com/ for further information.
     4
    15#ifndef _FRAMSG_H_
    26#define _FRAMSG_H_
     
    48#include <stdarg.h>
    59
    6 extern char* MSG_LEVEL[];
     10extern const char* MSG_LEVEL[];
    711
    812void FMprintf(const char *o,const char *m,int w,const char *bl, ...);
    9 void FMprintf_va(const char *o,const char *m,int w,const char *bl,va_list va);//inna nazwa bo bez tego nie odroznia parametru "string" od va_list i wywoluje zla wersje
    10 void printFM(const char *bl,...); //dla leniwych - zastepuje printf (zmieniona nazwa chociaz tutaj "prawdopodobienstwo" konfliktu jest niewielkie, musialoby byc wywolanie malego printa z kilkoma parametrami odpowiednich typow zeby niechcacy wywolal sie duzy print)
     13void FMprintf_va(const char *o,const char *m,int w,const char *bl,va_list va); //a different name than FMprintf - otherwise the compiler could confuse the "string" parameter with va_list and could call the wrong function
     14void printFM(const char *bl,...); //a shorthand for printf (a different name again to avoid the risk of confusion with the two functions above. This would be unlikely but possible when the argument types would match)
    1115void FramMessage(const char *o,const char *m,const char *bl,int w);
    1216
  • cpp/common/nonstd_dir.h

    r109 r122  
     1// This file is a part of the Framsticks GDK.
     2// Copyright (C) 2002-2014  Maciej Komosinski and Szymon Ulatowski.  See LICENSE.txt for details.
     3// Refer to http://www.framsticks.com/ for further information.
     4
    15#ifndef _NONSTD_DIR_H_
    26#define _NONSTD_DIR_H_
  • cpp/common/nonstd_math.cpp

    r109 r122  
     1// This file is a part of the Framsticks GDK.
     2// Copyright (C) 2002-2014  Maciej Komosinski and Szymon Ulatowski.  See LICENSE.txt for details.
     3// Refer to http://www.framsticks.com/ for further information.
     4
    15#include "nonstd_math.h"
    26
  • cpp/common/nonstd_math.h

    r109 r122  
     1// This file is a part of the Framsticks GDK.
     2// Copyright (C) 2002-2014  Maciej Komosinski and Szymon Ulatowski.  See LICENSE.txt for details.
     3// Refer to http://www.framsticks.com/ for further information.
     4
    15#ifndef _NONSTD_MATH_H_
    26#define _NONSTD_MATH_H_
     
    2832#define setRandomRandomSeed() rndGetInstance().randomize()
    2933
     34
    3035//floating point specific numbers
    3136#include "stdlib.h"
     
    3742#endif
    3843
     44#ifdef LINUX
     45  #define _isnan(a) isnan(a)
     46#endif
     47
    3948#ifdef IPHONE
    4049        #define finite(x) (!isinf(x))
     50  #define _isnan(a) isnan(a)
    4151#endif
    4252
    4353
    44 #if defined SHP && !defined TIZEN
     54#if defined SHP
    4555 //#define __assert_func(a,b,c,d) 0 //Currently, we are sorry to inform you that assert() is not yet supported. We have considered your request for internal discussion. Na szczêœcie jest w³asna (byle by by³a, bo i tak zak³adamy ze assert ktore przeciez dziala tylko w trybie debug nie jest potrzebne na bada) implementacja w "bada-assert.cpp"
    4656 #define isnan(x) false //isnan() sie nie linkuje
  • cpp/common/nonstd_stdio.cpp

    r109 r122  
     1// This file is a part of the Framsticks GDK.
     2// Copyright (C) 2002-2014  Maciej Komosinski and Szymon Ulatowski.  See LICENSE.txt for details.
     3// Refer to http://www.framsticks.com/ for further information.
     4
    15#include "nonstd_stdio.h"
    26#if defined _WIN32 && !defined SHP
  • cpp/common/nonstd_stdio.h

    r109 r122  
     1// This file is a part of the Framsticks GDK.
     2// Copyright (C) 2002-2014  Maciej Komosinski and Szymon Ulatowski.  See LICENSE.txt for details.
     3// Refer to http://www.framsticks.com/ for further information.
     4
    15#ifndef _NONSTD_STDIO_H_
    26#define _NONSTD_STDIO_H_
  • cpp/common/nonstd_stl.h

    r109 r122  
     1// This file is a part of the Framsticks GDK.
     2// Copyright (C) 2002-2014  Maciej Komosinski and Szymon Ulatowski.  See LICENSE.txt for details.
     3// Refer to http://www.framsticks.com/ for further information.
     4
    15#ifndef _NONSTD_STL_H_
    26#define _NONSTD_STL_H_
  • cpp/common/random.h

    r109 r122  
     1// This file is a part of the Framsticks GDK.
     2// Copyright (C) 2002-2014  Maciej Komosinski and Szymon Ulatowski.  See LICENSE.txt for details.
     3// Refer to http://www.framsticks.com/ for further information.
     4
    15#include "nonstd.h" //LONGLONG
    26#include <time.h> //time()
  • cpp/common/threads.h

    r109 r122  
     1// This file is a part of the Framsticks GDK.
     2// Copyright (C) 2002-2014  Maciej Komosinski and Szymon Ulatowski.  See LICENSE.txt for details.
     3// Refer to http://www.framsticks.com/ for further information.
     4
    15#ifndef _THREADS_H_
    26#define _THREADS_H_
Note: See TracChangeset for help on using the changeset viewer.