Changeset 550afde2


Ignore:
Timestamp:
Jul 5, 2024, 3:49:53 PM (3 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
5a2b0b7, bb336a6
Parents:
c2cf2d0
Message:

Constant strings on input. The previous changes only effected generated code.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/parseargs.cfa

    rc2cf2d0 r550afde2  
    7878                }
    7979                else {
    80                         char * temp = "";
    81                         parse_args(0, &temp, options, usage, left );
     80                        char * temp[1] = { 0p };
     81                        parse_args(0, temp, options, usage, left );
    8282                }
    8383        }
  • src/Parser/ExpressionNode.cpp

    rc2cf2d0 r550afde2  
    483483        Default:                                                                                        // char default string type
    484484        default:
    485                 strtype = new ast::BasicType( ast::BasicKind::Char );
     485                strtype = new ast::BasicType( ast::BasicKind::Char, ast::CV::Const );
    486486        } // switch
    487487        ast::ArrayType * at = new ast::ArrayType(
Note: See TracChangeset for help on using the changeset viewer.