Ignore:
Timestamp:
Apr 27, 2004, 8:39:34 PM (22 years ago)
Author:
bird
Message:

GCC v3.3.3 sources.

Location:
branches/GNU/src/gcc
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gcc

    • Property svn:ignore
      •  

        old new  
        2626configure.vr
        2727configure.vrs
         28
        2829Makefile
        29 dir.info
        3030lost+found
        3131update.out
  • branches/GNU/src/gcc/libjava/java/text/ChoiceFormat.java

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    11/* ChoiceFormat.java -- Format over a range of numbers
    2    Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
     2   Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
    33
    44This file is part of GNU Classpath.
     
    5353 * explaining it.  Consider the following example:
    5454 * <p>
    55  * <pre>
    56  * terminators = { 1, ChoiceFormat.nextDouble(1) }
    57  * formats = { "file", "files" }
    58  * </pre>
     55 *
     56terminators = { 1, ChoiceFormat.nextDouble(1) }
     57formats = { "file", "files" }</pre>
     58 *
    5959 * <p>
    6060 * In this case if the actual number tested is one or less, then the word
     
    260260      return appendBuf;
    261261
    262     int index =  0;
     262    int index = 0;
    263263    if (! Double.isNaN(num) && num >= choiceLimits[0])
    264264      {
    265265        for (; index < choiceLimits.length - 1; ++index)
    266266          {
    267             if (choiceLimits[index] <= num
    268                 && index != choiceLimits.length - 2
    269                 && num < choiceLimits[index + 1])
     267            if (choiceLimits[index] <= num && num < choiceLimits[index + 1])
    270268              break;
    271269          }
  • branches/GNU/src/gcc/libjava/java/text/Collator.java

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    154154   * @param str2 The second object to compare
    155155   *
    156    * @return A negative integer if str1 < str2, 0 if str1 == str2, or
    157    * a positive integer if str1 > str2.
     156   * @return A negative integer if str1 str2, 0 if str1 == str2, or
     157   * a positive integer if str1 str2.
    158158   */
    159159  public abstract int compare (String source, String target);
     
    168168   * @param obj2 The second object to compare
    169169   *
    170    * @return A negative integer if obj1 < obj2, 0 if obj1 == obj2, or
    171    * a positive integer if obj1 > obj2.
     170   * @return A negative integer if obj1 obj2, 0 if obj1 == obj2, or
     171   * a positive integer if obj1 obj2.
    172172   *
    173173   * @exception ClassCastException If the arguments are not instances
  • branches/GNU/src/gcc/libjava/java/text/Format.java

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    6060public abstract class Format implements Serializable, Cloneable
    6161{
     62
     63
    6264  /**
    6365   * This method initializes a new instance of <code>Format</code>.
  • branches/GNU/src/gcc/libjava/java/text/MessageFormat.java

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    11/* MessageFormat.java - Localized message formatting.
    2    Copyright (C) 1999, 2001 Free Software Foundation, Inc.
     2   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
    33
    44This file is part of GNU Classpath.
     
    374374              {
    375375                StringBuffer buf = new StringBuffer ();
    376                 // FIXME: don't actually know what is correct here.
    377                 // Can a sub-format refer to any argument, or just
    378                 // the single argument passed to it?  Must test
    379                 // against JDK.
    380376                formatter.format(thisArg, buf, ignore);
    381377                MessageFormat mf = new MessageFormat ();
    382378                mf.setLocale(locale);
    383379                mf.applyPattern(buf.toString());
    384                 formatter = mf;
     380                ;
    385381              }
    386             formatter.format(thisArg, appendBuf, ignore);
     382            else
     383              formatter.format(thisArg, appendBuf, ignore);
    387384          }
    388385
  • branches/GNU/src/gcc/libjava/java/text/ParseException.java

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    1 /* ParseException.java -- An error occurred while parsing.
    2    Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
     1/* ParseException.java --
     2   Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
    33
    44This file is part of GNU Classpath.
     
    88the Free Software Foundation; either version 2, or (at your option)
    99any later version.
    10  
     10
    1111GNU Classpath is distributed in the hope that it will be useful, but
    1212WITHOUT ANY WARRANTY; without even the implied warranty of
     
    3939package java.text;
    4040
    41 /* Written using "Java Class Libraries", 2nd edition, plus online
    42  * API docs for JDK 1.2 beta from http://www.javasoft.com.
    43  * Status:  Believed complete and correct.
     41/**
     42 * This exception is thrown when an unexpected error occurs during parsing.
     43 *
     44 * @author Aaron M. Renn ([email protected])
     45 * @author Per Bothner <[email protected]>
     46 * @see Format
     47 * @see FieldPosition
     48 * @status updated to 1.4
    4449 */
    45 
    46 /**
    47   * This exception is thrown when an unexpected error occurs during parsing.
    48   *
    49   * @version 0.0
    50   *
    51   * @author Aaron M. Renn ([email protected])
    52   * @author Per Bothner <[email protected]>
    53   * @date October 25, 1998.
    54   */
    5550public class ParseException extends Exception
    5651{
     52
     53
     54
     55
    5756
    58 /*
    59  * Instance Variables
    60  */
     57  /**
     58   * This is the position where the error was encountered.
     59   *
     60   * @serial the zero-based offset in the string where the error occurred
     61   */
     62  private final int errorOffset;
    6163
    62 /**
    63   * This is the position where the error was encountered.
    64   */
    65 private int errorOffset;
     64  /**
     65   * This method initializes a new instance of <code>ParseException</code>
     66   * with a detailed error message and a error position.
     67   *
     68   * @param msg the descriptive message describing the error
     69   * @param offset the position where the error was encountered
     70   */
     71  public ParseException(String s, int offset)
     72  {
     73    super(s);
     74    errorOffset = offset;
     75  }
    6676
    67 /*************************************************************************/
    68 
    69 /*
    70  * Constructors
    71  */
    72 
    73 /**
    74   * This method initializes a new instance of <code>ParseException</code>
    75   * with a detailed error message and a error position.
    76   *
    77   * @param msg The descriptive message describing the error.
    78   * @param offset The position where the error was encountered.
    79   */
    80 public
    81 ParseException(String s, int offset)
    82 {
    83   super(s);
    84  
    85   errorOffset = offset;
    86 }
    87 
    88 /*************************************************************************/
    89 
    90 /**
    91   * This method returns the position where the error occurred.
    92   *
    93   * @return The position where the error occurred.
    94   */
    95 public int
    96 getErrorOffset()
    97 {
    98   return(errorOffset);
    99 }
    100 
     77  /**
     78   * This method returns the position where the error occurred.
     79   *
     80   * @return the position where the error occurred
     81   */
     82  public int getErrorOffset()
     83  {
     84    return errorOffset;
     85  }
    10186} // class ParseException
    102 
Note: See TracChangeset for help on using the changeset viewer.