Skip to content

Commit

Permalink
No longer mark Win Unicode runtime as experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
nojb committed Apr 1, 2021
1 parent f0a1be6 commit 2706f9f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
6 changes: 0 additions & 6 deletions manual/src/cmds/intf-c.etex
Expand Up @@ -2539,10 +2539,6 @@ use the OCaml run-time system, typically a blocking input/output operation.
This section contains some general guidelines for writing C stubs that use
Windows Unicode APIs.

{\bf Note:} This is an experimental feature of OCaml: the set of APIs below, as
well as their exact semantics are not final and subject to change in future
releases.

The OCaml system under Windows can be configured at build time in one of two
modes:

Expand Down Expand Up @@ -2645,9 +2641,7 @@ of the function to bind:
The rest of the binding is the same for both platforms:

\begin{verbatim}
/* The following define is necessary because the API is experimental */
#define CAML_NAME_SPACE
#define CAML_INTERNALS

#include <caml/mlvalues.h>
#include <caml/misc.h>
Expand Down
16 changes: 10 additions & 6 deletions runtime/caml/osdeps.h
Expand Up @@ -127,6 +127,16 @@ CAMLextern int win_wide_char_to_multi_byte(const wchar_t* s,
char *out,
int outlen);

CAMLextern int caml_win32_isatty(int fd);

CAMLextern void caml_expand_command_line (int *, wchar_t ***);

#endif /* _WIN32 */

#endif /* CAML_INTERNALS */

#ifdef _WIN32

/* [caml_stat_strdup_to_utf16(s)] returns a NULL-terminated copy of [s],
re-encoded in UTF-16. The encoding of [s] is assumed to be UTF-8 if
[caml_windows_unicode_runtime_enabled] is non-zero **and** [s] is valid
Expand All @@ -152,12 +162,6 @@ CAMLextern char* caml_stat_strdup_of_utf16(const wchar_t *s);
*/
CAMLextern value caml_copy_string_of_utf16(const wchar_t *s);

CAMLextern int caml_win32_isatty(int fd);

CAMLextern void caml_expand_command_line (int *, wchar_t ***);

#endif /* _WIN32 */

#endif /* CAML_INTERNALS */

#endif /* CAML_OSDEPS_H */

0 comments on commit 2706f9f

Please sign in to comment.