coll.c (d1d015864103b253b3fcb2f72a0da5b0cfeb31b6) coll.c (f79477ebd57d7b0e69654281387ba5db8950ebd8)
1/*-
2 * Copyright (C) 2009 Gabor Kovesdan <gabor@FreeBSD.org>
3 * Copyright (C) 2012 Oleg Moskalenko <mom040267@gmail.com>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 64 unchanged lines hidden (view full) ---

73 sz = keys_array_size();
74 ka = sort_malloc(sz);
75 memset(ka, 0, sz);
76
77 return (ka);
78}
79
80/*
1/*-
2 * Copyright (C) 2009 Gabor Kovesdan <gabor@FreeBSD.org>
3 * Copyright (C) 2012 Oleg Moskalenko <mom040267@gmail.com>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 64 unchanged lines hidden (view full) ---

73 sz = keys_array_size();
74 ka = sort_malloc(sz);
75 memset(ka, 0, sz);
76
77 return (ka);
78}
79
80/*
81 * Calculate whether we need key hint space
81 * Calculate whether we need key hint space
82 */
83static size_t
84key_hint_size(void)
85{
86
87 return (need_hint ? sizeof(struct key_hint) : 0);
88}
89

--- 500 unchanged lines hidden (view full) ---

590 */
591int
592list_coll(struct sort_list_item **ss1, struct sort_list_item **ss2)
593{
594
595 return (list_coll_offset(ss1, ss2, 0));
596}
597
82 */
83static size_t
84key_hint_size(void)
85{
86
87 return (need_hint ? sizeof(struct key_hint) : 0);
88}
89

--- 500 unchanged lines hidden (view full) ---

590 */
591int
592list_coll(struct sort_list_item **ss1, struct sort_list_item **ss2)
593{
594
595 return (list_coll_offset(ss1, ss2, 0));
596}
597
598#define LSCDEF(N) \
599static int \
600list_coll_##N(struct sort_list_item **ss1, struct sort_list_item **ss2) \
601{ \
602 \
603 return (list_coll_offset(ss1, ss2, N)); \
598#define LSCDEF(N) \
599static int \
600list_coll_##N(struct sort_list_item **ss1, struct sort_list_item **ss2) \
601{ \
602 \
603 return (list_coll_offset(ss1, ss2, N)); \
604}
605
606LSCDEF(1)
607LSCDEF(2)
608LSCDEF(3)
609LSCDEF(4)
610LSCDEF(5)
611LSCDEF(6)

--- 691 unchanged lines hidden ---
604}
605
606LSCDEF(1)
607LSCDEF(2)
608LSCDEF(3)
609LSCDEF(4)
610LSCDEF(5)
611LSCDEF(6)

--- 691 unchanged lines hidden ---