Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
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
Main
Synchronet
Commits
6bb2eb9e
Commit
6bb2eb9e
authored
3 years ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Finally get rid of RINGBUFCALL (finish what was started in April of this year)
Missing part of commit
2d3b3bce
parent
d7bee91a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/ringbuf.h
+9
-19
9 additions, 19 deletions
src/sbbs3/ringbuf.h
with
9 additions
and
19 deletions
src/sbbs3/ringbuf.h
+
9
−
19
View file @
6bb2eb9e
/* ringbuf.h */
/* Synchronet ring buffer routines */
/* $Id: ringbuf.h,v 1.14 2018/07/24 01:11:07 rswindell Exp $ */
/****************************************************************************
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
...
...
@@ -61,12 +57,6 @@
#define RINGBUF_USE_STD_RTL
#if defined(_WIN32) && !defined(__GNUC__)
#define RINGBUFCALL _cdecl
#else
#define RINGBUFCALL
#endif
/************/
/* Typedefs */
/************/
...
...
@@ -100,23 +90,23 @@ extern "C" {
/* Function Prototypes */
/***********************/
int
RINGBUFCALL
RingBufInit
(
RingBuf
*
rb
,
DWORD
size
int
RingBufInit
(
RingBuf
*
rb
,
DWORD
size
#ifndef RINGBUF_USE_STD_RTL
,
void
*
(
os_malloc
)(
size_t
)
,
void
(
os_free
)(
void
*
)
,
void
*
(
os_memcpy
)(
void
*
,
const
void
*
,
size_t
)
#endif
);
void
RINGBUFCALL
RingBufDispose
(
RingBuf
*
rb
);
DWORD
RINGBUFCALL
RingBufFull
(
RingBuf
*
rb
);
DWORD
RINGBUFCALL
RingBufFree
(
RingBuf
*
rb
);
DWORD
RINGBUFCALL
RingBufWrite
(
RingBuf
*
rb
,
const
BYTE
*
src
,
DWORD
cnt
);
DWORD
RINGBUFCALL
RingBufRead
(
RingBuf
*
rb
,
BYTE
*
dst
,
DWORD
cnt
);
DWORD
RINGBUFCALL
RingBufPeek
(
RingBuf
*
rb
,
BYTE
*
dst
,
DWORD
cnt
);
void
RINGBUFCALL
RingBufReInit
(
RingBuf
*
rb
);
void
RingBufDispose
(
RingBuf
*
rb
);
DWORD
RingBufFull
(
RingBuf
*
rb
);
DWORD
RingBufFree
(
RingBuf
*
rb
);
DWORD
RingBufWrite
(
RingBuf
*
rb
,
const
BYTE
*
src
,
DWORD
cnt
);
DWORD
RingBufRead
(
RingBuf
*
rb
,
BYTE
*
dst
,
DWORD
cnt
);
DWORD
RingBufPeek
(
RingBuf
*
rb
,
BYTE
*
dst
,
DWORD
cnt
);
void
RingBufReInit
(
RingBuf
*
rb
);
#ifdef __cplusplus
}
#endif
#endif
/* Don't add anything afterthis
endif
*/
#endif
/* Don't add anything after
this
line
*/
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