d3dcompiler_43: Make asmshader_error() and set_rel_reg() static.

This commit is contained in:
Francois Gouget 2010-09-13 10:45:39 +02:00 committed by Alexandre Julliard
parent 330520980a
commit 7d9cd71db7

View File

@ -71,12 +71,12 @@ void asmparser_message(struct asm_parser *ctx, const char *fmt, ...) {
}
}
void asmshader_error(char const *s) {
static void asmshader_error(char const *s) {
asmparser_message(&asm_ctx, "Line %u: Error \"%s\" from bison\n", asm_ctx.line_no, s);
set_parse_status(&asm_ctx, PARSE_ERR);
}
void set_rel_reg(struct shader_reg *reg, struct rel_reg *rel) {
static void set_rel_reg(struct shader_reg *reg, struct rel_reg *rel) {
/* We can have an additional offset without true relative addressing
* ex. c2[ 4 ] */
reg->regnum += rel->additional_offset;