You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 5946 Reporter: bvaugon Assigned to:@damiendoligez Status: resolved (set by @damiendoligez on 2014-07-30T12:00:36Z) Resolution: suspended Priority: normal Severity: minor Version: 4.00.1 Target version: 4.02.0+dev Category: otherlibs Tags: patch Monitored by:@gasche
Bug description
Some C primitives of the OCaml otherlibs runtime are declared with "void" as parameters, and take the OCaml value () when they are called. It is not C-valid but works in practice with most C compilers.
I wrote a patch to fix it.
Steps to reproduce
To search these invalid functions, run:
$ grep -RIni CAMLprim otherlibs | grep '(void)'
otherlibs/labltk/support/cltkEvent.c:25:CAMLprim value camltk_tk_mainloop(void)
otherlibs/win32graph/draw.c:62:CAMLprim value caml_gr_current_x(void)
otherlibs/win32graph/draw.c:67:CAMLprim value caml_gr_current_y(void)
otherlibs/win32graph/draw.c:316:CAMLprim value caml_gr_get_mousex(void)
otherlibs/win32graph/draw.c:324:CAMLprim value caml_gr_get_mousey(void)
otherlibs/win32graph/open.c:42:CAMLprim value caml_gr_clear_graph(void);
otherlibs/win32graph/open.c:271:CAMLprim value caml_gr_close_graph(void)
otherlibs/win32graph/open.c:280:CAMLprim value caml_gr_clear_graph(void)
otherlibs/win32graph/open.c:294:CAMLprim value caml_gr_size_x(void)
otherlibs/win32graph/open.c:300:CAMLprim value caml_gr_size_y(void)
otherlibs/win32graph/open.c:315:CAMLprim value caml_gr_synchronize(void)
otherlibs/win32graph/open.c:340:CAMLprim value caml_gr_sigio_handler(void)
Original bug ID: 5946
Reporter: bvaugon
Assigned to: @damiendoligez
Status: resolved (set by @damiendoligez on 2014-07-30T12:00:36Z)
Resolution: suspended
Priority: normal
Severity: minor
Version: 4.00.1
Target version: 4.02.0+dev
Category: otherlibs
Tags: patch
Monitored by: @gasche
Bug description
Some C primitives of the OCaml otherlibs runtime are declared with "void" as parameters, and take the OCaml value () when they are called. It is not C-valid but works in practice with most C compilers.
I wrote a patch to fix it.
Steps to reproduce
To search these invalid functions, run:
$ grep -RIni CAMLprim otherlibs | grep '(void)'
otherlibs/labltk/support/cltkEvent.c:25:CAMLprim value camltk_tk_mainloop(void)
otherlibs/win32graph/draw.c:62:CAMLprim value caml_gr_current_x(void)
otherlibs/win32graph/draw.c:67:CAMLprim value caml_gr_current_y(void)
otherlibs/win32graph/draw.c:316:CAMLprim value caml_gr_get_mousex(void)
otherlibs/win32graph/draw.c:324:CAMLprim value caml_gr_get_mousey(void)
otherlibs/win32graph/open.c:42:CAMLprim value caml_gr_clear_graph(void);
otherlibs/win32graph/open.c:271:CAMLprim value caml_gr_close_graph(void)
otherlibs/win32graph/open.c:280:CAMLprim value caml_gr_clear_graph(void)
otherlibs/win32graph/open.c:294:CAMLprim value caml_gr_size_x(void)
otherlibs/win32graph/open.c:300:CAMLprim value caml_gr_size_y(void)
otherlibs/win32graph/open.c:315:CAMLprim value caml_gr_synchronize(void)
otherlibs/win32graph/open.c:340:CAMLprim value caml_gr_sigio_handler(void)
File attachments
The text was updated successfully, but these errors were encountered: