1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-13 16:22:44 +03:00

Another pgindent run. Fixes enum indenting, and improves #endif

spacing.  Also adds space for one-line comments.
This commit is contained in:
Bruce Momjian
2001-10-28 06:26:15 +00:00
parent c29797deeb
commit 6783b2372e
525 changed files with 2429 additions and 2049 deletions

View File

@@ -6,7 +6,7 @@
* WIN1250 client encoding support contributed by Pavel Behal
* SJIS UDC (NEC selection IBM kanji) support contributed by Eiji Tokuya
*
* $Id: conv.c,v 1.33 2001/10/25 05:49:51 momjian Exp $
* $Id: conv.c,v 1.34 2001/10/28 06:25:54 momjian Exp $
*
*
*/
@@ -63,7 +63,6 @@
#include "Unicode/utf8_to_alt.map"
#include "Unicode/utf8_to_koi8r.map"
#include "Unicode/utf8_to_win1251.map"
#endif /* UNICODE_CONVERSION */
/*
@@ -619,7 +618,7 @@ big52mic(unsigned char *big5, unsigned char *p, int len)
{
if (lc == LC_CNS11643_3 || lc == LC_CNS11643_4)
{
*p++ = 0x9d; /* LCPRV2 */
*p++ = 0x9d; /* LCPRV2 */
}
*p++ = lc; /* Plane No. */
*p++ = (cnsBuf >> 8) & 0x00ff;
@@ -1677,7 +1676,7 @@ pg_enconv pg_enconv_tbl[] =
{
{
PG_SQL_ASCII, ascii2mic, mic2ascii, ascii2utf, utf2ascii
} ,
},
{
PG_EUC_JP, euc_jp2mic, mic2euc_jp, euc_jp_to_utf, utf_to_euc_jp
},
@@ -1765,7 +1764,7 @@ pg_enconv pg_enconv_tbl[] =
{
{
PG_SQL_ASCII, ascii2mic, mic2ascii, 0, 0
} ,
},
{
PG_EUC_JP, euc_jp2mic, mic2euc_jp, 0, 0
},
@@ -1845,4 +1844,5 @@ pg_enconv pg_enconv_tbl[] =
PG_WIN1250, win12502mic, mic2win1250, 0, 0
},
};
#endif /* UNICODE_CONVERSION */

View File

@@ -2,7 +2,7 @@
* Encoding names and routines for work with it. All
* in this file is shared bedween FE and BE.
*
* $Id: encnames.c,v 1.5 2001/10/25 05:49:51 momjian Exp $
* $Id: encnames.c,v 1.6 2001/10/28 06:25:56 momjian Exp $
*/
#ifdef FRONTEND
#include "postgres_fe.h"
@@ -38,7 +38,7 @@ pg_encname pg_encname_tbl[] =
{
{
"alt", PG_ALT
} , /* IBM866 */
}, /* IBM866 */
{
"big5", PG_BIG5
}, /* Big5; Chinese for Taiwan Multi-byte set */
@@ -191,7 +191,7 @@ pg_enc2name pg_enc2name_tbl[] =
{
{
"SQL_ASCII", PG_SQL_ASCII
} ,
},
{
"EUC_JP", PG_EUC_JP
},
@@ -418,4 +418,5 @@ PG_encoding_to_char(PG_FUNCTION_ARGS)
return DirectFunctionCall1(namein, CStringGetDatum(encoding_name));
}
#endif

View File

@@ -1,7 +1,7 @@
/*
* conversion functions between pg_wchar and multi-byte streams.
* Tatsuo Ishii
* $Id: wchar.c,v 1.25 2001/10/25 05:49:51 momjian Exp $
* $Id: wchar.c,v 1.26 2001/10/28 06:25:56 momjian Exp $
*
* WIN1250 client encoding updated by Pavel Behal
*
@@ -602,4 +602,5 @@ pg_database_encoding_max_length(void)
{
return pg_wchar_table[GetDatabaseEncoding()].maxmblen;
}
#endif