mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
53972b460c
This particular batch was just for *.c and *.h file. The changes were made with the following 2 commands: find . \( \( -name 'libstemmer' -o -name 'expected' -o -name 'ppport.h' \) -prune \) -o \( -name '*.[ch]' \) \( -exec grep -q '\$PostgreSQL' {} \; -o -print \) | while read file ; do head -n 1 < $file | grep -q '^/\*' && echo $file; done | xargs -l sed -i -e '1s/^\// /' -e '1i/*\n * $PostgreSQL:$ \n *' find . \( \( -name 'libstemmer' -o -name 'expected' -o -name 'ppport.h' \) -prune \) -o \( -name '*.[ch]' \) \( -exec grep -q '\$PostgreSQL' {} \; -o -print \) | xargs -l sed -i -e '1i/*\n * $PostgreSQL:$ \n */'
14 lines
316 B
C
14 lines
316 B
C
/*
|
|
* $PostgreSQL: pgsql/contrib/hstore/crc32.h,v 1.2 2008/05/17 01:28:19 adunstan Exp $
|
|
*/
|
|
#ifndef _CRC32_H
|
|
#define _CRC32_H
|
|
|
|
/* Returns crc32 of data block */
|
|
extern unsigned int crc32_sz(char *buf, int size);
|
|
|
|
/* Returns crc32 of null-terminated string */
|
|
#define crc32(buf) crc32_sz((buf),strlen(buf))
|
|
|
|
#endif
|