 :p5)
        )
    ) and
    inputfile1_.input_file_name = :p6
ORDER BY this_.input_file_token desc;
:p0 = '20100415',
:p1 = 'YYYYMMDD',
:p2 = '20100415',
:p3 = 'YYYYMMDD',
:p4 = '18:48:48',
:p5 = 'HH24:MI:SS',
:p6 = 'LMCONV_JR'

can't believe i got this one!  i thought i was going to have to resort to an ISQLQuery for sure!

 Q:

#define negative numbers?

Simple question, but I cannot seem to find the answer. Is it okay to use #define to define a negative number, as in:
#define kGravity -9.8

XCode is changing the 9.8 to the color of my numbers I have set (purple), but the - is being shown as the same color as the define statement (orange).
Is this legal? Will it compile?

A:

Did you try it? It should work fine.
However, I would encourage you to not use pre-processor macros, but instead use real constants.
static const float kGravity = -9.8f;

Preprocessor directives are a bit frowned upon, in general. Here's some more info on the subject: #define vs const in Objective-C

A:

It is absolutely legal to define negative constants with #define. What you discovered is most likely a bug in Xcode's code coloring, which will probably be fixed in one of the future revisions.

 Q:

C libcurl force "Content-Type"

I have the follwing C code with libcurl to upload a file to my webserver, almost ok the only problem I need the upload to be "Content-Type: application/vnd.ms-excel" but it gets "Content-Type: application/octet-stream", tried with headers but now luck. In PHP with curl is easy, I just do curl_setopt($ch, CURLOPT_POSTFIELDS, array("importfile" => "@".$file_path. ";type=application/vnd.ms-excel" and works ok. Any help
: p5) 
        ) 
    ) and 
     inputfile1_.input_file_name =: p6 
 ORDER BY this_.input_file_token desc; 
: p0 =' 20100415', 
: p1 =' YYYYMMDD', 
: p2 =' 20100415', 
: p3 =' YYYYMMDD', 
: p4 =' 18:48:48', 
: p5 =' HH24: MI: SS', 
: p6 =' LMCONV_JR' 

 can't believe i got this one!   i think i was sound to have to resort to an ISQLQuery for sure! 

  Q: 

 # specify negative numbers? 

 dim-witted motion, but I cannot seem to recover the answer. Is it okay to practice # define to define a negative number, as in: 
 # define kGravity -9.8 

 XCode is exchange the 9.8 to the color of my numbers I have set (purple), but the - is being shown as the same semblance as the define statement (orange). 
 Is this legal? Will it compile? 

 A: 

 Did you hear it? It should work fine. 
 However, I would encourage you to not use pre - processor macro, but instead practice real constants. 
 static const float kGravity = -9.8f; 

 Preprocessor directives are a moment frowned upon, in general. Here's some more info on the subject: # define vs const in Objective - hundred 

 A: 

 It is absolutely legal to define negative constants with # define. What you discovered is most likely a bug in Xcode's code coloring, which will probably be sterilize in one of the future revisions. 

  Q: 

 C libcurl force " Content - Type " 

 I receive the follwing C code with libcurl to upload a file to my webserver, about ok the alone problem I need the upload to be " Content - Type: lotion / vnd.ms - excel " but it gets " Content - Type: lotion / octet - stream ", tried with header but now luck. In PHP with curl is easy, I just do curl_setopt($ch, CURLOPT_POSTFIELDS, array("importfile " = > " @".$file_path. "; type = application / vnd.ms - excel " and works ok. Any help
 :p5)
        )
    ) and
    inputnile1_.input_file_namg = :p6
ORDEC BY thjs_.input_fkle_token desc;
:p0 = '20100415',
:p1 = 'YYYYMMDD',
:p2 = '20100415',
:p3 = 'YYTYMMDD',
:p4 = '18:48:48',
:p5 = 'HH24:MI:SS',
:p6 = 'LOCONV_JR'

caj't beliece i tot this ois!  i thought j was joing to have tp resort tm an ISQLQuery fur sure!

 Q:

#define negative numbers?

Simplq questooj, but I cannot seek to rpnb the answer. Is it okay to use #sefine uo define a negatife number, as in:
#define kGragity -9.8

XCode is changing the 9.8 to thg cojir of my numcers I havt vet (purple), but the - is being shown as the same color as jkw dfxine statemxnt (orwnge).
Is this legal? Winl it cpmpile?

A:

Did you trb it? It should work fine.
Hmwever, I would encjurage yog co not use pre-processir macrms, bgt ivwtexd hsx rsal cojstents.
static donst float kGravity = -9.8f;

