Merge branch 'main' of gitlab.emi.u-bordeaux.fr:pt2/teams-s4/tm07/lightup-07c
This commit is contained in:
commit
78d00ce1a5
2 files changed
+9
-3
No files matched your search
@@ -8,6 +8,13 @@ default:
|
|||||||
- shell
|
- shell
|
||||||
- CREMI
|
- CREMI
|
||||||
|
|
||||||
|
workflow:
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_MESSAGE =~ /-draft$/
|
||||||
|
when: never
|
||||||
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||||
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||||
|
|
||||||
build-job: # This job runs in the build stage, which runs first.
|
build-job: # This job runs in the build stage, which runs first.
|
||||||
allow_failure: false
|
allow_failure: false
|
||||||
stage: build
|
stage: build
|
||||||
|
|||||||
+2
-3
@@ -7,7 +7,7 @@
|
|||||||
#include "game_tools.h"
|
#include "game_tools.h"
|
||||||
|
|
||||||
void usage() {
|
void usage() {
|
||||||
fprintf(stderr, "problem with paramametre");
|
fprintf(stderr, "problem with paramametre\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ int main(int argc, char* argv[]) {
|
|||||||
game_save(g1, filename);
|
game_save(g1, filename);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// if the option is -s
|
// if the option is -c
|
||||||
else if (strcmp(option, "-c") == 0) {
|
else if (strcmp(option, "-c") == 0) {
|
||||||
// GET THE NB OF SOLUTIONS
|
// GET THE NB OF SOLUTIONS
|
||||||
cgame g2 = game_load(file);
|
cgame g2 = game_load(file);
|
||||||
@@ -57,6 +57,5 @@ int main(int argc, char* argv[]) {
|
|||||||
printf("or '-c' if you want the number of solutions\n");
|
printf("or '-c' if you want the number of solutions\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user