GIT.Harvie.CZ
/
svn
/
Cll1h
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
preliminary work on version 0.7.1 - WARNING, HIGHLY UNSTABLE !
[svn/Cll1h/.git]
/
demos
/
idmap.c
diff --git
a/demos/idmap.c
b/demos/idmap.c
index b9a8704ed0b90173363b5b0803ff14b6d7591149..ff963193705c83201e2ed08420ca0885d5180f21 100644
(file)
--- a/
demos/idmap.c
+++ b/
demos/idmap.c
@@
-45,10
+45,10
@@
program
if(*ptr)
{
if(*ptr)
{
-
find
(id,ids,eq(id->str,ptr))
+
if_exists
(id,ids,eq(id->str,ptr))
{
id->count++;
{
id->count++;
-
find
(line,id->lines,line->n==l);
+
if_exists
(line,id->lines,line->n==l);
else
{
create(line,Line);
else
{
create(line,Line);
@@
-85,10
+85,10
@@
program
if(c)
sort(id,ids,desc_order_by,count);
if(c)
sort(id,ids,desc_order_by,count);
-
every
(id,ids)
+
for_each
(id,ids)
{
printf("%3dx %s",id->count,id->str);
{
printf("%3dx %s",id->count,id->str);
-
every
(line,id->lines) printf(" [%d]",line->n);
+
for_each
(line,id->lines) printf(" [%d]",line->n);
printf("\n");
}
}
printf("\n");
}
}
This page took
0.103974 seconds
and
4
git commands to generate.