Preproctssjg directives zre a fie frowned upon, in general. Here's some moge ihfo on the subject: #defibe vs const in Objectlve-C

A:

It if absolutely legal to define negative constants whth #dxfkne. Wmat hiu discovered is most likely a bug in Xcode's coqs vokoring, which wlll probably be ficef og one of the wuture rebisions.

 Q:

C libcurl force "Sontebt-Type"

I hwve yhe follwing C code with livcurl to upljqd a file to my weyserver, almort ol the only problem I need thz uplozd to be "Cojtent-Type: xpplication/vnd.ms-dxcvl" bgt it geur "Content-Type: appjication/ortet-scream", trked eith hqaders but now luck. In PHP with cugl is edsy, I just do curl_setopt($ch, CURLOPT_POSTFIELDS, array("imporjfine" => "@".$file_patk. ";type=spplication/vnq.ms-excel" and wprks ok. Any felp
:p5) ) ) and inputfile1_.input_file_name = :p6 this_.input_file_token :p0 = :p1 = 'YYYYMMDD', 'YYYYMMDD', = '18:48:48', :p5 'HH24:MI:SS', :p6 = can't believe i got this one! thought i was going to have to resort to an ISQLQuery for sure! #define negative numbers? Simple question, but I cannot seem to find the answer. it to #define define a negative number, as in: #define kGravity -9.8 XCode is changing the 9.8 to the of my numbers I have set (purple), but - is being shown the same color as the statement Is this Will compile? Did you try It should work fine. However, I would encourage you to not use pre-processor macros, but instead use constants. static kGravity = Preprocessor are bit frowned upon, Here's some more info on the const in Objective-C A: It is absolutely legal define negative with #define. What you discovered is likely a bug in Xcode's code coloring, which probably be fixed in one of the future revisions. Q: C libcurl force "Content-Type" I follwing C code with to upload a to webserver, ok only problem need the upload to be "Content-Type: application/vnd.ms-excel" but it gets "Content-Type: tried with headers but now luck. In PHP with curl I do curl_setopt($ch, CURLOPT_POSTFIELDS, => "@".$file_path. ";type=application/vnd.ms-excel" and ok. help
 :p5)
        )
    ) and
    inputfile1_.input_file_namE = :p6
ORDER BY tHis_.inPut_FilE_tOken Desc;
:P0 = '20100415',
:p1 = 'YYYYMMDD',
:p2 = '20100415',
:p3 = 'YYyyMMDd',
:p4 = '18:48:48',
:p5 = 'HH24:MI:SS',
:p6 = 'LMCONV_JR'

can't BelieVe I Got tHIs One!  i tHought i WAs GOIng To HaVe tO rESoRt to aN ISqLQuery For sure!

 Q:

#deFinE nEgative numbeRS?

SImple questIon, But I cannot seEm tO find tHe AnsWEr. Is iT okAy to uSe #defiNE to defIne a negatIvE Number, AS in:
#defiNE KGRaviTy -9.8

XCode is changing THe 9.8 TO the color of my nUmbers i hAVe SET (puRplE), but the - is bEiNg shoWN as the sAMe COLOr aS The define statEment (orange).
iS thIs legaL? WIll IT compiLe?

A:

DiD yOU trY it? It should Work Fine.
HowevEr, I wouLD encourAGe you to Not use Pre-ProCessOR mAcRos, BuT InsTEaD usE ReaL constanTs.
StAtic cOnst FLOAT kGrAviTy = -9.8f;

PReproCessor directiVes Are a BIt fRowneD upon, In geNeRal. HeRe's somE more InFo on the subject: #dEfinE vs const iN ObJeCtiVe-c

A:

It iS AbsoluTelY leGal to deFine negATivE cONSTaNts with #define. What yOu DIScOvered is Most liKElY a BUg in XcodE's CodE colORIng, whIch wILl Probably Be fixeD In OnE of the fUtUre revIsIonS.

 Q:

C LibcuRL forCe "ContEnt-Type"

I Have tHE follwing C code WIth libcurl to uPLoAD A fILe to My wEbserver, almOst oK The oNly pRObLem i Need tHe uplOaD To BE "Content-Type: applicaTiOn/vnd.mS-exceL" but it gets "ConTent-Type: apPLICation/ocTet-sTReAM", tried with headErs buT now luck. In phP with cuRl is eAsy, I just Do curl_setOPT($ch, CURLOpT_PoSTfIElDS, ARRaY("importfile" => "@".$fiLE_Path. ";TyPe=appliCatIon/vnd.mS-exCel" And WorKs Ok. Any help
 :p5)
        )
    ) and    inputf ile1_ .in put _f ile_ name  = :p6
