User Tools

Site Tools


projekt:battre-c

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
projekt:battre-c [2014/10/03 10:54] – [Bjarnis idéer] bjarniprojekt:battre-c [2014/10/05 04:57] (current) – [Bjarnis idéer] bjarni
Line 21: Line 21:
   * Hum, nån sorts iteratorer? Coroutines, generatorer?   * Hum, nån sorts iteratorer? Coroutines, generatorer?
   * ''sizeof(funktion)'' ska fungera.   * ''sizeof(funktion)'' ska fungera.
 +  * Trevligt om man kan lägga till medlemmar i enums efter hand:
 +
 +  struct instr{enum INSTR type; char *mnemonic;};
 +  
 +  struct instr instructions[]={
 +    {enum INSTR MOVE, "mov"},
 +    {enum INSTR ADD, "add"},
 +    {enum INSTR SUBTRACT, "sub"}
 +  };
  
 ===== Martins idéer ===== ===== Martins idéer =====
projekt/battre-c.1412326498.txt.gz · Last modified: 2014/10/03 10:54 by bjarni

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki