Changeset f6b319c for perlglue.xs


Ignore:
Timestamp:
Apr 29, 2007, 6:27:30 PM (17 years ago)
Author:
Sam Hartman <hartmans@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
d791cdb
Parents:
03cf6b9
Message:
Implement hackish support for the wordwrap filter in the perl styles.
Note that while I think the user-visible parts of this are reasonably
OK the implementation needs cleanup.


* perlconfig.c: Add should_wordwrap attribute to message hashes.  This
   is a hack; a better solution is to expose an arbitrary interface for
   doing filter matches from perl.  That proved to be more than I had
   time for.
* perlglue.xs: expose owl_text_wordwrap
* perlwrap.pm: use in the default style
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perlglue.xs

    rc2c5c77 rf6b319c  
    315315                }
    316316        }
     317
     318char *
     319wordwrap(in, cols)
     320        char *in
     321        int cols
     322        PREINIT:
     323                char *rv = NULL;
     324        CODE:
     325rv = owl_text_wordwrap(in, cols);
     326                RETVAL = rv;   
     327        OUTPUT:
     328                RETVAL
     329        CLEANUP:
     330                if (rv) owl_free(rv);
Note: See TracChangeset for help on using the changeset viewer.