Mercurial > dwindows
comparison dwtest.c @ 1875:fb137f7f91e4
Initial commit of GTK2 code changes (untested) ...
Cleanups of some other platform code.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 09 Aug 2013 02:11:06 +0000 |
parents | 15d24b5300ec |
children | 6949c73e30fd |
comparison
equal
deleted
inserted
replaced
1874:71c8a45b2a35 | 1875:fb137f7f91e4 |
---|---|
1224 | 1224 |
1225 for(z=0;z<3;z++) | 1225 for(z=0;z<3;z++) |
1226 { | 1226 { |
1227 char names[100]; | 1227 char names[100]; |
1228 | 1228 |
1229 /* yes, there is a memory leak here */ | |
1230 sprintf(names, "We can now allocate from the stack: Item: %d", z); | 1229 sprintf(names, "We can now allocate from the stack: Item: %d", z); |
1231 size = z*100; | 1230 size = z*100; |
1232 sprintf(buffer, "Filename %d",z+1); | 1231 sprintf(buffer, "Filename %d",z+1); |
1233 if (z == 0 ) thisicon = foldericon; | 1232 if (z == 0 ) thisicon = foldericon; |
1234 else thisicon = fileicon; | 1233 else thisicon = fileicon; |