comparison src/unexaix.c @ 5936:574f0cded429 cygwin

try to replace all nnnL or nnnUL constants with EMACS_[U]INT
author Henry Thompson <ht@markup.co.uk>
date Sun, 13 Dec 2015 13:22:58 +0000
parents 308d34e9f07d
children
comparison
equal deleted inserted replaced
5935:d5eb0914ca1f 5936:574f0cded429
87 static long bias; /* Bias to add for growth */ 87 static long bias; /* Bias to add for growth */
88 static long lnnoptr; /* Pointer to line-number info within file */ 88 static long lnnoptr; /* Pointer to line-number info within file */
89 89
90 static long text_scnptr; 90 static long text_scnptr;
91 static long data_scnptr; 91 static long data_scnptr;
92 #define ALIGN(val, pwr) (((val) + ((1L<<(pwr))-1)) & ~((1L<<(pwr))-1)) 92 #define ALIGN(val, pwr) (((val) + ((E1<<(pwr))-1)) & ~((E1<<(pwr))-1))
93 static long load_scnptr; 93 static long load_scnptr;
94 static long orig_load_scnptr; 94 static long orig_load_scnptr;
95 static long orig_data_scnptr; 95 static long orig_data_scnptr;
96 static int unrelocate_symbols (int, int, char *, char *); 96 static int unrelocate_symbols (int, int, char *, char *);
97 97
378 if (lnnoptr == 0) lnnoptr = s->s_lnnoptr; 378 if (lnnoptr == 0) lnnoptr = s->s_lnnoptr;
379 s->s_lnnoptr += bias; 379 s->s_lnnoptr += bias;
380 } 380 }
381 } 381 }
382 382
383 if (f_hdr.f_symptr > 0L) 383 if (f_hdr.f_symptr > E0)
384 { 384 {
385 f_hdr.f_symptr += bias; 385 f_hdr.f_symptr += bias;
386 } 386 }
387 387
388 text_scnptr = f_thdr->s_scnptr; 388 text_scnptr = f_thdr->s_scnptr;
485 int n; 485 int n;
486 486
487 if (a_out < 0) 487 if (a_out < 0)
488 return 0; 488 return 0;
489 489
490 if (orig_load_scnptr == 0L) 490 if (orig_load_scnptr == E0)
491 return 0; 491 return 0;
492 492
493 if (lnnoptr && lnnoptr < orig_load_scnptr) /* if there is line number info */ 493 if (lnnoptr && lnnoptr < orig_load_scnptr) /* if there is line number info */
494 lseek (a_out, lnnoptr, SEEK_SET); /* start copying from there */ 494 lseek (a_out, lnnoptr, SEEK_SET); /* start copying from there */
495 else 495 else