]> git.sur5r.net Git - cc65/blobdiff - src/cc65/stmt.h
Adding functionality to StrBuf
[cc65] / src / cc65 / stmt.h
index 258af070786fb6f3874729ba867c80dbc30d7487..a5d3abbd419b198a5c447425793b4bd7fa04b9a6 100644 (file)
 
 
 
-int Statement (void);
+int Statement (int* PendingToken);
 /* Statement parser. Returns 1 if the statement does a return/break, returns
- * 0 otherwise
+ * 0 otherwise. If the PendingToken pointer is not NULL, the function will
+ * not skip the terminating token of the statement (closing brace or
+ * semicolon), but store true if there is a pending token, and false if there
+ * is none. The token is always checked, so there is no need for the caller to
+ * check this token, it must be skipped, however. If the argument pointer is
+ * NULL, the function will skip the token.
  */