mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Normalize line endings
This commit contains only the result of `git add --renormalize .` `git show --ignore-space-change` can verify that this commit only changes whitespace.
This commit is contained in:
@@ -1,41 +1,41 @@
|
||||
#pragma once
|
||||
#ifndef __PL_APPLICATION_H__
|
||||
#define __PL_APPLICATION_H__
|
||||
|
||||
#include "PLCore.h"
|
||||
|
||||
namespace PortabilityLayer
|
||||
{
|
||||
template<size_t TSize>
|
||||
class PascalStrLiteral;
|
||||
}
|
||||
|
||||
namespace PortabilityLayer
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
void MakePStr(unsigned char *dest, size_t sz, const char *src);
|
||||
}
|
||||
}
|
||||
|
||||
void PasStringCopy(const unsigned char *src, unsigned char *dest);
|
||||
|
||||
template<size_t TSize>
|
||||
void PasStringCopy(const PortabilityLayer::PascalStrLiteral<TSize> &src, unsigned char *dest);
|
||||
|
||||
#pragma once
|
||||
#ifndef __PL_APPLICATION_H__
|
||||
#define __PL_APPLICATION_H__
|
||||
|
||||
#include "PLCore.h"
|
||||
|
||||
namespace PortabilityLayer
|
||||
{
|
||||
template<size_t TSize>
|
||||
class PascalStrLiteral;
|
||||
}
|
||||
|
||||
namespace PortabilityLayer
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
void MakePStr(unsigned char *dest, size_t sz, const char *src);
|
||||
}
|
||||
}
|
||||
|
||||
void PasStringCopy(const unsigned char *src, unsigned char *dest);
|
||||
|
||||
template<size_t TSize>
|
||||
void PasStringCopy(const PortabilityLayer::PascalStrLiteral<TSize> &src, unsigned char *dest);
|
||||
|
||||
void SysBeep(int duration);
|
||||
|
||||
typedef void (*BeepFunction_t)(int duration);
|
||||
void SetBeepFunction(BeepFunction_t beepFunction);
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
#include "PascalStrLiteral.h"
|
||||
|
||||
template<size_t TSize>
|
||||
inline void PasStringCopy(const PortabilityLayer::PascalStrLiteral<TSize> &src, unsigned char *dest)
|
||||
{
|
||||
PortabilityLayer::Utils::MakePStr(dest, TSize - 1, src.GetStr());
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
#include "PascalStrLiteral.h"
|
||||
|
||||
template<size_t TSize>
|
||||
inline void PasStringCopy(const PortabilityLayer::PascalStrLiteral<TSize> &src, unsigned char *dest)
|
||||
{
|
||||
PortabilityLayer::Utils::MakePStr(dest, TSize - 1, src.GetStr());
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user