Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
6e6655bb
Commit
6e6655bb
authored
Jan 12, 1992
by
Per Cederqvist
Browse files
The function prot_a_get_token is now static, not extern.
parent
1cb7c21d
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/server/ChangeLog
View file @
6e6655bb
Sun Jan 12 02:30:34 1992 Per Cederqvist (ceder at lysator)
* prot_a_get_token (prot-a-parse.[ch]): Then function is now static.
Sun Jan 5 19:10:20 1992 Per Cederqvist (ceder at lysator)
* main (dbck.c): Tell the user why no compression was done if he
...
...
src/server/prot-a-parse.c
View file @
6e6655bb
/*
* $Id: prot-a-parse.c,v 0.
9
1991/12
/17 22:20:57
ceder Exp $
* $Id: prot-a-parse.c,v 0.
10
199
2/0
1/12
01:32:34
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -28,7 +28,7 @@
* BUG: Not all functions are used, I think. /ceder
*/
static
char
*
rcsid
=
"$Id: prot-a-parse.c,v 0.
9
1991/12
/17 22:20:57
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: prot-a-parse.c,v 0.
10
199
2/0
1/12
01:32:34
ceder Exp $"
;
#include
<setjmp.h>
...
...
@@ -47,6 +47,36 @@ static char *rcsid = "$Id: prot-a-parse.c,v 0.9 1991/12/17 22:20:57 ceder Exp $"
#include
"config.h"
#include
"log.h"
/*
* Return next token from the input stream. Note that the String returned
* by this call points into data that might be freed by the next call to
* get_token or any function which reads from the stream.
*/
static
String
prot_a_get_token
(
Connection
*
client
)
{
String
result
;
String_size
old_first
;
old_first
=
client
->
first_to_parse
;
result
=
s_strtok
(
client
->
unparsed
,
&
client
->
first_to_parse
,
s_fcrea_str
(
WHITESPACE
));
/* Check that there was at least one trailing blank. */
if
(
client
->
first_to_parse
>=
s_strlen
(
client
->
unparsed
)
)
{
client
->
first_to_parse
=
old_first
;
longjmp
(
parse_env
,
ISC_MSG_INCOMPLETE
);
}
return
result
;
}
long
prot_a_parse_long
(
Connection
*
client
)
{
...
...
@@ -267,28 +297,6 @@ prot_a_parse_misc_info(Connection *client,
}
String
prot_a_get_token
(
Connection
*
client
)
{
String
result
;
String_size
old_first
;
old_first
=
client
->
first_to_parse
;
result
=
s_strtok
(
client
->
unparsed
,
&
client
->
first_to_parse
,
s_fcrea_str
(
WHITESPACE
));
/* Check that there was at least one trailing blank. */
if
(
client
->
first_to_parse
>=
s_strlen
(
client
->
unparsed
)
)
{
client
->
first_to_parse
=
old_first
;
longjmp
(
parse_env
,
ISC_MSG_INCOMPLETE
);
}
return
result
;
}
void
prot_a_parse_time_date
(
Connection
*
client
,
struct
tm
*
result
)
...
...
src/server/prot-a-parse.h
View file @
6e6655bb
/*
* $Id: prot-a-parse.h,v 0.
4
199
1/12/17 22:20:55
ceder Exp $
* $Id: prot-a-parse.h,v 0.
5
199
2/01/12 01:32:32
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -23,7 +23,7 @@
* Please mail bug reports to bug-lyskom@lysator.liu.se.
*/
/*
* $Id: prot-a-parse.h,v 0.
4
199
1/12/17 22:20:55
ceder Exp $
* $Id: prot-a-parse.h,v 0.
5
199
2/01/12 01:32:32
ceder Exp $
*
*/
extern
long
...
...
@@ -47,14 +47,6 @@ extern void
prot_a_parse_misc_info
(
Connection
*
client
,
Misc_info
*
result
);
/*
* Return next token from the input stream. Note that the String returned
* by this call points into data that might be freed by the next call to
* get_token or any function which reads from the stream.
*/
extern
String
prot_a_get_token
(
Connection
*
client
);
extern
void
prot_a_parse_time_date
(
Connection
*
client
,
struct
tm
*
result
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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