euc.c (eb12e52a253920ec6b8e6d86c8350711082ae99e) euc.c (45206d5c69129ff41eab66178bb69c61ffb6a6bc)
1/*-
2 * Copyright (c) 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Paul Borman at Krystal Technologies.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 99 unchanged lines hidden (view full) ---

108 free(rl);
109 free(ei);
110 return (EFTYPE);
111 }
112 if (sizeof(_EucInfo) <= rl->variable_len) {
113 memcpy(rl->variable, ei, sizeof(_EucInfo));
114 free(ei);
115 } else {
1/*-
2 * Copyright (c) 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Paul Borman at Krystal Technologies.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 99 unchanged lines hidden (view full) ---

108 free(rl);
109 free(ei);
110 return (EFTYPE);
111 }
112 if (sizeof(_EucInfo) <= rl->variable_len) {
113 memcpy(rl->variable, ei, sizeof(_EucInfo));
114 free(ei);
115 } else {
116 rl->variable = &ei;
116 rl->variable = ei;
117 }
118 rl->variable_len = sizeof(_EucInfo);
119 _CurrentRuneLocale = rl;
120 return (0);
121}
122
123#define CEI ((_EucInfo *)(_CurrentRuneLocale->variable))
124

--- 107 unchanged lines hidden ---
117 }
118 rl->variable_len = sizeof(_EucInfo);
119 _CurrentRuneLocale = rl;
120 return (0);
121}
122
123#define CEI ((_EucInfo *)(_CurrentRuneLocale->variable))
124

--- 107 unchanged lines hidden ---