shithub: rgbds

Download patch

ref: 54293a91844bc812091f10f8db673c71fea6b23d
parent: b04e71ed34cbbd9cb15f79cd20ba787438e6bcfb
author: ISSOtm <eldredhabert0@gmail.com>
date: Sat Nov 6 21:46:25 EDT 2021

Remove unused "MAX_PATH" header

The header's name was also quite misleading.
Also remove an unused define in `asm/symbol.h`.

--- a/include/asm/fstack.h
+++ b/include/asm/fstack.h
@@ -19,7 +19,6 @@
 
 #include "asm/lexer.h"
 
-#include "types.h"
 
 struct FileStackNode {
 	struct FileStackNode *parent; /* Pointer to parent node, for error reporting */
--- a/include/asm/symbol.h
+++ b/include/asm/symbol.h
@@ -17,10 +17,8 @@
 #include "asm/section.h"
 
 #include "platform.h" // MIN_NB_ELMS
-#include "types.h"
 
-#define HASHSIZE	(1 << 16)
-#define MAXSYMLEN	256
+#define MAXSYMLEN	255
 
 enum SymbolType {
 	SYM_LABEL,
--- a/include/types.h
+++ /dev/null
@@ -1,16 +1,0 @@
-/*
- * This file is part of RGBDS.
- *
- * Copyright (c) 1997-2018, Carsten Sorensen and RGBDS contributors.
- *
- * SPDX-License-Identifier: MIT
- */
-
-#ifndef RGBDS_TYPES_H
-#define RGBDS_TYPES_H
-
-#ifndef _MAX_PATH
-#define _MAX_PATH 512
-#endif
-
-#endif /* RGBDS_TYPES_H */
--- a/test/asm/local-truncated.asm
+++ b/test/asm/local-truncated.asm
@@ -1,6 +1,6 @@
 SECTION "Test", ROM0
 
-MACRO a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
+MACRO a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
 	println "truncated :("
 ENDM
 
@@ -7,5 +7,5 @@
 a012:
 	a012.local
 
-a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012:
-	a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012.local
+a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012:
+	a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012.local
--- a/test/asm/local-truncated.err
+++ b/test/asm/local-truncated.err
@@ -1,7 +1,7 @@
 warning: local-truncated.asm(10): [-Wlong-string]
     Symbol name too long, got truncated
 error: local-truncated.asm(10):
-    'a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001' already defined at local-truncated.asm(3)
+    'a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001' already defined at local-truncated.asm(3)
 warning: local-truncated.asm(11): [-Wlong-string]
     Symbol name too long, got truncated
 error: Assembly aborted (1 error)!