diff options
author | Basile Starynkevitch <basile.starynkevitch@inria.fr> | 2004-03-24 15:36:19 +0000 |
---|---|---|
committer | Basile Starynkevitch <basile.starynkevitch@inria.fr> | 2004-03-24 15:36:19 +0000 |
commit | f415853a119047bc864d749619b0c294c30e26ea (patch) | |
tree | e27812d8fd450c8369fe54ef0c63365b37099e21 /otherlibs/win32graph/open.c | |
parent | 14142fff055959fc9b752ac45c0839ffa0a9172d (diff) |
**UNTESTED** changed prefix of primitives to caml_gr_ (PR#1956)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6172 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/win32graph/open.c')
-rw-r--r-- | otherlibs/win32graph/open.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/otherlibs/win32graph/open.c b/otherlibs/win32graph/open.c index b40086231..654f550bf 100644 --- a/otherlibs/win32graph/open.c +++ b/otherlibs/win32graph/open.c @@ -39,7 +39,7 @@ MSG msg; HANDLE EventHandle, EventProcessedHandle; static char *szOcamlWindowClass = "OcamlWindowClass"; static BOOL gr_initialized = 0; -CAMLprim value gr_clear_graph(void); +CAMLprim value caml_gr_clear_graph(void); HANDLE hInst; HFONT CreationFont(char *name) { @@ -186,7 +186,7 @@ static value gr_reset(void) grwindow.CurrentBrush = SelectObject(grwindow.gc,GetStockObject(WHITE_BRUSH)); SelectObject(grwindow.gc,grwindow.CurrentBrush); SelectObject(grwindow.gcBitmap,grwindow.CurrentBrush); - gr_set_color(Val_long(0)); + caml_gr_set_color(Val_long(0)); SelectObject(grwindow.gc,grwindow.CurrentFont); SelectObject(grwindow.gcBitmap,grwindow.CurrentFont); grdisplay_mode = grremember_mode = 1; @@ -291,7 +291,7 @@ static DWORD WINAPI gr_open_graph_internal(value arg) return 0; } -CAMLprim value gr_open_graph(value arg) +CAMLprim value caml_gr_open_graph(value arg) { long tid; if (gr_initialized) return Val_unit; @@ -307,7 +307,7 @@ CAMLprim value gr_open_graph(value arg) return Val_unit; } -CAMLprim value gr_close_graph(void) +CAMLprim value caml_gr_close_graph(void) { if (gr_initialized) { DeleteDC(grwindow.tempDC); @@ -319,7 +319,7 @@ CAMLprim value gr_close_graph(void) return Val_unit; } -CAMLprim value gr_clear_graph(void) +CAMLprim value caml_gr_clear_graph(void) { gr_check_open(); if(grremember_mode) { @@ -333,19 +333,19 @@ CAMLprim value gr_clear_graph(void) return Val_unit; } -CAMLprim value gr_size_x(void) +CAMLprim value caml_gr_size_x(void) { gr_check_open(); return Val_int(grwindow.width); } -CAMLprim value gr_size_y(void) +CAMLprim value caml_gr_size_y(void) { gr_check_open(); return Val_int(grwindow.height); } -CAMLprim value gr_synchronize(void) +CAMLprim value caml_gr_synchronize(void) { gr_check_open(); BitBlt(grwindow.gc,0,0,grwindow.width,grwindow.height, @@ -353,24 +353,24 @@ CAMLprim value gr_synchronize(void) return Val_unit ; } -CAMLprim value gr_display_mode(value flag) +CAMLprim value caml_gr_display_mode(value flag) { grdisplay_mode = (Int_val(flag)) ? 1 : 0; return Val_unit ; } -CAMLprim value gr_remember_mode(value flag) +CAMLprim value caml_gr_remember_mode(value flag) { grremember_mode = (Int_val(flag)) ? 1 : 0; return Val_unit ; } -CAMLprim value gr_sigio_signal(value unit) +CAMLprim value caml_gr_sigio_signal(value unit) { return Val_unit; } -CAMLprim value gr_sigio_handler(void) +CAMLprim value caml_gr_sigio_handler(void) { return Val_unit; } |