From: mar Date: Tue, 30 Jan 1990 18:08:23 +0000 (+0000) Subject: check for Sr. as a name suffix; don't change the class on STAFF people X-Git-Tag: release77~1045 X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/b2916c40cba9033dcb37b0408c98db1a143cd6ec check for Sr. as a name suffix; don't change the class on STAFF people --- diff --git a/regtape/students.dc b/regtape/students.dc index e57940ef..00ecaf1d 100644 --- a/regtape/students.dc +++ b/regtape/students.dc @@ -133,7 +133,7 @@ FILE *in; static struct entry e; static char buf[BUFSIZ], eid[16], classbuf[10], titlebuf[12]; static int year = 0; - int ends_jr, ends_iii, ends_iv; + int ends_jr, ends_iii, ends_iv, ends_sr; char *p; if (year == 0) { @@ -164,17 +164,17 @@ FILE *in; } else e.first = ""; e.first = strtrim(e.first); - ends_jr = ends_iii = ends_iv = 0; + ends_jr = ends_iii = ends_iv = ends_sr = 0; LookForSt(e.last); LookForO(e.last); - LookForJrAndIII(e.last, &ends_jr, &ends_iii, &ends_iv); - LookForJrAndIII(e.first, &ends_jr, &ends_iii, &ends_iv); + LookForJrAndIII(e.last, &ends_sr, &ends_jr, &ends_iii, &ends_iv); + LookForJrAndIII(e.first, &ends_sr, &ends_jr, &ends_iii, &ends_iv); FixCase(e.last); FixCase(e.first); FixCase(e.middle); e.title = titlebuf; titlebuf[0] = 0; - AppendJrOrIII(titlebuf, &ends_jr, &ends_iii, &ends_iv); + AppendJrOrIII(titlebuf, &ends_sr, &ends_jr, &ends_iii, &ends_iv); e.id = &buf[LOC_ID]; e.id[LEN_ID] = 0; @@ -228,7 +228,7 @@ struct entry *e; newuser(e); return; } - if (strcmp(e->class, strtrim(class))) { + if (strcmp(e->class, strtrim(class)) && strcmp(class, "STAFF")) { com_err(whoami, 0, "updating class for user %s %s from %s to %s", first, last, class, e->class); strcpy(class, e->class);