… | |
… | |
10 | #include "XSUB.h" |
10 | #include "XSUB.h" |
11 | |
11 | |
12 | #include <math.h> |
12 | #include <math.h> |
13 | #include <string.h> |
13 | #include <string.h> |
14 | #include <stdio.h> |
14 | #include <stdio.h> |
|
|
15 | #include <stdlib.h> |
15 | |
16 | |
16 | #include <SDL.h> |
17 | #include <SDL.h> |
17 | #include <SDL_endian.h> |
18 | #include <SDL_endian.h> |
18 | #include <SDL_image.h> |
19 | #include <SDL_image.h> |
19 | #include <SDL_mixer.h> |
20 | #include <SDL_mixer.h> |
… | |
… | |
703 | CODE: |
704 | CODE: |
704 | fprintf (stderr, "FATAL: %s\n", message); |
705 | fprintf (stderr, "FATAL: %s\n", message); |
705 | #ifdef _WIN32 |
706 | #ifdef _WIN32 |
706 | MessageBox (0, message, "Crossfire+ Fatal Error", MB_OK | MB_ICONERROR); |
707 | MessageBox (0, message, "Crossfire+ Fatal Error", MB_OK | MB_ICONERROR); |
707 | #endif |
708 | #endif |
708 | exit (1); |
709 | _Exit (1); |
|
|
710 | |
|
|
711 | void |
|
|
712 | _exit (int retval) |
|
|
713 | CODE: |
|
|
714 | _Exit (retval); |
709 | |
715 | |
710 | MODULE = CFClient PACKAGE = CFClient::Font |
716 | MODULE = CFClient PACKAGE = CFClient::Font |
711 | |
717 | |
712 | CFClient::Font |
718 | CFClient::Font |
713 | new_from_file (SV *class, char *path, int id = 0) |
719 | new_from_file (SV *class, char *path, int id = 0) |
… | |
… | |
1053 | DESTROY (CFClient::Map self) |
1059 | DESTROY (CFClient::Map self) |
1054 | CODE: |
1060 | CODE: |
1055 | { |
1061 | { |
1056 | map_clear (self); |
1062 | map_clear (self); |
1057 | Safefree (self->face); |
1063 | Safefree (self->face); |
|
|
1064 | Safefree (self->tex); |
1058 | Safefree (self); |
1065 | Safefree (self); |
1059 | } |
1066 | } |
1060 | |
1067 | |
1061 | void |
1068 | void |
1062 | clear (CFClient::Map self) |
1069 | clear (CFClient::Map self) |