#include <stdarg.h>
#include <linux/errno.h>
#include <assert.h>
-
+#include <ctype.h>
#include "parser.h"
+static char *intOutputTypes[] = {
+ "int8_t", "int16_t", "int32_t", "int64_t", "short int", "int", "long int" };
+
+static char *uintOutputTypes[] = {
+ "uint8_t", "uint16_t", "uint32_t", "uint64_t", "unsigned short int",
+ "unsigned int", "unsigned long int" };
+
+static char *floatOutputTypes[] = {
+ "undef", "undef", "float", "double", "undef", "float", "double" };
+
+
+
+
/* helper function */
void strupper(char *string)
{
void getTypeAttributes(parse_file_t *in, type_descriptor_t *t)
{
char * token;
- char car;
t->fmt = NULL;
t->size = -1;
table_t * named_types)
{
char *token;
- type_descriptor_t *t;
//<event name=eventtype_name>
getEventAttributes(in, ev);
void freeTypes(sequence_t *t)
{
- int pos, pos2;
+ int pos;
type_descriptor_t *tp;
- field_t *f;
for(pos = 0 ; pos < t->position; pos++) {
tp = (type_descriptor_t *)t->array[pos];