head	1.3;
access;
symbols
	RELEASE_7_0_0:1.2
	RELEASE_6_3_0:1.2
	PRE_XORG_7:1.2
	RELEASE_4_EOL:1.2
	RELEASE_6_2_0:1.2
	RELEASE_6_1_0:1.2
	RELEASE_5_5_0:1.2
	RELEASE_6_0_0:1.2
	RELEASE_5_4_0:1.2
	RELEASE_4_11_0:1.2
	RELEASE_5_3_0:1.2
	RELEASE_4_10_0:1.2
	RELEASE_5_2_1:1.2
	RELEASE_5_2_0:1.2
	RELEASE_4_9_0:1.2
	RELEASE_5_1_0:1.2
	RELEASE_4_8_0:1.2
	RELEASE_5_0_0:1.1
	RELEASE_4_7_0:1.1
	RELEASE_4_6_2:1.1
	RELEASE_4_6_1:1.1
	RELEASE_4_6_0:1.1
	RELEASE_5_0_DP1:1.1;
locks; strict;
comment	@# @;


1.3
date	2007.12.15.18.47.00;	author pav;	state dead;
branches;
next	1.2;

1.2
date	2003.02.15.18.43.14;	author naddy;	state Exp;
branches;
next	1.1;

1.1
date	2002.03.22.08.23.22;	author wjv;	state Exp;
branches;
next	;


desc
@@


1.3
log
@- Update to 2.0

PR:		ports/117713
Submitted by:	Motomichi Matsuzaki <mzaki@@e-mail.ne.jp>
@
text
@--- amenu.c.orig	Thu Feb 13 15:19:00 2003
+++ amenu.c	Thu Feb 13 15:21:10 2003
@@@@ -13,7 +13,8 @@@@
 static jmp_buf jmpbuf;
 #ifndef VMS
 #ifndef AIX
-#define BADSIG (void (*)())-1
+/* #define BADSIG (void (*)())-1 */
+#define BADSIG SIG_ERR
 #endif
 #endif
 
@@@@ -184,7 +185,7 @@@@
 		fprintf(stdout,"     H. HELP\n");
 		fprintf(stdout,"     X. EXIT (leave program)\n\n\n");
 		
