[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#281516: marked as done (ocaml-doc: Mistake in an example)



Your message dated Sun, 7 Jan 2007 18:23:20 +0100
with message-id <20070107172318.GA3900@oglaroon.de>
and subject line ocaml-doc: Mistake in an example
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: ocaml-doc
Severity: normal

The *complete* example 18.6 in the Objective Caml Manual doesn't work.
Here are the problems:

The file curses.c is called curses.o (in the third paragraph of the
example).

In curses.c:
- '#include <mlvalues.h>' should be #include '<caml/mlvalues.h>'
- '#include <caml/memory.h>' is missing
- 'curses_mvwaddstr', 'curses_refresh', 'curses_endwin' need to be defined

In test.c:
- ';;' is missing after 'open Curses'

Thanks in advance for the corrections.

Prakash

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8
Locale: LANG=fr_FR, LC_CTYPE=fr_FR


--- End Message ---
--- Begin Message ---
* Prakash Countcham <prakash.countcham@imag.fr> wrote:
> The *complete* example 18.6 in the Objective Caml Manual doesn't work.
> Here are the problems:
> 
> The file curses.c is called curses.o (in the third paragraph of the
> example).
> 
> In curses.c:
> - '#include <mlvalues.h>' should be #include '<caml/mlvalues.h>'
> - '#include <caml/memory.h>' is missing
> - 'curses_mvwaddstr', 'curses_refresh', 'curses_endwin' need to be defined

It seems that this has all been fixed.

> In test.c:
> - ';;' is missing after 'open Curses'

No, that's not obligatory.

Regards,
Georg
-- 
Tomorrow will be cancelled due to lack of interest.

--- End Message ---

Reply to: