Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dcs_classifier
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
dcs_classifier
Commits
bc7bd4dc
Commit
bc7bd4dc
authored
Aug 15, 2014
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
call dcs_match_init in main to check library version
parent
eefd4ee9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
dcs.c
src/dcs.c
+2
-0
dcs_test.c
src/dcs_test.c
+2
-0
No files found.
src/dcs.c
View file @
bc7bd4dc
...
@@ -40,6 +40,8 @@ main (void) {
...
@@ -40,6 +40,8 @@ main (void) {
int
e
,
t
;
int
e
,
t
;
size_t
linesz
;
size_t
linesz
;
dcs_match_init
();
while
(
getline
(
&
line
,
&
linesz
,
stdin
)
!=
-
1
)
{
while
(
getline
(
&
line
,
&
linesz
,
stdin
)
!=
-
1
)
{
char
*
p
=
line
;
char
*
p
=
line
;
for
(
;
*
p
;
++
p
)
*
p
=
tolower
(
*
p
);
for
(
;
*
p
;
++
p
)
*
p
=
tolower
(
*
p
);
...
...
src/dcs_test.c
View file @
bc7bd4dc
...
@@ -45,6 +45,8 @@ static void fixup_out (FILE *f_remove, FILE *f_reorder, const int i, const int r
...
@@ -45,6 +45,8 @@ static void fixup_out (FILE *f_remove, FILE *f_reorder, const int i, const int r
int
int
main
(
int
argc
,
char
*
argv
[])
{
main
(
int
argc
,
char
*
argv
[])
{
dcs_match_init
();
if
(
argc
>
3
)
{
if
(
argc
>
3
)
{
fprintf
(
stderr
,
"Too many arguments"
);
fprintf
(
stderr
,
"Too many arguments"
);
return
(
-
1
);
return
(
-
1
);
...
...
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