Browse Source

core: Remove _t from struct names

pr/spi.typo
DipSwitch 7 years ago
parent
commit
4e8834ae87
  1. 2
      core/include/atomic.h
  2. 2
      core/include/msg.h
  3. 6
      core/include/priority_queue.h
  4. 2
      core/include/ringbuffer.h

2
core/include/atomic.h

@ -31,7 +31,7 @@ extern "C" {
* @note This type is a struct for hard type checking (let the compiler warn
* if int is assigned regularly).
*/
typedef struct atomic_int {
typedef struct {
volatile int value; /**< the actual value */
} atomic_int_t;

2
core/include/msg.h

@ -181,7 +181,7 @@ extern "C" {
* the corresponding fields are never read by the kernel.
*
*/
typedef struct msg {
typedef struct {
kernel_pid_t sender_pid; /**< PID of sending thread. Will be filled in
by msg_send. */
uint16_t type; /**< Type field. */

6
core/include/priority_queue.h

@ -29,8 +29,8 @@
/**
* @brief data type for priority queue nodes
*/
typedef struct priority_queue_node_t {
struct priority_queue_node_t *next; /**< next queue node */
typedef struct priority_queue_node {
struct priority_queue_node *next; /**< next queue node */
uint32_t priority; /**< queue node priority */
unsigned int data; /**< queue node data */
} priority_queue_node_t;
@ -38,7 +38,7 @@ typedef struct priority_queue_node_t {
/**
* @brief data type for priority queues
*/
typedef struct queue {
typedef struct {
priority_queue_node_t *first; /**< first queue node */
} priority_queue_t;

2
core/include/ringbuffer.h

@ -27,7 +27,7 @@ extern "C" {
* @brief Ringbuffer.
* @details Non thread-safe FIFO ringbuffer implementation around a `char` array.
*/
typedef struct ringbuffer {
typedef struct {
char *buf; /**< Buffer to operate on. */
unsigned int size; /**< Size of buf. */
unsigned int start; /**< Current read position in the ring buffer. */

Loading…
Cancel
Save