Ejemplo n.º 1
0
static void tearDown(void)
{
    klog_console_level = LOG_INFO;
    klog_file_level = LOG_DEBUG;

    klog_cleanup();
    remove_if_exists(LOG_PATH ".000");
    remove_if_exists(LOG_PATH ".001");
    remove_if_exists(LOG_PATH ".002");
    remove_if_exists(LOG_PATH ".003");
    remove_if_exists(LOG_PATH ".004");
}
Ejemplo n.º 2
0
    static void
remove_icons(void)
{
    char	path[BUFSIZE];
    int		i;

    if (get_shell_folder_path(path, "desktop"))
	for (i = 0; i < ICON_COUNT; ++i)
	    remove_if_exists(path, icon_link_names[i]);
}
Ejemplo n.º 3
0
    static void
remove_start_menu(void)
{
    char	path[BUFSIZE];
    int		i;
    struct stat st;

    if (get_shell_folder_path(path, VIM_STARTMENU))
    {
	for (i = 1; i < TARGET_COUNT; ++i)
	    remove_if_exists(path, targets[i].lnkname);
	remove_if_exists(path, "uninstall.lnk");
	remove_if_exists(path, "Help.lnk");
	/* Win95 uses .pif, WinNT uses .lnk */
	remove_if_exists(path, "Vim tutor.pif");
	remove_if_exists(path, "Vim tutor.lnk");
	remove_if_exists(path, "Vim online.url");
	if (stat(path, &st) == 0)
	{
	    printf("removing %s\n", path);
	    rmdir(path);
	}
    }
}