repo.or.cz
/
lilypond.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
lilypond-1.3.66
[lilypond.git]
/
flower
/
axis.cc
blob
ed55fddc4983ec83c4ae50d10fb929049ec41064
1
/*
2
axis.cc -- implement Axis
3
4
5
6
(c) 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7
*/
8
9
#include <assert.h>
10
#include
"axes.hh"
11
12
String
13
axis_name_str
(
Axis a
)
14
{
15
return
to_str
(
char
(
a
+
'x'
));
16
}
17
18
/*
19
TODO inline these.
20
*/
21
Axis
22
post_incr
(
Axis
&
a
)
23
{
24
assert
(
a
<
NO_AXES
);
25
Axis b
=
a
;
26
a
=
Axis
(
int
(
a
) +
1
);
27
return
b
;
28
}
29
30
Axis
31
incr
(
Axis
&
a
)
32
{
33
assert
(
a
<
NO_AXES
);
34
a
=
Axis
(
int
(
a
) +
1
);
35
return
a
;
36
}
37