diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2011-10-08 20:30:28 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2011-10-08 20:30:28 +0200 |
| commit | 5df79c53745fde5d6c3340a2979b1429cd5892c1 (patch) | |
| tree | 1a81af141708b826e9c61e8a04019994fcca8298 /src/serv/const.cc | |
Initial import of htcd system 1.0
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/serv/const.cc')
| -rw-r--r-- | src/serv/const.cc | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/src/serv/const.cc b/src/serv/const.cc new file mode 100644 index 0000000..f252a17 --- /dev/null +++ b/src/serv/const.cc | |||
| @@ -0,0 +1,69 @@ | |||
| 1 | /************************************************************************* | ||
| 2 | * | ||
| 3 | * HTCd - Copyright (C) 1998-2006 Henrik Rydberg | ||
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License as published by | ||
| 7 | * the Free Software Foundation; either version 2 of the License, or | ||
| 8 | * (at your option) any later version. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with this program; if not, write to the Free Software | ||
| 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 18 | */ | ||
| 19 | |||
| 20 | #include <serv/htcd.h> | ||
| 21 | |||
| 22 | inline tok_t* Const(tokmap& map,const char* s,const sref& b) throw(merror_t) { | ||
| 23 | return Const(map,sref(s),b,tok_t::PUBLIC); | ||
| 24 | } | ||
| 25 | |||
| 26 | void envAddConst(tokmap& T) | ||
| 27 | { | ||
| 28 | Const(T,"HTTP.100",HTTP_100); | ||
| 29 | Const(T,"HTTP.101",HTTP_101); | ||
| 30 | Const(T,"HTTP.200",HTTP_200); | ||
| 31 | Const(T,"HTTP.201",HTTP_201); | ||
| 32 | Const(T,"HTTP.202",HTTP_202); | ||
| 33 | Const(T,"HTTP.203",HTTP_203); | ||
| 34 | Const(T,"HTTP.204",HTTP_204); | ||
| 35 | Const(T,"HTTP.205",HTTP_205); | ||
| 36 | Const(T,"HTTP.206",HTTP_206); | ||
| 37 | Const(T,"HTTP.300",HTTP_300); | ||
| 38 | Const(T,"HTTP.301",HTTP_301); | ||
| 39 | Const(T,"HTTP.302",HTTP_302); | ||
| 40 | Const(T,"HTTP.303",HTTP_303); | ||
| 41 | Const(T,"HTTP.304",HTTP_304); | ||
| 42 | Const(T,"HTTP.305",HTTP_305); | ||
| 43 | Const(T,"HTTP.306",HTTP_306); | ||
| 44 | Const(T,"HTTP.307",HTTP_307); | ||
| 45 | Const(T,"HTTP.400",HTTP_400); | ||
| 46 | Const(T,"HTTP.401",HTTP_401); | ||
| 47 | Const(T,"HTTP.402",HTTP_402); | ||
| 48 | Const(T,"HTTP.403",HTTP_403); | ||
| 49 | Const(T,"HTTP.404",HTTP_404); | ||
| 50 | Const(T,"HTTP.405",HTTP_405); | ||
| 51 | Const(T,"HTTP.406",HTTP_406); | ||
| 52 | Const(T,"HTTP.407",HTTP_407); | ||
| 53 | Const(T,"HTTP.408",HTTP_408); | ||
| 54 | Const(T,"HTTP.409",HTTP_409); | ||
| 55 | Const(T,"HTTP.410",HTTP_410); | ||
| 56 | Const(T,"HTTP.411",HTTP_411); | ||
| 57 | Const(T,"HTTP.412",HTTP_412); | ||
| 58 | Const(T,"HTTP.413",HTTP_413); | ||
| 59 | Const(T,"HTTP.414",HTTP_414); | ||
| 60 | Const(T,"HTTP.415",HTTP_415); | ||
| 61 | Const(T,"HTTP.416",HTTP_416); | ||
| 62 | Const(T,"HTTP.417",HTTP_417); | ||
| 63 | Const(T,"HTTP.500",HTTP_500); | ||
| 64 | Const(T,"HTTP.501",HTTP_501); | ||
| 65 | Const(T,"HTTP.502",HTTP_502); | ||
| 66 | Const(T,"HTTP.503",HTTP_503); | ||
| 67 | Const(T,"HTTP.504",HTTP_504); | ||
| 68 | Const(T,"HTTP.505",HTTP_505); | ||
| 69 | } | ||
