浏览模式: 普通 | 列表
分类: 修改或原创 | 1
//----------------------------------将Kate文档的Unicode代码转换成 UTF-8--------------------------------------------------
1.将读取到的文件内容转换成Locale位编码
    a)修改  languages/cpp/backgroundparser.cpp 的函数KDevSourceProvider::contents
        将contents = QString( editIface->text().ascii() );

        改为 QTextCodec *codec=QTextCodec::codecForName("UTF-8");//((KateDocument*)doc)->config()->codec();//add by mark den
...

阅读全文...
1.修改apps/konsole/src/Part,增加
  #include <KRun>
2.修改apps/konsole/src/Part的177行, Part::showShellInDir函数,增加
  if ( ! dir.isNull() )//add by deng ,20111208
    {
     QString text = dir;
     KRun::shellQuote(text);
     text = QString::fromLatin1("cd ") + text + '\n';
     activeSession()->emulation()->sendText(text);
     //te->emitText( text );
    };
#-----------------------------------------------...

阅读全文...
#include <stdio.h>
#include <typeinfo>
#include <string.h>
#define PRINTF(format, args...){\
printf("%s (%d),%s: "format" \n", __FILE__ ,__LINE__,__FUNCTION__, ## args);\
}

class AAA{
public:
  virtual void test(){
    PRINTF("");
  }
  long long lolo;
};
struct CCC:public AAA{
  int hh;
};
class BBB:public AAA{
public:
  virtual void test(){
    PRINTF("");
  }
  long long lolo;
  char ch;
...

阅读全文...
//======================mangle.c=================================
/* Name mangling for the 3.0 C++ ABI.
Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009
Free Software Foundation, Inc.
Written by Alex Samuel <samuel@codesourcery.com>

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General ...

阅读全文...
/* RunTime Type Identification
Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
2005, 2006, 2007, 2008
Free Software Foundation, Inc.
Mostly written by Jason Merrill (jason@cygnus.com).

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software ...

阅读全文...
//======================typeinfo=================================
// RTTI support for -*- C++ -*-
// Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
// 2003, 2004, 2005, 2006, 2007, 2009, 2010
// Free Software Foundation
//
// This file is part of GCC.
//
// GCC is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
...

阅读全文...
1.修改  gdb/target-descriptions.c 的tdesc_find_register_early函数,

if (strcasecmp (reg->name, name) == 0)//mark deng
return reg;
改为
    char buf1[100];
    char buf2[100];
    strupr(reg->name,buf1);
    strupr(name,buf2);
    if(strcmp(buf1,buf2)==0){
      return reg;
    }
2.增加函数
void strupr(char*src,char*dest){
  int i=0;
  while(src[i]){
    dest[i]=toupper(src[i]);
    i++;
  }
  dest[i]=0;
}
1.修改 libcpp/lex.c中的 _cpp_lex_direct 函数,使之能接受中文字符
  在   case 'Y': case 'Z': 后面, result->type = CPP_NAME; 的前面插入
case 0x80:case 0x81:case 0x82:case 0x83:case 0x84:case 0x85:case 0x86:case 0x87:/*汉字*/
case 0x88:case 0x89:case 0x8A:case 0x8B:case 0x8C:case 0x8D:case 0x8E:case 0x8F:
case 0x90:case 0x91:case 0x92:case 0x93:case 0x94:case 0x95:case 0x96:case 0x97:
case 0x98:case 0x99:case ...

阅读全文...
1.下载并安装文件
先在本站下载 http://www.vtalkback.com/cbc-2009-12.rar 文件
将下载的文件解压缩以后会得到 comp32p.dll 、bcbcxp60.bpl 两个文件
查毒以后将他们拷贝到 C:\Program Files\Borland\CBuilder6\Bin 目录,最好先备份一下原文件
启动C++Builder 6.0以后就可以使用中文标识符进行编程了

2.增强的功能
可以在CB6中使用中文的变量名、宏定义、类定义、模板名、函数名、namespace
可以在类向导中看到中文的类定义、变量、模板名、函数名
可以在类向导中看到namespace的定义,图标与struct的定义相同

3.用途
增强程序的可读性,可维护性。
尤其象围棋这类术语众多而又找不到对应英文的名称的软件,
使用拼音又影响阅读速度,使用中文标识符能很好的解决这一问题。
...

阅读全文...
1
΢¼ѯ