2002-11-26 Angus Leeming <leeming@lyx.org>
+ * forms_gettext.[Ch] (scex, idex): ditch the #defines and rename the
+ functions in their place.
+
* FormBase.h (FormDB::form): Implement in 1 line not 2.
* fdesign_base.[Ch]: new files. All fdesign-generated structures will
#include FORMS_H_LOCATION
-// Extract shortcut from <ident>|<shortcut> string
-char const * flyx_shortcut_extract(char const * sc)
+// Extract shortcut from "<ident>|<shortcut>" string
+char const * scex(char const * sc)
{
// Find '|' in the sc and return the string after that.
register char const * sd = sc;
}
-// Extract identifier from <ident>|<shortcut> string
-char const * flyx_ident_extract(char const * sc)
+// Extract identifier from "<ident>|<shortcut>" string
+char const * idex(char const * sc)
{
register char const * se = sc;
while (se[0]!= 0 && se[0] != '|') ++se;
#pragma interface
#endif
-#include "forms_fwd.h"
+/// Extract shortcut from "<ident>|<shortcut>" string
+char const * scex(char const *);
-/// Extract shortcut from <ident>|<shortcut> string
-char const * flyx_shortcut_extract(char const * sc);
-/// Shortcut for flyx_shortcut_extract
-#define scex flyx_shortcut_extract
-
-/// Extract shortcut from <ident>|<shortcut> string
-char const * flyx_ident_extract(char const * sc);
-/// Shortcut for flyx_ident_extract
-#define idex flyx_ident_extract
+/// Extract ident from "<ident>|<shortcut>" string
+char const * idex(char const *);
#endif // FORMS_GETTEXT_H