Changeset 9827c7ba


Ignore:
Timestamp:
Apr 8, 2016, 5:42:53 PM (6 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, string, with_gc
Children:
e55ca05
Parents:
3da470c
Message:

forgot to include in previous commit

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.cc

    r3da470c r9827c7ba  
    51805180/* Line 1806 of yacc.c  */
    51815181#line 374 "parser.yy"
    5182     { (yyval.en) = 0; }
     5182    { (yyval.en) = new CompoundLiteralNode( (yyvsp[(2) - (7)].decl), new InitializerNode( (yyvsp[(5) - (7)].in), true ) ); }
    51835183    break;
    51845184
  • src/libcfa/rational.c

    r3da470c r9827c7ba  
    1111// Created On       : Wed Apr  6 17:54:28 2016
    1212// Last Modified By : Peter A. Buhr
    13 // Last Modified On : Fri Apr  8 15:39:17 2016
    14 // Update Count     : 17
     13// Last Modified On : Fri Apr  8 17:35:05 2016
     14// Update Count     : 18
    1515//
    1616
     
    5757Rational rational() {
    5858    return (Rational){ 0, 1 };
    59 //      Rational t = { 0, 1 };
    60 //      return t;
    6159} // rational
    6260
    6361Rational rational( long int n ) {
    6462    return (Rational){ n, 1 };
    65 //      Rational t = { n, 1 };
    66 //      return t;
    6763} // rational
    6864
    6965Rational rational( long int n, long int d ) {
    7066    long int t = simplify( &n, &d );                                    // simplify
    71 //    r = (Rational){ n / t, d / t };
    72         Rational t = { n / t, d / t };
    73         return t;
     67    return (Rational){ n / t, d / t };
    7468} // rational
    7569
Note: See TracChangeset for help on using the changeset viewer.