emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lib-src/yow.c


From: Juanma Barranquero
Subject: [Emacs-diffs] Changes to emacs/lib-src/yow.c
Date: Tue, 04 Feb 2003 09:06:57 -0500

Index: emacs/lib-src/yow.c
diff -c emacs/lib-src/yow.c:1.16 emacs/lib-src/yow.c:1.17
*** emacs/lib-src/yow.c:1.16    Tue Jan 21 13:29:11 2003
--- emacs/lib-src/yow.c Tue Feb  4 09:06:56 2003
***************
*** 1,12 ****
  /*
   * yow.c
!  * 
   * Print a quotation from Zippy the Pinhead.
   * Qux <address@hidden> March 6, 1986
   *
   * This file is in the public domain because the author published it
   * with no copyright notice before the US signed the Bern Convention.
!  * 
   * With dynamic memory allocation.
   */
  
--- 1,12 ----
  /*
   * yow.c
!  *
   * Print a quotation from Zippy the Pinhead.
   * Qux <address@hidden> March 6, 1986
   *
   * This file is in the public domain because the author published it
   * with no copyright notice before the US signed the Bern Convention.
!  *
   * With dynamic memory allocation.
   */
  
***************
*** 114,120 ****
    header_len = ftell(fp);
    if (header_len > AVG_LEN)
      header_len -= AVG_LEN;    /* allow the first quotation to appear */
!       
    if (fseek(fp, 0L, 2) == -1) {
      perror("yow");
      exit(1);
--- 114,120 ----
    header_len = ftell(fp);
    if (header_len > AVG_LEN)
      header_len -= AVG_LEN;    /* allow the first quotation to appear */
! 
    if (fseek(fp, 0L, 2) == -1) {
      perror("yow");
      exit(1);
***************
*** 167,173 ****
    buf[i++] = c;
    while ((c = getc(fp)) != SEP && c != EOF) {
      buf[i++] = c;
!       
      if (i == bufsize-1) {
        /* Yow! Is this quotation too long yet? */
        bufsize *= 2;
--- 167,173 ----
    buf[i++] = c;
    while ((c = getc(fp)) != SEP && c != EOF) {
      buf[i++] = c;
! 
      if (i == bufsize-1) {
        /* Yow! Is this quotation too long yet? */
        bufsize *= 2;




reply via email to

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