@@ -112,13 +112,13 @@ procedure SDL_free(mem: Pointer); cdecl;
112
112
*
113
113
* \since This function is available since SDL 2.0.0.
114
114
*)
115
- function SDL_iconv_string (tocode, fromcode, inbuf: PAnsiChar; inbytesleft: csize_t): PAnsiChar; cdecl
115
+ function SDL_iconv_string (Const tocode, fromcode, inbuf: PAnsiChar; inbytesleft: csize_t): PAnsiChar; cdecl;
116
116
external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_iconv_string' { $ENDIF} { $ENDIF} ;
117
117
118
118
// These are macros in the original C headers, we will reimplement them as simple Pascal functions.
119
- function SDL_iconv_utf8_locale (str: PAnsiChar): PAnsiChar; cdecl;
120
- function SDL_iconv_utf8_ucs2 (str: PAnsiChar): pcUint16; cdecl;
121
- function SDL_iconv_utf8_ucs4 (str: PAnsiChar): pcUint32; cdecl;
119
+ function SDL_iconv_utf8_locale (Const str: PAnsiChar): PAnsiChar; cdecl;
120
+ function SDL_iconv_utf8_ucs2 (Const str: PAnsiChar): pcUint16; cdecl;
121
+ function SDL_iconv_utf8_ucs4 (Const str: PAnsiChar): pcUint32; cdecl;
122
122
123
123
(* The SDL implementation of iconv() returns these error codes *)
124
124
const
@@ -131,11 +131,11 @@ type
131
131
TSDL_iconv = record end ;
132
132
PSDL_iconv = ^TSDL_iconv;
133
133
134
- function SDL_iconv_open (tocode, fromcode: PAnsiChar): PSDL_iconv; cdecl;
134
+ function SDL_iconv_open (Const tocode, fromcode: PAnsiChar): PSDL_iconv; cdecl;
135
135
external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_iconv_open' { $ENDIF} { $ENDIF} ;
136
136
137
137
function SDL_iconv_close (cd: PSDL_iconv): cint; cdecl;
138
138
external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_iconv_close' { $ENDIF} { $ENDIF} ;
139
139
140
- function SDL_iconv (cd: PSDL_iconv; inbuf: PPAnsiChar; inbytesleft: pcsize_t; outbuf: PPAnsiChar; outbytesleft: pcsize_t): csize_t; cdecl;
140
+ function SDL_iconv (cd: PSDL_iconv; Const inbuf: PPAnsiChar; inbytesleft: pcsize_t; outbuf: PPAnsiChar; outbytesleft: pcsize_t): csize_t; cdecl;
141
141
external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_iconv' { $ENDIF} { $ENDIF} ;
0 commit comments