Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
core
tarantool
Commits
bebb9192
Commit
bebb9192
authored
12 years ago
by
Dmitry Simonenko
Browse files
Options
Downloads
Patches
Plain Diff
connector-c-lite: tp_getreqid added, fixed tp_req.
parent
ce7fb51f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
connector/c/include/tp.h
+8
-2
8 additions, 2 deletions
connector/c/include/tp.h
with
8 additions
and
2 deletions
connector/c/include/tp.h
+
8
−
2
View file @
bebb9192
...
...
@@ -205,6 +205,12 @@ tp_reqid(struct tp *p, uint32_t reqid) {
p
->
h
->
reqid
=
reqid
;
}
static
inline
uint32_t
tp_getreqid
(
struct
tp
*
p
)
{
assert
(
p
->
h
!=
NULL
);
return
p
->
h
->
reqid
;
}
static
inline
uint32_t
tp_tuplecount
(
struct
tp
*
p
)
{
assert
(
p
->
t
!=
NULL
);
...
...
@@ -493,7 +499,7 @@ tp_reqbuf(char *buf, size_t size) {
static
inline
ssize_t
tp_req
(
struct
tp
*
p
)
{
return
tp_reqbuf
(
p
->
s
,
tp_
used
(
p
));
return
tp_reqbuf
(
p
->
s
,
tp_
size
(
p
));
}
static
inline
size_t
...
...
@@ -649,7 +655,7 @@ tp_nextfield(struct tp *p) {
fetch:
;
register
int
rc
=
tp_leb128load
(
p
,
&
p
->
fsz
);
if
(
tp_unlikely
(
rc
==
-
1
))
return
0
;
return
-
1
;
return
1
;
}
...
...
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