groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff] Re: 1.17.2 - mkstemp problem


From: Gaius Mulley
Subject: [Groff] Re: 1.17.2 - mkstemp problem
Date: Fri, 27 Jul 2001 11:31:38 +0100

Hi Werner,

here is a patch for the fix that Ralph kindly made. [Always good to get
a patch which decreases the lines of code :-)]

Gaius


--- groff-cvs/src/preproc/html/pushbackbuffer.cc        Thu Apr 19 15:01:54 2001
+++ groff-html/src/preproc/html/pushbackbuffer.cc       Fri Jul 27 11:09:43 2001
@@ -292,20 +292,15 @@
 
 float pushBackBuffer::readNumber (void)
 {
-  int  integer;
-  int  fraction;
+  int i;
   char ch;
-  float f;
 
-  integer = readInt();
-  if (putPB(getPB()) == '.') {
-    ch = getPB();
-    fraction = readInt();
-    f = convertToFloat(integer, fraction);
-    return( f );
-  } else {
-    return( (float)integer );
+  i = readInt();
+  if ((ch = getPB()) == '.') {
+    return convertToFloat(i, readInt());
   }
+  putPB(ch);
+  return (float)i;
 }
 
 /*

reply via email to

[Prev in Thread] Current Thread [Next in Thread]