mpw/toolbox/sane.h

22 lines
356 B
C
Raw Normal View History

2013-02-21 04:28:13 +00:00
#ifndef __mpw_sane_h__
#define __mpw_sane_h__
#include <cstdint>
2013-07-08 03:41:28 +00:00
#include <string>
2013-02-21 04:28:13 +00:00
namespace SANE
{
2013-07-08 03:41:28 +00:00
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);
2013-02-25 22:35:01 +00:00
uint32_t decstr68k(uint16_t trap);
2013-02-21 04:28:13 +00:00
uint16_t fp68k(uint16_t trap);
}
#endif