Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lyskom-server-ceder-1616-generations-topgit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
6e6655bb
Commit
6e6655bb
authored
33 years ago
by
Per Cederqvist
Browse files
Options
Downloads
Patches
Plain Diff
The function prot_a_get_token is now static, not extern.
parent
1cb7c21d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/server/ChangeLog
+4
-0
4 additions, 0 deletions
src/server/ChangeLog
src/server/prot-a-parse.c
+32
-24
32 additions, 24 deletions
src/server/prot-a-parse.c
src/server/prot-a-parse.h
+2
-10
2 additions, 10 deletions
src/server/prot-a-parse.h
with
38 additions
and
34 deletions
src/server/ChangeLog
+
4
−
0
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
...
...
This diff is collapsed.
Click to expand it.
src/server/prot-a-parse.c
+
32
−
24
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
)
...
...
This diff is collapsed.
Click to expand it.
src/server/prot-a-parse.h
+
2
−
10
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
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment