Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "src/VoArray"]
path = src/VoArray
url = https://github.com/StevenSYS/VoArray
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ cmake_minimum_required(VERSION 3.11)

project(ESMake LANGUAGES C VERSION 1.0)

option(BUILD_FOR_I586 "Build ${PROGRAM_NAME} for i586 (Intel Pentium) or higher" OFF)
option(BUILD_FOR_I586 "Build ${PROJECT_NAME} for i586 (Intel Pentium) or higher" OFF)
# Windows Compiler Options
option(BUILD_USING_MSVCRT20 "Build ${PROGRAM_NAME} using msvcrt20 (Windows Compiler Only)" OFF)
option(BUILD_USING_MSVCRT20 "Build ${PROJECT_NAME} using msvcrt20 (Windows Compiler Only)" OFF)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DVOARRAY_DEFCONFIG")
set(CMAKE_C_FLAGS_DEBUG "-g -Wall")
set(CMAKE_C_FLAGS_RELEASE "-O2")
if(NOT CMAKE_C_COMPILER_ID MATCHES "Clang")
Expand Down
11 changes: 1 addition & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
# [ESMake](https://github.com/StevenSYS/ESMake)

A program that helps with making errors strings and enums the way I do it

| Legend | Meaning |
| ------ | --------------------------- |
| > | Output(s) - First line only |
| % | Setting |
| + | Item |
| - | Item (Switch Default) |
| ! | Comment |
| \ | Escape |
A program that helps with making errors strings and enums the way I do it
18 changes: 0 additions & 18 deletions bothExample.em

This file was deleted.

14 changes: 0 additions & 14 deletions enumExample.em

This file was deleted.

24 changes: 24 additions & 0 deletions example.em
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
obj outputs {
str ret "ret.h";
str enum "enum.h";
str lang1 "lang1.h";
str lang2 "lang2.h";
};

obj variables {
str preEnum "ERROR_";
str preLang "LANG_ERROR_";
};

obj items {
obj EXAMPLE {
str lang1 "lang1 - Example";
str lang2 "lang2 - Example";
};

obj DEFEXAMPLE {
vo def;
str lang1 "lang1 - Default Example";
str lang2 "lang2 - Default Example";
};
};
13 changes: 0 additions & 13 deletions langExample.em

This file was deleted.

1 change: 1 addition & 0 deletions src/VoArray
Submodule VoArray added at 129e10
215 changes: 0 additions & 215 deletions src/errorMake.c

This file was deleted.

7 changes: 0 additions & 7 deletions src/errorMake.h

This file was deleted.

8 changes: 8 additions & 0 deletions src/errorString.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#ifndef __ERRORSTRING__
#define __ERRORSTRING__
#define STR_ERROR_REQUIRED_ARGS "ERROR: Required argument(s) is/are NULL\n"
#define STR_ERROR_FILE_READ "ERROR: Failed to read from file\n"
#define STR_ERROR_VAR_TYPE_UNKNOWN "ERROR: Unknown variable type: %s\n"
#define STR_ERROR_VAR_NAME "ERROR: Failed to get variable name\n"
#define STR_ERROR_VAR_EXISTS_OBJ "ERROR: Variable already exists in object\n"
#endif
4 changes: 4 additions & 0 deletions src/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ int file_open(
const char *filename,
const char *mode
) {
if (*output != NULL) {
fclose(*output);
}

*output = fopen(filename, mode);

if (*output == NULL) {
Expand Down
2 changes: 2 additions & 0 deletions src/file.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef __FILE_H__
#define __FILE_H__

#include <stdio.h>

/* Functions */
int file_open(
FILE **output,
Expand Down
Loading