Annotation of capa/capa51/pProj/capalogineditor.c, revision 1.2
1.2 ! albertel 1: /* broken beginning to reimplement the capalogin editor
! 2: Copyright (C) 1992-2000 Michigan State University
! 3:
! 4: The CAPA system is free software; you can redistribute it and/or
! 5: modify it under the terms of the GNU Library General Public License as
! 6: published by the Free Software Foundation; either version 2 of the
! 7: License, or (at your option) any later version.
! 8:
! 9: The CAPA system is distributed in the hope that it will be useful,
! 10: but WITHOUT ANY WARRANTY; without even the implied warranty of
! 11: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
! 12: Library General Public License for more details.
! 13:
! 14: You should have received a copy of the GNU Library General Public
! 15: License along with the CAPA system; see the file COPYING. If not,
! 16: write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
! 17: Boston, MA 02111-1307, USA. */
! 18:
1.1 albertel 19: /* gather subjective answers from student */
20:
21: #define BS 8
22: #define DEL 127
23: #define ESC 27
24:
25: #define COLON 58
26:
27: #define EDIT_HEIGHT 21
28: #define EDIT_WIDTH 80
29:
30: void init_editor(char*** sbuf_pp)
31: {
32: int ww=EDIT_WIDTH, hh=EDIT_HEIGHT,i;
33: *sbuf_pp = (char **)capa_malloc(sizeof(char *),hh);
34: for(i=0;i<hh;i++) {
35: *sbuf_pp[i] = (char *)capa_malloc(sizeof(char)*ww+1,1);
36: }
37: }
38:
39: int handle_keystrokes_editor(char** sbuf_pp)
40: {
41: }
42:
43: int editor(char*** sbuf_pp)
44: {
45: init_editor(sbuf_pp);
46: return handle_keystrokes_editor(*sbuf_pp);
47: }
48:
49: void
50: answer_subjective(student_number,set,section,prob)
51: char *student_number;
52: int set;
53: int *section;
54: int prob;
55: {
56: char **sbuf_pp;
57:
58: if (editor(&sbuf_pp)) {
59: /*turn sbuf_pp into one string and store subjective*/
60: }
61: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>