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:
In pre-processing, compilator replaces goodly "etsl" by "*/", but unfortunately, "slet" is badly replaced by "/<space>*" (in place of "/*"). So the space does that the comment is not seen by the compilator.
Thank you for answering
Last edited by pludi; 03-05-2010 at 07:42 AM..
Reason: code tags, please...
in the header file orville.h, outside of the #ifdef #endif , there is the following
#define JOB_CONTROL /* support job-control */
As you can see, the JOB_CONTROL macro has no value associated with it. Here is what I go when I ran grep on the entire source code.
$ grep -iR... (6 Replies)
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)
Hello!!
I need to do some performance test using a very big matrix (bi-dimensional array) but I have problems with this.
Is there any limitation in declarations? because if I do this:
int matriz;
It just don't work... it compiles but when i run the program it just closes.
Where can i... (4 Replies)
Hello,
I would like to define a variable based on another variable:
a=5
b$a=100
This does not work. What is the right way to do it?
Thanks
---------- Post updated at 07:37 PM ---------- Previous update was at 07:33 PM ----------
Found my answer with the search function (did not... (0 Replies)
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)
Hey everyone. So I'm looking at a few C programming resources, and it seems, by convention how you should write and define a function, is first declare it's existence before your main...then call it somewhere in your main, and then define after, at the end of the program? Is this necessary? I mean... (7 Replies)
Hi,
I just define the variable in script and use those script in another script but the variable not recognize.
test1.sh
#!/bin/bash
DB="test_db"
USR="test_user"
PWD="test_pwd"
HST="24.254.87.12"
test2.sh
#!/bin/bash
./test1.sh
mysql -u $USR -p $PWD -h $HST... (2 Replies)
Discussion started by: fspalero
2 Replies
LEARN ABOUT MINIX
charmap
CHARMAP(5) Linux Programmer's Manual CHARMAP(5)NAME
charmap - character set description file
DESCRIPTION
A character set description (charmap) defines all available characters and their encodings in a character set. localedef(1) can use
charmaps to create locale variants for different character sets.
Syntax
The charmap file starts with a header that may consist of the following keywords:
<code_set_name>
is followed by the name of the character map.
<comment_char>
is followed by a character that will be used as the comment character for the rest of the file. It defaults to the number sign (#).
<escape_char>
is followed by a character that should be used as the escape character for the rest of the file to mark characters that should be
interpreted in a special way. It defaults to the backslash ().
<mb_cur_max>
is followed by the maximum number of bytes for a character. The default value is 1.
<mb_cur_min>
is followed by the minimum number of bytes for a character. This value must be less than or equal than <mb_cur_max>. If not speci-
fied, it defaults to <mb_cur_max>.
The character set definition section starts with the keyword CHARMAP in the first column.
The following lines may have one of the two following forms to define the character set:
<character> byte-sequence comment
This form defines exactly one character and its byte sequence, comment being optional.
<character>..<character> byte-sequence comment
This form defines a character range and its byte sequence, comment being optional.
The character set definition section ends with the string END CHARMAP.
The character set definition section may optionally be followed by a section to define widths of characters.
The WIDTH_DEFAULT keyword can be used to define the default width for all characters not explicitly listed. The default character width is
1.
The width section for individual characters starts with the keyword WIDTH in the first column.
The following lines may have one of the two following forms to define the widths of the characters:
<character> width
This form defines the width of exactly one character.
<character>...<character> width
This form defines the width for all the characters in the range.
The width definition section ends with the string END WIDTH.
FILES
/usr/share/i18n/charmaps
Usual default character map path.
CONFORMING TO
POSIX.2.
EXAMPLE
The Euro sign is defined as follows in the UTF-8 charmap:
<U20AC> /xe2/x82/xac EURO SIGN
SEE ALSO iconv(1), locale(1), localedef(1), locale(5), charsets(7)COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the
latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
GNU 2016-07-17 CHARMAP(5)