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.74
[lilypond.git]
/
lily
/
axis.cc
blob
ff8566988dafe928bcb80209d3d800c4bee22629
1
/*
2
axis.cc -- implement Axis
3
4
source file of the GNU LilyPond music typesetter
5
6
(c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7
*/
8
9
#include <assert.h>
10
11
#include
"axes.hh"
12
#include
"string.hh"
13
14
String
15
axis_name_str
(
Axis a
)
16
{
17
return
String
(
char
(
a
+
'x'
));
18
}
19
20
/*
21
TODO inline these.
22
*/
23
Axis
24
post_incr
(
Axis
&
a
)
25
{
26
assert
(
a
<
NO_AXES
);
27
Axis b
=
a
;
28
a
=
Axis
(
int
(
a
) +
1
);
29
return
b
;
30
}
31
32
Axis
33
incr
(
Axis
&
a
)
34
{
35
assert
(
a
<
NO_AXES
);
36
a
=
Axis
(
int
(
a
) +
1
);
37
return
a
;
38
}
39