Changeset 9827c7ba
- Timestamp:
- Apr 8, 2016, 5:42:53 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- e55ca05
- Parents:
- 3da470c
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.cc
r3da470c r9827c7ba 5180 5180 /* Line 1806 of yacc.c */ 5181 5181 #line 374 "parser.yy" 5182 { (yyval.en) = 0; }5182 { (yyval.en) = new CompoundLiteralNode( (yyvsp[(2) - (7)].decl), new InitializerNode( (yyvsp[(5) - (7)].in), true ) ); } 5183 5183 break; 5184 5184 -
src/libcfa/rational.c
r3da470c r9827c7ba 11 11 // Created On : Wed Apr 6 17:54:28 2016 12 12 // Last Modified By : Peter A. Buhr 13 // Last Modified On : Fri Apr 8 1 5:39:17201614 // Update Count : 1 713 // Last Modified On : Fri Apr 8 17:35:05 2016 14 // Update Count : 18 15 15 // 16 16 … … 57 57 Rational rational() { 58 58 return (Rational){ 0, 1 }; 59 // Rational t = { 0, 1 };60 // return t;61 59 } // rational 62 60 63 61 Rational rational( long int n ) { 64 62 return (Rational){ n, 1 }; 65 // Rational t = { n, 1 };66 // return t;67 63 } // rational 68 64 69 65 Rational rational( long int n, long int d ) { 70 66 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 }; 74 68 } // rational 75 69
Note: See TracChangeset
for help on using the changeset viewer.