Skip to content
Permalink
Browse files

codegen: rename elektraGet2 to elektraFillStruct

  • Loading branch information...
kodebach committed Jun 7, 2019
1 parent 13a8862 commit db40b548c9292ca82df18522a2d63eac86a2e30c
@@ -83,7 +83,7 @@ int main (int argc, const char ** argv)
for (kdb_long_long_t i = 0; i < formatCount; ++i)
{
FormatConf conf;
elektraGet2V (elektra, &conf, ELEKTRA_TAG_FORMAT, i);
elektraFillStructV (elektra, &conf, ELEKTRA_TAG_FORMAT, i);
printFormatConf (&conf);
}

@@ -89,7 +89,7 @@ void /*%& specload_function_name %*/ (int argc, const char ** argv);
* @param tag The tag to look up.
* @param result Points to the struct into which results will be stored.
*/// {{=/*% %*/=}}
#define elektraGet2(elektra, result, tag) ELEKTRA_GET (tag) (elektra, result)
#define elektraFillStruct(elektra, result, tag) ELEKTRA_GET (tag) (elektra, result)

/*%={{ }}=%*/
/**
@@ -98,7 +98,7 @@ void /*%& specload_function_name %*/ (int argc, const char ** argv);
* @param tag The tag to look up.
* @param ... Variable arguments depending on the given tag.
*/// {{=/*% %*/=}}
#define elektraGet2V(elektra, result, tag, ...) ELEKTRA_GET (tag) (elektra, result, __VA_ARGS__)
#define elektraFillStructV(elektra, result, tag, ...) ELEKTRA_GET (tag) (elektra, result, __VA_ARGS__)

/*%={{ }}=%*/
/**
@@ -194,7 +194,7 @@ void specloadCheck (int argc, const char ** argv);
* @param tag The tag to look up.
* @param result Points to the struct into which results will be stored.
*///
#define elektraGet2(elektra, result, tag) ELEKTRA_GET (tag) (elektra, result)
#define elektraFillStruct(elektra, result, tag) ELEKTRA_GET (tag) (elektra, result)


/**
@@ -203,7 +203,7 @@ void specloadCheck (int argc, const char ** argv);
* @param tag The tag to look up.
* @param ... Variable arguments depending on the given tag.
*///
#define elektraGet2V(elektra, result, tag, ...) ELEKTRA_GET (tag) (elektra, result, __VA_ARGS__)
#define elektraFillStructV(elektra, result, tag, ...) ELEKTRA_GET (tag) (elektra, result, __VA_ARGS__)


/**
@@ -451,7 +451,7 @@ void specloadCheck (int argc, const char ** argv);
* @param tag The tag to look up.
* @param result Points to the struct into which results will be stored.
*///
#define elektraGet2(elektra, result, tag) ELEKTRA_GET (tag) (elektra, result)
#define elektraFillStruct(elektra, result, tag) ELEKTRA_GET (tag) (elektra, result)


/**
@@ -460,7 +460,7 @@ void specloadCheck (int argc, const char ** argv);
* @param tag The tag to look up.
* @param ... Variable arguments depending on the given tag.
*///
#define elektraGet2V(elektra, result, tag, ...) ELEKTRA_GET (tag) (elektra, result, __VA_ARGS__)
#define elektraFillStructV(elektra, result, tag, ...) ELEKTRA_GET (tag) (elektra, result, __VA_ARGS__)


/**
@@ -194,7 +194,7 @@ void specloadCheck (int argc, const char ** argv);
* @param tag The tag to look up.
* @param result Points to the struct into which results will be stored.
*///
#define elektraGet2(elektra, result, tag) ELEKTRA_GET (tag) (elektra, result)
#define elektraFillStruct(elektra, result, tag) ELEKTRA_GET (tag) (elektra, result)


/**
@@ -203,7 +203,7 @@ void specloadCheck (int argc, const char ** argv);
* @param tag The tag to look up.
* @param ... Variable arguments depending on the given tag.
*///
#define elektraGet2V(elektra, result, tag, ...) ELEKTRA_GET (tag) (elektra, result, __VA_ARGS__)
#define elektraFillStructV(elektra, result, tag, ...) ELEKTRA_GET (tag) (elektra, result, __VA_ARGS__)


/**
@@ -419,7 +419,7 @@ void specloadCheck (int argc, const char ** argv);
* @param tag The tag to look up.
* @param result Points to the struct into which results will be stored.
*///
#define elektraGet2(elektra, result, tag) ELEKTRA_GET (tag) (elektra, result)
#define elektraFillStruct(elektra, result, tag) ELEKTRA_GET (tag) (elektra, result)


/**
@@ -428,7 +428,7 @@ void specloadCheck (int argc, const char ** argv);
* @param tag The tag to look up.
* @param ... Variable arguments depending on the given tag.
*///
#define elektraGet2V(elektra, result, tag, ...) ELEKTRA_GET (tag) (elektra, result, __VA_ARGS__)
#define elektraFillStructV(elektra, result, tag, ...) ELEKTRA_GET (tag) (elektra, result, __VA_ARGS__)


/**
@@ -31,7 +31,7 @@ static void fatalErrorHandler (ElektraError * error)
void callAll (Elektra * elektra)
{
ElektraStructMystruct mystruct;
elektraGet2 (elektra, &mystruct, ELEKTRA_TAG_MYSTRUCT);
elektraFillStruct (elektra, &mystruct, ELEKTRA_TAG_MYSTRUCT);
// FIXME: bugs in spec plugin
// Person * adam = elektraGetV (elektra, ELEKTRA_TAG_PERSON, "adam");
@@ -905,7 +905,7 @@ void specloadCheck (int argc, const char ** argv);
* @param tag The tag to look up.
* @param result Points to the struct into which results will be stored.
*///
#define elektraGet2(elektra, result, tag) ELEKTRA_GET (tag) (elektra, result)
#define elektraFillStruct(elektra, result, tag) ELEKTRA_GET (tag) (elektra, result)


/**
@@ -914,7 +914,7 @@ void specloadCheck (int argc, const char ** argv);
* @param tag The tag to look up.
* @param ... Variable arguments depending on the given tag.
*///
#define elektraGet2V(elektra, result, tag, ...) ELEKTRA_GET (tag) (elektra, result, __VA_ARGS__)
#define elektraFillStructV(elektra, result, tag, ...) ELEKTRA_GET (tag) (elektra, result, __VA_ARGS__)


/**

0 comments on commit db40b54

Please sign in to comment.
You can’t perform that action at this time.