Changeset f271129


Ignore:
Timestamp:
Jul 24, 2011, 9:01:57 PM (6 years ago)
Author:
Jason Gross <jgross@mit.edu>
Branches:
master, release-1.9
Children:
42247d8, b9517cf, 8c3cae0
Parents:
30428a9
git-author:
Jason Gross <jgross@mit.edu> (07/24/11 20:57:40)
git-committer:
Jason Gross <jgross@mit.edu> (07/24/11 21:01:57)
Message:
Fix up headers

The additions to owl.h and some of the removals were done by
Alejandro Sedeño <asedeno@mit.edu> in commit
77a0258b3919468fc9d7f7602588ac427ab36e6c.

Notes:

* I think owl.c lost the need for sys/time.h when we punted select() in
  favor of glib's main loop.
* We don't actually need to include things like stdarg.h, stdio.h,
  glib/gstdio.h, glib-object.h.  I think they get indirectly included
  via owl.h and/or glib.h.  They're left in (or added in to) the files
  that use functions/types from them.
* I'm not entirely sure what sys/socket.h is doing in message.c.  It
  is there from the initial commit.  I suspect it might have had
  something to do with the call to getnameinfo.  message.c compiles
  without it, but
  http://pubs.opengroup.org/onlinepubs/009695399/functions/getnameinfo.html
  suggests that we're supposed to include it?  *shrugs*  I'm leaving it
  in, for now.  (Rather, I'll leave one copy of the #include in.)
Files:
34 edited

Legend:

Unmodified
Added
Removed
  • aim.c

    r3234121 rf271129  
    1 #include <stdio.h>
    2 #include <stdio.h>
    3 #include <sys/stat.h>
    41#include "owl.h"
    52
  • cmd.c

    r14be3a5 rf271129  
    1 #include <stdio.h>
    2 #include <stdlib.h>
    3 #include <string.h>
    4 #include <unistd.h>
    51#include "owl.h"
    62
  • commands.c

    r287c634 rf271129  
     1#include "owl.h"
    12#include <getopt.h>
    2 #include <stdio.h>
    3 #include <stdlib.h>
    4 #include <string.h>
    5 #include <unistd.h>
    6 #include "owl.h"
    73
    84/* fn is "char *foo(int argc, const char *const *argv, const char *buff)" */
  • context.c

    r6829afc rf271129  
    1 #include <string.h>
    21#include "owl.h"
    32
  • dict.c

    rce68f23 rf271129  
    66 */
    77
    8 #include <stdlib.h>
    9 #include <string.h>
    10 #include <unistd.h>
    118#include "owl.h"
    12 
    139
    1410#define INITSIZE 30
  • editcontext.c

    r6829afc rf271129  
    11#include "owl.h"
    2 
    32#include <assert.h>
    43
  • editwin.c

    rf661cee rf271129  
    11#include "owl.h"
    2 #include <stdlib.h>
    3 #include <unistd.h>
    4 #include <string.h>
    5 #include <ctype.h>
    62
    73#define VALID_EXCURSION (0x9a2b4729)
  • filter.c

    r2560529 rf271129  
    1 #include <string.h>
    21#include "owl.h"
    32
  • filterproc.c

    re2cc848 rf271129  
    1 #include <signal.h>
    2 #include <unistd.h>
    3 #include <sys/select.h>
    4 #include <sys/types.h>
     1#include "owl.h"
    52#include <sys/wait.h>
    63#include <poll.h>
    7 #include <fcntl.h>
    8 #include <string.h>
    9 
    10 #include <glib.h>
    114
    125int send_receive(int rfd, int wfd, const char *out, char **in)
  • fmtext.c

    r7abfcf2 rf271129  
    11#include "owl.h"
    2 #include <stdlib.h>
    3 #include <string.h>
    42
    53/* initialize an fmtext with no data */
  • functions.c

    r30428a9 rf271129  
     1#include "owl.h"
     2#include "filterproc.h"
    13#include <stdio.h>
    2 #include <stdlib.h>
    3 #include <unistd.h>
    4 #include <signal.h>
    5 #include <netinet/in.h>
    6 #include <string.h>
    7 #include <time.h>
    8 #include <sys/types.h>
    94#include <sys/stat.h>
    105#include <sys/wait.h>
    11 #include <errno.h>
    12 #include <signal.h>
    13 #include "owl.h"
    14 #include "filterproc.h"
    156
    167CALLER_OWN char *owl_function_command(const char *cmdbuff)
  • global.c

    rdde1b4d rf271129  
     1#include "owl.h"
    12#include <stdio.h>
    2 #include <unistd.h>
    3 #include <stdlib.h>
    4 #include <string.h>
    5 #include <netdb.h>
    6 #include <termios.h>
    73#include <sys/ioctl.h>
    8 #include <time.h>
    9 #include "owl.h"
    104
    115static void _owl_global_init_windows(owl_global *g);
  • help.c

    r820e852 rf271129  
    11#include "owl.h"
    2 #include <string.h>
    32
    43void owl_help(void)
  • keybinding.c

    r6829afc rf271129  
    1 #include <ctype.h>
    2 #include <string.h>
    31#include "owl.h"
    42
  • keymap.c

    rce68f23 rf271129  
    1 #include <string.h>
    21#include "owl.h"
    32
  • keypress.c

    r2560529 rf271129  
    1 #include <ctype.h>
    2 #include <string.h>
    31#include "owl.h"
    42
  • logging.c

    rdde1b4d rf271129  
    11#include "owl.h"
    2 #include <stdlib.h>
    3 #include <string.h>
    4 #include <ctype.h>
    5 #include <sys/param.h>
     2#include <stdio.h>
    63
    74typedef struct _owl_log_entry { /* noproto */
  • message.c

    r4ebbfbc rf271129  
    1 #include <stdlib.h>
    2 #include <unistd.h>
    3 #include <string.h>
    4 #include <sys/socket.h>
    5 #include <netdb.h>
    6 #include <sys/types.h>
    7 #include <sys/socket.h>
    8 #include <netinet/in.h>
    9 #include <arpa/inet.h>
    10 #include <time.h>
    111#include "owl.h"
    122#include "filterproc.h"
     3#include <sys/socket.h>
     4#include <arpa/inet.h>
    135
    146static owl_fmtext_cache fmtext_cache[OWL_FMTEXT_CACHE_SIZE];
  • messagelist.c

    refeec7f rf271129  
    11#include "owl.h"
    2 #include <stdlib.h>
    3 #include <string.h>
    42
    53void owl_messagelist_create(owl_messagelist *ml)
  • owl.c

    ra7fac14 rf271129  
    77 */
    88
     9#include "owl.h"
    910#include <stdio.h>
    10 #include <unistd.h>
    1111#include <getopt.h>
    12 #include <stdlib.h>
    13 #include <string.h>
    14 #include <signal.h>
    15 #include <time.h>
    16 #include <sys/param.h>
    17 #include <sys/types.h>
    18 #include <sys/time.h>
    19 #include <termios.h>
    2012#include <sys/stat.h>
    2113#include <locale.h>
    22 #include "owl.h"
    23 
    2414
    2515#if OWL_STDERR_REDIR
  • owl.h

    rcbc8657 rf271129  
    2222#endif
    2323#include <sys/param.h>
     24#include <sys/types.h>
     25#include <ctype.h>
     26#include <errno.h>
    2427#include <EXTERN.h>
     28#include <fcntl.h>
    2529#include <netdb.h>
    2630#include <regex.h>
    2731#include <time.h>
    2832#include <signal.h>
     33#include <stdlib.h>
     34#include <string.h>
    2935#include <termios.h>
     36#include <unistd.h>
    3037#include "libfaim/aim.h"
    3138#include <wchar.h>
    32 #include "glib.h"
     39#include <glib.h>
    3340#ifdef HAVE_LIBZEPHYR
    3441#include <zephyr/zephyr.h>
  • owl_perl.h

    rb8a3e00 rf271129  
    11#ifndef INC_BARNOWL_OWL_PERL_H
    22#define INC_BARNOWL_OWL_PERL_H
     3
     4#include <stdio.h>
    35
    46#define OWL_PERL_VOID_CALL (void)POPs;
  • perlconfig.c

    rdde1b4d rf271129  
    1 #include <stdio.h>
    2 #include <stdlib.h>
    3 #include <string.h>
    4 #include <sys/types.h>
    5 #include <sys/stat.h>
    6 #include <errno.h>
    71#define OWL_PERL
    82#include "owl.h"
     3#include <stdio.h>
    94
    105extern XS(boot_BarnOwl);
  • perlglue.xs

    ra130fc5 rf271129  
    11/* -*- mode: c; indent-tabs-mode: t; c-basic-offset: 8 -*- */
    2 #ifdef HAVE_LIBZEPHYR
    3 #include <zephyr/zephyr.h>
    4 #endif
    5 #include <EXTERN.h>
    6 
    72#define OWL_PERL
    83#include "owl.h"
  • regex.c

    rcbc8657 rf271129  
    1 #include <string.h>
    21#include "owl.h"
    32
  • tester.c

    r67e5ba36 rf271129  
    44#undef WINDOW
    55
    6 #include <unistd.h>
    76#include <stdio.h>
    8 #include <stdlib.h>
    9 #include <string.h>
    107
    118#undef instr
  • text.c

    r14be3a5 rf271129  
    1 #include <stdio.h>
    2 #include <string.h>
    3 #include <stdlib.h>
    4 #include <ctype.h>
    51#include "owl.h"
    62
  • util.c

    r4ebbfbc rf271129  
    11#include "owl.h"
    2 #include <stdlib.h>
    3 #include <string.h>
    4 #include <unistd.h>
    5 #include <ctype.h>
    62#include <pwd.h>
    73#include <sys/stat.h>
    8 #include <sys/types.h>
    9 #include <assert.h>
    104#include <stdarg.h>
    11 #include <glib.h>
    125#include <glib/gstdio.h>
    136#include <glib-object.h>
  • variable.c

    r40de739 rf271129  
     1#include "owl.h"
    12#include <stdio.h>
    2 #include <stdlib.h>
    3 #include <string.h>
    4 #include <unistd.h>
    5 #include <ctype.h>
    6 #include "owl.h"
    73
    84#define OWLVAR_BOOL(name,default,summary,description) \
  • view.c

    rfc8a87a rf271129  
    1 #include <stdlib.h>
    21#include "owl.h"
    32
  • viewwin.c

    r6829afc rf271129  
    1 #include <string.h>
    21#include "owl.h"
    32
  • window.c

    r6829afc rf271129  
    11#include "owl.h"
    2 
    3 #include <assert.h>
    42
    53struct _owl_window { /*noproto*/
  • zephyr.c

    rc855755 rf271129  
    1 #include <stdlib.h>
    2 #include <unistd.h>
    3 #include <sys/types.h>
    4 #include <sys/wait.h>
     1#include "owl.h"
     2#include <stdio.h>
    53#include <sys/stat.h>
    6 #include <string.h>
    7 #include "owl.h"
    84
    95#ifdef HAVE_LIBZEPHYR
  • zwrite.c

    r3cdd6d2 rf271129  
    1 #include <string.h>
    2 #include <pwd.h>
    3 #include <sys/types.h>
    4 #include <unistd.h>
    51#include "owl.h"
    62
Note: See TracChangeset for help on using the changeset viewer.