Subversion Repositories Kolibri OS

Rev

Rev 1846 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1846 Rev 1849
Line -... Line 1...
-
 
1
#define STRING_ERROR	"string found in tree when trying to add to	it"
1
// ---- ‡ ­¥á¥­¨¥ ¯®¨¬¥­®¢ ­­®© ª®­áâ ­âë ¢ ᯨ᮪
2
// ---- ‡ ­¥á¥­¨¥ ¯®¨¬¥­®¢ ­­®© ª®­áâ ­âë ¢ ᯨ᮪
2
AddConstToTree(dword keystring,constvalue)
3
AddConstToTree(dword keystring,constvalue)
3
dword ptr,newptr; // idrec structure
4
dword ptr,newptr; // idrec structure
4
{
5
{
5
	newptr=LocalAlloc(0x40,recsize);
6
	newptr=LocalAlloc(0x40,recsize);
Line 30... Line 31...
30
					DSDWORD[ESI+right]=newptr;
31
					DSDWORD[ESI+right]=newptr;
31
					BREAK;
32
					BREAK;
32
				}
33
				}
33
				ptr=DSDWORD[ESI+right];
34
				ptr=DSDWORD[ESI+right];
34
			}
35
			}
35
			ELSE internalerror("string found in tree when trying to add to	it");
36
			ELSE internalerror(STRING_ERROR);
36
		}
37
		}
37
	}
38
	}
38
// ”®à¬¨à㥬 ­®¢ãî § ¯¨áì ¢ ᯨ᪥
39
// ”®à¬¨à㥬 ­®¢ãî § ¯¨áì ¢ ᯨ᪥
39
	ESI=newptr;
40
	ESI=newptr;
40
	DSDWORD[ESI+recid]=LocalAlloc(0x40,lstrlenA(keystring)+1);
41
	DSDWORD[ESI+recid]=LocalAlloc(0x40,lstrlenA(keystring)+1);
Line 108... Line 109...
108
					DSDWORD[ESI+right]=newptr;
109
					DSDWORD[ESI+right]=newptr;
109
					BREAK;
110
					BREAK;
110
				}
111
				}
111
				ptr=DSDWORD[ESI+right];
112
				ptr=DSDWORD[ESI+right];
112
			}
113
			}
113
			ELSE internalerror("string found in tree when trying to add to	it");
114
			ELSE internalerror(STRING_ERROR);
114
		}
115
		}
115
	}
116
	}
116
	ESI=newptr;
117
	ESI=newptr;
117
	DSDWORD[ESI+recid]=LocalAlloc(0x40,lstrlenA(keystring)+1);
118
	DSDWORD[ESI+recid]=LocalAlloc(0x40,lstrlenA(keystring)+1);
118
	lstrcpyA(EAX,keystring);
119
	lstrcpyA(EAX,keystring);