ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/irc_string.h
(Generate patch)

Comparing:
ircd-hybrid/include/irc_string.h (file contents), Revision 32 by knight, Sun Oct 2 20:41:23 2005 UTC vs.
ircd-hybrid-7.2/include/irc_string.h (file contents), Revision 978 by michael, Sun Aug 9 09:47:58 2009 UTC

# Line 25 | Line 25
25   #ifndef INCLUDED_irc_string_h
26   #define INCLUDED_irc_string_h
27  
28 < #include "setup.h"
28 > #include "config.h"
29   #include "pcre.h"
30  
31   extern int ircd_pcre_exec(const pcre *, const char *);
32   extern pcre *ircd_pcre_compile(const char *, const char **);
33 extern char *xstrldup(const char *, size_t);
33  
34   /*
35   * match - compare name with mask, mask may contain * and ? as wildcards
# Line 38 | Line 37 | extern char *xstrldup(const char *, size
37   *
38   * match_esc - compare with support for escaping chars
39   * match_chan - like match_esc with first character auto-escaped
41 * match_cidr - compares u!h@addr with u!h@addr/cidr
40   */
41   extern int match(const char *, const char *);
42   extern int match_esc(const char *, const char *);
43   extern int match_chan(const char *, const char *);
46 extern int match_cidr(const char *, const char *);
44  
45   /*
46   * collapse - collapse a string in place, converts multiple adjacent *'s
# Line 97 | Line 94 | extern int snprintf(char *, size_t, cons
94   extern int vsnprintf(char *, size_t, const char *, va_list);
95   #endif
96  
97 < #ifndef HAVE_BASENAME
101 < extern char *basename(char *);
102 < #endif
97 > extern const char *libio_basename(const char *);
98  
99   /*
100   * clean_string - cleanup control and high ascii characters
# Line 132 | Line 127 | extern const unsigned char ToUpperTab[];
127  
128   extern const unsigned int CharAttrs[];
129  
130 < #define PRINT_C   0x001
131 < #define CNTRL_C   0x002
132 < #define ALPHA_C   0x004
133 < #define PUNCT_C   0x008
134 < #define DIGIT_C   0x010
135 < #define SPACE_C   0x020
136 < #define NICK_C    0x040
137 < #define CHAN_C    0x080
138 < #define KWILD_C   0x100
139 < #define CHANPFX_C 0x200
140 < #define USER_C    0x400
141 < #define HOST_C    0x800
142 < #define NONEOS_C 0x1000
143 < #define SERV_C   0x2000
144 < #define EOL_C    0x4000
145 < #define MWILD_C  0x8000
130 > #define PRINT_C   0x00001
131 > #define CNTRL_C   0x00002
132 > #define ALPHA_C   0x00004
133 > #define PUNCT_C   0x00008
134 > #define DIGIT_C   0x00010
135 > #define SPACE_C   0x00020
136 > #define NICK_C    0x00040
137 > #define CHAN_C    0x00080
138 > #define KWILD_C   0x00100
139 > #define CHANPFX_C 0x00200
140 > #define USER_C    0x00400
141 > #define HOST_C    0x00800
142 > #define NONEOS_C  0x01000
143 > #define SERV_C    0x02000
144 > #define EOL_C     0x04000
145 > #define MWILD_C   0x08000
146 > #define VCHAN_C   0x10000
147  
148 + #define IsVisibleChanChar(c)   (CharAttrs[(unsigned char)(c)] & VCHAN_C)
149   #define IsHostChar(c)   (CharAttrs[(unsigned char)(c)] & HOST_C)
150   #define IsUserChar(c)   (CharAttrs[(unsigned char)(c)] & USER_C)
151   #define IsChanPrefix(c) (CharAttrs[(unsigned char)(c)] & CHANPFX_C)

Comparing:
ircd-hybrid/include/irc_string.h (property svn:keywords), Revision 32 by knight, Sun Oct 2 20:41:23 2005 UTC vs.
ircd-hybrid-7.2/include/irc_string.h (property svn:keywords), Revision 978 by michael, Sun Aug 9 09:47:58 2009 UTC

# Line 1 | Line 1
1 < Revision
1 > Id Revision

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)