Changeset 124aebc


Ignore:
Timestamp:
Feb 28, 2007, 9:07:22 PM (14 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
8e401cae
Parents:
ef6e2d1
git-author:
Nelson Elhage <nelhage@mit.edu> (02/27/07 23:38:42)
git-committer:
Nelson Elhage <nelhage@mit.edu> (02/28/07 21:07:22)
Message:
Adding owl_obarray for interning strings
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • Makefile.in

    ra4e0ee8 r124aebc  
    2525     keypress.c keymap.c keybinding.c cmd.c context.c zcrypt.c \
    2626     aim.c buddy.c buddylist.c timer.c style.c stylefunc.c errqueue.c \
    27      zbuddylist.c muxevents.c popexec.c
     27     zbuddylist.c muxevents.c popexec.c obarray.c
    2828OWL_SRC = owl.c
    2929TESTER_SRC = tester.c
  • owl.c

    rb6c067a r124aebc  
    342342  owl_function_debugmsg("startup: creating splash message");
    343343  strcpy(startupmsg, "-----------------------------------------------------------------------\n");
    344   sprintf(buff,      "Welcome to Owl version %s.  Press 'h' for on-line help. \n", OWL_VERSION_STRING);
     344  sprintf(buff,      "Welcome to barnowl version %s.  Press 'h' for on-line help. \n", OWL_VERSION_STRING);
    345345  strcat(startupmsg, buff);
    346346  strcat(startupmsg, "                                                                       \n");
  • owl.h

    r30678ae r124aebc  
    511511  int **pairs;
    512512} owl_colorpair_mgr;
     513
     514typedef struct _owl_obarray {
     515  owl_list strings;
     516} owl_obarray;
    513517
    514518typedef struct _owl_global {
  • tester.c

    rcb769bb r124aebc  
    145145int main(int argc, char **argv, char **env)
    146146{
     147  owl_errqueue_init(owl_global_get_errqueue(&g));
     148
    147149  int numfailures=0;
    148150  if (argc==2 && 0==strcmp(argv[1],"reg")) {
     
    151153    numfailures += owl_variable_regtest();
    152154    numfailures += owl_filter_regtest();
     155    numfailures += owl_obarray_regtest();
    153156    if (numfailures) {
    154157      fprintf(stderr, "*** WARNING: %d failures total\n", numfailures);
Note: See TracChangeset for help on using the changeset viewer.