Mercurial > libdvdnav.hg
comparison vm/decoder.c @ 330:e851da7ec146 src
static-ize a const; patch by Diego Petten
author | nicodvb |
---|---|
date | Sat, 05 Jan 2008 09:22:45 +0000 |
parents | 2146ff691bcd |
children | 2e9382be8e25 |
comparison
equal
deleted
inserted
replaced
329:071927ab5357 | 330:e851da7ec146 |
---|---|
415 /* Evaluate set operation | 415 /* Evaluate set operation |
416 Sets the register given to the value indicated by op and data. | 416 Sets the register given to the value indicated by op and data. |
417 For the swap case the contents of reg is stored in reg2. | 417 For the swap case the contents of reg is stored in reg2. |
418 */ | 418 */ |
419 static void eval_set_op(command_t* command, int32_t op, int32_t reg, int32_t reg2, int32_t data) { | 419 static void eval_set_op(command_t* command, int32_t op, int32_t reg, int32_t reg2, int32_t data) { |
420 const int32_t shortmax = 0xffff; | 420 static const int32_t shortmax = 0xffff; |
421 int32_t tmp; | 421 int32_t tmp; |
422 switch(op) { | 422 switch(op) { |
423 case 1: | 423 case 1: |
424 set_GPRM(command->registers, reg, data); | 424 set_GPRM(command->registers, reg, data); |
425 break; | 425 break; |