aboutsummaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
Diffstat (limited to 'applets')
-rw-r--r--applets/applet_tables.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/applets/applet_tables.c b/applets/applet_tables.c
index 9a2aa5329..858429ac2 100644
--- a/applets/applet_tables.c
+++ b/applets/applet_tables.c
@@ -61,6 +61,7 @@ static int str_isalnum_(const char *s)
61int main(int argc, char **argv) 61int main(int argc, char **argv)
62{ 62{
63 int i, j; 63 int i, j;
64 unsigned MAX_APPLET_NAME_LEN = 1;
64 65
65 // In find_applet_by_name(), before linear search, narrow it down 66 // In find_applet_by_name(), before linear search, narrow it down
66 // by looking at N "equidistant" names. With ~350 applets: 67 // by looking at N "equidistant" names. With ~350 applets:
@@ -124,8 +125,8 @@ int main(int argc, char **argv)
124 printf("const char applet_names[] ALIGN1 = \"\"\n"); 125 printf("const char applet_names[] ALIGN1 = \"\"\n");
125 for (i = 0; i < NUM_APPLETS; i++) { 126 for (i = 0; i < NUM_APPLETS; i++) {
126 printf("\"%s\" \"\\0\"\n", applets[i].name); 127 printf("\"%s\" \"\\0\"\n", applets[i].name);
127// if (MAX_APPLET_NAME_LEN < strlen(applets[i].name)) 128 if (MAX_APPLET_NAME_LEN < strlen(applets[i].name))
128// MAX_APPLET_NAME_LEN = strlen(applets[i].name); 129 MAX_APPLET_NAME_LEN = strlen(applets[i].name);
129 } 130 }
130 printf(";\n\n"); 131 printf(";\n\n");
131 132
@@ -193,8 +194,8 @@ int main(int argc, char **argv)
193#endif 194#endif
194 //printf("#endif /* SKIP_definitions */\n"); 195 //printf("#endif /* SKIP_definitions */\n");
195 196
196// printf("\n"); 197 printf("\n");
197// printf("#define MAX_APPLET_NAME_LEN %u\n", MAX_APPLET_NAME_LEN); 198 printf("#define MAX_APPLET_NAME_LEN %u\n", MAX_APPLET_NAME_LEN);
198 199
199 if (argv[2]) { 200 if (argv[2]) {
200 FILE *fp; 201 FILE *fp;