2014-07-27 Benno Schulenberg <bensberg@justemail.net>
* src/global.c (add_to_sclist): Remove the now unused and unneeded
addition ability from this builder function of the shortcut list.
+ * src/global.c (strtokeytype): Move this to a better place.
2014-07-24 Jordi Mallach <jordi@gnu.org>
* doc/texinfo/nano.texi, doc/man/nanorc.5: Typo fix.
{
}
-/* Set the type of command key based on the string. */
-key_type strtokeytype(const char *str)
-{
- if (str[0] == '^')
- return CONTROL;
- else if (str[0] == 'M')
- return META;
- else if (str[0] == 'F')
- return FKEY;
- else
- return RAWINPUT;
-}
-
-/* Add a string to the function list struct.
- * Does not allow updates, not yet anyway. */
+/* Add a function to the function list. */
void add_to_funcs(void (*func)(void), int menus, const char *desc, const char *help,
bool blank_after, bool viewok)
{
return NULL;
}
+/* Return the type of command key based on the given string. */
+key_type strtokeytype(const char *str)
+{
+ if (str[0] == '^')
+ return CONTROL;
+ else if (str[0] == 'M')
+ return META;
+ else if (str[0] == 'F')
+ return FKEY;
+ else
+ return RAWINPUT;
+}
+
/* Assign the info to the shortcut struct.
* Assumes keystr is already assigned, naturally. */
void assign_keyinfo(sc *s)