Skip to content

Commit

Permalink
rename Free to XFree to avoid confusions
Browse files Browse the repository at this point in the history
  • Loading branch information
NotFound committed Dec 6, 2011
1 parent 23e65c3 commit 750fd80
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Guitor.winxed
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ extern function getview;

extern function newAtomlist;

function Free(p)
function XFree(p)
{
getfun("XFree")(p);
}
Expand Down Expand Up @@ -202,7 +202,7 @@ class Display
__DEBUG__ && cry(__FUNCTION__);
var name = getfun("XGetAtomName")(self.xdisplay, atom);
string sname = name.as_string("ascii");
Free(name);
XFree(name);
return sname;
}
function AtomlistFromStrings(var atomnames)
Expand Down Expand Up @@ -1097,7 +1097,7 @@ class Window : Drawable
int result[];
for (int i = 0; i < n; ++i)
push(result, int(view[props, i]));
Free(props);
XFree(props);
return result;
}
function LookupString(event)
Expand Down Expand Up @@ -1138,7 +1138,7 @@ class Window : Drawable
if (r != Success)
return string(null);
var prop = viewptr[prop_return, 0];
Free(prop);
XFree(prop);
int n = viewint[bytes_after_return, 0];
if (n == 0)
return "";
Expand All @@ -1162,7 +1162,7 @@ class Window : Drawable
catch () {
result = prop.as_string("binary");
}
Free(prop);
XFree(prop);
return result;
}
function GetPropertyUtf8String(int property)
Expand All @@ -1186,7 +1186,7 @@ class Window : Drawable
if (r != Success)
return string(null);
var prop = viewptr[prop_return, 0];
Free(prop);
XFree(prop);
int n = viewint[bytes_after_return, 0];
if (n == 0)
return "";
Expand All @@ -1201,7 +1201,7 @@ class Window : Drawable
return string(null);
prop = viewptr[prop_return, 0];
string result = prop.as_string("utf8");
Free(prop);
XFree(prop);
return result;
}
}
Expand Down

0 comments on commit 750fd80

Please sign in to comment.