Skip to content

Commit

Permalink
Rename macro + fix makefile for new filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtCoDFish committed Oct 12, 2015
1 parent 89e19a1 commit b11bd12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ DEBUGFLAGS = -g -O0 -fpermissive -Wall
# Production Flags
PRODFLAGS = -Wall -O3

TEST_H = src/ByteBuffer.h
TEST_H = src/ByteBuffer.hpp
TEST_SRC = src/ByteBuffer.cpp src/test.cpp

PACKETS_H = src/ByteBuffer.h
PACKETS_H = src/ByteBuffer.hpp
PACKETS_SRC = src/ByteBuffer.cpp src/examples/packets/packets.cpp

HTTP_H = src/ByteBuffer.h src/examples/http/HTTPMessage.h src/examples/http/HTTPRequest.h src/examples/http/HTTPResponse.h
HTTP_H = src/ByteBuffer.hpp src/examples/http/HTTPMessage.h src/examples/http/HTTPRequest.h src/examples/http/HTTPResponse.h
HTTP_SRC = src/ByteBuffer.cpp src/examples/http/http.cpp src/examples/http/HTTPMessage.cpp src/examples/http/HTTPRequest.cpp src/examples/http/HTTPResponse.cpp

test: $(TEST_SRC) $(TEST_H)
Expand Down
4 changes: 2 additions & 2 deletions src/ByteBuffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#define _ByteBuffer_H_

// Default number of uint8_ts to allocate in the backing buffer if no size is provided
#define DEFAULT_SIZE 4096
#define BB_DEFAULT_SIZE 4096

// If defined, utility functions within the class are enabled
#define BB_UTILITY
Expand All @@ -48,7 +48,7 @@ namespace bb {

class ByteBuffer {
public:
ByteBuffer(uint32_t size = DEFAULT_SIZE);
ByteBuffer(uint32_t size = BB_DEFAULT_SIZE);
ByteBuffer(uint8_t* arr, uint32_t size);
~ByteBuffer() = default;

Expand Down

0 comments on commit b11bd12

Please sign in to comment.