barnowl_perlaimdebianowlrelease-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change
on this file since 0a0fb74 was
f1e629d,
checked in by Erik Nygren <nygren@mit.edu>, 21 years ago
|
New API for perl message formatting functions.
Legacy variables are still supported for owl::format_msg
and owl::receive_msg, but these functions are now also
passed an owl::Message object which contains methods
for accessing the contents of the message. See perlwrap.pm
(and docs TBD) for the available methods.
*** WARNING: The exact API for owl::Message has
*** not yet stabilized.
Added "style" command for creating new styles.
Usage: style <name> perl <function_name>
Added support for "show styles". Changed global style table
from list to dictionary.
Changed AIM password prompt from "Password:" to "AIM Password:".
Messages are reformatted after a window resize to allow styles
to take into account the width of the window.
When perl throws an error, the message is put in the msgwin
if possible.
Added perl functions for:
owl::getcurmsg() -- returns an owl::Message object for
the active message
in the current view.
owl::getnumcols() -- returns the column width of the window
owl::zephyr_getrealm() -- returns the zephyr realm
owl::zephyr_getsender() -- returns the zephyr sender
Made owl::COMMAND("foo"); be syntactic sugar for
owl::command("COMMAND foo");
*** Is this a good or bad idea?
*** This feature may be taken out before release.
Added perlwrap.pm to contain perl code to be compiled into
the binary. This is transformed into perlwrap.c by
encapsulate.pl.
Renamed readconfig.c to perlconfig.c and changed variables accordingly.
Minor bugfixes in cmd.c and commands.c
|
-
Property mode set to
100644
|
File size:
455 bytes
|
Line | |
---|
1 | #!/usr/bin/perl |
---|
2 | # |
---|
3 | # $Id$ |
---|
4 | # |
---|
5 | |
---|
6 | my $infile = $ARGV[0] or die "Usage: $0 infile structname"; |
---|
7 | my $structname = $ARGV[1] or die "Usage: $0 infile structname";; |
---|
8 | open INF, "<$infile" or die "Unable to open $infile"; |
---|
9 | |
---|
10 | print "/* This file was autogenerated from $infile. DO NOT EDIT !!!! */\n\n"; |
---|
11 | print "char *$structname = \n"; |
---|
12 | for my $x (<INF>) { |
---|
13 | chomp $x; |
---|
14 | $x =~ s/\\/\\\\/g; |
---|
15 | $x =~ s/"/\\"/g; |
---|
16 | print qq( "$x\\n"\n); |
---|
17 | } |
---|
18 | print " ;\n"; |
---|
19 | |
---|
20 | close INF; |
---|
Note: See
TracBrowser
for help on using the repository browser.