Changeset 206 in dev for trunk/abdev/BasicCompiler_Common/PESchedule.cpp
- Timestamp:
- Jul 12, 2007, 2:58:26 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/PESchedule.cpp
r75 r206 1 #include "stdafx.h" 2 1 3 #include "../BasicCompiler_Common/common.h" 2 4 … … 197 199 198 200 CImportAddrSchedule::CImportAddrSchedule(){ 199 ppdi=( DllProc **)HeapAlloc(hHeap,0,1);201 ppdi=(const DllProc **)HeapAlloc(hHeap,0,1); 200 202 } 201 203 CImportAddrSchedule::~CImportAddrSchedule(){ … … 203 205 } 204 206 205 void CImportAddrSchedule::add( DllProc *pDllProc){206 ppdi=( DllProc **)HeapReAlloc(hHeap,0,ppdi,(num+1)*sizeof(DllProc *));207 void CImportAddrSchedule::add(const DllProc *pDllProc){ 208 ppdi=(const DllProc **)HeapReAlloc(hHeap,0,ppdi,(num+1)*sizeof(DllProc *)); 207 209 ppdi[num]=pDllProc; 208 210 … … 220 222 221 223 CSubAddrSchedule::CSubAddrSchedule(){ 222 ppsi=( UserProc **)HeapAlloc(hHeap,0,1);224 ppsi=(const UserProc **)HeapAlloc(hHeap,0,1); 223 225 pbCall=(BOOL *)HeapAlloc(hHeap,0,1); 224 226 } … … 228 230 } 229 231 230 void CSubAddrSchedule::add( UserProc *pUserProc,BOOL bCall){232 void CSubAddrSchedule::add(const UserProc *pUserProc,BOOL bCall){ 231 233 if(!pUserProc) return; 232 234 233 ppsi=( UserProc **)HeapReAlloc(hHeap,0,ppsi,(num+1)*sizeof(UserProc *));235 ppsi=(const UserProc **)HeapReAlloc(hHeap,0,ppsi,(num+1)*sizeof(UserProc *)); 234 236 ppsi[num]=pUserProc; 235 237 pbCall=(BOOL *)HeapReAlloc(hHeap,0,pbCall,(num+1)*sizeof(BOOL));
Note:
See TracChangeset
for help on using the changeset viewer.