34 lines
1.4 KiB
C++
34 lines
1.4 KiB
C++
// +-------------------------------------------------------------------------+
|
|
// | Script Plus Plus vers. 0.3.72 |
|
|
// | Copyright (c) Andrey V. Stolyarov <croco at croco dot net> 2003--2023 |
|
|
// | ----------------------------------------------------------------------- |
|
|
// | This is free software. Permission is granted to everyone to use, copy |
|
|
// | or modify this software under the terms and conditions of |
|
|
// | GNU LESSER GENERAL PUBLIC LICENSE, v. 2.1 |
|
|
// | as published by Free Software Foundation (see the file LGPL.txt) |
|
|
// | |
|
|
// | Please visit http://www.croco.net/software/scriptpp to get a fresh copy |
|
|
// | ----------------------------------------------------------------------- |
|
|
// | This code is provided strictly and exclusively on the "AS IS" basis. |
|
|
// | !!! THERE IS NO WARRANTY OF ANY KIND, NEITHER EXPRESSED NOR IMPLIED !!! |
|
|
// +-------------------------------------------------------------------------+
|
|
|
|
|
|
|
|
|
|
#ifndef SCRSORT_HPP_SENTRY
|
|
#define SCRSORT_HPP_SENTRY
|
|
|
|
|
|
class ScriptVariable;
|
|
class ScriptVector;
|
|
|
|
typedef bool
|
|
(*scriptpp_cmpfunc)(const ScriptVariable &a, const ScriptVariable &b);
|
|
|
|
void scriptpp_sort(ScriptVector &v, scriptpp_cmpfunc less = 0);
|
|
void scriptpp_sort_range(ScriptVector &v, int idx, int len,
|
|
scriptpp_cmpfunc less = 0);
|
|
|
|
#endif
|