]> git.sur5r.net Git - cc65/blobdiff - src/cc65/parser.c
New option --forget-inc-paths
[cc65] / src / cc65 / parser.c
index 1e9536c5a35f7b8891865e26e7b46c45cf07af83..ec1dfcc43941a6bac49116d27103676969179b81 100644 (file)
@@ -79,9 +79,7 @@ ExprNode* Expression (void);
 
 
 static int IsTypeExpr (void)
-/* Return true if some sort of variable or type is waiting (helper for cast
- * and sizeof() in hie10).
- */
+/* Return true if some sort of variable or type is waiting */
 {
     SymEntry* Entry;
 
@@ -137,7 +135,7 @@ static ExprNode* GetIntNode (int Value)
 
 
 /*****************************************************************************/
-/*                                  Code                                    */
+/*                                  Code                                    */
 /*****************************************************************************/
 
 
@@ -661,6 +659,7 @@ static ExprNode* DoPostIncDec (ExprNode* Left)
 
 
 static ExprNode* PostfixExpr (void)
+/* Handle a postfix expression */
 {
     /* Get the lower level expression */
     ExprNode* Root = Primary ();
@@ -909,7 +908,7 @@ static ExprNode* DoAddress (void)
 
 
 static ExprNode* DoIndirect (void)
-/* Handle the indirection operaror * */
+/* Handle the indirection operator * */
 {
     ExprNode* Op;
     type*     ResultType;
@@ -1021,7 +1020,7 @@ static ExprNode* DoTypeCast (void)
     } else {
 
        /* Must be casted. Setup the expression tree and return the new node */
-       Root = AllocExprNode (NT_BOOL_NOT, TargetType, RVALUE);
+       Root = AllocExprNode (NT_TYPECAST, TargetType, RVALUE);
        SetLeftNode (Root, Op);
        return Root;
 
@@ -1608,4 +1607,3 @@ static ExprNode* ConditionalExpr (void)
 
 
 
-