Commit graph

53 commits

Author SHA1 Message Date
Mark Pictor
5dc04396ad cleanup and doxify files in include/express 2012-02-02 19:07:54 -05:00
Mark Pictor
3e8c11661d cleanup and doxify src/express 2012-02-02 19:06:50 -05:00
Mark Pictor
a63ac738af eliminate "backwards compatibility" types from type.h, remove unused func
Removed macros and typedefs from type.h

Removed unused function from type.c that used those macros, and
 replaced the macros where used in fedex_plus/. For example:
 sed -i -e 's/Class_Integer_Type/integer_/g;' *

The typedefs were not in use anywhere.
2012-02-02 19:01:29 -05:00
Mark Pictor
7a6ba24f81 remove 'typedef char* String', 'STRINGequal' macro 2012-02-02 18:56:54 -05:00
Mark Pictor
1481950409 Remove obsolete fn macros OBJequal OBJfree OBJreference OBJget_data
These macros were defined in object.h as being "for backwards compatibility".
The only code that used them was in #if 0...#endif blocks. Additionally,
OBJfree is mentioned in express/Changes, dated 1992, as being unnecessary. It
seems safe to remove all of this code - it is very very old.
2012-02-02 18:55:13 -05:00
Mark
ffdeac2552 Merge pull request #125 from mpictor/review/second-edition-error
Add a warning for unsupported language features, and print it for indexing upon a binary
2012-02-02 12:48:14 -08:00
Mark
e9e576e4f8 Merge pull request #124 from mpictor/review/enums
put enums in separate table
2012-01-29 05:02:40 -08:00
Mark Pictor
4cd7e7c806 Add a warning for unsupported language features, and print it for indexing upon a binary 2012-01-26 20:11:59 -05:00
davyw
22cbb3efcf Fixed issue for bcc32 v6.30 and up.
* _Bool type is a known keyword for bcc32 v6.30 and up.
2012-01-18 21:09:49 +01:00
Mark Pictor
c415e49894 put enums in separate table 2012-01-17 20:38:31 -05:00
davyw
2d26da7d24 Changed xgetopt module to remove unicode support.
* Since the unicode support (TCHAR, _T, ...) did not build with borland
  makefiles target I removed unicode support temporarily since most scl
  code does not support unicode yet.
2012-01-04 23:12:46 +01:00
davyw
c0c423c625 Added support for cmake 'Borland Makefiles' generator.
* Added __BORLAND__ flag to a number of places in the code.
* Added BORLAND specific stuff to CMakeLists.txt files.
2012-01-04 23:12:46 +01:00
davyw
555a574eef Added support for cmake 'Borland Makefiles'.
* Added BORLAND target to several CMakeLists.txt.
  (MSVC and BORLAND require similar behaviour for imports/exports)
* Added __BORLAND__ ifdefs where needed.
2012-01-04 23:12:45 +01:00
Mark Pictor
ed76f0b625 handle indexing on GENERICs 2011-12-18 19:34:14 -05:00
davyw
0aa9b5dd97 Removed SCL_EXPRESS_EXPORT flag for EXPRESSgetopt_options[].
* Since EXPRESSgetopt_options[] is locally defined for each usage (fedex.c and fedex_main.c)
  it should not be exported from express lib.
