Debian Codegraph @

debian/patches/fix-gcc15-c23.patch

raw
1 Index: cheesecutter/src/asm/acme.c
2 ===================================================================
3 --- cheesecutter.orig/src/asm/acme.c
4 +++ cheesecutter/src/asm/acme.c
5 @@ -128,7 +128,7 @@ static bool do_actual_work(void) {
6 return(FALSE);
7 }
8
9 -char* acme_assemble(const char* src, const int *length, char *error) {
10 +char* acme_assemble(const char* src, int *length, char *error) {
11 error_message = error;
12 source = src;
13 msg_stream = stdout;
14 Index: cheesecutter/src/asm/config.h
15 ===================================================================
16 --- cheesecutter.orig/src/asm/config.h
17 +++ cheesecutter/src/asm/config.h
18 @@ -7,6 +7,7 @@
19 #ifndef config_H
20 #define config_H
21
22 +#include <stdbool.h>
23
24 // types
25 typedef unsigned int zone_t;
26 @@ -50,7 +51,6 @@ typedef struct result_int_t result_int_t
27 #endif
28 // Boolean values
29 #ifndef FALSE
30 -typedef int bool;
31 #define FALSE 0
32 #define TRUE 1
33 #endif
34 Index: cheesecutter/src/asm/global.h
35 ===================================================================
36 --- cheesecutter.orig/src/asm/global.h
37 +++ cheesecutter/src/asm/global.h
38 @@ -87,7 +87,7 @@ extern void Parse_until_eob_or_eof(void)
39 // Skip space. If GotByte is CHAR_SOB ('{'), parse block and return TRUE.
40 // Otherwise (if there is no block), return FALSE.
41 // Don't forget to call EnsureEOL() afterwards.
42 -extern int Parse_optional_block(void);
43 +extern bool Parse_optional_block(void);
44 // Output a warning.
45 // This means the produced code looks as expected. But there has been a
46 // situation that should be reported to the user, for example ACME may have
47 Index: cheesecutter/src/asm/output.h
48 ===================================================================
49 --- cheesecutter.orig/src/asm/output.h
50 +++ cheesecutter/src/asm/output.h
51 @@ -40,7 +40,7 @@ extern bool Output_set_output_format(voi
52 // write smallest-possible part of memory buffer to file
53 extern void Output_save_file(FILE* fd);
54 // send final output as binary
55 -extern char* Output_get_final_data();
56 +extern char* Output_get_final_data(int *length);
57 // Call when "*=EXPRESSION" is parsed
58 extern void Output_start_segment(void);
59 // Show start and end of current segment