| Anonymous | Login | Signup for a new account | 2013-05-25 10:31 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||
| 0005946 | OCaml | OCaml otherlibs | public | 2013-03-12 18:24 | 2013-03-17 17:15 | ||||||
| Reporter | bvaugon | ||||||||||
| Assigned To | doligez | ||||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||||
| Status | assigned | Resolution | open | ||||||||
| Platform | OS | OS Version | |||||||||
| Product Version | 4.00.1 | ||||||||||
| Target Version | Fixed in Version | ||||||||||
| Summary | 0005946: CAMLprim taking (void) as argument | ||||||||||
| 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) | ||||||||||
| Tags | No tags attached. | ||||||||||
| Attached Files | |||||||||||
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2013-03-12 18:24 | bvaugon | New Issue | |
| 2013-03-12 18:24 | bvaugon | File Added: ocaml-4.00.1-CAMLprim-void.diff | |
| 2013-03-17 17:15 | gasche | Assigned To | => doligez |
| 2013-03-17 17:15 | gasche | Status | new => assigned |
| Copyright © 2000 - 2011 MantisBT Group |