config root man

Current Path : /usr/src/contrib/ofed/libsdp/config/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/src/contrib/ofed/libsdp/config/libsdp_indent

#!/bin/bash
#
# Copyright (c) 2006 Mellanox Technologies LTD. All rights reserved.
#
# This software is available to you under a choice of one of two
# licenses.  You may choose to be licensed under the terms of the GNU
# General Public License (GPL) Version 2, available from the file
# COPYING in the main directory of this source tree, or the
# OpenIB.org BSD license below:
#
#     Redistribution and use in source and binary forms, with or
#     without modification, are permitted provided that the following
#     conditions are met:
#
#      - Redistributions of source code must retain the above
#        copyright notice, this list of conditions and the following
#        disclaimer.
#
#      - Redistributions in binary form must reproduce the above
#        copyright notice, this list of conditions and the following
#        disclaimer in the documentation and/or other materials
#        provided with the distribution.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
# $Id: osm_indent 4707 2006-01-03 16:18:08Z halr $
#
#########################################################################
# 
#  Abstract:
#  	Indent script for enforcing source code formatting.
# 
# This is the indent format used for libsdp:
#
# -bad	Blank line after declarations
# -bap	Blank line after Procedures
# -nbbb	NO Blank line before block comments
# -nbbo	NO Break after Boolean operator
# -bl  	Break after if line
# -bli0  Indent for braces is 0
# -bls	Break after struct declarations
# -cbi0	Case break indent 0
# -ci3	Continue indent 3 spaces
# -cli0	Case label indent 0 spaces
# -ncs	No space after cast operator
# -hnl	Honor existing newlines on long lines
# -i3	   Substitute indent with 3 spaces
# -npcs	No space after procedure calls
# -prs	Space after parenthesis
# -nsai	No space after if keyword - removed
# -nsaw	No space after while keyword - removed
# -sc	   Put * at left of comments in a block comment style
# -nsob	Don't swallow unnecessary blank lines
# -ts3	Tab size is 3
# -psl	Type of procedure return in a separate line
# -bfda	Function declaration arguments in a separate line.
# -ut    No tabs as we allow spaces
# -br    Put braces on line with if, etc
# -ce    Cuddle else and preceeding }
#
#########################################################################

eval indent -bad -bap -nbbb -nbbo -bl -bli0 -bls -cbi0 -ci3 -cli0 -ncs \
            -hnl -i3 -npcs -prs -sc -nsob -ts3 -psl -bfda -ut -br -ce $*

Man Man