Hello

I'm interested in translating parts of the source to english.
To maitain compatibility I could do something like this:

Before translation:

class LeFoo {
  void faire_foo (int arg) {
      /* ... */
  }
};

After translation:

#define LeFoo Foo

class Foo {
  void do_foo (int arg) {
     /* ... */
  }

  void faire_foo (int arg) __attribute__((deprecated)) { /* use do_foo instead 
*/
     do_foo (arg);
  }
};

I'd be glad to hear any comments or suggestions :-)

Z/K

-- 
Zygmunt Krynicki


Répondre à