Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
5e2581b0
Commit
5e2581b0
authored
Aug 05, 2006
by
Matthias Braun
Browse files
avoid trouble with some ANSI C ehaders
parent
d337a839
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/test/Queens.c
View file @
5e2581b0
...
...
@@ -26,7 +26,7 @@ typedef int boolean;
static
int
*
row
;
// queen in column c is at row[c]
static
int
abs
(
int
i
)
{
static
int
my
abs
(
int
i
)
{
if
(
0
>
i
)
i
=
-
i
;
return
(
i
);
...
...
@@ -39,7 +39,7 @@ boolean place_ok (int i) {
boolean
res
;
while
(
j
<
i
)
{
if
((
row
[
j
]
==
row
[
i
])
||
((
abs
(
row
[
i
]
-
row
[
j
]))
==
(
i
-
j
)))
{
if
((
row
[
j
]
==
row
[
i
])
||
((
my
abs
(
row
[
i
]
-
row
[
j
]))
==
(
i
-
j
)))
{
res
=
false
;
return
(
res
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment