Michael Haupt wrote:
is it somehow possible to have, in Jolt, the equivalent of the following C code?

void f() {
  static int x = 0;
  ...
  x++;
  ...
}

There isn't anything built in to do this, but it's all extensible, you could build something to do this. Look at "actives", I suspect that is the easiest ways to build this sort of thing.

In case it isn't obvious to you, all a C compile will do with the above is to do the equivalent of changing it to:

static int XXX_f_x = 0;
void f() {
  ...
  XXX_f_x++;
  ...
}

where "XXX" is some sequence of characters that ensures the name won't conflict with any user defined names.

-gavin...



_______________________________________________
fonc mailing list
[email protected]
http://vpri.org/mailman/listinfo/fonc

Reply via email to