Changed all the C++ comments to C comments using comment.sh script.
This commit is contained in:
+11
-11
@@ -43,11 +43,11 @@
|
||||
#include <stdbool.h>
|
||||
|
||||
struct ring_buffer_t {
|
||||
char *data; // block of memory or array of data
|
||||
unsigned element_size; // how many bytes for each chunk
|
||||
unsigned element_count; // number of chunks of data
|
||||
unsigned head; // first chunk of data
|
||||
unsigned count; // number of chunks in use
|
||||
char *data; /* block of memory or array of data */
|
||||
unsigned element_size; /* how many bytes for each chunk */
|
||||
unsigned element_count; /* number of chunks of data */
|
||||
unsigned head; /* first chunk of data */
|
||||
unsigned count; /* number of chunks in use */
|
||||
};
|
||||
typedef struct ring_buffer_t RING_BUFFER;
|
||||
|
||||
@@ -58,12 +58,12 @@ extern "C" {
|
||||
bool Ringbuf_Empty(RING_BUFFER const *b);
|
||||
char *Ringbuf_Get_Front(RING_BUFFER const *b);
|
||||
char *Ringbuf_Pop_Front(RING_BUFFER * b);
|
||||
bool Ringbuf_Put(RING_BUFFER * b, // ring buffer structure
|
||||
char *data_element); // one element to add to the ring
|
||||
void Ringbuf_Init(RING_BUFFER * b, // ring buffer structure
|
||||
char *data, // data block or array of data
|
||||
unsigned element_size, // size of one element in the data block
|
||||
unsigned element_count); // number of elements in the data block
|
||||
bool Ringbuf_Put(RING_BUFFER * b, /* ring buffer structure */
|
||||
char *data_element); /* one element to add to the ring */
|
||||
void Ringbuf_Init(RING_BUFFER * b, /* ring buffer structure */
|
||||
char *data, /* data block or array of data */
|
||||
unsigned element_size, /* size of one element in the data block */
|
||||
unsigned element_count); /* number of elements in the data block */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user