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 1009 by michael, Sun Sep 13 15:02:30 2009 UTC

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

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

Diff Legend

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