Thank you! Exactly what I need!
Only one point: I am using the 'acc' and that compiler by the -E option does not produce the '-o "file"', but printing out on standart output; so, the result need to be redirected into desided file. (that's for anyone else to use this thread...)
You'd also be interested in exploring cpp ; Its the C pre Processor , available on most UNIX systems. However, I have used it mostly on my Linux ststems only
Just run the command:
I'm loving it!!!!
This User Gave Thanks to Praveen_218 For This Post:
Hi,
In my application I have some number c files. In each of the file the following line will be the first statement.
#ident "@(#) set.c 14.1.2.2 05/15/01 17:06:32"
I would like to know what is the use of the above statement.
Thanks
Sarwan (1 Reply)
In a file, field separetor in line is irregular number of spaces, so I canot use field in sub function to get my charecter replaced with empty space. I would like to substitute only one perticular charecter with space at perticular posiotn, so I canot use perticular character as that may occur... (6 Replies)
I think there is no problem to use any macro in a new macro definishion, but I have a problem with that.
I can not understand why?
I have a *.mak file that inludes file with many definitions and rules.
##############################################
include dstndflt.mak
...
One of the... (2 Replies)
I try to run this script, however, it gives an exception in line 3. How do I do an assignment to a substituted variable?
#!/bin/bash
name=fruit
ext_$(eval echo ${name})=apple
tmp=ext_$(eval echo ${name})
if ]; then
echo "apple"
elif ]; then
echo "orange"
fi
echo ${!tmp}
Error... (2 Replies)
I was going through the Linux code, i stuck with few inline assembly language code,
I have tried online but in vain. Any help is much appreciated. Thanks.
/* how to get the thread information struct from C */
static inline struct thread_info *current_thread_info(void)
{
struct... (3 Replies)
Hi,
I just opened one old RH box and found number of "macros" in there, that how they called in how-to doc, let say you type <rx> and this does a lot of stuff.
I can't figure out how it work, how I can edit/display these macros? Can anybody point to the right directions? I have some academic... (3 Replies)
Can some body explain this part in a header file for me?
#include <limits.h>
#define BIGNUM unsigned long long
typedef BIGNUM (*hash_t) (char *str);
......I have hard time for the second part:
typedef BIGNUM (*hash_t) (char *str); First, I could not find the definition of hash_t, which... (1 Reply)
Hi all,
I started playing around with Python (2.6.6) trying to parse a file. No matter what I tried so far I am not able to print only the lines/group/backreference that have been affected by the substitution. Instead I get also the other lines too
File to parse:
some more text
... (2 Replies)
Discussion started by: zaxxon
2 Replies
LEARN ABOUT HPUX
portal
portal(5) File Formats Manual portal(5)NAME
portal - a "window to the future" for applications
SYNOPSIS DESCRIPTION
This header file is a "window to the future" for applications. It will help you to:
o Write code that is portable across 32-bit and 64-bit systems,
o Avoid undocumented assumptions about sizes of integral types,
o Write portable code that needs to be explicit about the sizes of integral types,
o Write code that is portable to a platform which has different sizes of integral types, and
o Share frequently used macros that are portable across 32-bit and 64-bit systems.
In addition to the macros defined in this file, it includes the header files (see limits(5)) and (see inttypes(5)).
The following macros are defined in
This macro can be used to create a mask that has one bit set.
bit_num is the position of the bit to set, and type is the data type of the mask. A -1 is returned in the case of overflow or
underflow.
This macro can be used to set a bit in a mask.
mask is the current value of the mask, bit_num is the position of the bit to set, and type is the data type of the mask.
This macro can be used to return the bit position
of the sign bit for the specified data type. type is the data type for which to return the position of the sign bit.
This macro can be used to return a mask for the sign bit for
the specified data type. type is the data type for which to return the sign bit mask.
This macro can be used to do a sign extension from one
data type to another. value is the current value that is to be sign-extended. old_type is the current data type of value and
new_type is the new data type of value.
This macro can be used to check if code has been
compiled big or little endian. endian is an integer in which the result will be returned.
The following macros can be used for print formatting and scan formatting of values of data types that can change in size based upon the
compilation flag Examples of such data types are off_t and fpos_t.
EXAMPLES
The macro in the following example will turn on the high bit in a 64-bit integer.
The macro in the following example will be used to turn on all bits except the sign bit in a 32-bit integer.
The macro in the following example will turn on the three least significant bits of the maximum integer.
The macro in the following example will return the position of the sign bit in a 32-bit integer.
The macro in the following example will return a sign bit mask for a 32-bit integer.
The macro in the following example will convert the 8-bit integer stored in a char data type to a 64-bit integer and correctly extend the
sign.
The macro in the following example will store a 1 in endian if the compilation was big endian; otherwise, it will store a 0 in endian.
AUTHOR
was developed by HP.
FILES SEE ALSO inttypes(5), limits(5), printf(3S), scanf(3S).
portal(5)