* This also removes 3 warnings in MSVC.
2011-12-12 15:00:17 +01:00
davyw
993167ede1 Added io.h include and check if available through cmake.
* io.h defines chmod on WIN32 systems.
2011-12-12 15:00:09 +01:00
davyw
870edbffa8 Added process.h include and check if available through cmake.
* process.h defines getpid on WIN32 systems.
2011-12-12 15:00:08 +01:00
davyw
ca4940e6e9 Removes several times warning C4018 in MSVC.
* Removes signed/unsigned mismatch warning.
2011-12-12 15:00:02 +01:00
Mark Pictor
388901d20c run astyle on all files. changed args to catch more files (src/*.h) 2011-12-07 19:03:07 -05:00
davyw
90dc1d6592 Fixed check-express linkage for MSVC.
* Added SCL_EXPRESS_EXPORT flag for yydebug,yydbg_upper_limit,yydbg_lower_limit and yydbg_verbose
* Added xgetopt.cc for check-express/MSVC.
* Added inithook for check-express/MSVC?
* Used set_target_properties COMPILE_DEFINITIONS in stead of add_definitions
  for SCL_EXPRESS_EXPORTS/SCL_EXPRESS_IMPORTS.
2011-12-07 18:57:51 -05:00
davyw
d0a425f403 Fixed HAVE_SYS_PARAM_H.
* Include file check for sys/param.h fixed.
2011-12-07 18:57:51 -05:00
davyw
dc302ea085 Moved xgetopt.h.
* Moved 'xgetopt.h' from src/fedex_plus to include folder.
2011-12-07 18:57:51 -05:00
davyw
2e01a01bf5 Updated scl_export.h include references.
* Moved around some includes of scl_export.h
2011-12-07 18:57:50 -05:00
davyw
c3f9ff563f Made fedex_plus MSVC compatible.
* Selected correct PROTO define for __MSVC__.
* Renamed static function min to minimum to prevent conflict in MSVC.
* Added condition __MSVC__ when __attribute( ( unused ) ) was used.
* Added {} in classes.c to prevent local variable definitions which
  are not allowed in MSVC for c files.
* Added xgetopt.cc/xgetopt.h for getopt functionality.
* Added SCL_EXPRESS_DLL_IMPORTS/SCL_EXPPP_DLL_IMPORTS to CMakeLists.txt.
2011-12-07 18:57:50 -05:00
davyw
f853b997d7 Added exppp dll import/export scheme for MSVC.
* Added SCL_EXPPP_EXPORT flag for all global variables in headers.
* Added SCL_EXPPP_EXPORT flag for all function prototypes in headers.
* Added SCL_EXPRESS_DLL_IMPORTS flag for exppp CMakeLists.txt
* Added SCL_EXPPP_DLL_EXPORTS flag for exppp CMakeLists.txt

Signed-off-by: davyw <davy.wouters@gmail.com>
2011-12-07 18:45:42 -05:00
davyw
ba12196a88 Added dll import/export scheme for MSVC.
* Added scl_export.h with conditional flags for import/export.
* Added SCL_EXPRESS_EXPORT flag for all global variables in headers.
* Added SCL_EXPRESS_EXPORT flag for all function prototypes in headers.
* Added SCL_EXPRESS_DLL_EXPORTS flag for express CMakeLists.txt
2011-12-07 18:45:42 -05:00
davyw
879f5092b7 Made changes to prevent compiler/linker errors of express.
* Renamed __in to __i in LISTdo_links macro because __in is a reserved macro for MSVC.
* Renamed isascii to __isascii for MSVC.
* Added __MSVC__ to compiler flags and use it.
2011-12-07 18:45:42 -05:00
davyw
71bd7b235a Made non MSVC include files conditional.
* Made unistd.h include conditional by cmake HAVE_UNISTD_H flag.
* Made dirent.h include conditional by cmake HAVE_DIRENT_H flag.
* Made sys/params.h include conditional by cmake HAVE_SYS_PARAMS_H flag.
* Made stdbool.h include conditinal by cmake HAVE_STDBOOL_H flag.
* Added scl_stdbool.h as an alternative for stdbool.h.
* Added xgetopt.cc/xgetopt.h to be included when HAVE_GETOPT flag false.
2011-12-07 18:45:41 -05:00
Mark Pictor
dc30ee21fd Generate version info and timestamp at build time
* Print this info from `p21read -v` and in a comment in generated source, not just from `fedex_plus -v`

* Use a function `const char* scl_version()`, instead of using the macro `SCL_COMMIT_ID`

* Fail gracefully if the `.git` directory does not exist (thanks CY!)

* Fixes issue #89
2011-11-27 11:12:54 -05:00
Mark Pictor
d6d7c48230 remove SCLP23 macros, sclprefixes.h, and HAVE_CONFIG_H
* remove all uses of SCLP23 and SCLP23_NAME macros, and don't include sclprefixes.h anywhere:
    for i in `grep -rl SCLP23 *`; do echo $i; sed -i 's/SCLP23_NAME( *\([A-Za-z][a-zA-Z0-9_]*\) *)/SDAI_\1/g;' $i; done
    for i in `grep -rl SCLP23 *`; do echo $i; sed -i 's/SCLP23( *\([A-Za-z][a-zA-Z0-9_]*\) *)/SDAI_\1/g;' $i; done
    for i in `grep -nr sclprefixes.h *`; do sed -i 's/#include <sclprefixes.h>//g;' $i; done
* delete sclprefixes.h
* remove HAVE_CONFIG_H in all *.c, *.cc, *.h, and */CMakeLists.txt - with cmake, we'll always have scl_cf.h
2011-10-30 10:00:53 -04:00
Mark Pictor
6851b271e5 include git commit description in fedex_plus version output 2011-09-26 17:26:36 -04:00
tpaviot
e40cbca927 Replaced Boolean with standard bool wherever possible 2011-08-18 09:41:15 +02:00
tpaviot
425a9c3086 [warning-fix][array-subscript-has-type-char] 2011-08-13 14:01:53 +02:00
Mark Pictor
498710921a Changes due to running Artistic Style code beautifier 2011-08-08 20:06:06 -04:00
Mark Pictor
d2baec0a09 Change all short variables to unsigned int (looks like affected variables are always positive) and remove a cast to short 2011-07-16 14:20:34 -04:00
Mark Pictor
7ee097af0c Remove autotools files 2011-07-10 11:41:35 -04:00
brlcad
26c1ae29ae remove the SCLLOG/SCLBOOL wrappers on the SCL Boolean and Logical enums. they were being conditionally put into a namespace in order to be protected in case they're used within a 3rd party context (like CORBA) that might also define same-named enums, but the macrofied protection just adds complexity. iff a conflict is encountered, the types can be put into an SCL or P23 or SDAI namespace. 'Boolean' would be prime for outright removal/replacement with 'bool' except it also supports an unknown value so keep it around for now.
git-svn-id: https://brlcad.svn.sourceforge.net/svnroot/brlcad/brlcad/trunk/src/other/step@45121 2f96ce8b-6d43-0410-b8df-bffccc660ffb
2011-07-09 10:57:50 -04:00
erikgreenwald
85025391ec add scl_cf_cmake.h.in to EXTRA_DIST
git-svn-id: https://brlcad.svn.sourceforge.net/svnroot/brlcad/brlcad/trunk/src/other/step@44744 2f96ce8b-6d43-0410-b8df-bffccc660ffb
2011-07-09 10:57:50 -04:00
erikgreenwald
f941f8d968 Add CMakeLists.txt to EXTRA_DIST.
git-svn-id: https://brlcad.svn.sourceforge.net/svnroot/brlcad/brlcad/trunk/src/other/step@44740 2f96ce8b-6d43-0410-b8df-bffccc660ffb
2011-07-09 10:57:50 -04:00
starseeker
100ce184d8 Fix step files in trunk
git-svn-id: https://brlcad.svn.sourceforge.net/svnroot/brlcad/brlcad/trunk/src/other/step@43301 2f96ce8b-6d43-0410-b8df-bffccc660ffb
2011-07-09 10:57:50 -04:00
starseeker
256bf1e7b9 We should have a working autotools build with the step tweaks now - make trunk step directory match that from CMake. Since there is no previous CMake build for the step subdirectory, go ahead and put everything here.
git-svn-id: https://brlcad.svn.sourceforge.net/svnroot/brlcad/brlcad/trunk/src/other/step@43254 2f96ce8b-6d43-0410-b8df-bffccc660ffb
2011-07-09 10:57:50 -04:00
starseeker
0ed1042445 Try replacing $(ECHO) with echo in the Makefile.am files - the newest libtool is using a printf expression for $(ECHO) that is resulting in extra n characters at the end of lines.
git-svn-id: https://brlcad.svn.sourceforge.net/svnroot/brlcad/brlcad/trunk/src/other/step@41252 2f96ce8b-6d43-0410-b8df-bffccc660ffb
2011-07-09 10:57:50 -04:00
indianlarry
3e4d1507a8 yylineno fixed to properly track parser line numbers
git-svn-id: https://brlcad.svn.sourceforge.net/svnroot/brlcad/brlcad/trunk/src/other/step@34193 2f96ce8b-6d43-0410-b8df-bffccc660ffb
2011-07-09 10:57:46 -04:00
starseeker
00ec571fa5 OK, one more time with the step include files.
git-svn-id: https://brlcad.svn.sourceforge.net/svnroot/brlcad/brlcad/trunk/src/other/step@34020 2f96ce8b-6d43-0410-b8df-bffccc660ffb
2011-07-09 10:57:45 -04:00
starseeker
f1c59aeab1 One more misc Makefile.am cleanup
git-svn-id: https://brlcad.svn.sourceforge.net/svnroot/brlcad/brlcad/trunk/src/other/step@34018 2f96ce8b-6d43-0410-b8df-bffccc660ffb
2011-07-09 10:57:45 -04:00
starseeker
63cb5e6fbb Few more fixes for step build system
git-svn-id: https://brlcad.svn.sourceforge.net/svnroot/brlcad/brlcad/trunk/src/other/step@34017 2f96ce8b-6d43-0410-b8df-bffccc660ffb
2011-07-09 10:57:45 -04:00
starseeker
fbcfb64ad4 More step build tweaks.
git-svn-id: https://brlcad.svn.sourceforge.net/svnroot/brlcad/brlcad/trunk/src/other/step@34016 2f96ce8b-6d43-0410-b8df-bffccc660ffb
2011-07-09 10:57:45 -04:00
starseeker
695811c680 Put clutils headers back where they came from
git-svn-id: https://brlcad.svn.sourceforge.net/svnroot/brlcad/brlcad/trunk/src/other/step@34003 2f96ce8b-6d43-0410-b8df-bffccc660ffb
2011-07-09 10:57:44 -04:00
starseeker
b96080340f Put clstepcore headers back where they came from
git-svn-id: https://brlcad.svn.sourceforge.net/svnroot/brlcad/brlcad/trunk/src/other/step@34002 2f96ce8b-6d43-0410-b8df-bffccc660ffb
2011-07-09 10:57:44 -04:00
starseeker
8fcb62e868 Put cleditor headers back where they came from
git-svn-id: https://brlcad.svn.sourceforge.net/svnroot/brlcad/brlcad/trunk/src/other/step@34001 2f96ce8b-6d43-0410-b8df-bffccc660ffb
2011-07-09 10:57:44 -04:00