Skip to content

Commit bed1c18

Browse files
committed
cleanup owl code
1 parent 7bcd317 commit bed1c18

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

bld/owl/c/owcoff.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
*
33
* Open Watcom Project
44
*
5+
* Copyright (c) 2002-2023 The Open Watcom Contributors. All Rights Reserved.
56
* Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved.
67
*
78
* ========================================================================
@@ -38,10 +39,9 @@
3839

3940
// must correspond to owl_cpu enums in owl.h - first entry is for PowerPC
4041
static uint_16 cpuTypes[] = {
41-
COFF_IMAGE_FILE_MACHINE_POWERPC,
42-
COFF_IMAGE_FILE_MACHINE_ALPHA,
43-
COFF_IMAGE_FILE_MACHINE_R4000,
44-
COFF_IMAGE_FILE_MACHINE_I386
42+
#define OWL_CPU(c,e,o) o,
43+
OWL_CPUS
44+
#undef OWL_CPU
4545
};
4646

4747
#define _OWLIndexToCOFFIndex( x ) ( (x) + FIRST_USER_SECTION )

bld/owl/c/owelf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static unsigned numSymbols( owl_file_handle file ) {
5858
}
5959

6060
static Elf32_Half machineTypes[] = {
61-
#define OWL_CPU(c,e) e,
61+
#define OWL_CPU(c,e,o) e,
6262
OWL_CPUS
6363
#undef OWL_CPU
6464
};

bld/owl/h/owl.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@
3939
#include <stdio.h>
4040

4141
#define OWL_CPUS \
42-
OWL_CPU( OWL_CPU_PPC, EM_PPC ) \
43-
OWL_CPU( OWL_CPU_ALPHA, EM_ALPHA ) \
44-
OWL_CPU( OWL_CPU_MIPS, EM_MIPS ) \
45-
OWL_CPU( OWL_CPU_X86, EM_386 ) \
46-
OWL_CPU( OWL_CPU_X64, EM_X86_64 )
42+
OWL_CPU( OWL_CPU_PPC, EM_PPC, COFF_IMAGE_FILE_MACHINE_POWERPC ) \
43+
OWL_CPU( OWL_CPU_ALPHA, EM_ALPHA, COFF_IMAGE_FILE_MACHINE_ALPHA ) \
44+
OWL_CPU( OWL_CPU_MIPS, EM_MIPS, COFF_IMAGE_FILE_MACHINE_R4000 ) \
45+
OWL_CPU( OWL_CPU_X86, EM_386, COFF_IMAGE_FILE_MACHINE_I386 ) \
46+
OWL_CPU( OWL_CPU_X64, EM_X86_64, COFF_IMAGE_FILE_MACHINE_AMD64 )
4747

4848
#define OWL_RELOCS \
4949
OWL_RELOC( OWL_RELOC_ABSOLUTE ) /* ref to a 32-bit absolute address */ \
@@ -88,7 +88,7 @@ typedef enum {
8888
} owl_format;
8989

9090
typedef enum {
91-
#define OWL_CPU(c,e) c,
91+
#define OWL_CPU(c,e,o) c,
9292
OWL_CPUS
9393
#undef OWL_CPU
9494
} owl_cpu;

0 commit comments

Comments
 (0)