Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita0551e8

Browse files
committed
Make c++ examples return 0 from main().
1 parent02ee041 commita0551e8

File tree

7 files changed

+8
-1
lines changed

7 files changed

+8
-1
lines changed

‎src/interfaces/libpq++/examples/testlibpq1.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ int main()
6262

6363
// End the transaction
6464
data.Exec("END");
65+
return0;
6566
}
6667

6768

‎src/interfaces/libpq++/examples/testlibpq2.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,5 @@ int main()
5353

5454
// close the portal
5555
data.Exec("CLOSE myportal");
56+
return0;
5657
}

‎src/interfaces/libpq++/examples/testlibpq3.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,5 @@ int main()
5353
cout <<setiosflags(ios::right) <<setw(15) << cData.GetValue(i,j);
5454
cout << endl;
5555
}
56+
return0;
5657
}

‎src/interfaces/libpq++/examples/testlibpq4.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,5 @@ main()
5555
break;
5656
}
5757
}
58+
return0;
5859
}

‎src/interfaces/libpq++/examples/testlibpq5.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,5 @@ main()
9999
// Deallocate memory allocated for the Polygon structure
100100
free(pval);
101101
}
102+
return0;
102103
}

‎src/interfaces/libpq++/examples/testlibpq6.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,5 @@ main()
5656

5757
// Drop the test table
5858
data.Exec("DROP TABLE foo");
59+
return0;
5960
}

‎src/interfaces/libpq++/examples/testlo.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Attic/testlo.cc,v 1.6 2000/04/22 22:15:48 tgl Exp $
10+
* $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Attic/testlo.cc,v 1.7 2000/04/25 21:00:29 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -46,4 +46,5 @@ int main(int argc, char **argv)
4646
cout <<"Exporting large object to file\"" << out_filename <<"\"..." << endl;
4747
object.Export(out_filename);
4848
object.Exec("END");// WHY DOES IT CORE DUMP HERE ???
49+
return0;
4950
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp