setrunelocale.c (24694) | setrunelocale.c (29818) |
---|---|
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 --- 35 unchanged lines hidden (view full) --- 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 _xpg4_setrunelocale __P((char *)); 51#endif | 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 --- 35 unchanged lines hidden (view full) --- 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 _xpg4_setrunelocale __P((char *)); 51#endif |
52extern int _MSKanji_init __P((_RuneLocale *)); |
|
52extern _RuneLocale *_Read_RuneMagi __P((FILE *)); 53 54#ifdef XPG4 55int 56setrunelocale(encoding) 57 char *encoding; 58{ 59 return _xpg4_setrunelocale(encoding); --- 59 unchanged lines hidden (view full) --- 119 return(EINVAL); 120#endif 121 } else if (!strcmp(rl->encoding, "NONE")) { 122 return(_none_init(rl)); 123#ifdef XPG4 124 } else if (!strcmp(rl->encoding, "EUC")) { 125 return(_EUC_init(rl)); 126#endif | 53extern _RuneLocale *_Read_RuneMagi __P((FILE *)); 54 55#ifdef XPG4 56int 57setrunelocale(encoding) 58 char *encoding; 59{ 60 return _xpg4_setrunelocale(encoding); --- 59 unchanged lines hidden (view full) --- 120 return(EINVAL); 121#endif 122 } else if (!strcmp(rl->encoding, "NONE")) { 123 return(_none_init(rl)); 124#ifdef XPG4 125 } else if (!strcmp(rl->encoding, "EUC")) { 126 return(_EUC_init(rl)); 127#endif |
128 } else if (!strcmp(rl->encoding, "MSKanji")) { 129 return(_MSKanji_init(rl)); |
|
127 } else 128 return(EINVAL); 129} 130 | 130 } else 131 return(EINVAL); 132} 133 |