Sponsored Content
Full Discussion: mysterious #define
Top Forums Programming mysterious #define Post 302118998 by frequency8 on Friday 25th of May 2007 10:52:19 PM
Old 05-25-2007
Quote:
Originally Posted by frequency8
That response reminds me of the day I decided I wasn't cut out to be a Math Major. In my Linear Algebra class, my Professor said "There is something in the vector space. That something is nothingness."

Okay, so now, let me get this right.

When I go
#define SOMETHING

Something is being defined, but we aren't too sure what that something is? And then later on, when I see

#ifdef JOB_CONTROL
signal(SIGTSTP,(RETSIGTYPE (*)())susp);
#endif /*JOB_CONTROL*/

We can use that something, which aren't too sure of what it is, to test to see if the shell supports job control?
Never mind. I looked over the code again and thought about it. What you said just sank in.
 

7 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Mysterious Server Shutdown

Virtually no UNIX admin experience. Any admin duties are shared by several folks with no special training. Today we had our Sun v880 server, running Solaris 5.8, shutdown for no apparent reason. When we checked on server we found it completely powered down, yet still connected to a fully... (6 Replies)
Discussion started by: buechler66
6 Replies

2. UNIX for Dummies Questions & Answers

#define in perl

Hi friends, I am not sure if perl questions can be raised here. :rolleyes: But I have a doubt if there is a way to do "#define" in perl, like in C. Does anyone know if it is feasible (without CPAN modules)? Thanks, Srini (7 Replies)
Discussion started by: srinivasan_85
7 Replies

3. Programming

mysterious execution failure and core dump generation

Posting again, as previous query had a typo. ======================================================= Hi, I am running a c++ program in unix AIX machine. There are two functions in a file which are being used by a third function in the same file. the two functions being used are of the same type.... (1 Reply)
Discussion started by: suresh_kb211
1 Replies

4. Programming

#define

Hello, I would like to conditionaly comment in my code source some fields from arrays. So I use the property ## from the #define definition. my code: ... #define slet /##* #define etsl *##/ ... const T_SVT_ADLL_A653_DESC A_DESC = { { slet qwerty etsl SLICING,... (3 Replies)
Discussion started by: cypleen
3 Replies

5. Programming

help with #define in C

if i do this in C #define NUM 1234512345 then how come i cant print it out using int main(int argc, char **argv) { printf("%d\n", NUM); return 0; } well the result is -1219236538, why isnt it 1234512345 ? (7 Replies)
Discussion started by: omega666
7 Replies

6. Programming

#define in c

Hi, I had a head file, looks like #define MIN_NUM 10 #define MAX_NUM 10 is there any way to get "MAX_NUM" from 10? thanks. peter (9 Replies)
Discussion started by: laopi
9 Replies

7. Shell Programming and Scripting

Debugging mysterious perl script problem

the attached perl script is a deamon that, once kicked off from the command line, it runs in the background and waits for the master server to tell it what plugins to run. the script works well. but the problem is, whenever i start it, after about a few seconds of starting it, i start getting... (4 Replies)
Discussion started by: SkySmart
4 Replies
avra(1) 							Atmel AVR Assembler							   avra(1)

NAME
avra - Assembler for the Atmel AVR microcontroller family SYNOPSIS
avra [-f] [O|M|I|G] output file type [-o outfile] output file name [-l listfile] generate list file [-m mapfile] generate map file [--define symbol[=value]] [--includedir dir] [-listmac] [--max_errors number] [--devices] [--version] [-h] [--help] general help infile DESCRIPTION
AVRA is an assembler for Atmel AVR microcontrollers, and it is almost compatible with Atmel's own assembler AVRASM32. The differences between the two are: Support for some extra preprocessor directives. includes: .define, .undef, .ifdef, .ifndef, .if, .else, .endif, .elif, .warning Not all command line options are supported. Specifying an eeprom file (-e) is not supported. All eeprom data is put out into a file called program.eep.hex and always Intel hex format. Other hex file formats than Intel are currently not supported. Forward references are not supported. Like in C, you have to define everything before you are using it, excepting labels. This makes sure, that directives like .ifdef and .undef are working properly. If you are familiar with the C programming language, you should get easily into AVRA. See chapter "Pro- gramming techniques" for more information about how to write proper code. Enhanced macro support. AVRA has some new features for writing flexible macros. This should increase the ability to reuse code e.g. build your own library. Debugging support. AVRA creates a coff file everytime the assembly was sucessful. This file allows AVR Studio or any coff compatible debugger to simu- late or emulate the program. Meta tags for assembly time. This helps you tracking versions of your software and can also be used to generate customer specific serial numbers. OPTIONS
Several option can be given after one '-', but if an option requires an argument; the argument must be given after that option. --listfile, -l Create list file --mapfile, -m Create map file --define, -D Define symbol. --includedir, -I Additional include dirs. --listmac List macro expansion in listfile. --max_errors Maximum number of errors before exit (default: 10) --devices List out supported devices. --version Version information. --help, -h Show summary of options. SEE ALSO
avrp(1) AUTHOR
The initial version of AVRA was written by John Anders Haugum. He released all versions until v0.7. All later versions were released by Tobias Weber. Atmel AVR Assembler Jan 23, 2006 avra(1)
All times are GMT -4. The time now is 03:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy