]> granicus.if.org Git - postgresql/commit
Replace int2/int4 in C code with int16/int32
authorPeter Eisentraut <peter_e@gmx.net>
Sun, 24 Jun 2012 22:51:46 +0000 (01:51 +0300)
committerPeter Eisentraut <peter_e@gmx.net>
Sun, 24 Jun 2012 22:51:46 +0000 (01:51 +0300)
commitb8b2e3b2deeaab19715af063fc009b7c230b2336
treec6ee1310487d59e37e3e143835b5609e78524f65
parent7eb8c7851458eb88def80c290a4b5bc37cc321f3
Replace int2/int4 in C code with int16/int32

The latter was already the dominant use, and it's preferable because
in C the convention is that intXX means XX bits.  Therefore, allowing
mixed use of int2, int4, int8, int16, int32 is obviously confusing.

Remove the typedefs for int2 and int4 for now.  They don't seem to be
widely used outside of the PostgreSQL source tree, and the few uses
can probably be cleaned up by the time this ships.
75 files changed:
contrib/btree_gist/btree_int2.c
contrib/btree_gist/btree_int4.c
contrib/cube/cube.c
contrib/hstore/hstore.h
contrib/hstore/hstore_gist.c
contrib/hstore/hstore_io.c
contrib/intarray/_int.h
contrib/intarray/_int_bool.c
contrib/intarray/_int_gin.c
contrib/intarray/_int_gist.c
contrib/intarray/_int_tool.c
contrib/intarray/_intbig_gist.c
contrib/ltree/_ltree_gist.c
contrib/ltree/ltree.h
contrib/ltree/ltree_gist.c
contrib/ltree/ltree_op.c
contrib/ltree/ltxtquery_io.c
contrib/ltree/ltxtquery_op.c
contrib/pg_trgm/trgm_gist.c
doc/src/sgml/xfunc.sgml
src/backend/access/hash/hashfunc.c
src/backend/access/spgist/spgquadtreeproc.c
src/backend/catalog/Catalog.pm
src/backend/catalog/namespace.c
src/backend/catalog/pg_type.c
src/backend/commands/cluster.c
src/backend/commands/trigger.c
src/backend/optimizer/prep/prepunion.c
src/backend/parser/parse_utilcmd.c
src/backend/tsearch/to_tsany.c
src/backend/tsearch/ts_parse.c
src/backend/tsearch/wparser_def.c
src/backend/utils/adt/arrayfuncs.c
src/backend/utils/adt/int.c
src/backend/utils/adt/ruleutils.c
src/backend/utils/adt/tsginidx.c
src/backend/utils/adt/tsgistidx.c
src/backend/utils/adt/tsquery.c
src/backend/utils/adt/tsquery_gist.c
src/backend/utils/adt/tsrank.c
src/backend/utils/adt/tsvector.c
src/backend/utils/adt/tsvector_op.c
src/include/access/gin_private.h
src/include/c.h
src/include/catalog/namespace.h
src/include/catalog/pg_am.h
src/include/catalog/pg_amop.h
src/include/catalog/pg_amproc.h
src/include/catalog/pg_attrdef.h
src/include/catalog/pg_attribute.h
src/include/catalog/pg_authid.h
src/include/catalog/pg_class.h
src/include/catalog/pg_collation.h
src/include/catalog/pg_constraint.h
src/include/catalog/pg_conversion.h
src/include/catalog/pg_database.h
src/include/catalog/pg_depend.h
src/include/catalog/pg_description.h
src/include/catalog/pg_index.h
src/include/catalog/pg_inherits.h
src/include/catalog/pg_largeobject.h
src/include/catalog/pg_proc.h
src/include/catalog/pg_rewrite.h
src/include/catalog/pg_seclabel.h
src/include/catalog/pg_shdepend.h
src/include/catalog/pg_statistic.h
src/include/catalog/pg_trigger.h
src/include/catalog/pg_ts_config_map.h
src/include/catalog/pg_type.h
src/include/commands/vacuum.h
src/include/tsearch/ts_public.h
src/include/tsearch/ts_type.h
src/include/tsearch/ts_utils.h
src/include/utils/builtins.h
src/interfaces/ecpg/ecpglib/sqlda.c