2 /* =============================================================================
3 * reservation_info_alloc
4 * -- Returns NULL on failure
5 * =============================================================================
7 public class Reservation_Info {
12 public Reservation_Info(int type, int id, int price) {
19 /* =============================================================================
20 * reservation_info_compare
21 * -- Returns -1 if A < B, 0 if A = B, 1 if A > B
22 * =============================================================================
24 public static int reservation_info_compare (Reservation_Info aPtr, Reservation_Info bPtr) {
27 typeDiff = aPtr.type - bPtr.type;
29 return ((typeDiff != 0) ? (typeDiff) : (aPtr.id - bPtr.id));
34 /* =============================================================================
36 * -- Returns NULL on failure
37 * =============================================================================