summaryrefslogtreecommitdiffstats
path: root/snc.h
blob: 3cc84d71c7d589db2c4bd57e189b08d971de89fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef SNC_NUMBERS_H
#define SNC_NUMBERS_H

/***
	This file is part of Simple numbers converter.

	Copyright (C) 2021 Aleksandr D. Goncharov (Joursoir) <chat@joursoir.net>

	Simple numbers converter is free software; you can redistribute it
	and/or modify it under the terms of the GNU General Public License
	as published by the Free Software Foundation; either version 2
	of the License, or (at your option) any later version.

	Simple numbers converter is distributed in the hope that it will be
	useful, but WITHOUT ANY WARRANTY; without even the implied warranty
	of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program; if not, see <http://www.gnu.org/licenses/>.
***/

struct stack {
	char ch;
	struct stack *next;
};

enum {
	SNC_ARABIC,
	SNC_ROMAN,
	SNC_ROMAN_I = 1,
	SNC_ROMAN_V = 5,
	SNC_ROMAN_X = 10,
	SNC_ROMAN_L = 50,
	SNC_ROMAN_C = 100,
	SNC_ROMAN_D = 500,
	SNC_ROMAN_M = 1000,
	SNC_ROMAN_MAX_NUMBER = 3999,
	SNC_ROMAN_MAXLEN = 15 // MMMDCCCLXXXVIII
};

#endif /* SNC_NUMBERS_H */