From 1986324e55049475e09f7cf1fc446c94b34aeebc Mon Sep 17 00:00:00 2001 From: levine Date: Wed, 19 Aug 1998 15:05:54 +0000 Subject: added guidelines to check for success of an attempted open of an existing file, and to not release copyrighted, etc., material with ACE/TAO. --- etc/ACE-guidelines.html | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) (limited to 'etc') diff --git a/etc/ACE-guidelines.html b/etc/ACE-guidelines.html index 2983cbd659f..8475c98fc90 100644 --- a/etc/ACE-guidelines.html +++ b/etc/ACE-guidelines.html @@ -85,7 +85,8 @@ to Graham for providing the OSE tools!

To insert that string at the top of a file:

-        perl -pi -e 'if (! $o) {printf "// \$Id\$\n\n";}; $o = 1;' file
+        perl -pi -e \
+          'if (! $o) {printf "// \$Id\$\n\n";}; $o = 1;' file
         

  • Comments, especially in header files, must follow the @@ -268,13 +269,15 @@ to Graham for providing the OSE tools!

    ssize_t n_bytes; // Send multicast of one byte, enough to wake up server. - if ((n_bytes = multicast.send ((char *) &reply_port, sizeof reply_port)) == -1) + if ((n_bytes = multicast.send ((char *) &reply_port, + sizeof reply_port)) == -1) Write it like this:

    -        ssize_t n_bytes = multicast.send ((char *) &reply_port, sizeof reply_port)
    +        ssize_t n_bytes = multicast.send ((char *) &reply_port,
    +          sizeof reply_port)
     
             // Send multicast of one byte, enough to wake up server.
             if (n_bytes == -1)
    @@ -363,6 +366,8 @@ to Graham for providing the OSE tools!

    and ACE_OS::scanf/fprintf () for file I/O. Avoid using iostreams because of implementation differences across platforms.

    +

  • After attempting to open an existing file, always check for success. + Take appropriate action if the open failed.

  • UNICODE conformity

    @@ -473,6 +478,18 @@ to Graham for providing the OSE tools!

    +


    +

    Other + ACE and + TAO + Guidelines

    +
      +
    • Never add copyrighted, confidential, or otherwise restricted + code to the ACE or TAO distributions without written permission + from the owner.

      +

    + +

    CVS Usage Guidelines

    @@ -511,9 +528,10 @@ to Graham for providing the OSE tools!

    ACE Design Rules

    +
    -Last modified: Mon Aug 17 14:51:25 CDT 1998 +Last modified: Wed Aug 19 10:05:15 CDT 1998 -- cgit v1.2.1