1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-03 14:55:46 +01:00

removed some C++ style comments

This commit is contained in:
dan
2001-05-10 22:24:35 +00:00
parent 19b49b3fc1
commit 28793346ab
2 changed files with 5 additions and 8 deletions

View File

@@ -3662,26 +3662,23 @@ WMDestroyTextBlock(WMText *tPtr, void *vtb)
* need to find a safer way. till then... this stays commented out */
/* 5 months later... destroy it 10 seconds after now which should
* be enough time for the widget's action to be completed... :-) */
// This is a bad assumption. Just destroy the widget here.
/* This is a bad assumption. Just destroy the widget here.
// if the caller needs it, it can protect it with W_RetainView()
//WMAddTimerHandler(10000, destroyWidget, (void *)tb->d.widget);
//WMAddTimerHandler(10000, destroyWidget, (void *)tb->d.widget);*/
WMDestroyWidget(tb->d.widget);
//tb->d.widget = NULL;
} else {
WMReleasePixmap(tb->d.pixmap);
//tb->d.pixmap = NULL;
}
} else {
WMReleaseFont(tb->d.font);
}
WMReleaseColor(tb->color);
// isn't this going to memleak if nsections==0? if (tb->sections && tb->nsections > 0)
/* isn't this going to memleak if nsections==0? if (tb->sections && tb->nsections > 0) */
if (tb->sections)
wfree(tb->sections);
wfree(tb->text);
wfree(tb);
//tb = NULL;
}

View File

@@ -120,9 +120,9 @@ int main(int argc, char **argv)
strcat(path, argv[1]);
if ((dict = PLGetProplistWithPath(path)) == NULL)
return 1; // bad domain
return 1; /* bad domain */
if ((value = PLGetDictionaryEntry(dict, key)) == NULL)
return 2; // bad key
return 2; /* bad key */
printf("%s\n", PLGetString(value));
return 0;