This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __SWITCHS_H__ | |
#define __SWITCHS_H__ | |
#include <string.h> | |
#include <regex.h> | |
#include <stdbool.h> | |
/** Begin a switch for the string x */ | |
#define switchs(x) \ | |
{ char *ss__sw = (x); bool ss__done = false; bool ss__cont = false; \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __MUTEX_H__ | |
#define __MUTEX_H__ | |
#include <pthread.h> | |
/** | |
* Mutex type | |
*/ | |
typedef struct { | |
pthread_mutex_t mutex; // pthread mutex |