예제 #1
0
static void ensurePSFormats(mps_fmt_t *fixedOut, mps_fmt_t *typedOut,
                            mps_arena_t arena)
{
  mps_res_t eres;

  if (psFixedFormat == NULL) {
    eres = mps_fmt_create_fixed(&psFixedFormat, arena, ps_fmt_fixed());
    verifyMPS(eres);
    eres = mps_fmt_create_A(&psTypedFormat, arena, ps_fmt_typed());
    verifyMPS(eres);
  }
  *fixedOut = psFixedFormat;
  *typedOut = psTypedFormat;
}
예제 #2
0
static void ensurePSFormat(mps_fmt_t *fmtOut, mps_arena_t arena)
{
  mps_res_t eres;

  if (psFormat == NULL) {
    eres = mps_fmt_create_A(&psFormat, arena, ps_fmt_A());
    verifyMPS(eres);
  }
  *fmtOut = psFormat;
}