[220] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[D-O-H] r396 - trunk/owl

daemon@ATHENA.MIT.EDU (nelhage@MIT.EDU)
Thu Oct 29 18:03:49 2009

Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
Date: Tue, 24 Oct 2006 00:52:14 -0400
To: dirty-owl-hackers@MIT.EDU
From: nelhage@MIT.EDU
Reply-To: dirty-owl-hackers@MIT.EDU

Author: nelhage
Date: 2006-10-24 00:52:14 -0400 (Tue, 24 Oct 2006)
New Revision: 396

Modified:
   trunk/owl/owl.h
   trunk/owl/perlglue.xs
Log:
Including owl.h into perlglue.xs to make it easier to add more perl glue.

Modified: trunk/owl/owl.h
===================================================================
--- trunk/owl/owl.h	2006-10-24 04:44:58 UTC (rev 395)
+++ trunk/owl/owl.h	2006-10-24 04:52:14 UTC (rev 396)
@@ -40,7 +40,13 @@
 #ifndef INC_OWL_H
 #define INC_OWL_H
 
+/* Perl and curses don't play nice. */
+#ifndef OWL_PERL
 #include <curses.h>
+#else
+#define WINDOW void
+#endif
+
 #include <sys/param.h>
 #include <EXTERN.h>
 #include <netdb.h>

Modified: trunk/owl/perlglue.xs
===================================================================
--- trunk/owl/perlglue.xs	2006-10-24 04:44:58 UTC (rev 395)
+++ trunk/owl/perlglue.xs	2006-10-24 04:52:14 UTC (rev 396)
@@ -7,14 +7,9 @@
 #include <perl.h>
 #include <XSUB.h>
 
-/* Yeah, we should just include owl.h, but curses and perl don't play nice. */
-extern char *owl_function_command(char *cmd);
-extern void owl_free(void *x);
-extern SV *owl_perlconfig_curmessage2hashref();
-extern int owl_zwrite_create_and_send_from_line(char *, char *);
-extern char *owl_function_ztext_stylestrip(char *);
-extern void g;
-extern int owl_global_get_cols(void*);
+#define OWL_PERL
+#include "owl.h"
+SV *owl_perlconfig_curmessage2hashref(void);
 
 MODULE = owl		PACKAGE = owl		
 


home help back first fref pref prev next nref lref last post