Changeset ca9d65e for src/CodeGen


Ignore:
Timestamp:
Dec 14, 2023, 9:05:55 PM (22 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
19a2890
Parents:
21ad568
Message:

second attempt at simplifying SemanticError messages

Location:
src/CodeGen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/FixMain.cc

    r21ad568 rca9d65e  
    1111// Last Modified By :
    1212// Last Modified On :
    13 // Update Count     : 0
     13// Update Count     : 1
    1414//
    1515
     
    3939                if ( isMain( decl ) ) {
    4040                        if ( main_declaration ) {
    41                                 SemanticError( decl, "Multiple definition of main routine\n" );
     41                                SemanticError( decl, "Multiple definition of main routine" );
    4242                        }
    4343                        main_declaration = decl;
  • src/CodeGen/FixNames.cc

    r21ad568 rca9d65e  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Andrew Beach
    12 // Last Modified On : Wed Jul 20 11:49:00 2022
    13 // Update Count     : 24
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Thu Dec 14 16:16:51 2023
     13// Update Count     : 25
    1414//
    1515
     
    5757                        int nargs = mutDecl->params.size();
    5858                        if ( 0 != nargs && 2 != nargs && 3 != nargs ) {
    59                                 SemanticError( functionDecl, "Main expected to have 0, 2 or 3 arguments\n" );
     59                                SemanticError( functionDecl, "Main expected to have 0, 2 or 3 arguments" );
    6060                        }
    6161                        ast::chain_mutate( mutDecl->stmts )->kids.push_back(
Note: See TracChangeset for help on using the changeset viewer.