boot2

Playing with the boostrap
git clone https://git.ryansepassi.com/git/boot2.git
Log | Files | Refs | README

tinyc-define.after (305B)


      1         /* define __TINYC__ 92X  */
      2 #if BOOTSTRAP
      3         tcc_define_symbol(s, "__TINYC__", "926");
      4 #else
      5         char buffer[32]; int a,b,c;
      6         sscanf(TCC_VERSION, "%d.%d.%d", &a, &b, &c);
      7         sprintf(buffer, "%d", a*10000 + b*100 + c);
      8         tcc_define_symbol(s, "__TINYC__", buffer);
      9 #endif