VirtualBox

vbox的更動 29181 路徑 trunk/src/libs/xpcom18a4/xpcom


忽略:
時間撮記:
2010-5-7 上午12:02:15 (15 年 以前)
作者:
vboxsync
訊息:

xpidl_java.c,Makefile.kmk: Mark the changes pertaining to making diffing easier with VBOX_XPIDL_EMULATE_GENJIFACES_DIFF. Corrected and cleaned up constant_declaration() - it now ends up with the right types.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/libs/xpcom18a4/xpcom/typelib/xpidl/xpidl_java.c

    r29178 r29181  
    869869
    870870    fputc('\n', state->file);
     871#ifndef VBOX_XPIDL_EMULATE_GENJIFACES_DIFF
    871872    xpidl_write_comment(state, 4);
    872 
    873 #ifdef VBOX_XPIDL_EMULATE_GENJIFACES /* (from typelib_const_dcl)*/
     873#endif
     874
     875#ifdef VBOX_XPIDL_EMULATE_GENJIFACES
    874876# ifdef VBOX_XPIDL_EMULATE_GENJIFACES_DIFF
    875877    fputs("  public static final ", state->file);
     
    879881    if (IDL_TYPE_INTEGER(real_type).f_type == IDL_INTEGER_TYPE_LONG) {
    880882        if (IDL_TYPE_INTEGER(real_type).f_signed)
    881             fprintf(state->file, "int %s = %"   IDL_LL "d;\n",  name, IDL_INTEGER(dcl->const_exp).value);
     883            fprintf(state->file, "int %s = %"   IDL_LL "d;\n",  name, IDL_INTEGER(declaration->const_exp).value);
    882884        else
    883             fprintf(state->file, "long %s = %"  IDL_LL "uL;\n", name, IDL_INTEGER(dcl->const_exp).value);
     885            fprintf(state->file, "long %s = %"  IDL_LL "uL;\n", name, IDL_INTEGER(declaration->const_exp).value);
    884886    } else {
    885887        if (IDL_TYPE_INTEGER(real_type).f_signed)
    886             fprintf(state->file, "short %s = %" IDL_LL "d;\n",  name, IDL_INTEGER(dcl->const_exp).value);
     888            fprintf(state->file, "short %s = %" IDL_LL "d;\n",  name, IDL_INTEGER(declaration->const_exp).value);
    887889        else
    888             fprintf(state->file, "int %s = %"   IDL_LL "u;\n",  name, IDL_INTEGER(dcl->const_exp).value);
     890            fprintf(state->file, "int %s = %"   IDL_LL "u;\n",  name, IDL_INTEGER(declaration->const_exp).value);
    889891    }
    890892#else  /* !VBOX_XPIDL_EMULATE_GENJIFACES */
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette