16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 19:49:19 +02:00

Dopisanie externów do zmiennych z warningów linkera.

This commit is contained in:
firleju
2016-10-31 16:03:38 +01:00
parent cd08fe0b5d
commit 95a7371a50
2 changed files with 19 additions and 8 deletions

View File

@@ -22,6 +22,11 @@ Copyright (C) 2007-2014 Maciej Cierniak
using namespace std; using namespace std;
/*================================================*/ /*================================================*/
int ConversionError = 0;
int LineCount = 0;
bool DebugModeFlag = false;
bool FreeFlyModeFlag = false;
//std::string Ups(std::string s) //std::string Ups(std::string s)
//{ //{
// int jatka; // int jatka;

View File

@@ -42,10 +42,10 @@ static int const CutRight = 1;
static int const CutBoth = 0; /*Cut_Space*/ static int const CutBoth = 0; /*Cut_Space*/
static double const pi = 3.141592653589793; static double const pi = 3.141592653589793;
int ConversionError = 0; extern int ConversionError;
int LineCount = 0; extern int LineCount;
bool DebugModeFlag = false; extern bool DebugModeFlag;
bool FreeFlyModeFlag = false; extern bool FreeFlyModeFlag;
typedef unsigned long/*?*//*set of: char */ TableChar; /*MCTUTIL*/ typedef unsigned long/*?*//*set of: char */ TableChar; /*MCTUTIL*/
@@ -150,10 +150,16 @@ inline bool fileExists(const std::string &name)
return (stat(name.c_str(), &buffer) == 0); return (stat(name.c_str(), &buffer) == 0);
} }
double Xmin; double Ymin; double Xmax; double Ymax; extern double Xmin;
double Xaspect; double Yaspect; extern double Ymin;
double Hstep; double Vstep; extern double Xmax;
int Vsize; int Hsize; extern double Ymax;
extern double Xaspect;
extern double Yaspect;
extern double Hstep;
extern double Vstep;
extern int Vsize;
extern int Hsize;
double Xhor( double h); double Xhor( double h);
/* Converts horizontal screen coordinate into real X-coordinate. */ /* Converts horizontal screen coordinate into real X-coordinate. */