use sizeof for eldbus-codegen internal define lengths

This commit is contained in:
Mike Blumenkrantz 2013-06-19 11:09:01 +01:00
parent b8ea27d53c
commit e2ba21e266
1 changed files with 7 additions and 7 deletions

View File

@ -1,19 +1,19 @@
#include "codegen.h"
#define OBJECT_TAG "node"
#define OBJECT_TAG_LENGTH strlen(OBJECT_TAG)
#define OBJECT_TAG_LENGTH sizeof(OBJECT_TAG) - 1
#define INTERFACE_TAG "interface"
#define INTERFACE_TAG_LENGTH strlen(INTERFACE_TAG)
#define INTERFACE_TAG_LENGTH sizeof(INTERFACE_TAG) - 1
#define SIGNAL_TAG "signal"
#define SIGNAL_TAG_LENGTH strlen(SIGNAL_TAG)
#define SIGNAL_TAG_LENGTH sizeof(SIGNAL_TAG) - 1
#define METHOD_TAG "method"
#define METHOD_TAG_LENGTH strlen(METHOD_TAG)
#define METHOD_TAG_LENGTH sizeof(METHOD_TAG) - 1
#define PROPERTY_TAG "property"
#define PROPERTY_TAG_LENGTH strlen(PROPERTY_TAG)
#define PROPERTY_TAG_LENGTH sizeof(PROPERTY_TAG) - 1
#define ARG_TAG "arg"
#define ARG_TAG_LENGTH strlen(ARG_TAG)
#define ARG_TAG_LENGTH sizeof(ARG_TAG) - 1
#define ANNOTATION_TAG "annotation"
#define ANNOTATION_TAG_LENGTH strlen(ANNOTATION_TAG)
#define ANNOTATION_TAG_LENGTH sizeof(ANNOTATION_TAG) - 1
//attributes
#define NAME_ATTR "name"