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.5.8
[lilypond.git]
/
flower
/
axis.cc
blob
0bf70a244eca3e39b31c6c4bb79b19c152e8c647
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
#include
"string.hh"
12
13
String
14
axis_name_str
(
Axis a
)
15
{
16
return
to_str
(
char
(
a
+
'x'
));
17
}
18
19
/*
20
TODO inline these.
21
*/
22
Axis
23
post_incr
(
Axis
&
a
)
24
{
25
assert
(
a
<
NO_AXES
);
26
Axis b
=
a
;
27
a
=
Axis
(
int
(
a
) +
1
);
28
return
b
;
29
}
30
31
Axis
32
incr
(
Axis
&
a
)
33
{
34
assert
(
a
<
NO_AXES
);
35
a
=
Axis
(
int
(
a
) +
1
);
36
return
a
;
37
}
38