Added formatting tools

This commit is contained in:
Warwick 2023-08-26 20:26:24 +01:00
parent 535e2a60f6
commit 02a3e906f2
3 changed files with 6 additions and 7 deletions

View file

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
project(urchin
VERSION 0
DESCRIPTION "Simple Mud Experiment in C"
@ -7,7 +7,7 @@ project(urchin
set(CMAKE_C_STANDARD 99)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_C_CLANG_TIDY)
set(CMAKE_C_CLANG_TIDY clang-tidy -checks=-*,readability-*)
include(CheckIncludeFile)
add_subdirectory(${CMAKE_SOURCE_DIR}/urchin-util)

View file

@ -10,7 +10,6 @@ Command *cmd__create() {
}
void cmd__add_move(Command *command, move_direction direction) {
// command->has_move_direction = 1;
command->move_direction = direction;
}

View file

@ -1,6 +1,8 @@
// Sorry in advance for all the comments. This project is also a way for me to
// learn C.
#include "command.h"
#include "world.h"
#include <error.h>
#include <message.h>
#include <netinet/in.h> //sockaddr_in
@ -11,8 +13,6 @@
#include <sys/socket.h> // sockaddr
#include <sys/types.h>
#include <unistd.h>
#include "world.h"
#include "command.h"
int main(int argc, char *argv[]) {
// Set up containers for file descriptor id's