diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2013-11-10 09:20:52 -0500 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2013-11-10 14:48:29 -0500 |
commit | 001e114b8d59f4eaf2a314a2bc5e57078afdf82f (patch) | |
tree | 606fa622be346ef917886a29aea7e17383e00d31 /src/interfaces/ecpg/test/preproc | |
parent | dca09ac53329e92d73f45674957c26d3d7ae5117 (diff) | |
download | postgresql-001e114b8d59f4eaf2a314a2bc5e57078afdf82f.tar.gz postgresql-001e114b8d59f4eaf2a314a2bc5e57078afdf82f.zip |
Fix whitespace issues found by git diff --check, add gitattributes
Set per file type attributes in .gitattributes to fine-tune whitespace
checks. With the associated cleanups, the tree is now clean for git
Diffstat (limited to 'src/interfaces/ecpg/test/preproc')
-rw-r--r-- | src/interfaces/ecpg/test/preproc/autoprep.pgc | 4 | ||||
-rw-r--r-- | src/interfaces/ecpg/test/preproc/type.pgc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/ecpg/test/preproc/autoprep.pgc b/src/interfaces/ecpg/test/preproc/autoprep.pgc index eeeb879d105..31c3ab7a56e 100644 --- a/src/interfaces/ecpg/test/preproc/autoprep.pgc +++ b/src/interfaces/ecpg/test/preproc/autoprep.pgc @@ -7,7 +7,7 @@ EXEC SQL INCLUDE ../regression; static void test(void) { EXEC SQL BEGIN DECLARE SECTION; - int item[4], ind[4], i = 1; + int item[4], ind[4], i = 1; int item1, ind1; char sqlstr[64] = "SELECT item2 FROM T ORDER BY item2 NULLS LAST"; EXEC SQL END DECLARE SECTION; @@ -30,7 +30,7 @@ static void test(void) { EXEC SQL SELECT Item2 INTO :item:ind FROM T ORDER BY Item2 NULLS LAST; for (i=0; i<4; i++) - printf("item[%d] = %d\n", i, ind[i] ? -1 : item[i]); + printf("item[%d] = %d\n", i, ind[i] ? -1 : item[i]); EXEC SQL DECLARE C CURSOR FOR SELECT Item1 FROM T; diff --git a/src/interfaces/ecpg/test/preproc/type.pgc b/src/interfaces/ecpg/test/preproc/type.pgc index 359a7f49a0c..3200c91dc24 100644 --- a/src/interfaces/ecpg/test/preproc/type.pgc +++ b/src/interfaces/ecpg/test/preproc/type.pgc @@ -31,7 +31,7 @@ main (void) c ptr = NULL; struct varchar { - int len; + int len; char text[10]; } vc; EXEC SQL END DECLARE SECTION; |