# Interface to Perl from OCaml.
# Copyright (C) 2003 Merjis Ltd.
-# $Id: Makefile,v 1.20 2004-02-13 10:37:16 rich Exp $
+# $Id: Makefile,v 1.21 2004-11-03 14:15:16 rich Exp $
include Makefile.config
# XXX Hack required by ocamlopt, and sometimes ocamlc.
# To work out what this should be, try:
# `perl -MExtUtils::Embed -e ldopts'
-DYNALOADER_HACK := /usr/lib/perl/5.8.2/auto/DynaLoader/DynaLoader.a
+DYNALOADER_HACK := /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a
OCAMLDOCFLAGS := -html -stars -sort $(OCAMLCINCS)
# perl4caml configuration -*- Makefile -*-
-# $Id: Makefile.config,v 1.15 2004-03-25 13:45:43 rich Exp $
+# $Id: Makefile.config,v 1.16 2004-11-03 14:15:18 rich Exp $
# PERLINCDIR
# Directory containing the Perl include files, eg. <EXTERN.h>.
# PACKAGE and VERSION
PACKAGE := perl4caml
-VERSION := 0.3.10
+VERSION := 0.3.11
/* Interface to Perl from OCaml.
* Copyright (C) 2003 Merjis Ltd.
- * $Id: perl_c.c,v 1.15 2004-03-03 12:39:20 rich Exp $
+ * $Id: perl_c.c,v 1.16 2004-11-03 14:15:18 rich Exp $
*/
#include <stdio.h>
CAMLlocal1 (rsvv);
SV *sv = Sv_val (svv);
- if (SvROK (sv))
+ if (!SvROK (sv))
invalid_argument ("deref: SV is not a reference");
switch (SvTYPE (SvRV (sv))) {
case SVt_IV:
CAMLlocal1 (ravv);
SV *sv = Sv_val (svv);
- if (SvROK (sv))
+ if (!SvROK (sv))
invalid_argument ("deref_array: SV is not a reference");
switch (SvTYPE (SvRV (sv))) {
case SVt_PVAV:
CAMLlocal1 (rhvv);
SV *sv = Sv_val (svv);
- if (SvROK (sv))
+ if (!SvROK (sv))
invalid_argument ("deref_hash: SV is not a reference");
switch (SvTYPE (SvRV (sv))) {
case SVt_PVHV: