diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-22 15:02:17 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-22 15:02:17 +0000 |
commit | 4755b3d33f325ac1921fbf12e72b31b7f22c179d (patch) | |
tree | ad8a85e3b5cbe6fd83e2b5fa967576b9e1103ab1 /docs/ACE-guidelines.html | |
parent | e6d7ea3c3c62c046a02c4c7126af640ed9a25a0d (diff) | |
download | ATCD-4755b3d33f325ac1921fbf12e72b31b7f22c179d.tar.gz |
ChangeLogTag: Thu Jul 22 09:55:10 1999 David L. Levine <levine@cs.wustl.edu>
Diffstat (limited to 'docs/ACE-guidelines.html')
-rw-r--r-- | docs/ACE-guidelines.html | 45 |
1 files changed, 30 insertions, 15 deletions
diff --git a/docs/ACE-guidelines.html b/docs/ACE-guidelines.html index 892062fbe04..10ef969d160 100644 --- a/docs/ACE-guidelines.html +++ b/docs/ACE-guidelines.html @@ -646,14 +646,15 @@ bgcolor="#ffffff"> in most of their APIs. On these platforms, ACE also uses UNICODE as its system string type.<p> - <p>Notice that when spaning a string literal across several lines, - you must apply <CODE>ASYS_TEXT</CODE> to <b>every</b> line. - For example, it is <font color=red>illegal</font> to do this: + Notice that when spaning a string literal across several lines, + you must apply <code>ASYS_TEXT</code> to <strong>every</strong> + line. For example, it is <font color=red>illegal</font> to do this: <pre> ACE_ERROR ((LM_ERROR, ASYS_TEXT ("%p\n"), ASYS_TEXT ("\nerror: x is a null pointer in " - "ACE_RB_Tree<EXT_ID, INT_ID>::RB_rotate_left\n"))); + "ACE_RB_Tree<EXT_ID, INT_ID>::" + "RB_rotate_left\n"))); </pre></p> <p>Instead, this should be written like this: @@ -661,7 +662,8 @@ bgcolor="#ffffff"> ACE_ERROR ((LM_ERROR, ASYS_TEXT ("%p\n"), ASYS_TEXT ("\nerror: x is a null pointer in ") - ASYS_TEXT ("ACE_RB_Tree<EXT_ID, INT_ID>::RB_rotate_left\n"))); + ASYS_TEXT ("ACE_RB_Tree<EXT_ID, INT_ID>::") + ASYS_TEXT ("RB_rotate_left\n"))); </pre></p> <li><strong><code>ACE_TRACE</code></strong> handles conversion @@ -760,7 +762,8 @@ bgcolor="#ffffff"> ~exe_foo () { cerr << "destructor of exception called" << endl; } exe_foo (const exe_foo& foo) : data_ (foo.data_) - { cerr << "copy constructor of exception called" << endl; } + { cerr << "copy constructor of exception called" + << endl; } int data_; }; @@ -780,44 +783,52 @@ bgcolor="#ffffff"> int main () { - cout << endl << "First exception" << endl << endl; + cout << endl << "First exception" << endl + << endl; try { good (0); } catch (exe_foo &foo) { - cerr << "exception caught: " << foo.data_ << endl; + cerr << "exception caught: " << foo.data_ + << endl; } - cout << endl << "Second exception" << endl << endl; + cout << endl << "Second exception" << endl + << endl; try { good (0); } catch (exe_foo foo) { - cerr << "exception caught: " << foo.data_ << endl; + cerr << "exception caught: " << foo.data_ + << endl; } - cout << endl << "Third exception" << endl << endl; + cout << endl << "Third exception" << endl + << endl; try { bad (1); } catch (exe_foo &foo) { - cerr << "exception caught: " << foo.data_ << endl; + cerr << "exception caught: " << foo.data_ + << endl; } - cout << endl << "Fourth exception" << endl << endl; + cout << endl << "Fourth exception" << endl + << endl; try { bad (1); } catch (exe_foo foo) { - cerr << "exception caught: " << foo.data_ << endl; + cerr << "exception caught: " << foo.data_ + << endl; } return 0; @@ -996,7 +1007,6 @@ bgcolor="#ffffff"> <li>Test your change on at least one platform. All changes <strong>must</strong> be tested with egcs before commiting. That means you may need to test on at least two platforms.<p> - <li>Commit your change with a meaningful message.<p> <li>An an entry to the appropriate ChangeLog. TAO and some ACE subdirectories, such as <a href="../ASNMP">ASNMP</a>, <a href="../apps/JAWS">JAWS</a>, and @@ -1004,6 +1014,11 @@ bgcolor="#ffffff"> own ChangeLogs. If you don't use one of those, use the <a href="../ChangeLog">ChangeLog</a> in the top-level <a href="..">ACE_wrappers</a> directory.<p> + <li>Commit your change using a message of this form:<p> +<code> +ChangeLogTag: Thu Jul 22 09:55:10 1999 David L. Levine + <levine@cs.wustl.edu> +</code><p> <li>If the change is in response to a request by someone else: <ol> <li>Make sure that person is acknowledged in |