Subversion Repositories wimsdev

Rev

Rev 1164 | Rev 7638 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. /*    Copyright (C) 1998-2003 XIAO, Gang of Universite de Nice - Sophia Antipolis
  2.  *
  3.  *  This program is free software; you can redistribute it and/or modify
  4.  *  it under the terms of the GNU General Public License as published by
  5.  *  the Free Software Foundation; either version 2 of the License, or
  6.  *  (at your option) any later version.
  7.  *
  8.  *  This program is distributed in the hope that it will be useful,
  9.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11.  *  GNU General Public License for more details.
  12.  *
  13.  *  You should have received a copy of the GNU General Public License
  14.  *  along with this program; if not, write to the Free Software
  15.  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16.  */
  17.  
  18. /* WWW interactive multipurpose server, header definitions */
  19.  
  20. #ifndef wimsdef_h
  21.  
  22.         /* maximal (multi-)line length. */
  23. #define MAX_LINELEN 32000
  24.         /* limit of items in a list; will never exceed MAX_LINELEN/2. */
  25. #define MAX_LIST 8192
  26.         /* maximal name length */
  27. #define MAX_NAMELEN 63
  28.         /* maximal file name length, complete path. */
  29. #define MAX_FNAME 199
  30.         /* maximal module name length. */
  31. #define MAX_MODULELEN 100
  32.         /* maximal number of resident executions */
  33. #define MAX_MULTIEXEC 4
  34.         /* maximal file length for webget */
  35. #define MAX_WEBGETFLEN (32*1024*1024)
  36.         /* max length of class name */
  37. #define MAX_CLASSLEN 31
  38.         /* max length of session name */
  39. #define MAX_SESSIONLEN 23
  40.         /* max number of exercises in a class (sheets and exams) */
  41. #define MAX_CLASSEXOS 2048
  42.         /* max number of exercises in a sheet or exam; not modifiable */
  43. #define MAX_EXOS 64
  44.         /* max number of sheets; not modifiable */
  45. #define MAX_SHEETS 64
  46.         /* max length of data files: records, activities, definitions. */
  47. #define MAX_FILELEN (2048*1024-1)
  48.         /* max number of filewrite calls in one request */
  49. #define MAX_FWRITE 20
  50.         /* max total size of filewrite in one request */
  51. #define MAX_FWRITE_SIZE (64*1024)
  52.  
  53.         /* max number of lines in a work file */
  54.         /* Limit for datafield cache */
  55. #define LINE_LIMIT 16384
  56.         /* size of cached datafields */
  57. #define DATAFIELD_LIMIT 16384
  58.  
  59.         /* Define current version of the server here */
  60. #define wims_version PACKAGE_VERSION
  61. #ifdef VERSION_DATE
  62.   #define wims_version_date VERSION_DATE
  63. #else
  64.   #define wims_version_date ""
  65. #endif
  66.  
  67. #define SHORTSWNAME "WIMS"
  68. #define LONGSWNAME "WWW Interactive Multipurpose Server"
  69.  
  70. typedef struct scoreresult {
  71.     unsigned short int num, pad;
  72.     float require, weight, score, mean;
  73. } scoreresult;
  74.  
  75. #define wimsdef_h
  76. #endif
  77.