mirror of
https://github.com/ksherlock/mpw.git
synced 2024-11-22 00:32:44 +00:00
22 lines
356 B
C++
22 lines
356 B
C++
#ifndef __mpw_sane_h__
|
|
#define __mpw_sane_h__
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
|
|
namespace SANE
|
|
{
|
|
struct decimal {
|
|
decimal() : sgn(0), exp(0) {}
|
|
int sgn;
|
|
int exp;
|
|
std::string sig;
|
|
};
|
|
|
|
void str2dec(const std::string &s, uint16_t &index, decimal &d, uint16_t &vp);
|
|
|
|
uint32_t decstr68k(uint16_t trap);
|
|
uint16_t fp68k(uint16_t trap);
|
|
}
|
|
#endif
|