FDK/Tools/Programs/makeotf/source/cb.c
/* [hot callback] Print error message */
[hot callback] Print error message
[ hot callback ] Print error message
void message(void *ctx, int type, char *text)
	{
	cbCtx h = ctx;
	switch (type)
		{
	case hotNOTE:
		fprintf(stderr, "%s [NOTE] ", h->progname);
		break;
	case hotWARNING:
		fprintf(stderr, "%s [WARNING] ", h->progname);
		break;
	case hotERROR:
		fprintf(stderr, "%s [ERROR] ", h->progname);
		break;
	case hotFATAL:
		fprintf(stderr, "%s [FATAL] ", h->progname);
		break;
		}
	fprintf(stderr, "%s\n", text);
	}
void message ( void * ctx , int type , char * text ) { cbCtx h = ctx ; switch ( type ) { case hotNOTE : fprintf ( stderr , " " , h -> progname ) ; break ; case hotWARNING : fprintf ( stderr , " " , h -> progname ) ; break ; case hotERROR : fprintf ( stderr , " " , h -> progname ) ; break ; case hotFATAL : fprintf ( stderr , " " , h -> progname ) ; break ; } fprintf ( stderr , " \n " , text ) ; }
[hot callback] Print error message
[ hot callback ] Print error message
/* Print type */