Brad King
d4d0c94226
ccmake: Fix recent compilation regression with GCC on Solaris
...
The change in commit 32f756c8
(CursesDialog: include what you use,
2016-09-01) revealed that an ancient workaround for compiling with GCC
on Solaris has not had an effect in a long time and is now incorrect.
Drop it.
2016-09-14 10:51:27 -04:00
Felix Geyer
49e82c15d5
Fix spelling typos in comments and documentation ( #16037 )
...
The Debian package checker tool (lintian) detected several typos in
CMake.
2016-03-29 14:31:02 -04:00
Ådne Hovda
7a68729223
ccmake: Cleanup and simplify conditional blocks for HP-UX
2014-11-18 10:03:35 -05:00
Ådne Hovda
44f02b42fb
ccmake: Use standard getmaxyx instead of non-standard getmax[xy]
...
Swap out getmax[xy]() calls for single call to getmaxyx(), to support
strict X/Open conformant curses implementations, e.g. HP-UX Xcurses.
2014-11-18 10:02:33 -05:00
Ådne Hovda
ee3d06a41e
ccmake: Remove incomplete support for cur_colr on old HP-UX
...
Enable support for the more modern Xcurses.
2014-11-18 10:02:08 -05:00
Ömer Fadıl USTA
3b849a7ae9
ccmake: Add missing initializers reported by cppcheck
...
The return statement uses d1, d2, d3, and d4 variables but the code
which initialize them inside a if statement and not always this if
statement is corrent. On the other hand these variables are using for
return statement and needed to be initialized. A trivial fix to pervent
some compilers will give build error.
Reviewed-by: Igor Murzov <e-mail@date.by>
2013-07-15 10:20:00 -04:00
Sean McBride
1399825cf9
Remove some uses of obsolete 'register' storage specifier
...
Remove the keyword from all Source/* files outside of KWSys.
2013-06-28 16:37:49 -04:00
Andreas Mohr
bf019d765d
Fix spelling and typos (non-binary)
2013-05-07 08:39:19 -04:00
Kitware Robot
9db3116226
Remove CMake-language block-end command arguments
...
Ancient versions of CMake required else(), endif(), and similar block
termination commands to have arguments matching the command starting the
block. This is no longer the preferred style.
Run the following shell code:
for c in else endif endforeach endfunction endmacro endwhile; do
echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/'
done >convert.sed &&
git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' |
egrep -z -v '^(Utilities/cm|Source/kwsys/)' |
egrep -z -v 'Tests/CMakeTests/While-Endwhile-' |
xargs -0 sed -i -f convert.sed &&
rm convert.sed
2012-08-13 14:19:16 -04:00
Kitware Robot
77543bde41
Convert CMake-language commands to lower case
...
Ancient CMake versions required upper-case commands. Later command
names became case-insensitive. Now the preferred style is lower-case.
Run the following shell code:
cmake --help-command-list |
grep -v "cmake version" |
while read c; do
echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g'
done >convert.sed &&
git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' |
egrep -z -v '^(Utilities/cm|Source/kwsys/)' |
xargs -0 sed -i -f convert.sed &&
rm convert.sed
2012-08-13 14:19:16 -04:00
Brad King
acd8161bad
ccmake: Remove extra parens around comparison
...
The Clang compiler warns about extra parenthesis in the code
if ((form->curpage == field->page))
~ ^ ~
because the idiom is commonly used when an assignment is intended
instead of a comparison. Remove the extra enclosing layer.
2011-02-15 08:46:50 -05:00
Brad King
dde0c89cfc
ccmake: Use LSB 4.0 getmaxyx conditionally
...
Use of 'getmaxyx' works on LSB but does not seem portable to other
curses versions.
2011-01-05 11:07:24 -05:00
Brad King
a3de30eed9
ccmake: Use LSB 4.0 curses API conditionally
...
Use of 'attr_t' and 'wattr_get' works on LSB but does not seem
portable to other curses versions.
2011-01-04 08:52:50 -05:00
Craig Scott
7d691cab9b
ccmake: Port for LSB 4.0 ( #11648 )
...
Use getmaxyx instead of getmax[xy]. Avoid using getattrs.
2011-01-03 12:15:41 -05:00
Kai Wasserbäch
9203e9187e
Fix spelling errors reported by Lintian.
...
During a Lintian run on the binary packages of CMake in Debian I was
notified of many spelling mistakes.
2010-07-13 09:41:37 -04:00
Brad King
96afb12087
Convert CMake to OSI-approved BSD License
...
This converts the CMake license to a pure 3-clause OSI-approved BSD
License. We drop the previous license clause requiring modified
versions to be plainly marked. We also update the CMake copyright to
cover the full development time range.
2009-09-28 11:43:28 -04:00
Alexander Neundorf
c41f798383
COMP: make it build on NetBSD, which has separate curses and ncurses, so
...
it has to be detected that curses isn't good enough, but ncurses is, and
that ncurses.h instead of curses.h is included
Alex
2007-08-27 09:01:14 -04:00
Bill Hoffman
88e3cd53ab
ENH: fix ia64 build with aCC
2006-06-27 09:57:02 -04:00
Bill Hoffman
e4894bfc91
ENH: add curses include directory
2005-07-11 18:07:02 -04:00
Brad King
d6d91ac89f
ENH: Removing stdio_core hack. A better work-around has been put in cmStandardIncludes.h.
2005-04-26 14:12:31 -04:00
Brad King
e26bafa52a
BUG: Older SGI compilers still have internal/stdio_core.h but do not support #include_next. We'll have to try-compile to test whether this hack is needed.
2005-04-24 13:15:50 -04:00
Brad King
2f4e516e23
COMP: Using a new work-around for stdarg.h problem on SGI.
2005-04-21 17:00:36 -04:00
Andy Cedilnik
1e04844de9
COMP: Attempt to fix problem with building on SGI
2005-04-19 18:26:40 -04:00
Bill Hoffman
0f19623edd
BUG: fixes for hp
2003-03-11 15:25:50 -05:00
Brad King
f6a70573b0
ERR: Another attempt to remove warnings from missing prototypes.
2002-10-23 16:43:34 -04:00
Brad King
a465ee3c6b
ENH: Another attempt to fix OSF warnings. Also removed TABS.
2002-10-16 10:53:12 -04:00
Bill Hoffman
3f36d23421
BUG: add explicit clean up of the cachemanager at exit of programs, so dll destruction is not a problem.
2002-08-23 13:46:32 -04:00
Brad King
953e01a604
ERR: Removed most of the repeated curses declarations. The cause errors on other platforms. Grrrr..
2002-06-21 10:26:50 -04:00
Brad King
5bed7ca691
ERR: Added function declarations from curses.h. They are not present on some platforms. Fixes warnings about implicit declarations.
2002-06-21 09:25:32 -04:00
Brad King
b15808caff
ERR: Fixed unused parameter warning.
2002-06-19 08:57:14 -04:00
Brad King
05e162f00a
ERR: Fixed compiler warnings when using strict ansi.
2002-06-18 17:19:38 -04:00
Brad King
50be646b79
ERR: Attempt to fix warning on OSF about implicit declaration of winnstr.
2002-06-18 16:30:00 -04:00
Amitha Perera
64beaa8b9c
BUG: Changed from SOURCE_FILES to SET
2002-04-22 15:05:22 -04:00
Sebastien Barre
6d6546ea7e
This dir should not be covered (form distrib)
2002-02-13 16:17:26 -05:00
Brad King
0bdd309fe0
ERR: Corrected assertions of pointers to remove warnings.
2002-01-25 09:06:39 -05:00
Bill Hoffman
f693910602
no c++ comments in c code, duhhhh
2001-12-04 10:11:54 -05:00
Bill Hoffman
7bcea94b9a
ENH: AIX seems to define lines and columns as macros, I undefed them
2001-12-03 19:58:56 -05:00
Brad King
17591cd515
ERR: Fixed compiler warning for gcc 3.0.
2001-11-14 09:55:24 -05:00
Bill Hoffman
83d7df09c4
warnings
2001-11-13 12:42:45 -05:00
Berk Geveci
23f0b7760f
Trying to fix curses.
2001-11-09 16:05:33 -05:00
Berk Geveci
438676de38
Trying to fix curses problems.
2001-11-08 17:30:18 -05:00
Berk Geveci
3482e716c3
Fixing problems with curses headers.
2001-11-08 17:25:36 -05:00
Berk Geveci
217081a72b
Trying to fix curses problems.
2001-11-08 17:17:44 -05:00
Berk Geveci
76f799fd03
Oops.
2001-11-08 17:10:58 -05:00
Berk Geveci
777ec99219
Changes to remove warnings and fix dependencies.
2001-11-08 17:03:52 -05:00
Bill Hoffman
05a884c675
Removed a function which used va_start (did not compile on Sun with gcc)
2001-11-06 08:40:07 -05:00
Berk Geveci
b22e2de8e5
HPUX support.
2001-11-05 13:24:44 -05:00
Berk Geveci
cd7297781d
Adding form library.
2001-11-05 11:53:05 -05:00