Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Simplified use of va_arg to accommodate gcc bug.

  • Loading branch information...
commit 69513ea22e3501394ae35066dd8fcf6071bf597d 1 parent 4ac0600
Dave Hanson authored March 08, 2002

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. 6  lburg/lburg.c
6  lburg/lburg.c
@@ -302,7 +302,11 @@ static void print(char *fmt, ...) {
302 302
 				print("%S: %T", r->lhs, r->pattern);
303 303
 				break;
304 304
 				}
305  
-			case 'S': fputs((va_arg(ap, Term))->name, outfp); break;
  305
+			case 'S': {
  306
+				Term t = va_arg(ap, Term);
  307
+				fputs(t->name, outfp);
  308
+				break;
  309
+				}
306 310
 			case '1': case '2': case '3': case '4': case '5': {
307 311
 				int n = *fmt - '0';
308 312
 				while (n-- > 0)

0 notes on commit 69513ea

Please sign in to comment.
Something went wrong with that request. Please try again.