Diff for /loncom/homework/CAPA-converter/capaCommon.h between versions 1.6 and 1.8

version 1.6, 2001/11/18 09:40:45 version 1.8, 2001/12/05 18:58:21
Line 1 Line 1
   /* The LearningOnline Network with CAPA
    * Definitons of the convertor API 
    * $Id$
    *
    * Copyright Michigan State University Board of Trustees
    *
    * This file is part of the LearningOnline Network with CAPA (LON-CAPA).
    *
    * LON-CAPA is free software; you can redistribute it and/or modify
    * it under the terms of the GNU General Public License as published by
    * the Free Software Foundation; either version 2 of the License, or
    * (at your option) any later version.
    *
    * LON-CAPA is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    * GNU General Public License for more details.
    *
    * You should have received a copy of the GNU General Public License
    * along with LON-CAPA; if not, write to the Free Software
    * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    *
    * /home/httpd/html/adm/gpl.txt
    *
    * http://www.lon-capa.org/
    */
   
 /**********************************************************/  /**********************************************************/
 /*   This header defines Application Interface to the     */  /*   This header defines Application Interface to the     */
Line 156  extern int current_cache; Line 182  extern int current_cache;
 extern int do_cache[MAX_CACHE];  extern int do_cache[MAX_CACHE];
   
 #define MAX_STREAMS 100  #define MAX_STREAMS 100
   
   #define MAX_DEST 6
   #define DEFAULT_DEST 0
   #define HINT_DEST 1
   #define EXP_DEST 2
   #define ANS_DEST 3
   
 #define ALL_STREAMS -1  #define ALL_STREAMS -1
 extern struct dyn_string streams[MAX_STREAMS];  extern struct dyn_string streams[MAX_DEST][MAX_STREAMS];
 extern int num_streams;  extern int num_streams[MAX_DEST];
   extern int current_dest;
   
 int mode[MAX_STREAMS];  extern int mode[MAX_DEST][MAX_STREAMS];
 #define MODE_NONE    0  #define MODE_NONE    0
 #define MODE_COMMENT 1  #define MODE_COMMENT 1
 #define MODE_BLOCK   2  #define MODE_BLOCK   2
Line 173  int mode[MAX_STREAMS]; Line 207  int mode[MAX_STREAMS];
    mode has been entered. Set this to 1 and check again if it has been     mode has been entered. Set this to 1 and check again if it has been
    set back to zero.     set back to zero.
 */  */
 extern int watch_mode[MAX_STREAMS];  extern int watch_mode[MAX_DEST][MAX_STREAMS];
   extern int beg_mode[MAX_DEST][MAX_STREAMS];
 /*=============================================================================*/  /*=============================================================================*/
 /* CAPA PROTOTYPES FOR FUNCTIONS IN COMMON.C                                   */  /* CAPA PROTOTYPES FOR FUNCTIONS IN COMMON.C                                   */
 /*=============================================================================*/  /*=============================================================================*/
Line 181  extern int watch_mode[MAX_STREAMS]; Line 216  extern int watch_mode[MAX_STREAMS];
 int capa_parse(int  set,Problem_t **problem,char *filename,int *num_questions,void (*func_ptr)());  int capa_parse(int  set,Problem_t **problem,char *filename,int *num_questions,void (*func_ptr)());
 void send(char* text,...);  void send(char* text,...);
 void end_mode(void);  void end_mode(void);
 void end_mode_stream(int which);  void end_mode_stream(int which_dest, int which);
 void start_mode(int newmode,char* args);  void start_mode(int newmode,char* args);
 void start_mode_stream(int which,int newmode,char* args);  void start_mode_stream(int which_dest, int which,int newmode,char* args);
 void dyn_init(struct dyn_string *dyn);  void dyn_init(struct dyn_string *dyn);
 void dyn_free(struct dyn_string *dyn);  void dyn_free(struct dyn_string *dyn);
 int append_message(struct dyn_string *dyn_msg,char *format,va_list ap);  int append_message(struct dyn_string *dyn_msg,char *format,va_list ap);
Line 192  void flush_delayed(); Line 227  void flush_delayed();
 void start_delayed();  void start_delayed();
 void end_delayed();  void end_delayed();
 void send_stream(int which,char* text,...);  void send_stream(int which,char* text,...);
 void start_streams(int num);  void start_streams(int which_dest, int num);
 void end_streams(int which);  void end_streams(int which_dest, int which);
   int is_dest_empty(int which_dest);
   void change_destination(int which_dest);
   void send_destination_to_default(int which_dest);
 void new_cache();  void new_cache();
 void delete_cache();  void delete_cache();
 void start_cache();  void start_cache();

Removed from v.1.6  
changed lines
  Added in v.1.8


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>