Changeset 2333
- Timestamp:
- 04/24/07 18:41:01 (2 years ago)
- Files:
-
- trunk/include/VBox/dis.h (modified) (2 diffs)
- trunk/src/VBox/Disassembler/Disasm.cpp (modified) (1 diff)
- trunk/src/VBox/Disassembler/DisasmCore.cpp (modified) (4 diffs)
- trunk/src/VBox/Frontends/VBoxBFE/VBoxBFE.cpp (modified) (1 diff)
- trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp (modified) (9 diffs)
- trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp (modified) (1 diff)
- trunk/src/VBox/Main/ConsoleImpl.cpp (modified) (1 diff)
- trunk/src/VBox/Main/ConsoleVRDPServer.cpp (modified) (1 diff)
- trunk/src/VBox/Main/HostImpl.cpp (modified) (1 diff)
- trunk/src/VBox/Main/MachineImpl.cpp (modified) (2 diffs)
- trunk/src/VBox/Main/include/ConsoleImpl.h (modified) (1 diff)
- trunk/src/VBox/Main/include/HostImpl.h (modified) (1 diff)
- trunk/src/VBox/Main/testcase/tstAPI.cpp (modified) (1 diff)
- trunk/src/VBox/Runtime/strformat.cpp (modified) (3 diffs)
- trunk/src/VBox/Runtime/testcase/tstLdr-4.cpp (modified) (1 diff)
- trunk/src/VBox/Runtime/testcase/tstLdr.cpp (modified) (1 diff)
- trunk/src/VBox/VMM/PATM/PATMInternal.h (modified) (1 diff)
- trunk/src/VBox/VMM/PATM/VMMAll/PATMAll.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/include/VBox/dis.h
r1937 r2333 361 361 #ifndef DIS_CORE_ONLY 362 362 /** Opcode format string for current instruction. */ 363 c har*pszOpcode;363 const char *pszOpcode; 364 364 #endif 365 365 … … 386 386 { 387 387 #ifndef DIS_CORE_ONLY 388 c har*pszOpcode;388 const char *pszOpcode; 389 389 #endif 390 390 uint8_t idxParse1; trunk/src/VBox/Disassembler/Disasm.cpp
r1 r2333 285 285 void disasmSprintf(char *pszOutput, RTUINTPTR pu8Instruction, PDISCPUSTATE pCpu, OP_PARAMETER *pParam1, OP_PARAMETER *pParam2, OP_PARAMETER *pParam3) 286 286 { 287 c har *lpszFormat = pCpu->pszOpcode;287 const char *lpszFormat = pCpu->pszOpcode; 288 288 int param = 1; 289 289 trunk/src/VBox/Disassembler/DisasmCore.cpp
r1938 r2333 970 970 // Scale Index Base 971 971 //***************************************************************************** 972 c har *szSIBBaseReg[8] = {"EAX", "ECX", "EDX", "EBX", "ESP", "EBP", "ESI", "EDI"};973 c har *szSIBIndexReg[8] = {"EAX", "ECX", "EDX", "EBX", NULL, "EBP", "ESI", "EDI"};974 c har *szSIBScale[4] = {"", "*2", "*4", "*8"};972 const char *szSIBBaseReg[8] = {"EAX", "ECX", "EDX", "EBX", "ESP", "EBP", "ESI", "EDI"}; 973 const char *szSIBIndexReg[8] = {"EAX", "ECX", "EDX", "EBX", NULL, "EBP", "ESI", "EDI"}; 974 const char *szSIBScale[4] = {"", "*2", "*4", "*8"}; 975 975 976 976 //***************************************************************************** … … 2343 2343 } 2344 2344 //***************************************************************************** 2345 c har *szModRMReg8[] = {"AL", "CL", "DL", "BL", "AH", "CH", "DH", "BH"};2346 c har *szModRMReg16[] = {"AX", "CX", "DX", "BX", "SP", "BP", "SI", "DI"};2347 c har *szModRMReg32[] = {"EAX", "ECX", "EDX", "EBX", "ESP", "EBP", "ESI", "EDI"};2345 const char *szModRMReg8[] = {"AL", "CL", "DL", "BL", "AH", "CH", "DH", "BH"}; 2346 const char *szModRMReg16[] = {"AX", "CX", "DX", "BX", "SP", "BP", "SI", "DI"}; 2347 const char *szModRMReg32[] = {"EAX", "ECX", "EDX", "EBX", "ESP", "EBP", "ESI", "EDI"}; 2348 2348 //***************************************************************************** 2349 2349 void disasmModRMReg(PDISCPUSTATE pCpu, PCOPCODE pOp, int idx, POP_PARAMETER pParam, int fRegAddr) … … 2396 2396 } 2397 2397 //***************************************************************************** 2398 c har *szModRMReg1616[8] = {"BX+SI", "BX+DI", "BP+SI", "BP+DI", "SI", "DI", "BP", "BX"};2398 const char *szModRMReg1616[8] = {"BX+SI", "BX+DI", "BP+SI", "BP+DI", "SI", "DI", "BP", "BX"}; 2399 2399 int BaseModRMReg16[8] = { USE_REG_BX, USE_REG_BX, USE_REG_BP, USE_REG_BP, USE_REG_SI, USE_REG_DI, USE_REG_BP, USE_REG_BX}; 2400 2400 int IndexModRMReg16[4] = { USE_REG_SI, USE_REG_DI, USE_REG_SI, USE_REG_DI}; … … 2412 2412 } 2413 2413 //***************************************************************************** 2414 c har *szModRMSegReg[6] = {"ES", "CS", "SS", "DS", "FS", "GS"};2414 const char *szModRMSegReg[6] = {"ES", "CS", "SS", "DS", "FS", "GS"}; 2415 2415 //***************************************************************************** 2416 2416 void disasmModRMSReg(PDISCPUSTATE pCpu, PCOPCODE pOp, int idx, POP_PARAMETER pParam) trunk/src/VBox/Frontends/VBoxBFE/VBoxBFE.cpp
r2271 r2333 169 169 static char *cdromFile = NULL; 170 170 static char *fdaFile = NULL; 171 static c har *pszBootDevice = "IDE";171 static const char *pszBootDevice = "IDE"; 172 172 static uint32_t memorySize = 128; 173 173 static uint32_t vramSize = 4; trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r1916 r2333 1060 1060 vrdpServer->COMGETTER(Port)(&port); 1061 1061 VRDPAuthType_T vrdpAuthType; 1062 c har *strAuthType;1062 const char *strAuthType; 1063 1063 vrdpServer->COMGETTER(AuthType)(&vrdpAuthType); 1064 1064 switch (vrdpAuthType) … … 1664 1664 HardDiskStorageType_T storageType; 1665 1665 hdd->COMGETTER(StorageType)(&storageType); 1666 c har *storageTypeString = "unknown";1666 const char *storageTypeString = "unknown"; 1667 1667 switch (storageType) 1668 1668 { … … 1821 1821 USBDeviceState_T state; 1822 1822 CHECK_ERROR_RET (dev, COMGETTER(State)(&state), 1); 1823 c har *pszState = "?";1823 const char *pszState = "?"; 1824 1824 switch (state) 1825 1825 { … … 1886 1886 USBDeviceFilterAction_T action; 1887 1887 CHECK_ERROR_RET (flt, COMGETTER (Action) (&action), 1); 1888 c har *pszAction = "<invalid>";1888 const char *pszAction = "<invalid>"; 1889 1889 switch (action) 1890 1890 { … … 2022 2022 Bstr comment; 2023 2023 bool fRegister = false; 2024 c har *type = "normal";2024 const char *type = "normal"; 2025 2025 2026 2026 /* let's have a closer look at the arguments */ … … 4754 4754 HardDiskType_T type; 4755 4755 hardDisk->COMGETTER(Type)(&type); 4756 c har *typeStr = "unknown";4756 const char *typeStr = "unknown"; 4757 4757 switch (type) 4758 4758 { … … 4770 4770 4771 4771 HardDiskStorageType_T storageType; 4772 c har *storageTypeStr = "unknown";4772 const char *storageTypeStr = "unknown"; 4773 4773 hardDisk->COMGETTER(StorageType)(&storageType); 4774 4774 switch (storageType) … … 4821 4821 if (strcmp(argv[0], "disk") == 0) 4822 4822 { 4823 c har *type = "normal";4823 const char *type = "normal"; 4824 4824 /* there can be a type parameter */ 4825 4825 if ((argc > 2) && (argc != 4)) … … 6152 6152 struct 6153 6153 { 6154 c har *command;6154 const char *command; 6155 6155 PFNHANDLER handler; 6156 6156 } commandHandlers[] = trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r2319 r2333 1375 1375 QString info = 1376 1376 tr ("<qt>Indicates the activity of virtual hard disks"); 1377 c har *ctlNames[] = { "IDE0", "IDE1", "Controller%1" };1378 c har *devNames[] = { "Master", "Slave", "Device%1" };1377 const char *ctlNames[] = { "IDE0", "IDE1", "Controller%1" }; 1378 const char *devNames[] = { "Master", "Slave", "Device%1" }; 1379 1379 bool hasDisks = false; 1380 1380 CHardDiskAttachmentEnumerator aen = cmachine.GetHardDiskAttachments().Enumerate(); trunk/src/VBox/Main/ConsoleImpl.cpp
r1874 r2333 794 794 795 795 //static 796 c har *Console::sSSMConsoleUnit = "ConsoleData";796 const char *Console::sSSMConsoleUnit = "ConsoleData"; 797 797 //static 798 798 uint32_t Console::sSSMConsoleVer = 0x00010000; trunk/src/VBox/Main/ConsoleVRDPServer.cpp
r1928 r2333 806 806 struct SymbolEntry 807 807 { 808 c har *name;808 const char *name; 809 809 void **ppfn; 810 810 }; trunk/src/VBox/Main/HostImpl.cpp
r1906 r2333 1433 1433 * Helper function to check whether the given device node is a valid drive 1434 1434 */ 1435 bool Host::validateDevice(c har *deviceNode, bool isCDROM)1435 bool Host::validateDevice(const char *deviceNode, bool isCDROM) 1436 1436 { 1437 1437 struct stat statInfo; trunk/src/VBox/Main/MachineImpl.cpp
r1887 r2333 5372 5372 CFGNODE hwVirtExNode = 0; 5373 5373 CFGLDRCreateChildNode (cpuNode, "HardwareVirtEx", &hwVirtExNode); 5374 c har *value = NULL;5374 const char *value = NULL; 5375 5375 switch (mHWData->mHWVirtExEnabled) 5376 5376 { … … 5842 5842 CFGLDRCreateChildNode (aNode, "Clipboard", &clipNode); 5843 5843 5844 c har *mode = "Disabled";5844 const char *mode = "Disabled"; 5845 5845 switch (mHWData->mClipboardMode) 5846 5846 { trunk/src/VBox/Main/include/ConsoleImpl.h
r902 r2333 419 419 static VRDPSERVERCALLBACK sVrdpServerCallback; 420 420 421 static c har *sSSMConsoleUnit;421 static const char *sSSMConsoleUnit; 422 422 static uint32_t sSSMConsoleVer; 423 423 trunk/src/VBox/Main/include/HostImpl.h
r815 r2333 132 132 #ifdef __LINUX__ 133 133 void parseMountTable(char *mountTable, std::list <ComObjPtr <HostDVDDrive> > &list); 134 bool validateDevice(c har *deviceNode, bool isCDROM);134 bool validateDevice(const char *deviceNode, bool isCDROM); 135 135 #endif 136 136 trunk/src/VBox/Main/testcase/tstAPI.cpp
r2029 r2333 460 460 { 461 461 ComPtr <IHardDisk> hd; 462 static wchar_t *Names[] =462 static const wchar_t *Names[] = 463 463 { 464 464 #ifndef __LINUX__ trunk/src/VBox/Runtime/strformat.cpp
r628 r2333 146 146 static int rtStrFormatNumber(char *psz, KSIZE64 ullValue, unsigned int uiBase, signed int cchWidth, signed int cchPrecision, unsigned int fFlags) 147 147 { 148 c har *pachDigits = "0123456789abcdef";148 const char * pachDigits = "0123456789abcdef"; 149 149 char * pszStart = psz; 150 150 int cchValue; … … 498 498 { 499 499 int cchStr; 500 c har *pszStr = va_arg(args, char*);500 const char *pszStr = va_arg(args, char*); 501 501 502 502 if (!VALID_PTR(pszStr)) … … 569 569 { 570 570 int cchStr; 571 c har *pszStr = va_arg(args, char*);571 const char *pszStr = va_arg(args, char*); 572 572 573 573 if (!VALID_PTR(pszStr)) trunk/src/VBox/Runtime/testcase/tstLdr-4.cpp
r1190 r2333 85 85 RTLDRMOD hLdrMod; 86 86 void *pvBits; 87 c har*pszName;87 const char *pszName; 88 88 } aLoads[6] = 89 89 { trunk/src/VBox/Runtime/testcase/tstLdr.cpp
r1 r2333 78 78 void *pvBits; 79 79 RTUINTPTR Addr; 80 c har*pszName;80 const char *pszName; 81 81 } aLoads[6] = 82 82 { trunk/src/VBox/VMM/PATM/PATMInternal.h
r2030 r2333 656 656 * @param fPatchFlags Patch flags 657 657 */ 658 PATMDECL(c har *)patmGetInstructionString(uint32_t opcode, uint32_t fPatchFlags);658 PATMDECL(const char *)patmGetInstructionString(uint32_t opcode, uint32_t fPatchFlags); 659 659 660 660 trunk/src/VBox/VMM/PATM/VMMAll/PATMAll.cpp
r1403 r2333 530 530 * @param fPatchFlags Patch flags 531 531 */ 532 PATMDECL(c har *)patmGetInstructionString(uint32_t opcode, uint32_t fPatchFlags)533 { 534 c har *pszInstr = NULL;532 PATMDECL(const char *)patmGetInstructionString(uint32_t opcode, uint32_t fPatchFlags) 533 { 534 const char *pszInstr = NULL; 535 535 536 536 switch (opcode)

