Skip to content

Commit 95d7119

Browse files
author
looking4group
committed
Import new files
1 parent 95b3b57 commit 95d7119

File tree

4,880 files changed

+1316698
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,880 files changed

+1316698
-0
lines changed

CMakeLists.txt

Lines changed: 486 additions & 0 deletions
Large diffs are not rendered by default.

LICENSE

Lines changed: 340 additions & 0 deletions
Large diffs are not rendered by default.

bcpp.cfg

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
; This file contains configuration parameters that are used
2+
; within the bcpp program.
3+
4+
; There are two types of parameter types : Boolean, and Integer.
5+
; Boolean types can have only two valid values [On, Yes, or Off, No].
6+
; Integer types can have a valid range of 0 - 5000.
7+
8+
;------------------------------------------------------------------------
9+
; This parameter specifies how many lines separate between two
10+
; functions.
11+
;------------------------------------------------------------------------
12+
function_spacing = 1 ; Integer
13+
14+
;------------------------------------------------------------------------
15+
; Specifies whether to use tabs in indenting code.
16+
;------------------------------------------------------------------------
17+
use_tabs = no ; Boolean
18+
19+
;------------------------------------------------------------------------
20+
; Specifies how many spaces to indent. This parameter is also used
21+
; for tab indenting, as 1 tab may be worth 8 spaces if so desired.
22+
; This parameter is used to position comments in TAB mode, and expanding
23+
; of tabs within code!
24+
;------------------------------------------------------------------------
25+
indent_spacing = 4 ; Integer
26+
27+
;------------------------------------------------------------------------
28+
; Specifies whether to indent preprocessor controls to match the code
29+
;------------------------------------------------------------------------
30+
indent_preprocessor = yes ; Boolean
31+
32+
;------------------------------------------------------------------------
33+
; Specifies whether to indent embedded SQL statements
34+
;------------------------------------------------------------------------
35+
indent_exec_sql = yes ; Boolean
36+
37+
;------------------------------------------------------------------------
38+
; Defines at what start position comments that have code on the
39+
; same line to be placed.
40+
;------------------------------------------------------------------------
41+
comments_with_code = 60 ; Integer
42+
43+
;------------------------------------------------------------------------
44+
; Defines at what start position comments with no code start.
45+
;------------------------------------------------------------------------
46+
comments_with_nocode = 0 ; Integer
47+
48+
;------------------------------------------------------------------------
49+
; Set this option to ON turns off setting indentation position of parameter
50+
; "comments_with_nocode". Indentation is then set according to code
51+
; position.
52+
;------------------------------------------------------------------------
53+
leave_comments_nocode = On ; Boolean
54+
55+
;------------------------------------------------------------------------
56+
; Use this option is used to change non-ascii (non-printable) chars to
57+
; octal notation if they lie within quotes. Either
58+
; Ascii_Chars_Only, XOR Leave_Graphic_Chars parameters need to be set
59+
; as a True value for this parameter to take effect.
60+
;------------------------------------------------------------------------
61+
NonAscii_Quotes_to_Octal = yes ; Boolean
62+
63+
;------------------------------------------------------------------------
64+
; Setting this parameter to yes will strip non-printable characters
65+
; from the source files, but leave any character that are IBM
66+
; graphics alone. Any non-printable characters that lie within
67+
; quotes will be transformed into octal/character notation, if
68+
; NonAscii_Quotes_To_Octal parameter is set to True.
69+
;------------------------------------------------------------------------
70+
; leave_graphic_chars = yes ; Boolean
71+
72+
;------------------------------------------------------------------------
73+
; Setting this parameter to yes will strip any non-printable,
74+
; non-ascii characters from the input file. Any non-printable
75+
; octal/character notation if NonAscii_Quotes_To_Octal is set to
76+
; True. Comment out this parameter if you are using
77+
; Leave_Graphic_Chars parameter, as this parameter will override
78+
; it.
79+
;------------------------------------------------------------------------
80+
ascii_chars_only = no ; Boolean
81+
82+
;------------------------------------------------------------------------
83+
; This parameter will place open braces on a new line after it's
84+
; associated code if set on/yes. Else the brace will be place on
85+
; next above line if possible, with it's code.
86+
;------------------------------------------------------------------------
87+
place_brace_on_new_line = yes ; Boolean
88+
89+
;------------------------------------------------------------------------
90+
; This parameter will stop output from the program corrupting output
91+
; that may exit from the program via the standard output.
92+
; If this parameter is set to off/no then no output is generated from
93+
; the program, unless an error is encountered
94+
;------------------------------------------------------------------------
95+
program_output = yes ; Boolean
96+
97+
;------------------------------------------------------------------------
98+
; Specifies what the internal memory requirements will be in size of the
99+
; line processing buffer. This essentially is used only for open brace
100+
; relocation in kernighan/ritchie style.
101+
;------------------------------------------------------------------------
102+
Queue_Buffer = 100 ; Integer
103+
104+
;------------------------------------------------------------------------
105+
; If this option is set to true then the input file will be backup into a
106+
; another file with a ".bac" extension added to the end of the file
107+
; name.
108+
;------------------------------------------------------------------------
109+
Backup_File = yes ; Boolean

cmake/FindACE.cmake

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#
2+
# Find the ACE client includes and library
3+
#
4+
5+
# This module defines
6+
# ACE_INCLUDE_DIR, where to find ace.h
7+
# ACE_LIBRARIES, the libraries to link against
8+
# ACE_FOUND, if false, you cannot build anything that requires ACE
9+
10+
# also defined, but not for general use are
11+
# ACE_LIBRARY, where to find the ACE library.
12+
13+
set( ACE_FOUND 0 )
14+
if ( UNIX )
15+
FIND_PATH( ACE_INCLUDE_DIR
16+
NAMES
17+
ace/ACE.h
18+
PATHS
19+
/usr/include
20+
/usr/include/ace
21+
/usr/local/include
22+
/usr/local/include/ace
23+
${ACE_ROOT}
24+
${ACE_ROOT}/include
25+
$ENV{ACE_ROOT}
26+
$ENV{ACE_ROOT}/include
27+
# ${CMAKE_SOURCE_DIR}/dep/ACE_wrappers
28+
DOC
29+
"Specify include-directories that might contain ace.h here."
30+
)
31+
FIND_LIBRARY( ACE_LIBRARIES
32+
NAMES
33+
ace ACE
34+
PATHS
35+
/usr/lib
36+
/usr/lib/ace
37+
/usr/local/lib
38+
/usr/local/lib/ace
39+
/usr/local/ace/lib
40+
${ACE_ROOT}
41+
${ACE_ROOT}/lib
42+
$ENV{ACE_ROOT}/lib
43+
$ENV{ACE_ROOT}
44+
DOC "Specify library-locations that might contain the ACE library here."
45+
)
46+
47+
# FIND_LIBRARY( ACE_EXTRA_LIBRARIES
48+
# NAMES
49+
# z zlib
50+
# PATHS
51+
# /usr/lib
52+
# /usr/local/lib
53+
# DOC
54+
# "if more libraries are necessary to link into ACE, specify them here."
55+
# )
56+
57+
if ( ACE_LIBRARIES )
58+
if ( ACE_INCLUDE_DIR )
59+
set( ACE_FOUND 1 )
60+
message( STATUS "Found ACE library: ${ACE_LIBRARIES}")
61+
message( STATUS "Found ACE headers: ${ACE_INCLUDE_DIR}")
62+
else ( ACE_INCLUDE_DIR )
63+
message(FATAL_ERROR "Could not find ACE headers! Please install ACE libraries and headers")
64+
endif ( ACE_INCLUDE_DIR )
65+
endif ( ACE_LIBRARIES )
66+
67+
mark_as_advanced( ACE_FOUND ACE_LIBRARIES ACE_EXTRA_LIBRARIES ACE_INCLUDE_DIR )
68+
endif (UNIX)

cmake/FindMercurial.cmake

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
# - Extract information from a Mercurial repository
2+
# The module defines the following variables:
3+
# MERCURIAL_EXECUTABLE - path to mercurial executable
4+
# MERCURIAL_VERSION - mercurial version
5+
# MERCURIAL_FOUND - true if mercurial was found
6+
# If the mercurial executable is found the macro
7+
# MERCURIAL_HG_INFO(<dir> <var-prefix>)
8+
# is defined to extract information of a mercurial repository at
9+
# a given location. The macro defines the following variables:
10+
# <var-prefix>_HG_ID - global revision id of the working copy (at <dir>)
11+
# <var-prefix>_HG_CHANGESET - changeset id of the working copy
12+
# <var-prefix>_HG_AUTHOR - commit author of this changeset
13+
# <var-prefix>_HG_DATE - commit date of this changeset
14+
# <var-prefix>_HG_TAGS - tags belonging to this changeset
15+
# <var-prefix>_HG_BRANCH - (non-default) branch name of this changeset
16+
# <var-prefix>_HG_SUMMARY - commit message summary of this changeset
17+
# Example usage:
18+
# FIND_PACKAGE(Mercurial)
19+
# IF(MERCURIAL_FOUND)
20+
# MERCURIAL_HG_INFO(${PROJECT_SOURCE_DIR} Project)
21+
# MESSAGE("Current revision is ${Project_HG_ID}")
22+
# ENDIF(MERCURIAL_FOUND)
23+
24+
# Copyright (C) 2008 Peter Colberg
25+
#
26+
# This file was derived from FindSubversion.cmake shipped with CMake 2.4.7.
27+
#
28+
# Copyright (c) 2006, Tristan Carel
29+
# All rights reserved.
30+
# Redistribution and use in source and binary forms, with or without
31+
# modification, are permitted provided that the following conditions are met:
32+
#
33+
# * Redistributions of source code must retain the above copyright
34+
# notice, this list of conditions and the following disclaimer.
35+
# * Redistributions in binary form must reproduce the above copyright
36+
# notice, this list of conditions and the following disclaimer in the
37+
# documentation and/or other materials provided with the distribution.
38+
# * Neither the name of the University of California, Berkeley nor the
39+
# names of its contributors may be used to endorse or promote products
40+
# derived from this software without specific prior written permission.
41+
#
42+
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY
43+
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
44+
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
45+
# DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY
46+
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
47+
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
48+
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
49+
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
50+
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
51+
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
52+
53+
54+
FIND_PROGRAM(MERCURIAL_EXECUTABLE hg
55+
DOC "Mercurial Distributed SCM executable")
56+
MARK_AS_ADVANCED(MERCURIAL_EXECUTABLE)
57+
58+
IF(MERCURIAL_EXECUTABLE)
59+
SET(MERCURIAL_FOUND TRUE)
60+
61+
MACRO(MERCURIAL_COMMAND dir command)
62+
EXECUTE_PROCESS(COMMAND ${MERCURIAL_EXECUTABLE} ${command} ${ARGN}
63+
WORKING_DIRECTORY ${dir}
64+
OUTPUT_VARIABLE MERCURIAL_${command}_OUTPUT
65+
ERROR_VARIABLE MERCURIAL_${command}_ERROR
66+
RESULT_VARIABLE MERCURIAL_${command}_RESULT
67+
OUTPUT_STRIP_TRAILING_WHITESPACE)
68+
69+
IF(NOT ${MERCURIAL_${command}_RESULT} EQUAL 0)
70+
SET(cmdline "${MERCURIAL_EXECUTABLE} ${command}")
71+
FOREACH(arg ${ARGN})
72+
SET(cmdline "${cmdline} ${arg}")
73+
ENDFOREACH(arg ${ARGN})
74+
MESSAGE(SEND_ERROR "Command \"${cmdline}\" failed with output:\n${MERCURIAL_${command}_ERROR}")
75+
76+
SET(MERCURIAL_${command}_OUTPUT)
77+
ENDIF(NOT ${MERCURIAL_${command}_RESULT} EQUAL 0)
78+
79+
ENDMACRO(MERCURIAL_COMMAND dir command)
80+
81+
82+
MACRO(MERCURIAL_HG_INFO dir prefix)
83+
IF(IS_DIRECTORY "${dir}")
84+
MERCURIAL_COMMAND(${dir} id -i)
85+
86+
IF(MERCURIAL_id_OUTPUT)
87+
# global revision id of the working copy
88+
SET(${prefix}_HG_ID "${MERCURIAL_id_OUTPUT}")
89+
90+
# changeset id of the working copy
91+
STRING(REGEX REPLACE "^([0-9a-f]+).*"
92+
"\\1" ${prefix}_HG_CHANGESET "${MERCURIAL_id_OUTPUT}")
93+
94+
MERCURIAL_COMMAND(${dir} log -r ${${prefix}_HG_CHANGESET})
95+
96+
STRING(REGEX REPLACE ";" "\\\\;"
97+
MERCURIAL_log_OUTPUT "${MERCURIAL_log_OUTPUT}")
98+
STRING(REGEX REPLACE "\n" ";"
99+
MERCURIAL_log_OUTPUT "${MERCURIAL_log_OUTPUT}")
100+
101+
FOREACH(line ${MERCURIAL_log_OUTPUT})
102+
# commit author of this changeset
103+
IF(line MATCHES "^user:")
104+
STRING(REGEX REPLACE "^user:[ ]+(.+)"
105+
"\\1" ${prefix}_HG_AUTHOR "${line}")
106+
ENDIF(line MATCHES "^user:")
107+
108+
# commit date of this changeset
109+
IF(line MATCHES "^date:")
110+
STRING(REGEX REPLACE "^date:[ ]+(.+)"
111+
"\\1" ${prefix}_HG_DATE "${line}")
112+
ENDIF(line MATCHES "^date:")
113+
114+
# tags belonging to this changeset
115+
IF(line MATCHES "^tag:")
116+
STRING(REGEX REPLACE "^tag:[ ]+(.+)"
117+
"\\1" tag "${line}")
118+
STRING(REGEX REPLACE ";" "\\\\;" tag "${tag}")
119+
LIST(APPEND ${prefix}_HG_TAGS "${tag}")
120+
ENDIF(line MATCHES "^tag:")
121+
122+
# (non-default) branch name of this changeset
123+
IF(line MATCHES "^branch:")
124+
STRING(REGEX REPLACE "^branch:[ ]+(.+)"
125+
"\\1" ${prefix}_HG_BRANCH "${line}")
126+
ENDIF(line MATCHES "^branch:")
127+
128+
# commit message summary of this changeset
129+
IF(line MATCHES "^summary:")
130+
STRING(REGEX REPLACE "^summary:[ ]+(.+)"
131+
"\\1" ${prefix}_HG_SUMMARY "${line}")
132+
ENDIF(line MATCHES "^summary:")
133+
134+
ENDFOREACH(line ${MERCURIAL_log_OUTPUT})
135+
ENDIF(MERCURIAL_id_OUTPUT)
136+
137+
ELSE(IS_DIRECTORY "${dir}")
138+
MESSAGE(SEND_ERROR "Invalid MERCURIAL_HG_INFO directory \"${dir}\"")
139+
ENDIF(IS_DIRECTORY "${dir}")
140+
141+
ENDMACRO(MERCURIAL_HG_INFO dir prefix)
142+
143+
144+
# mercurial version
145+
MERCURIAL_COMMAND(${CMAKE_BINARY_DIR} version)
146+
147+
STRING(REGEX REPLACE "^Mercurial Distributed SCM \\(version ([.0-9]+)\\).*"
148+
"\\1" MERCURIAL_VERSION "${MERCURIAL_version_OUTPUT}")
149+
150+
ENDIF(MERCURIAL_EXECUTABLE)
151+
152+
IF(NOT MERCURIAL_FOUND)
153+
IF(NOT MERCURIAL_FIND_QUIETLY)
154+
MESSAGE(STATUS "Mercurial was not found.")
155+
ELSE(NOT MERCURIAL_FIND_QUIETLY)
156+
IF(MERCURIAL_FIND_REQUIRED)
157+
MESSAGE(FATAL_ERROR "Mercurial was not found.")
158+
ENDIF(MERCURIAL_FIND_REQUIRED)
159+
ENDIF(NOT MERCURIAL_FIND_QUIETLY)
160+
ENDIF(NOT MERCURIAL_FOUND)

0 commit comments

Comments
 (0)