~ubuntu-branches/ubuntu/maverick/irssi/maverick

« back to all changes in this revision

Viewing changes to src/common.h

  • Committer: Bazaar Package Importer
  • Author(s): Andres Rodriguez
  • Date: 2009-05-05 15:50:50 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090505155050-aoqlnpes7che9rtd
Tags: 0.8.13-1ubuntu1
* Merge from debian unstable (LP: #372411), remaining changes:
  - debian/patches: 03firsttimer_text
    + Adapt it so it tells you about connecting to irc.ubuntu.com and
      joining #ubuntu instead of irc.debian.org and #debian.
  - debian/patches: 90irc-ubuntu-com
* Fixed debian/patches/90irc-ubuntu-com for new irssi.conf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef __COMMON_H
2
2
#define __COMMON_H
3
3
 
4
 
#define IRSSI_WEBSITE "http://irssi.org/"
5
 
#define IRSSI_AUTHOR_EMAIL "cras@irssi.org"
6
 
#define IRSSI_AUTHOR "Timo Sirainen <"IRSSI_AUTHOR_EMAIL">"
7
 
 
8
4
#define IRSSI_DIR_FULL "%s/.irssi" /* %s == g_get_home_dir() */
9
5
 
10
6
#define IRSSI_GLOBAL_CONFIG "irssi.conf" /* config file name in /etc/ */
13
9
#define DEFAULT_SERVER_ADD_PORT 6667
14
10
 
15
11
#ifdef HAVE_CONFIG_H
16
 
#include "config.h"
 
12
#include "irssi-config.h"
17
13
#endif
18
14
 
19
15
#include <stdio.h>
20
16
#include <stddef.h>
21
17
#include <stdarg.h>
22
18
#include <ctype.h>
23
 
#  ifdef HAVE_STRING_H
24
19
#include <string.h>
25
 
#endif
26
 
#ifdef HAVE_STDLIB_H
27
 
#  include <stdlib.h>
28
 
#endif
 
20
#include <stdlib.h>
29
21
#include <errno.h>
30
22
#include <time.h>
31
23
 
51
43
#  include <gmodule.h>
52
44
#endif
53
45
 
 
46
#if !GLIB_CHECK_VERSION(2,10,0)
 
47
#define g_slice_alloc(size)      g_malloc(size)
 
48
#define g_slice_alloc0(size)     g_malloc0(size)
 
49
#define g_slice_free1(size, mem) g_free(mem)
 
50
#define g_slice_new(type)        g_new(type, 1)
 
51
#define g_slice_new0(type)       g_new0(type, 1)
 
52
#define g_slice_free(type, mem)  g_free(mem)
 
53
#endif
 
54
 
54
55
#ifdef USE_GC
55
56
#  define g_free(x) G_STMT_START { (x) = NULL; } G_STMT_END
56
57
#endif
109
110
#define i_isxdigit(x) isxdigit((int) (unsigned char) (x))
110
111
 
111
112
typedef struct _IPADDR IPADDR;
112
 
typedef struct _CONFIG_REC CONFIG_REC;
113
 
typedef struct _CONFIG_NODE CONFIG_NODE;
114
113
 
115
114
typedef struct _LINEBUF_REC LINEBUF_REC;
116
115
typedef struct _NET_SENDBUF_REC NET_SENDBUF_REC;