Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 36099eeb rédigé par Kubat's avatar Kubat
Parcourir les fichiers

FMT

parent 6a30c00c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!173Update priority on next/prev operations
Pipeline #2344 en échec
......@@ -63,6 +63,7 @@ ForEachMacros:
- 'for_each'
- 'for_ever'
- 'forever'
- 'unless'
- 'FOR_EVER_IF'
- 'FOR_EVER_UNTIL'
- 'FOR_EACH_FLAT_LIST_ITEM'
......
......@@ -22,7 +22,6 @@ ___close_global_logfile()
}
}
PRIVATE_FUNCTION unsigned int
___count_lines_in_file(const char *file)
{
......@@ -111,7 +110,8 @@ lkt_logfile_new(lkt_db *db)
memcpy(ret, &tmp_logfile, sizeof(struct lkt_logfile));
errno = 0;
FAIL_IF(mkdir(base_folder, 0755) && (errno != EEXIST), "Failed to create folder: %s", base_folder);
FAIL_IF(mkdir(base_folder, 0755) && (errno != EEXIST), "Failed to create folder: %s",
base_folder);
___open_all_files(ret);
LOG_INFO("LOG", "Log folder was created at: %s", base_folder);
......
......@@ -154,7 +154,8 @@ database_config_set_optional_fields(lkt_db *db)
#define value(name, value)
#define value_opt(name, value) \
if ((section != NULL) && !database_config_exists(db, section, name)) { \
FAIL_UNLESS(database_config_set(db, section, name, value), "Failed to set default value for option '%s/%s'", section, name); \
FAIL_UNLESS(database_config_set(db, section, name, value), \
"Failed to set default value for option '%s/%s'", section, name); \
LOG_WARN("CONFIG", "Enforce the option '%s/%s' <- %s", section, name, value); \
}
......
......@@ -526,6 +526,18 @@ database_queue_skip_current(lkt_db *db, char filepath[PATH_MAX])
}
}
/* When playing the previous kara, if the current was a priority 5 and the
* prvious a priority 1 we will have a problem on the resequence of the queue.
* Thus, we propagate all the priorities > 1 if found after the current to all
* the karas from that found kara with a > 1 priority to the current one
* included. It only makes sense to call that function from the
* 'database_queue_prev' function. */
PRIVATE_FUNCTION bool
___database_back_propagate_priority(UNUSED lkt_db *db)
{
return false;
}
bool
database_queue_prev(lkt_db *db, char filepath[PATH_MAX])
{
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter