]>
Commit | Line | Data |
---|---|---|
77970e15 | 1 | # include "rstring.h" |
2 | ||
3 | static rstring rstring_ref (rstring r) | |
4 | { | |
5 | r->refs++; | |
6 | return r; | |
7 | } | |
8 | ||
9 | rstring rstring_first (rstring r1, rstring r2) | |
10 | { | |
11 | if (strcmp (r1->contents, r2->contents) < 0) | |
12 | { | |
13 | return r1; | |
14 | } | |
15 | else | |
16 | { | |
17 | return rstring_ref (r2); | |
18 | } | |
19 | } |