Change parser strings to include length.
[bertos.git] / bertos / mware / parser.h
index 281db3964c05e51c8a85fe110daf8a670fb3947b..9d4423d3fbb80186fb1553dd82dfa0a540228788 100644 (file)
@@ -131,8 +131,14 @@ typedef enum
        RC_SKIP   = 2   ///< Skip following commands
 } ResultCode;
 
+typedef struct
+{
+       const char *p;
+       int sz;
+} str_parm;
+
 /** union that contains parameters passed to and from commands */
-typedef union { long l; const char *s; } parms;
+typedef union { long l; str_parm str; } parms;
 /** pointer to commands */
 typedef ResultCode (*CmdFuncPtr)(parms args_results[]);