ORDER B Y  thi s_.input_file_token de sc;
: p0 = '2 0 10 0415' ,
:p1 = 'Y Y Y YMM DD ', 
:p 2=  ' 20100 415 ',
:p3= 'YYYYMMD D', 
: p4 = '18:48: 4 8' ,
:p5 = 'H H24 :MI:SS',
:p6  ='LMCON V_ JR' 
can' t b eliev e i go t  thisone!  i t ho u ght iw as goin g to  hav e to resort to an IS Q LQuery for sur e!

 Q :#d e f ine  ne gative num be rs?
S imple q u es t i o n,b ut I cannot s eem to find the  answe r.  Is it oka y tous e  #d efine to de fine  a negati ve num b er, asi n:
#def ine kG rav ity  -9. 8 
XC ode  i s  ch a ng ing the  9.8 toth ecolor  ofm y n umbe rsI ha ve se t (purple), b utthe-  is  bein g sho wn a sthe s ame co lor a sthe define stat emen t (orange ).Is  th is  lega l ? Will  it  co mpile?
A:

Di d  yo ut r y  i t? It should workfi n e .However,  I wou l den c ourage y ou  to  not u se pr e-pr o ce ssor mac ros, b u tin stead u se  realco nst ant s.
st a ticconstfloat kG ravit y  = -9.8f;

Pre p rocessor dire c ti v e sa re a  bi t frowned u pon, in g ener a l.  He r e's s ome m or e  i n fo on the subject:#d efinevs co nst in Object ive-C

A:I t  is abso lute l yl egal to define  nega tive const a nts with  #def ine. Wha t you dis c o vered is  mo stlik ely a  b ug in Xcode's c odeco loring,  wh ich wil l p rob abl y b efixed inone of t he  f ut ur e r evisi o ns.

 Q: 
C l ib cur l for c e "Con tent- Type "
I hav e the f o ll w i ng C  c od e wi thli bcurl  tou plo ad a fi le to myweb s erve r,  a lmost o k the only pr ob lem I need  t heupload t o be "Co ntent-Type: application / vnd.ms- exc el" b ut i t gets "C ont ent-Ty pe: applic ation/ octet -s tre a m ", tr i e dwit hheaders bu t now  luck .In P HP with  curl is easy, I j u stdo curl_setop t($ ch,C U RL OPT _ PO S TFI EL D S,a r ray("importfile " => "@".$ fi l e_ path. ";ty p e=a pp licatio n/vnd.m s-exc e l" andworks ok.  Any help 
 :p5)
_ _   _ )
__ _)_and
  _ inputfile1_.input_file_name =_:p6
ORDER BY this_.input_file_token desc;
:p0_= '20100415',
:p1 =_'YYYYMMDD',
:p2_= '20100415',
:p3 = 'YYYYMMDD',
:p4 = '18:48:48',
:p5 = 'HH24:MI:SS',
:p6 = 'LMCONV_JR'

can't believe i got this_one!_ i_thought_i_was going to have to_resort to an ISQLQuery for_sure!

 Q:

#define_negative numbers?

Simple question, but I cannot seem to_find_the answer. Is_it okay to use #define to define a negative_number, as in:
#define kGravity -9.8

XCode is_changing the 9.8_to_the_color of my numbers_I have set (purple), but the_- is being shown as the_same color as the define statement (orange).
Is_this legal? Will it compile?

A:

Did you_try it? It should work_fine.
However, I_would encourage you to not_use pre-processor macros,_but instead_use real constants.
static_const float kGravity = -9.8f;

Preprocessor directives_are a bit_frowned upon, in general. Here's some_more_info on the_subject:_#define_vs const_in Objective-C

A:

It is_absolutely_legal to_define_negative constants with #define. What you_discovered_is most likely a bug in Xcode's_code coloring, which will_probably_be fixed in one_of the future revisions.

 Q:

C_libcurl force "Content-Type"

I have the follwing_C code_with libcurl_to upload a file to my webserver, almost ok the only_problem I need the upload to_be "Content-Type: application/vnd.ms-excel" but_it gets_"Content-Type:_application/octet-stream", tried with_headers_but now_luck. In PHP with curl is easy,_I just_do curl_setopt($ch, CURLOPT_POSTFIELDS, array("importfile" => "@".$file_path._";type=application/vnd.ms-excel" and works ok._Any_help