Commit 49c07a2b authored by Alexander A. Maly's avatar Alexander A. Maly

Marked classes export in KStdlib

parent 13c48d01
Pipeline #1954 failed with stages
in 2 minutes and 36 seconds
#ifndef KSTDLIB_DLL_H
#define KSTDLIB_DLL_H
#if defined(_MSC_VER)
#define DLL_IMP __dllspec(dllimport)
#define DLL_EXP __dllspec(dllexport)
#else
#define DLL_IMP
#define DLL_EXP
#endif
#ifdef KSTDLIB_LIBRARY
#define KS_DLL DLL_EXP
#else
#define KS_DLL DLL_IMP
#endif
#endif // KSTDLIB_DLL_H
#include "kumirstdlib.hpp"
#if defined(WIN32)
__declspec(dllexport) void dummy() {}
#endif
namespace Kumir
{
......
#ifndef KUMIRSTDLIB_H
#define KUMIRSTDLIB_H
#include "kstdlib_dll.h"
#include <assert.h>
#include <sstream>
......@@ -159,7 +160,7 @@ public:
}
};
class Core
class KS_DLL Core
{
friend class Math;
friend class Random;
......@@ -1228,11 +1229,9 @@ public:
{
unsigned char value = 0;
EncodingError error;
// value = KOI8RCodingTable::enc(ch, error);
value = CP1251CodingTable::enc(ch, error);
if (error) {
if (OutOfTable == error) {
// Core::abort(Core::fromUtf8("Символ вне кодировки КОИ-8"));
Core::abort(Core::fromUtf8("Символ вне кодировки CP-1251"));
} else {
Core::abort(Core::fromUtf8("Ошибка кодирования символа"));
......@@ -1240,6 +1239,7 @@ public:
}
return static_cast<int>(value);
}
inline static Char symbol(int code)
{
if (code < 0 || code > 255) {
......@@ -1257,6 +1257,7 @@ public:
return static_cast<wchar_t>(val);
}
}
inline static int unicode(Char ch)
{
return static_cast<int>(ch);
......@@ -1381,7 +1382,7 @@ public:
}
};
class Files
class KS_DLL Files
{
friend class IO;
public:
......@@ -2061,7 +2062,7 @@ private:
};
class IO
class KS_DLL IO
{
public:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment