linked list V1 / phone-number typos / student setup script V1
This commit is contained in:
@@ -27,9 +27,9 @@
|
||||
|
||||
default: all
|
||||
|
||||
ALLSOURCES=$(wildcard ./*.c)
|
||||
TESTSOURCES=$(wildcard ./test_*.c)
|
||||
SRC=$(filter-out $(TESTSOURCES),$(ALLSOURCES))
|
||||
ALLSOURCES:=$(wildcard ./*.c)
|
||||
TESTSOURCES:=$(wildcard ./test_*.c)
|
||||
SRC:=$(filter-out $(TESTSOURCES),$(ALLSOURCES))
|
||||
|
||||
include makefile
|
||||
|
||||
@@ -52,6 +52,5 @@ unitdebug: CFLAGS+=-DDEBUG
|
||||
unitdebug: clean unit
|
||||
|
||||
unit: CFLAGS+=-DUNIT_TEST
|
||||
unit: SOURCES=$(wildcard ./*.c)
|
||||
unit: *.c *.h
|
||||
$(CC) $(CFLAGS) $(SRC) -o tests.out $(LIBS)
|
||||
|
@@ -1,3 +1,4 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <malloc.h>
|
||||
#include <string.h>
|
||||
|
@@ -1,10 +1,10 @@
|
||||
#ifndef PHONE_NUMBER_H
|
||||
#define PHONE_NUMBER_H
|
||||
|
||||
#include "br-common.h"
|
||||
|
||||
#define NUMBER_LENGTH 10
|
||||
|
||||
char *phone_number_clean(const char *input);
|
||||
|
||||
#endif
|
||||
|
||||
#include "br-common.h"
|
||||
|
Reference in New Issue
Block a user