Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
a9597698
Commit
a9597698
authored
Jan 07, 2009
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnsapi: Reorder a couple of functions to avoid forward declarations.
parent
dfefbd12
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
40 deletions
+35
-40
ns_name.c
dlls/dnsapi/ns_name.c
+35
-40
No files found.
dlls/dnsapi/ns_name.c
View file @
a9597698
...
...
@@ -39,10 +39,42 @@
static
const
char
digits
[]
=
"0123456789"
;
/* Forward. */
/* Private. */
/*
* special(ch)
* Thinking in noninternationalized USASCII (per the DNS spec),
* is this character special ("in need of quoting") ?
* return:
* boolean.
*/
static
int
special
(
int
ch
)
{
switch
(
ch
)
{
case
0x22
:
/* '"' */
case
0x2E
:
/* '.' */
case
0x3B
:
/* ';' */
case
0x5C
:
/* '\\' */
/* Special modifiers in zone files. */
case
0x40
:
/* '@' */
case
0x24
:
/* '$' */
return
(
1
);
default:
return
(
0
);
}
}
static
int
special
(
int
);
static
int
printable
(
int
);
/*
* printable(ch)
* Thinking in noninternationalized USASCII (per the DNS spec),
* is this character visible and not a space when printed ?
* return:
* boolean.
*/
static
int
printable
(
int
ch
)
{
return
(
ch
>
0x20
&&
ch
<
0x7f
);
}
/* Public. */
...
...
@@ -278,41 +310,4 @@ dns_ns_name_skip(const u_char **ptrptr, const u_char *eom) {
return
(
0
);
}
/* Private. */
/*
* special(ch)
* Thinking in noninternationalized USASCII (per the DNS spec),
* is this character special ("in need of quoting") ?
* return:
* boolean.
*/
static
int
special
(
int
ch
)
{
switch
(
ch
)
{
case
0x22
:
/* '"' */
case
0x2E
:
/* '.' */
case
0x3B
:
/* ';' */
case
0x5C
:
/* '\\' */
/* Special modifiers in zone files. */
case
0x40
:
/* '@' */
case
0x24
:
/* '$' */
return
(
1
);
default:
return
(
0
);
}
}
/*
* printable(ch)
* Thinking in noninternationalized USASCII (per the DNS spec),
* is this character visible and not a space when printed ?
* return:
* boolean.
*/
static
int
printable
(
int
ch
)
{
return
(
ch
>
0x20
&&
ch
<
0x7f
);
}
#endif
/* HAVE_RESOLV */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment