]> granicus.if.org Git - postgresql/blobdiff - src/backend/utils/adt/varlena.c
Message style improvements
[postgresql] / src / backend / utils / adt / varlena.c
index 7bc5a09f69357da7bb7cabf21c0901ffc823c278..33f40b685c76bbaa87e05476229e47793b01e227 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/utils/adt/varlena.c,v 1.147 2006/05/21 20:05:19 tgl Exp $
+ *       $PostgreSQL: pgsql/src/backend/utils/adt/varlena.c,v 1.151 2006/10/04 00:30:00 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
 
 #include <ctype.h>
 
+#include "access/tupmacs.h"
 #include "access/tuptoaster.h"
 #include "catalog/pg_type.h"
-#include "lib/stringinfo.h"
-#include "libpq/crypt.h"
+#include "libpq/md5.h"
 #include "libpq/pqformat.h"
-#include "mb/pg_wchar.h"
-#include "miscadmin.h"
 #include "parser/scansup.h"
 #include "regex/regex.h"
-#include "utils/array.h"
 #include "utils/builtins.h"
 #include "utils/lsyscache.h"
 #include "utils/pg_locale.h"
@@ -988,8 +985,8 @@ texteq(PG_FUNCTION_ARGS)
        bool            result;
 
        /*
-        * Since we only care about equality or not-equality, we can avoid all
-        * the expense of strcoll() here, and just do bitwise comparison.
+        * Since we only care about equality or not-equality, we can avoid all the
+        * expense of strcoll() here, and just do bitwise comparison.
         */
        if (VARSIZE(arg1) != VARSIZE(arg2))
                result = false;
@@ -1011,8 +1008,8 @@ textne(PG_FUNCTION_ARGS)
        bool            result;
 
        /*
-        * Since we only care about equality or not-equality, we can avoid all
-        * the expense of strcoll() here, and just do bitwise comparison.
+        * Since we only care about equality or not-equality, we can avoid all the
+        * expense of strcoll() here, and just do bitwise comparison.
         */
        if (VARSIZE(arg1) != VARSIZE(arg2))
                result = true;
@@ -2220,7 +2217,7 @@ replace_text_regexp(text *src_text, void *regexp,
        text       *ret_text;
        regex_t    *re = (regex_t *) regexp;
        int                     src_text_len = VARSIZE(src_text) - VARHDRSZ;
-       StringInfoData  buf;
+       StringInfoData buf;
        regmatch_t      pmatch[REGEXP_REPLACE_BACKREF_CNT];
        pg_wchar   *data;
        size_t          data_len;
@@ -2239,7 +2236,7 @@ replace_text_regexp(text *src_text, void *regexp,
 
        for (search_start = data_pos = 0; search_start <= data_len;)
        {
-               int regexec_result;
+               int                     regexec_result;
 
                regexec_result = pg_regexec(re,
                                                                        data,
@@ -2506,7 +2503,7 @@ array_to_text(PG_FUNCTION_ARGS)
        int                     typlen;
        bool            typbyval;
        char            typalign;
-       StringInfoData  buf;
+       StringInfoData buf;
        bool            printed = false;
        char       *p;
        bits8      *bitmap;