Just to show that the ugly example code from the last mail is not
completely bogus:

The following lines are already part of mathed/formulabase.C:

        case LFUN_UMLAUT:       handleAccent(bv, "ddot"); break;
        case LFUN_CIRCUMFLEX:   handleAccent(bv, "hat"); break;
        case LFUN_GRAVE:        handleAccent(bv, "grave"); break;
        case LFUN_ACUTE:        handleAccent(bv, "acute"); break;
        case LFUN_TILDE:        handleAccent(bv, "tilde"); break;
        case LFUN_MACRON:       handleAccent(bv, "bar"); break;
        case LFUN_DOT:          handleAccent(bv, "dot"); break;
        case LFUN_CARON:        handleAccent(bv, "check"); break;
        case LFUN_BREVE:        handleAccent(bv, "breve"); break;
        case LFUN_VECTOR:       handleAccent(bv, "vec"); break;

If there was a LFUN_ACCENT this could be written by

  case LFUN_ACCENT:
    handleAccent(bv, arg);
    break;

Less code, less bloat.

Andre'

-- 
André Pönitz .............................................. [EMAIL PROTECTED]

Reply via email to