File: README.Debian

package info (click to toggle)
bcpp 0.0.20180401-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster
  • size: 940 kB
  • sloc: cpp: 4,956; sh: 3,144; makefile: 262
file content (37 lines) | stat: -rw-r--r-- 1,068 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
bcpp for Debian
----------------

How to check the trustability of the beautifier program:

1) Compiling the code into binary:

cp myprogram.cpp test.cpp
g++ -c test.cpp -o test.orig.o
bcpp myprogram.cpp > test.cpp
g++ -c test.cpp -o test.bcpp.o
diff test.orig.o test.bcpp.o

*.cpp files before compilation should have the same name, or there would be
differences in *.o objects.

You can use cmp command instead of diff for comparing the binary files.

2) Comparing the assembler code generated:

cp myprogram.cpp test.cpp
g++ -S test.cpp -o test.orig.S
bcpp myprogram.cpp > test.cpp
g++ -S test.cpp -o test.bcpp.S
diff test.orig.S test.bcpp.S

If *.cpp file names are different, diff will find differences between the
files, but they can be easily seen in the diff result.

3) You can check by hand the changes made, excluding whitespace changes:

bcpp myprogram.cpp > myprogram.bcpp.cpp
diff -wu myprogram.cpp myprogram.bcpp.cpp

See also: http://yolinux.com/HOWTO/C-C++Beautifier-HOWTO.html

 -- Miriam Ruiz <little_miry@yahoo.es>, Mon, 06 Mar 2006 15:46:01 +0100