mirror of
https://github.com/DavidGailleton/42-Push_Swap.git
synced 2026-01-27 00:41:57 +00:00
Fix radix
This commit is contained in:
@@ -1,31 +0,0 @@
|
|||||||
Language: C
|
|
||||||
|
|
||||||
AlignConsecutiveDeclarations: false
|
|
||||||
AlignConsecutiveMacros: false
|
|
||||||
AlignEscapedNewlinesLeft: true
|
|
||||||
AllowAllParametersOfDeclarationOnNextLine: false
|
|
||||||
AllowShortBlocksOnASingleLine: false
|
|
||||||
AllowShortFunctionsOnASingleLine: None
|
|
||||||
AlwaysBreakAfterReturnType: None
|
|
||||||
AlwaysBreakBeforeMultilineStrings: false
|
|
||||||
BinPackArguments: true
|
|
||||||
BinPackParameters: true
|
|
||||||
BreakBeforeBraces: Allman
|
|
||||||
BreakBeforeTernaryOperators: false
|
|
||||||
ColumnLimit: 80
|
|
||||||
IndentWidth: 4
|
|
||||||
KeepEmptyLinesAtTheStartOfBlocks: false
|
|
||||||
MaxEmptyLinesToKeep: 1
|
|
||||||
PointerAlignment: Right
|
|
||||||
PenaltyBreakBeforeFirstCallParameter: 1
|
|
||||||
PenaltyBreakString: 1
|
|
||||||
PenaltyExcessCharacter: 0
|
|
||||||
SpaceAfterCStyleCast: true
|
|
||||||
SpaceBeforeAssignmentOperators: true
|
|
||||||
SpaceBeforeParens: ControlStatements
|
|
||||||
SpaceInEmptyParentheses: false
|
|
||||||
SpacesInCStyleCastParentheses: false
|
|
||||||
SpacesInParentheses: false
|
|
||||||
SpacesInSquareBrackets: false
|
|
||||||
TabWidth: 4
|
|
||||||
UseTab: Always
|
|
||||||
@@ -33,15 +33,8 @@ static void push_by_number_to_b(t_stacks *stacks, int unit, int nb)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int s_len;
|
int s_len;
|
||||||
t_stack *temp;
|
|
||||||
|
|
||||||
temp = stacks->a;
|
s_len = stack_a_len(stacks);
|
||||||
s_len = 1;
|
|
||||||
while (temp && temp->next != stacks->a)
|
|
||||||
{
|
|
||||||
s_len++;
|
|
||||||
temp = temp->next;
|
|
||||||
}
|
|
||||||
i = 0;
|
i = 0;
|
||||||
while (i < s_len && still_unit_index(stacks, unit))
|
while (i < s_len && still_unit_index(stacks, unit))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ static void print_disorder(t_stacks *stacks)
|
|||||||
secure_write(2, "0", 1);
|
secure_write(2, "0", 1);
|
||||||
secure_write(2, &str[ft_strlen(str) - 2], ft_strlen(str) - 2);
|
secure_write(2, &str[ft_strlen(str) - 2], ft_strlen(str) - 2);
|
||||||
secure_write(2, "%\n", 2);
|
secure_write(2, "%\n", 2);
|
||||||
|
stacks->disorder /= 10000;
|
||||||
free(str);
|
free(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user