Changeset fd8dfe7
- Timestamp:
- Jun 2, 2009, 11:53:14 AM (16 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 8daf504
- Parents:
- ee183be
- git-author:
- Nelson Elhage <nelhage@mit.edu> (06/01/09 22:45:53)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (06/02/09 11:53:14)
- Files:
-
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile.in
rd5ef539 rfd8dfe7 39 39 BASE_OBJS = $(BASE_SRCS:.c=.o) 40 40 41 GEN_C = varstubs.c perlglue.c perlwrap.c41 GEN_C = varstubs.c perlglue.c 42 42 GEN_H = owl_prototypes.h 43 43 GEN_O = $(GEN_C:.c=.o) … … 97 97 perl stubgen.pl > varstubs.c 98 98 99 perlwrap.c: perlwrap.pm encapsulate.pl100 perl encapsulate.pl perlwrap.pm owl_perlwrap_codebuff > perlwrap.c101 102 99 # Only move owl_prototypes.h into place if the new one is different 103 100 owl_prototypes.h: codelist.pl varstubs.c $(BASE_SRCS) -
perl/lib/BarnOwl.pm
ree183be rfd8dfe7 3 3 4 4 package BarnOwl; 5 6 BEGIN { 7 # bootstrap in C bindings and glue 8 *owl:: = \*BarnOwl::; 9 bootstrap BarnOwl 1.2; 10 }; 11 12 use lib(get_data_dir() . "/lib"); 13 use lib(get_config_dir() . "/lib"); 14 15 use BarnOwl::Hook; 16 use BarnOwl::Hooks; 17 use BarnOwl::Message; 18 use BarnOwl::Style; 19 use BarnOwl::Timer; 5 20 6 21 =head1 NAME … … 136 151 137 152 =cut 138 139 140 BEGIN {141 # bootstrap in C bindings and glue142 *owl:: = \*BarnOwl::;143 bootstrap BarnOwl 1.2;144 };145 146 use lib(get_data_dir() . "/lib");147 use lib(get_config_dir() . "/lib");148 153 149 154 # perlconfig.c will set this to the value of the -c command-line -
perl/lib/BarnOwl/Message.pm
ree183be rfd8dfe7 3 3 4 4 package BarnOwl::Message; 5 6 use BarnOwl::Message::Admin; 7 use BarnOwl::Message::AIM; 8 use BarnOwl::Message::Generic; 9 use BarnOwl::Message::Loopback; 10 use BarnOwl::Message::Zephyr; 5 11 6 12 sub new { -
perl/lib/BarnOwl/Style.pm
ree183be rfd8dfe7 3 3 4 4 package BarnOwl::Style; 5 6 use BarnOwl::Style::Basic; 7 use BarnOwl::Style::Default; 8 use BarnOwl::Style::Legacy; 9 use BarnOwl::Style::OneLine; 5 10 6 11 # This takes a zephyr to be displayed and modifies it to be displayed -
perlconfig.c
r96b5c81 rfd8dfe7 9 9 10 10 static const char fileIdent[] = "$Id$"; 11 12 extern char *owl_perlwrap_codebuff;13 11 14 12 extern XS(boot_BarnOwl); … … 304 302 char *err; 305 303 char *args[4] = {"", "-e", "0;", NULL}; 304 AV *inc; 305 char *path; 306 306 307 307 /* create and initialize interpreter */ … … 348 348 } 349 349 350 eval_pv(owl_perlwrap_codebuff, FALSE); 350 /* Add the system lib path to @INC */ 351 inc = get_av("INC", 0); 352 path = owl_sprintf("%s/lib", owl_get_datadir()); 353 av_unshift(inc, 1); 354 av_store(inc, 0, newSVpv(path, 0)); 355 owl_free(path); 356 357 eval_pv("use BarnOwl;", FALSE); 351 358 352 359 if (SvTRUE(ERRSV)) { -
perlglue.xs
r1631825 rfd8dfe7 17 17 ************************************************************* 18 18 * These functions, when they are intended to be user-visible, 19 * are documented in perl wrap.pm. If you add functions to this20 * file, add the appropriate documentation there!19 * are documented in perl/lib/BarnOwl.pm. If you add functions 20 * to this file, add the appropriate documentation there! 21 21 * 22 22 * If the function is simple enough, we simply define its … … 25 25 * simple version here that takes arguments in as flat a 26 26 * manner as possible, to simplify the XS code, put it in 27 * BarnOwl::Intenal::, and write a perl wrapper in perlwrap.pm27 * BarnOwl::Intenal::, and write a perl wrapper in BarnOwl.pm 28 28 * that munges the arguments as appropriate and calls the 29 29 * internal version.
Note: See TracChangeset
for help on using the changeset viewer.