if (ovfl) {
lexwarning("overflow in constant");
fund = ULONG;
- } else if ((val & full_mask[(int)int_size]) == val) {
- if (val >= 0 && val <= max_int) fund = INT;
- else fund = (((base == 10) && !uns_flg) ? LONG : UNSIGNED);
+ } else if (!lng_flg && (val & full_mask[(int)int_size]) == val) {
+ if (val >= 0 && val <= max_int) {
+ fund = INT;
+ } else if (int_size == long_size) {
+ fund = UNSIGNED;
+ } else if (base == 10 && !uns_flg)
+ fund = LONG;
+ else fund = UNSIGNED;
} else if((val & full_mask[(int)long_size]) == val) {
if (val > 0) fund = LONG;
else fund = ULONG;
fund = ULONG;
}
if (lng_flg) {
- if (fund == INT) fund = LONG;
- else if (fund == UNSIGNED) fund = ULONG;
+ /* fund can't be INT */
+ if (fund == UNSIGNED) fund = ULONG;
}
if (uns_flg) {
if (fund == INT) fund = UNSIGNED;
# Machine and environ dependent definitions
EMHOME = ../../..
-CC = $(EMHOME)/bin/fcc
-#CC = cc
+CC = cc
CFLOW = cflow
MKDEP = $(EMHOME)/bin/mkdep
PRID = $(EMHOME)/bin/prid
@rm -f nmclash.o a.out
install: Main
- rm -f $(EMHOME)/lib/em_cemcom $(EMHOME)/man/em_cemcom.6
- cp $(CURRDIR)main $(EMHOME)/lib/em_cemcom
- cp $(CURRDIR)cemcom.1 $(EMHOME)/man/em_cemcom.6
+ rm -f $(EMHOME)/lib/em_cemcom # $(EMHOME)/man/em_cemcom.6
+ cp $(CURRDIR)main $(EMHOME)/lib/em_cemcom.ansi
+ # cp $(CURRDIR)cemcom.1 $(EMHOME)/man/em_cemcom.6
Oinstall: Omain
cp $(CURRDIR)omain $(EMHOME)/lib/em_cemcomO