Lines Matching defs:newgl
40 char **newgl;
43 if ((newgl = calloc(_LC_LAST, sizeof(*newgl))) == NULL)
46 if ((newgl[ic] = strdup(ic == LC_ALL ? "" :
48 freegl(newgl);
52 return newgl;
81 char **newgl, *firstname, *nextname;
91 if ((newgl = dupgl(global_locale)) == NULL)
97 freegl(newgl);
103 strsep(&nextname, "/"), newgl) == -1)
107 freegl(newgl);
113 if (changegl(category, locname, newgl) == -1) {
114 freegl(newgl);
122 newgl) == -1) {
123 freegl(newgl);
130 newgl = global_locale;
137 if (newgl == NULL) {
143 if (category > LC_ALL || newgl[LC_ALL][0] != '\0') {
144 if (strlcpy(global_locname, newgl[category],
156 if (strcmp(newgl[ic], newgl[1]) != 0)
159 if (strlcpy(global_locname, newgl[1],
164 "%s/%s/%s/%s/%s/%s", newgl[1], newgl[2], newgl[3],
165 newgl[4], newgl[5], newgl[6]);
179 global_locale = newgl;
182 strchr(newgl[LC_CTYPE], '.') == NULL ?
185 freegl(newgl);