Re: Personal Copyright Notices

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Personal Copyright Notices
Дата
Msg-id 201002050324.o153OC019861@momjian.us
обсуждение исходный текст
Ответ на Personal Copyright Notices  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: Personal Copyright Notices
Список pgsql-hackers
Bruce Momjian wrote:
> The intagg copyright is on a _Makefile_:
>
>     # Makefile for integer aggregator
>     # Copyright (C) 2001 Digital Music Network.
>     # by Mark L. Woodward
>     # $PostgreSQL: pgsql/contrib/intagg/Makefile,v 1.10 2008/11/14 19:58:45    tgl Exp $
>
> Seems we either have to contact the author or rewrite the file.

I have rewritten the above file from scratch to enable removal of the
copyright mention.

> ---------------------------------------------------------------------------
>
> The rint.c file is again tiny:
>
>  * rint.c
>  *    rint() implementation
>  *
>  * Copyright (c) 1999, repas AEG Automation GmbH
>
> Perhaps that just needs to be rewritten.

I received a new rint() version from Nathan Wagner that is simpler and
replaced the old rint() code with Nathan's and removed the copyright
mention.  Patch attached.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +
Index: src/port/rint.c
===================================================================
RCS file: /cvsroot/pgsql/src/port/rint.c,v
retrieving revision 1.2
diff -c -c -r1.2 rint.c
*** src/port/rint.c    29 Nov 2003 19:52:13 -0000    1.2
--- src/port/rint.c    5 Feb 2010 03:20:25 -0000
***************
*** 3,11 ****
   * rint.c
   *      rint() implementation
   *
-  * Copyright (c) 1999, repas AEG Automation GmbH
-  *
-  *
   * IDENTIFICATION
   *      $PostgreSQL: pgsql/src/port/rint.c,v 1.2 2003/11/29 19:52:13 pgsql Exp $
   *
--- 3,8 ----
***************
*** 18,37 ****
  double
  rint(double x)
  {
!     double        f,
!                 n = 0.;
!
!     f = modf(x, &n);
!
!     if (x > 0.)
!     {
!         if (f > .5)
!             n += 1.;
!     }
!     else if (x < 0.)
!     {
!         if (f < -.5)
!             n -= 1.;
!     }
!     return n;
  }
--- 15,19 ----
  double
  rint(double x)
  {
!     return (x > 0.0) ? floor(x + 0.5) : ceil(x - 0.5);
  }

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: testing cvs HEAD - HS/SR - cannot stat
Следующее
От: M Z
Дата:
Сообщение: Re: remove contrib/xml2