if((handle = open(filename,O_RDONLY | O_BINARY, S_IREAD)) == -1)\r
return false;\r
\r
- size = filelength (handle);\r
+ size = filelength(handle);\r
MM_GetPtr(ptr,size, &(gvar->mm), &(gvar->mmi)); //TODO: gvar parameters\r
if(!CA_FarRead(handle,*ptr,size, gvar))\r
{\r
mm->mmnew->length = needed;
mm->mmnew->useptr = baseptr;
//if(mm->mmnew->useptr==NULL){
- printf("baseptr=%04x ", baseptr); printf("useptr=%04x\n", mm->mmnew->useptr);
- printf("*baseptr=%04x ", *baseptr); printf("*useptr=%04x\n", *(mm->mmnew->useptr));
- //printf("*baseptr=%Fp ", *baseptr); printf("*useptr=%Fp\n", *(mm->mmnew->useptr));
+#ifdef __DEBUG__
+ printf("baseptr=%04x ", baseptr); printf("useptr=%04x\n", mm->mmnew->useptr);
+ printf("*baseptr=%04x ", *baseptr); printf("*useptr=%04x\n", *(mm->mmnew->useptr));
+ printf("*baseptr=%Fp ", *baseptr); printf("*useptr=%Fp\n", *(mm->mmnew->useptr));
+#endif
//exit(-5); }
mm->mmnew->attributes = BASEATTRIBUTES;