chiark / gitweb /
Initial revision
[ssr] / StraySrc / Libraries / Sapphire / def / csapph
1 ;
2 ; cdll definition file for Sapphire C support section
3 ;
4
5 name "Sapphire.CSapph"
6   version 1.00
7   author "© %ce%yr Straylight (%zdy %mo %ce%yr)"
8   nonAPCS
9
10 ;----- Exported symbols -----------------------------------------------------
11
12 exports {                       ; Next = 60
13
14   __csapph_stub                 = 0
15
16   ; --- Run-time support ---
17
18   __rt_udiv10                   = 1
19   __rt_sdiv10                   = 2
20   __rt_udiv                     = 3
21   __rt_sdiv                     = 4
22   __rt_divtest                  = 5
23
24   ; --- Sapphire/C veneer ---
25
26   __sapph_veneer                = 6
27   call                          = 7
28   swi                           = 8
29   _call                         = 9
30   _callx                        = 10
31   _swi                          = 11
32   _swix                         = 12
33
34   ; --- Specific Sapphire routine veneers ---
35
36   __sapph_scratchpad            = 13
37   strsubst                      = 14
38   strcmp                        = 15
39   stricmp                       = 16
40   strbuffer                     = 17
41   strerror                      = 18
42   __sapph_msgs_lookup           = 19
43   __sapph_msgs_error            = 20
44   malloc                        = 21
45   __sapph_free                  = 22
46   __sapph_alloc_error           = 23
47   __sapph_flex_alloc            = 24
48   __sapph_flex_free             = 25
49   __sapph_flex_size             = 26
50   __sapph_flex_extend           = 27
51   __sapph_flex_midExtend        = 28
52   __sapph_flex_save             = 29
53   __sapph_flex_load             = 30
54
55   ; --- Maths routines from the C library ---
56
57   sin                           = 31
58   cos                           = 32
59   atan                          = 33
60   tan                           = 34
61   asin                          = 35
62   acos                          = 36
63   atan2                         = 37
64   exp                           = 38
65   log                           = 39
66   log10                         = 40
67   __sapph_sqrt                  = 41
68   pow                           = 42
69   fabs                          = 43
70   fmod                          = 44
71   ceil                          = 45
72   floor                         = 46
73   modf                          = 47
74   sinh                          = 48
75   cosh                          = 49
76   tanh                          = 50
77   frexp                         = 51
78   ldexp                         = 52
79   cmath_errno                   = 53
80
81   ; --- ctype routines from the C library ---
82
83   ctype_init                    = 54
84   ctype_findTable               = 55
85   toupper                       = 56
86   tolower                       = 57
87
88   ; --- setjmp and longjmp ---
89
90   setjmp                        = 58
91   longjmp                       = 59
92 }
93
94 ;----- Object files ---------------------------------------------------------
95
96 objects {
97   lib.sapphire
98   dl.csapph
99 }