Deleted Added
full compact
setrunelocale.c (32524) setrunelocale.c (38333)
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

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

42#include <stdlib.h>
43#include <unistd.h>
44#include "setlocale.h"
45
46extern int _none_init __P((_RuneLocale *));
47#ifdef XPG4
48extern int _UTF2_init __P((_RuneLocale *));
49extern int _EUC_init __P((_RuneLocale *));
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

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

42#include <stdlib.h>
43#include <unistd.h>
44#include "setlocale.h"
45
46extern int _none_init __P((_RuneLocale *));
47#ifdef XPG4
48extern int _UTF2_init __P((_RuneLocale *));
49extern int _EUC_init __P((_RuneLocale *));
50extern int _BIG5_init __P((_RuneLocale *));
50extern int _MSKanji_init __P((_RuneLocale *));
51extern int _xpg4_setrunelocale __P((char *));
52#endif
53extern _RuneLocale *_Read_RuneMagi __P((FILE *));
54
55#ifdef XPG4
56int
57setrunelocale(encoding)

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

123 if (!rl->encoding[0])
124 return(EINVAL);
125#endif
126 else if (!strcmp(rl->encoding, "NONE"))
127 return(_none_init(rl));
128#ifdef XPG4
129 else if (!strcmp(rl->encoding, "EUC"))
130 return(_EUC_init(rl));
51extern int _MSKanji_init __P((_RuneLocale *));
52extern int _xpg4_setrunelocale __P((char *));
53#endif
54extern _RuneLocale *_Read_RuneMagi __P((FILE *));
55
56#ifdef XPG4
57int
58setrunelocale(encoding)

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

124 if (!rl->encoding[0])
125 return(EINVAL);
126#endif
127 else if (!strcmp(rl->encoding, "NONE"))
128 return(_none_init(rl));
129#ifdef XPG4
130 else if (!strcmp(rl->encoding, "EUC"))
131 return(_EUC_init(rl));
132 else if (!strcmp(rl->encoding, "BIG5"))
133 return(_BIG5_init(rl));
131 else if (!strcmp(rl->encoding, "MSKanji"))
132 return(_MSKanji_init(rl));
133#endif
134 else
135 return(EINVAL);
136}
137
134 else if (!strcmp(rl->encoding, "MSKanji"))
135 return(_MSKanji_init(rl));
136#endif
137 else
138 return(EINVAL);
139}
140