Changeset be0a79f for owl.c


Ignore:
Timestamp:
Jun 21, 2003, 1:54:20 PM (21 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
0c502e9
Parents:
5639bf2
Message:
Started work making owl build without zephyr.  Long way left to go though.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    rc3ab155 rbe0a79f  
    4141  struct tm *today;
    4242  char *dir;
     43  ZNotice_t notice;
    4344
    4445  argcsave=argc;
     
    8990  }
    9091
     92#ifdef HAVE_LIBZEPHYR
    9193  /* zephyr init */
    92   if ((ret = ZInitialize()) != ZERR_NONE) {
    93     com_err("owl",ret,"while initializing");
     94  ret=owl_zephyr_initialize();
     95  if (ret) {
    9496    exit(1);
    9597  }
    96   if ((ret = ZOpenPort(NULL)) != ZERR_NONE) {
    97     com_err("owl",ret,"while opening port");
    98     exit(1);
    99   }
    100 
     98#endif
     99 
    101100  /* signal handler */
    102101  sigact.sa_handler=sig_handler;
     
    336335    newmsgs=0;
    337336    zpendcount=0;
    338     while(ZPending() || owl_global_messagequeue_pending(&g)) {
    339       ZNotice_t notice;
     337    while(owl_zephyr_zpending() || owl_global_messagequeue_pending(&g)) {
    340338      struct sockaddr_in from;
    341339      owl_message *m;
     
    343341     
    344342      /* grab the new message, stick it in 'm' */
    345       if (ZPending()) {
     343      if (owl_zephyr_zpending()) {
    346344        /* grab a zephyr notice, but if we've done 20 without stopping,
    347345           take a break to process keystrokes etc. */
Note: See TracChangeset for help on using the changeset viewer.