alliance/dev/scripts
Jean-Paul Chaput 97aee2580b Code cleanup with cppcheck & gcc 4.4.6 (RHEL6).
This commit is way too big. Next time split it tool by tool.

All tool sources have been checked with cppcheck & gcc. All correctables
errors/warning have been removed:
* Now uses correct conversion specifiers in printf(), mostly 'u' instead
  of 'd' for unsigneds.
* In scanf(), uses systematically a maximum field width, 11 for int,
  22 for long int and the appropriate length for char*.
* In strcpy(), no longer uses same array for source & dest, but uses
  an intermediate array.
* Remove (or comment) unused variables.
* In C++ files, correct constructors attribute initialisation and
  disable copy constructors.
* When possible, correct memory leaks. Some corrections would need a
  more intimate knowledge of the source than I do.
* Removed some "gets()" calls.
* In parsers, undeclare yyunput & yyinput when necessary.
* NOT correct variable scope as it may clutter the code (my opinion).

Specific tools remark:
* In <asimut>, comment beginning with "FRAGILE" signals a very ugly
  trick: structs passed as losig_list but with only the two first
  fields identical.
* In <graal> & <dreal> for char used as table index, uses a cast toward
  int, but in <xfsm>, <xgra>, <xsch> & <xvpn> simply declares the
  variables int.
* In <cells>, dp_nmux_x1.ap, shrink the ALU2 part of the ALU3 terminals
  so they do not collide with neighboring track. Has do to it manually
  as Graal refuse to shrink them. The same correction must be done on
  other cells for nero/kite dual compliance.
2014-02-18 14:53:05 +01:00
..
install Buena vista 2000-04-19 12:46:41 +00:00
misc dev 1999-09-09 14:24:53 +00:00
.header.gpl.c dev 1999-09-09 14:24:53 +00:00
.header.gpl.mk dev 1999-09-09 14:24:53 +00:00
.header.lgpl.c dev 1999-09-09 14:24:53 +00:00
.header.lgpl.mk dev 1999-09-09 14:24:53 +00:00
alc_update_bin import init 1998-10-21 16:42:57 +00:00
cppcheck.sh Code cleanup with cppcheck & gcc 4.4.6 (RHEL6). 2014-02-18 14:53:05 +01:00
marker dev 1999-09-09 14:24:53 +00:00
mkdistrib hooooooooo 2000-02-01 12:33:14 +00:00