| ??? 09/12/11 21:44 Read: times  | 
#183732 - re: Alternative Responding to: ???'s previous message  | 
Per Westermark said: 
An alternative would be to give each of your functions a number, and have a switch statement call the correct function based on the number associated with the input. I would think that the compiler could generate a decent jumptable-based switch if the numbers are continuous series - especially if the series starts from zero and your default: picks up unknown mappings. Yeah, I see, that would work. I suppose that a thoroughly-evil compromise would be to use the preprocessor and #define Handler0, Handler1, Handler2 to be the same as how they are declared in their sources. I still think that the function pointers should work ... -a  | 
| Topic | Author | Date | 
| SDCC: function pointers in an ISR | 01/01/70 00:00 | |
| Alternative | 01/01/70 00:00 | |
| re: Alternative | 01/01/70 00:00 | |
| Register bank 1 | 01/01/70 00:00 | |
| re: register bank 1 | 01/01/70 00:00 | |
| Using... | 01/01/70 00:00 | |
| Lack of orthogonality | 01/01/70 00:00 | |
| incorrect warning | 01/01/70 00:00 | |
| re: incorrect warning | 01/01/70 00:00 | |
| not fixed yet | 01/01/70 00:00 | |
| re: not fixed yet | 01/01/70 00:00 | |
| Actel's answer. | 01/01/70 00:00 | |
| warning | 01/01/70 00:00 | |
| function pointers in SDCC | 01/01/70 00:00 | |
| bug fixed! | 01/01/70 00:00 | |
| Actel support | 01/01/70 00:00 | |
         Still on the payroll        | 01/01/70 00:00 | 



