Rename global.h to util.h
The functionality has changed since we no longer need a place for global variables.
This commit is contained in:
parent
5058070fcb
commit
6ce5417c70
2
Makefile
2
Makefile
@ -20,7 +20,7 @@ INCFLAGS=
|
||||
LDFLAGS=-lsqlite3
|
||||
DEFS=
|
||||
CFLAGS=$(INCFLAGS) -std=c99 -Wall -Wextra -Wfatal-errors -Werror
|
||||
HDRS=src/arg_parse.h
|
||||
HDRS=src/arg_parse.h src/util.h
|
||||
OBJS=src/main.o src/arg_parse.o
|
||||
VERSION=1.0
|
||||
|
||||
|
@ -17,6 +17,9 @@
|
||||
*/
|
||||
#include "arg_parse.h"
|
||||
|
||||
#include "util.h"
|
||||
#include <string.h>
|
||||
|
||||
enum cmd_id parse_args(const char *cmd) {
|
||||
for(int i = 0; i < (int)ARRAY_LEN(commands); ++i) {
|
||||
for(int j = 0; j < (int)ARRAY_LEN(commands[i].str); ++j) {
|
||||
|
@ -17,11 +17,6 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "global.h"
|
||||
|
||||
enum cmd_id {
|
||||
CMD_UNKNOWN = 0,
|
||||
CMD_HELP,
|
||||
|
Loading…
Reference in New Issue
Block a user