Dima
thats right
Artöm
It is not. Globals make debug harder and multithreading a pain
Artöm
It should be defined as local to begin with
Artöm
Is it possible to make condition variable entirely local ib your case?
Artöm
It is a general rule of programming to make variables as local as possible
Anonymous
anybody can help with passing html input to php file’s SQL Query with ajax and jquery please :/
MᏫᎻᎯᎷᎷᎬᎠ
What's the purpose of volatile variables?!
Are they important in general?!
MᏫᎻᎯᎷᎷᎬᎠ
How does the compiler mark them as "this can be read outside the program segment", how does that accommodate with virtual addresses and so on?!
MᏫᎻᎯᎷᎷᎬᎠ
Is there any system call for allowing that?
MᏫᎻᎯᎷᎷᎬᎠ
But
Is it guaranteed to be true volatiled or it's the same case like inline functions where the compiler will choose the best option
MᏫᎻᎯᎷᎷᎬᎠ
I don't know much about assembly
But i Guess it's the same case where instructions are being loaded to the memory and read from there
Also assembly sometimes uses some system calls(I think), it's not like there is another volatile keyword there
MᏫᎻᎯᎷᎷᎬᎠ
Yeah
System calls are not made from outer space or somewhat lol
But still assembly uses it
Last time I recall, you put the system call number into a specific register for execute
MᏫᎻᎯᎷᎷᎬᎠ
Madhu is so much great source of knowledge here
You don't wanna miss her presence
MᏫᎻᎯᎷᎷᎬᎠ
Nah
In general there is not
Assembly is a very platform-dependant language
Anunay
MᏫᎻᎯᎷᎷᎬᎠ
Will I get banned :(
Anunay
MᏫᎻᎯᎷᎷᎬᎠ
Hahah
Anunay
XD
MᏫᎻᎯᎷᎷᎬᎠ
Anyway
Thanks a lot @lightness_races_in_orbit :)
Anonymous
i have a very strange problem
Anonymous
int flipS(int *i, short *s)
{
*i = 0;
*s = 1;
return *i;
}
Anonymous
always returns 1 wtf !?!? how is this possible
Artöm
Anonymous
no they are 100% not pointing to the same location
Anonymous
compiling with GCC 9.2.1
Anonymous
haha you have no idea?
Anonymous
really ? not a clue ? this is obvious
Artöm
Was it a quiz?
Artöm
I suspect aliasing violation
Anonymous
Anonymous
its strict aliasing optimizer breaking it
Artöm
Anonymous
lol your smarter than me, you win
Anonymous
satisfied ?
MᏫᎻᎯᎷᎷᎬᎠ
And we'll gladly will help you
Anonymous
Alex
Are there any catalogue for c/c++ free libraries? For example, I failed to google for doc format, so I created my own. But StackOverflow does not allow to publish name of my library, so its still hard to google library to extract text from doc format
Anonymous
I was just being an asshole
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
Okay
So you were just messing around
Anonymous
Alex
Anonymous
Alex
so I created two libraries
Alex
gonna publish to catalog you provided
Alex
they are on github
Anonymous
Post the links please here
Alex
https://github.com/uvoteam/libdoc
Alex
https://github.com/uvoteam/pdf_extract
Alex
Alex
they can reject
Anonymous
You definitely should give a try
Alex
I am not sure, but format description is free. and linux utility cat2doc is free also
Alex
and what about libreoffice? it is possible to save document in doc format
Alex
I am talking about doc format, not docx. docx is easy to parse with XML lib
Anonymous
I dunno about DOC, but there's Apache Tika can which extract meta info about DOCX
But it's in Java
Alex
do you mean there is new version of doc format which is not compatible? do you have such document?
Alex
unfortunately I don`t use Windows
Alex
I will try to ask my friends for such document. thank you
Anonymous
Oki doki
Anonymous
Is it a binary format?
Alex
docx is xml. doc is binary
Anonymous
It sucks
Anonymous
Totally agree
Alex
do you mean doc, not docx? I created doc library several years ago and did not get any correct doc file which is impossible to read
Alex
also my library is used by chinese company
olli
https://docs.microsoft.com/en-us/openspecs/data_portability/ms-dataportlp/a2bc1311-e0e7-4808-970a-4dc0a100f708
This might help with office file parsing
S@IF
S@IF
/get ide