Back to index

wims  3.65+svn20090927
wimsdef.h
Go to the documentation of this file.
00001 /*    Copyright (C) 1998-2003 XIAO, Gang of Universite de Nice - Sophia Antipolis
00002  *
00003  *  This program is free software; you can redistribute it and/or modify
00004  *  it under the terms of the GNU General Public License as published by
00005  *  the Free Software Foundation; either version 2 of the License, or
00006  *  (at your option) any later version.
00007  *
00008  *  This program is distributed in the hope that it will be useful,
00009  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011  *  GNU General Public License for more details.
00012  *
00013  *  You should have received a copy of the GNU General Public License
00014  *  along with this program; if not, write to the Free Software
00015  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00016  */
00017 
00018 /* WWW interactive multipurpose server, header definitions */
00019 
00020 #ifndef wimsdef_h
00021 
00022        /* maximal (multi-)line length. */
00023 #define MAX_LINELEN 32000
00024        /* limit of items in a list; will never exceed MAX_LINELEN/2. */
00025 #define MAX_LIST 8192
00026        /* maximal name length */
00027 #define MAX_NAMELEN 63
00028        /* maximal file name length, complete path. */
00029 #define MAX_FNAME 199
00030        /* maximal module name length. */
00031 #define MAX_MODULELEN 100
00032        /* maximal number of resident executions */
00033 #define MAX_MULTIEXEC 4
00034        /* maximal file length for webget */
00035 #define MAX_WEBGETFLEN (32*1024*1024)
00036        /* max length of class name */
00037 #define MAX_CLASSLEN 31
00038        /* max length of session name */
00039 #define MAX_SESSIONLEN 23
00040        /* max number of exercises in a class (sheets and exams) */
00041 #define MAX_CLASSEXOS 2048
00042        /* max number of exercises in a sheet; not modifiable */
00043 #define MAX_EXOS 64
00044        /* max number of sheets; not modifiable */
00045 #define MAX_SHEETS 64
00046        /* max length of data files: records, activities, definitions. */
00047 #define MAX_FILELEN (2048*1024-1)
00048        /* max number of filewrite calls in one request */
00049 #define MAX_FWRITE 20
00050        /* max total size of filewrite in one request */
00051 #define MAX_FWRITE_SIZE (64*1024)
00052 
00053        /* max number of lines in a work file */
00054        /* Limit for datafield cache */
00055 #define LINE_LIMIT 16384
00056        /* size of cached datafields */
00057 #define DATAFIELD_LIMIT 16384
00058 
00059        /* Define current version of the server here */
00060 #define wims_version PACKAGE_VERSION
00061 #ifdef VERSION_DATE
00062   #define wims_version_date VERSION_DATE
00063 #else
00064   #define wims_version_date ""
00065 #endif
00066 
00067 #define SHORTSWNAME "WIMS"
00068 #define LONGSWNAME "WWW Interactive Multipurpose Server"
00069 
00070 typedef struct scoreresult {
00071     unsigned short int num, pad;
00072     float require, weight, score, mean;
00073 } scoreresult;
00074 
00075 #define wimsdef_h
00076 #endif