summaryrefslogtreecommitdiff
path: root/plugins/Watrack/formats/fmt_real.pas
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2014-12-31 22:11:10 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2014-12-31 22:11:10 +0000
commitec7b7cf1c956bf17b60d788d73530fcbd12bf51f (patch)
tree45450baf5b76d8e57b9f198cb1fd9f8db9a6d31f /plugins/Watrack/formats/fmt_real.pas
parent813851def848b52b92f59c379706ada6bebceba9 (diff)
temporary revert
git-svn-id: http://svn.miranda-ng.org/main/trunk@11705 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Watrack/formats/fmt_real.pas')
-rw-r--r--plugins/Watrack/formats/fmt_real.pas40
1 files changed, 20 insertions, 20 deletions
diff --git a/plugins/Watrack/formats/fmt_real.pas b/plugins/Watrack/formats/fmt_real.pas
index 1d69a2f353..8d5f5bf72d 100644
--- a/plugins/Watrack/formats/fmt_real.pas
+++ b/plugins/Watrack/formats/fmt_real.pas
@@ -23,7 +23,7 @@ const
type
tChunk = packed record
ID:dword;
- len:dword; //with Chunk;
+ Len:dword; //with Chunk;
end;
type
@@ -43,32 +43,32 @@ type
procedure SkipStr(var p:PAnsiChar;alen:integer);
var
- llen:integer;
+ len:integer;
begin
if alen=2 then
- llen:=(ord(p[0]) shl 8)+ord(p[1])
+ len:=(ord(p[0]) shl 8)+ord(p[1])
else
- llen:=ord(p[0]);
+ len:=ord(p[0]);
inc(p,alen);
-// if llen>0 then
- inc(p,llen);
+// if len>0 then
+ inc(p,len);
end;
function ReadStr(var p:PAnsiChar;alen:integer):PAnsiChar;
var
- llen:integer;
+ len:integer;
begin
if alen=2 then
- llen:=(ord(p[0]) shl 8)+ord(p[1])
+ len:=(ord(p[0]) shl 8)+ord(p[1])
else
- llen:=ord(p[0]);
+ len:=ord(p[0]);
inc(p,alen);
- if llen>0 then
+ if len>0 then
begin
- mGetMem(result,llen+1);
- move(p^,result^,llen);
- result[llen]:=#0;
- inc(p,llen);
+ mGetMem(result,len+1);
+ move(p^,result^,len);
+ result[len]:=#0;
+ inc(p,len);
end
else
result:=nil;
@@ -103,15 +103,15 @@ begin
while FilePos(f)<fsize do
begin
BlockRead(f,chunk,SizeOf(chunk));
- chunk.len:=BSwap(chunk.len);
+ chunk.Len:=BSwap(chunk.Len);
if (not (AnsiChar(chunk.ID and $FF) in ['A'..'Z','a'..'z','.'])) or
- (chunk.len<SizeOf(chunk)) then
+ (chunk.Len<SizeOf(chunk)) then
break;
if (chunk.ID=blkPROP) or (chunk.ID=blkCONT) or (chunk.ID=blkMDPR) then
begin
- mGetMem(buf,chunk.len-SizeOf(chunk));
+ mGetMem(buf,chunk.Len-SizeOf(chunk));
p:=buf;
- BlockRead(f,buf^,chunk.len-SizeOf(chunk));
+ BlockRead(f,buf^,chunk.Len-SizeOf(chunk));
if chunk.ID=blkPROP then
begin
inc(p,22);
@@ -273,7 +273,7 @@ begin
end
else if chunk.ID=blkRMMD then //comment
begin
- Skip(f,chunk.len-SizeOf(chunk));
+ Skip(f,chunk.Len-SizeOf(chunk));
{
BlockRead(f,chunk,SizeOf(chunk)); //RJMD
chunk.len:=BSwap(chunk.len);
@@ -289,7 +289,7 @@ begin
if chunk.ID=blk_RMF then
if FilePos(f)<>SizeOf(chunk) then // channels-1: ofs=$0A
break;
- Skip(f,chunk.len-SizeOf(chunk));
+ Skip(f,chunk.Len-SizeOf(chunk));
end;
end;
ReadID3v1(f,Info);