Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP6:Update
libretro-blastem
fix-enum-syntax.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-enum-syntax.patch of Package libretro-blastem
From 8e107d5c9c91613a9d2acbefd6f03364eb956d66 Mon Sep 17 00:00:00 2001 From: Guo Yunhe <i@guoyunhe.me> Date: Sun, 7 Jun 2020 14:02:37 +0300 Subject: [PATCH] Fix enum syntax C enum name should be placed before { --- gen_x86.h | 16 ++++++++-------- vdp.h | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/gen_x86.h b/gen_x86.h index 6ff0da9..4df06e9 100644 --- a/gen_x86.h +++ b/gen_x86.h @@ -9,7 +9,7 @@ #include <stdint.h> #include "gen.h" -enum { +enum x86_regs{ RAX = 0, RCX, RDX, @@ -30,9 +30,9 @@ enum { R13, R14, R15 -} x86_regs; +}; -enum { +enum x86_cc{ CC_O = 0, CC_NO, CC_C, @@ -51,14 +51,14 @@ enum { CC_GE, CC_LE, CC_G -} x86_cc; +}; -enum { +enum x86_size{ SZ_B = 0, SZ_W, SZ_D, SZ_Q -} x86_size; +}; #ifdef X86_64 #define SZ_PTR SZ_Q @@ -75,7 +75,7 @@ enum { #define MAX_INST_LEN 11 #endif -enum { +enum x86_modes{ MODE_REG_INDIRECT = 0, MODE_REG_INDEXED = 4, MODE_REG_DISPLACE8 = 0x40, @@ -85,7 +85,7 @@ enum { MODE_REG_DIRECT = 0xC0, //"phony" mode MODE_IMMED = 0xFF -} x86_modes; +}; void rol_ir(code_info *code, uint8_t val, uint8_t dst, uint8_t size); void ror_ir(code_info *code, uint8_t val, uint8_t dst, uint8_t size); diff --git a/vdp.h b/vdp.h index 46400e6..1633281 100644 --- a/vdp.h +++ b/vdp.h @@ -68,7 +68,7 @@ #define DISPLAY_ENABLE 0x40 -enum { +enum vdp_regs{ REG_MODE_1=0, REG_MODE_2, REG_SCROLL_A, @@ -93,7 +93,7 @@ enum { REG_DMASRC_L, REG_DMASRC_M, REG_DMASRC_H -} vdp_regs; +}; //Mode reg 1 #define BIT_VSCRL_LOCK 0x80
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor