Changeset f8074e9


Ignore:
Timestamp:
Mar 7, 2010, 10:30:49 PM (10 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
1286893
Parents:
423adcb
git-author:
Anders Kaseorg <andersk@mit.edu> (03/07/10 04:14:06)
git-committer:
Anders Kaseorg <andersk@mit.edu> (03/07/10 22:30:49)
Message:
Use bool from <stdbool.h> instead of an ad-hoc definition in libfaim/aim.h.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Nelson Elhage <nelhage@mit.edu>
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libfaim/aim.h

    rcf02dd6 rf8074e9  
    1717#include <aim_cbtypes.h>
    1818
     19#include <stdbool.h>
    1920#include <stdio.h>
    2021#include <string.h>
     
    7374
    7475#ifndef FALSE
    75 #define FALSE (0)
     76#define FALSE false
    7677#endif
    7778
    7879#ifndef TRUE
    79 #define TRUE (!FALSE)
    80 #endif
    81 
    82 #ifndef bool
    83 #define bool fu8_t
     80#define TRUE true
    8481#endif
    8582
  • owl.h

    rbbd74a9 rf8074e9  
    1010#define INC_OWL_H
    1111
     12#include <stdbool.h>
    1213#ifndef OWL_PERL
    1314#include <curses.h>
     
    3839/* logout is defined in FreeBSD. */
    3940#define logout logout_
    40 /* aim.h defines bool */
    4141#define HAS_BOOL
    4242#include <perl.h>
  • zcrypt.c

    r732cc15 rf8074e9  
    3131
    3232#define MAX_KEY 128
    33 
    34 #ifndef TRUE
    35 #define TRUE -1
    36 #endif
    37 #ifndef FALSE
    38 #define FALSE 0
    39 #endif
    4033
    4134#define ZWRITE_OPT_NOAUTH     (1<<0)
Note: See TracChangeset for help on using the changeset viewer.