diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-08-03 16:18:26 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-08-03 16:18:26 +0000 |
commit | f532be1b26d0a60d47c467254c78b9a4989a5af2 (patch) | |
tree | f2633471f452ceddb57aca12d5dc1954c80f160a /src | |
parent | a73889a4f36cb45785225c411d5091bf7d1ab4ce (diff) | |
download | libcss-f532be1b26d0a60d47c467254c78b9a4989a5af2.tar.gz libcss-f532be1b26d0a60d47c467254c78b9a4989a5af2.tar.bz2 |
s/opcode/opcode_t/
svn path=/trunk/libcss/; revision=9020
Diffstat (limited to 'src')
-rw-r--r-- | src/bytecode/bytecode.h | 6 | ||||
-rw-r--r-- | src/parse/important.c | 2 | ||||
-rw-r--r-- | src/select/select.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/bytecode/bytecode.h b/src/bytecode/bytecode.h index 9872d46..f378585 100644 --- a/src/bytecode/bytecode.h +++ b/src/bytecode/bytecode.h @@ -14,7 +14,7 @@ #include <libcss/types.h> #include <libcss/properties.h> -typedef enum css_properties_e opcode; +typedef enum css_properties_e opcode_t; enum flag { FLAG_IMPORTANT = (1<<0), @@ -53,12 +53,12 @@ typedef enum shape { SHAPE_RECT = 0 } shape; -static inline uint32_t buildOPV(opcode opcode, uint8_t flags, uint16_t value) +static inline uint32_t buildOPV(opcode_t opcode, uint8_t flags, uint16_t value) { return (opcode & 0x3ff) | (flags << 10) | ((value & 0x3fff) << 18); } -static inline opcode getOpcode(uint32_t OPV) +static inline opcode_t getOpcode(uint32_t OPV) { return (OPV & 0x3ff); } diff --git a/src/parse/important.c b/src/parse/important.c index 88ec640..07ff1f6 100644 --- a/src/parse/important.c +++ b/src/parse/important.c @@ -77,7 +77,7 @@ void make_style_important(css_style *style) } while(0) while (offset < length) { - opcode op; + opcode_t op; uint8_t flags; uint32_t value; uint32_t opv = *((uint32_t *) bytecode); diff --git a/src/select/select.c b/src/select/select.c index 6261b62..eddb491 100644 --- a/src/select/select.c +++ b/src/select/select.c @@ -1168,7 +1168,7 @@ css_error cascade_style(const css_style *style, css_select_state *state) css_style s = *style; while (s.length > 0) { - opcode op; + opcode_t op; css_error error; uint32_t opv = *((uint32_t *) s.bytecode); |