-		getstr("Your choice",lin1);
+		getstr("Your choice",lin1,MAXLINE);
 
 		switch(toupper(*lin1)) {
 			case '1': seq_input(FALSE);
@@@@ -268,7 +269,7 @@@@
         fprintf(stdout,"    H.  HELP\n");
         fprintf(stdout,"    or press [RETURN] to go back to main menu\n\n\n");
 
-        getstr("Your choice",lin1);
+        getstr("Your choice",lin1,MAXLINE);
         if(*lin1 == EOS) return;
 
         switch(toupper(*lin1))
@@@@ -361,7 +362,7 @@@@
         fprintf(stdout,"    H.  HELP\n");
         fprintf(stdout,"    or press [RETURN] to go back to main menu\n\n\n");
 
-        getstr("Your choice",lin1);
+        getstr("Your choice",lin1,MAXLINE);
         if(*lin1 == EOS) return;
 
         switch(toupper(*lin1))
@@@@ -457,7 +458,7 @@@@
 		fprintf(stdout,"\n\n");
 		fprintf(stdout,"     H. HELP\n\n\n");
 		
-		getstr("Enter number (or [RETURN] to exit)",lin2);
+		getstr("Enter number (or [RETURN] to exit)",lin2,MAXLINE);
 		if( *lin2 == EOS) { 
 			return;
 		}
@@@@ -533,7 +534,7 @@@@
                 fprintf(stdout,"--\n");
 
 
-                getstr("\n\nEnter number (or [RETURN] to exit)",lin2);
+                getstr("\n\nEnter number (or [RETURN] to exit)",lin2,MAXLINE);
                 if(*lin2 == EOS) return(output_struct_penalties);
 
         	switch(toupper(*lin2))
@@@@ -602,7 +603,7 @@@@
         fprintf(stdout,"    H.  HELP\n");
         fprintf(stdout,"    or press [RETURN] to go back to main menu\n\n\n");
 
-        getstr("Your choice",lin1);
+        getstr("Your choice",lin1,MAXLINE);
         if(*lin1 == EOS) return;
 
         switch(toupper(*lin1))
@@@@ -677,7 +678,7 @@@@
 	fprintf(stdout,"\n");
 	fprintf(stdout,"     H. HELP\n\n\n");	
 	
-		getstr("Enter number (or [RETURN] to exit)",lin2);
+		getstr("Enter number (or [RETURN] to exit)",lin2,MAXLINE);
 		if(*lin2 == EOS) return;
 		
 		switch(toupper(*lin2)) {
@@@@ -766,7 +767,7 @@@@
 	fprintf(stdout,"\n");
 	fprintf(stdout,"     H. HELP\n\n\n");	
 	
-		getstr("Enter number (or [RETURN] to exit)",lin2);
+		getstr("Enter number (or [RETURN] to exit)",lin2,MAXLINE);
 		if(*lin2 == EOS) return;
 		
 		switch(toupper(*lin2)) {
@@@@ -907,7 +908,7 @@@@
 
 		fprintf(stdout,"     H. HELP\n\n\n");
 		
-		getstr("Enter number (or [RETURN] to exit)",lin2);
+		getstr("Enter number (or [RETURN] to exit)",lin2,MAXLINE);
 		if( *lin2 == EOS) {
                         if(dnaflag) {
                                 dna_pw_go_penalty     = pw_go_penalty;
@@@@ -1029,7 +1030,7 @@@@
                 fprintf(stdout,"     8. Protein Gap Parameters\n\n");
 		fprintf(stdout,"     H. HELP\n\n\n");		
 
-		getstr("Enter number (or [RETURN] to exit)",lin2);
+		getstr("Enter number (or [RETURN] to exit)",lin2,MAXLINE);
 
 		if(*lin2 == EOS) {
 			if(dnaflag) {
@@@@ -1122,7 +1123,7 @@@@
 		fprintf(stdout,"     5. Toggle End Gap Separation         :%s\n\n",(!use_endgaps) ? "OFF" : "ON");
 		fprintf(stdout,"     H. HELP\n\n\n");		
 
-		getstr("Enter number (or [RETURN] to exit)",lin2);
+		getstr("Enter number (or [RETURN] to exit)",lin2,MAXLINE);
 
 		if(*lin2 == EOS) return;
 		
@@@@ -1136,7 +1137,7 @@@@
 			case '3':
 				fprintf(stdout,"Hydrophilic Residues Currently: %s\n",hyd_residues);
 
-				getstr("Enter residues (or [RETURN] to quit)",lin1);
+				getstr("Enter residues (or [RETURN] to quit)",lin1,MAXLINE);
                                 if (*lin1 != EOS) {
                                         for (i=0;i<strlen(hyd_residues) && i<26;i++) {
                                         c = lin1[i];
@@@@ -1188,7 +1189,7 @@@@
                 fprintf(stdout,"--\n");
 
 
-                getstr("\n\nEnter number (or [RETURN] to exit)",lin2);
+                getstr("\n\nEnter number (or [RETURN] to exit)",lin2,MAXLINE);
                 if(*lin2 == EOS) return(matn);
 
                 i=toupper(*lin2)-'0';
@@@@ -1223,7 +1224,7 @@@@
 	fprintf(stdout,"\n%s\n",title);
 	strcpy(line,prompt);
 	strcat(line, "(y/n) ? [y]");
-	getstr(line,lin2);
+	getstr(line,lin2,80);
 	if ((*lin2 != 'n') && (*lin2 != 'N'))
 		return('y');
 	else
@


1.2
log
@Update to 1.83.

PR:		48264
Submitted by:	David A. Bader <dbader@@eece.unm.edu>
@
text
@@


1.1
log
@- Fix certain mistakes in FreeBSD patches
- Bump PORTREVISION
- Poroblem originally reported by Fernan Aguero <fernan@@iib.unsam.edu.ar> on
  FreeBSD-bio list

PR:		36169
Submitted by:	David A. Bader <dbader@@eece.unm.edu> (MAINTAINER)
@
text
@d1 2
a2 2
--- amenu.c-orig	Tue Feb  6 03:15:01 2001
+++ amenu.c	Thu Mar 21 10:19:02 2002
d13 1
a13 1
@@@@ -176,7 +177,7 @@@@
d22 1
a22 1
@@@@ -260,7 +261,7 @@@@
d31 1
a31 1
@@@@ -353,7 +354,7 @@@@
d40 1
a40 1
@@@@ -449,7 +450,7 @@@@
d49 1
a49 1
@@@@ -525,7 +526,7 @@@@
d58 1
a58 1
@@@@ -594,7 +595,7 @@@@
d67 1
a67 1
@@@@ -669,7 +670,7 @@@@
d76 1
a76 1
@@@@ -752,7 +753,7 @@@@
d85 1
a85 1
@@@@ -886,7 +887,7 @@@@
d94 1
a94 1
@@@@ -1008,7 +1009,7 @@@@
d103 1
a103 1
@@@@ -1101,7 +1102,7 @@@@
d112 1
a112 1
@@@@ -1115,7 +1116,7 @@@@
d121 1
a121 1
@@@@ -1167,7 +1168,7 @@@@
d130 1
a130 1
@@@@ -1202,7 +1203,7 @@@@
@

