FDK/Tools/Programs/makeotf/source/cb.c
/* [hot callback] Add anonymous data from feature file */
[hot callback] Add anonymous data from feature file
[ hot callback ] Add anonymous data from feature file
static void featAddAnonData(void *ctx, char *data, long count,
                                                      unsigned long tag)
      {
# if 0
      cbCtx h = ctx;
      AnonInfo *ai = dnaNEXT(h->feat.anon);
      long destCnt = (count == 0) ? 0 : count - 1;
      ai->tag = tag;
      ai->refillDone = 0;
      dnaSET_CNT(ai->data, destCnt);
      memcpy(ai->data.array, data, destCnt);
      hotAddAnonTable(h->hot.ctx, tag, anonRefill);
#endif
      }
static void featAddAnonData ( void * ctx , char * data , long count , unsigned long tag ) { # if 0 cbCtx h = ctx ; AnonInfo * ai = dnaNEXT ( h -> feat . anon ) ; long destCnt = ( count == 0 ) ? 0 : count - 1 ; ai -> tag = tag ; ai -> refillDone = 0 ; dnaSET_CNT ( ai -> data , destCnt ) ; memcpy ( ai -> data . array , data , destCnt ) ; hotAddAnonTable ( h -> hot . ctx , tag , anonRefill ) ; #endif }
[hot callback] Add anonymous data from feature file
[ hot callback ] Add anonymous data from feature file
/* Sample code for adding anonymous tables */ /* Store feature file data except for the last newline. */ /* Simply add it intact as table data! */