source: @ cb54527

Last change on this file since cb54527 was f1e629d, checked in by Erik Nygren <>, 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 (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 to contain perl code to be compiled into the binary. This is transformed into perlwrap.c by 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
3# $Id$
6my $infile = $ARGV[0] or die "Usage: $0 infile structname";
7my $structname = $ARGV[1] or die "Usage: $0 infile structname";;
8open INF, "<$infile" or die "Unable to open $infile";
10print "/* This file was autogenerated from $infile.  DO NOT EDIT !!!! */\n\n";
11print "char *$structname = \n";
12for my $x (<INF>) {
13    chomp $x;
14    $x =~ s/\\/\\\\/g;
15    $x =~ s/"/\\"/g;
16    print qq(   "$x\\n"\n);
18print "   ;\n";
20close INF;
Note: See TracBrowser for help on using the repository browser.