07-15-2008
Tools for alignment of code?
Hello,
Do we have any freeware which helps in alignment of code wrt spaces, sections etc?
Thanks
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I copied a word file to my Unix directory, How do I line up my columns to the file I copied over? (3 Replies)
Discussion started by: nikncha
3 Replies
2. UNIX for Dummies Questions & Answers
We have a guy at work who is trying to copy and paste from one file to another using vi and highlighting the code to copy with a mouse.
Source file:
xyz 123 abc 999
zyx 321 cba 999
xyz 123 abc 999
But when he pastes it he gets (I put the underlines in to show... (4 Replies)
Discussion started by: dlam
4 Replies
3. Shell Programming and Scripting
Hi,
I am having a file with with format.
however, for longer xml, the xml code has been truncated like this.
F1 |###################### |String1 |<XML><REQ><MSGTYPE>DBDIRECT</MSGTYPE><SYNC>0</SYNC><CLIENT>C11</CLIENT>NAME=MYNAME|JOB=MYJOB|
| ... (3 Replies)
Discussion started by: shellwell
3 Replies
4. UNIX and Linux Applications
When ran configure for speech tools 1.2.96-beta (festival speech synthesis) on Slackware 13.0 seems it is erroneously coded.
This code sequence gets flagged 5 times http://www.unix.com/images/icons/icon8.gif in configure:
int main() {
int j=
#if __GNUC__ == 3
... (6 Replies)
Discussion started by: slak0
6 Replies
5. HP-UX
HI all,
I tried to edit my files using HP-UX but my output tends to not align when I add another character in the files
to edit my files i used the command is as follow
chmod +w filename
vi filename
Help, :eek: (1 Reply)
Discussion started by: jasonhpwong
1 Replies
6. UNIX for Dummies Questions & Answers
Hi Everyone,
I need some help to construct a long 'Sbjct' string from the following input using incremental order of 'Sbjct' starting number (e.g. 26325115,33716368,33769033,34869860 etc.)
Different 'Sbject' string will be separated by 'NNNN's as:
... (6 Replies)
Discussion started by: Fahmida
6 Replies
7. AIX
Hi
I need a list of code analysis tools for C programs, that can work on AIX environment such as :
dynamic or static code analysis
Code Complexity Measures
Test Coverage Analyzer
Unit tests
profiling tools
Source code formatter
I've found several tools but not compatible with AIX... (0 Replies)
Discussion started by: SteAlma
0 Replies
8. Shell Programming and Scripting
*1 flash read test(*do_test1*) PASS
*2 xxxxxxxxxxx flash write test(*do_test2) FAIL ------>xxxxx
*1 flash read test(*do_test1*) PASS
*2 xxxxxxxxxxx flash write test(*do_test2) FAIL ------>xxxxx
I want pass and Fail to be aligned
if each line uses printf or echo to print, is... (5 Replies)
Discussion started by: yanglei_fage
5 Replies
9. UNIX for Beginners Questions & Answers
Dear All,
I am in the beginning stage of learning shell scripting and preparing shell script on my own now.
I would like to get help from fellow mates here.
As I am trying to take O/P with space included from I/P table.
Kindly guide me to align given I/P table as Expected O/P.
... (5 Replies)
Discussion started by: Raja007
5 Replies
LEARN ABOUT NETBSD
__alignof__
__ALIGNOF__(3) BSD Library Functions Manual __ALIGNOF__(3)
NAME
__alignof__ -- GNU extension for alignment of an object
SYNOPSIS
int
__alignof__(void x);
DESCRIPTION
The __alignof__() operator returns the alignment of its operand. The operand can be a type or an expression. If the operand is a 'lvalue',
the return value represents the required alignment of the underlying type, not the actual alignment of the specified 'lvalue'.
The returned value is specific to the architecture and the ABI. If the architecture does not impose strict alignment requirements,
__alignof__() returns the minimum required alignment. If __aligned(3) is used to increase the alignment, __alignof__() returns the specified
alignment.
EXAMPLES
The syntax is comparable to the sizeof() operator. If the architecture aligns integers along 32-bit address boundaries, the following should
print the value 4.
(void)printf("%d
", __alignof__(int));
On the other hand, the following example should print the value 1, even though this is unlikely to be the actual alignment of the structure
member.
struct align {
int x;
char y;
} a;
(void)printf("%d
", __alignof__(a.y));
SEE ALSO
gcc(1), attribute(3), offsetof(3), typeof(3)
CAVEATS
This is a non-standard, compiler-specific extension.
BSD
December 20, 2010 BSD