ERA OF THE CHIMERA
ERA OF THE CHIMERA ERA OF THE CHIMERA ERA OF THE CHIMERA ERA OF THE CHIMERA ERA OF THE CHIMERA
This commit is contained in:
parent
cd267454c2
commit
0962392e70
8 changed files with 20 additions and 10 deletions
1
src/util/containers.c
Normal file
1
src/util/containers.c
Normal file
|
@ -0,0 +1 @@
|
||||||
|
#include "containers.h"
|
10
src/util/containers.h
Normal file
10
src/util/containers.h
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
#ifndef GLV_UTIL_CONTAINERS_H
|
||||||
|
#define GLV_UTIL_CONTAINERS_H
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
|
||||||
|
} glv_map_t;
|
||||||
|
|
||||||
|
glv_map_t* glv_map_create();
|
||||||
|
|
||||||
|
#endif
|
|
@ -1,4 +1,5 @@
|
||||||
#include "string.h"
|
#include "etc.h"
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
int axtoi(const char* str) {
|
int axtoi(const char* str) {
|
||||||
int value = 0, i;
|
int value = 0, i;
|
|
@ -1,8 +1,10 @@
|
||||||
#ifndef GLV_UTIL_STRING_H
|
#ifndef GLV_UTIL_STRING_H
|
||||||
#define GLV_UTIL_STRING_H
|
#define GLV_UTIL_STRING_H
|
||||||
|
|
||||||
#include <string.h>
|
#define MAX(X,Y) (((X)>(Y))?(X):(Y))
|
||||||
|
#define MIN(X,Y) (((X)<(Y))?(X):(Y))
|
||||||
|
|
||||||
|
// AUX STRING FUNCS
|
||||||
int axtoi(const char* str);
|
int axtoi(const char* str);
|
||||||
int strcnt(const char* str, char c);
|
int strcnt(const char* str, char c);
|
||||||
|
|
|
@ -1,5 +1,2 @@
|
||||||
//
|
|
||||||
// Created by alec on 2/7/2019.
|
|
||||||
//
|
|
||||||
|
|
||||||
#include "ini.h"
|
#include "ini.h"
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#ifndef GLV_UTIL_INI_H
|
#ifndef GLV_UTIL_INI_H
|
||||||
#define GLV_UTIL_INI_H
|
#define GLV_UTIL_INI_H
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
|
||||||
|
} glv_ini_t;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
#include "ipaddr.h"
|
#include "ipaddr.h"
|
||||||
|
|
||||||
#define MAX(X,Y) (((X)>(Y))?(X):(Y))
|
|
||||||
#define MIN(X,Y) (((X)<(Y))?(X):(Y))
|
|
||||||
|
|
||||||
const ipaddr_t error_addr = {{0, 0, 0, 0, 0, 0, 0, 0}, -1};
|
const ipaddr_t error_addr = {{0, 0, 0, 0, 0, 0, 0, 0}, -1};
|
||||||
|
|
||||||
ipaddr_t glv_ip_aton(const char* addr) {
|
ipaddr_t glv_ip_aton(const char* addr) {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#include "util/string.h"
|
#include "util/etc.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint16_t addr[8];
|
uint16_t addr[8];
|
||||||
|
|
Reference in a new issue