Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

rename updates #593

Merged
merged 7 commits into from
Apr 24, 2016
Merged

rename updates #593

merged 7 commits into from
Apr 24, 2016

Conversation

tom-wa
Copy link
Contributor

@tom-wa tom-wa commented Apr 14, 2016

like this ?
get/case will be applied initially to the keyset, then the normal transformations are done.
on set the keyname will be either:
restored and converted to lower or uppercase depending on set/case
of
if set/case == keyname: not restored and the transformed name kept.

return 1; /* success */
}

Plugin * ELEKTRA_PLUGIN_EXPORT (rename)
{
// clang-format off
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think its nicer when you leave this customized formatted, don't you agree?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i honestly have no idea why that line always disappears...

@markus2330
Copy link
Contributor

Thank you! Now only the profile plugin and we should be done with new features for this release!

Can you add test cases for the new features?

There are memory problems reported by build server.

I do not have time for a closer look today, sorry!

@tom-wa tom-wa changed the title Preview: rename updates rename updates Apr 17, 2016
@tom-wa
Copy link
Contributor Author

tom-wa commented Apr 17, 2016

@markus2330 done

@@ -1,9 +1,9 @@
/**
* @file
* \file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ is the correct one, see doc/CODING.md

@markus2330
Copy link
Contributor

What does the keyname do? Please add info in the README.

@markus2330
Copy link
Contributor

Any progress here? The issues should only be minor?

@tom-wa
Copy link
Contributor Author

tom-wa commented Apr 24, 2016

@markus2330 done

@@ -203,23 +228,16 @@ static Key * restoreKeyName (Key * key, const Key * parentKey, const Key * confi
{
if (strcmp (keyString (origNameKey), keyName (key)))
{
int hasSync = keyNeedSync (key); // test_bit(key->flags, KEY_FLAG_SYNC);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove these lines which restore the sync bit? They are needed for #404. We should always put comments above lines that fix a bug so that everyone know what they are for.

@@ -1,9 +1,9 @@
/**
* @file
*
* @brief A plugin that converts keys to metakeys and vice versa
* \brief A plugin that converts keys to metakeys and vice versa
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please change, it should be @

@@ -207,11 +234,6 @@ static Key * restoreKeyName (Key * key, const Key * parentKey, const Key * confi
Key * result = keyDup (key);
keySetName (result, keyString (origNameKey));
keySetMeta (result, ELEKTRA_ORIGINAL_NAME_META, 0);

if (!hasSync)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still removed. Could you also please add a comment that it is here because of #404. (At all places)

@tom-wa
Copy link
Contributor Author

tom-wa commented Apr 24, 2016

@markus2330 done

@markus2330 markus2330 merged commit 31d7a1e into ElektraInitiative:master Apr 24, 2016
@markus2330
Copy link
Contributor

Thank you!

@tom-wa tom-wa deleted the rename_write branch January 30, 2017 02:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants