home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / msdos / programm / 8941 < prev    next >
Encoding:
Text File  |  1992-09-01  |  1.6 KB  |  56 lines

  1. Xref: sparky comp.os.msdos.programmer:8941 comp.os.msdos.misc:4983
  2. Path: sparky!uunet!mcsun!uknet!harrier.ukc.ac.uk!eagle.ukc.ac.uk!rjg2
  3. From: rjg2@ukc.ac.uk (R.J.Gibson)
  4. Newsgroups: comp.os.msdos.programmer,comp.os.msdos.misc
  5. Subject: Stack size changing
  6. Message-ID: <1550@eagle.ukc.ac.uk>
  7. Date: 1 Sep 92 13:41:46 GMT
  8. References: >
  9. Reply-To: rjg2@ukc.ac.uk (R.J.Gibson)
  10. Organization: Biology Lab, University of Kent at Canterbury, UK.
  11. Lines: 43
  12.  
  13.  
  14. I have a problem which I have not been able to overcome and was
  15. wondering if anyone out there could help.
  16.  
  17. I was sent a piece of C source which I have been unable to compile.  I
  18. am using Boralands Turbo C ver 1.0 and the code in question is
  19.  
  20. #ifdef __TURBOC__
  21. unsigned _stklen = 0x3fff;    /* increase stack from 4K to 16K */
  22. #endif
  23.  
  24. I have defined __TURBOC__ but ia am getting a message saying that this
  25. is an error "error -redeclaration of __stklen"
  26.  
  27. There is not other manual decrlartion of this in the code that I can
  28. find.
  29.  
  30. It also coplains at 
  31.  
  32. typedef unsigned char  int8u;
  33.  
  34. but not at 
  35.  
  36. typedef unsigned long  int32u;
  37. typedef long        int32;
  38. typedef unsigned short int16u;
  39. typedef short        int16;
  40.  
  41. Any ideas?
  42.  
  43. Thanks
  44. Ro.
  45.  
  46. ps other people have compiled this code on pcs with other compilers so
  47. it should work and I have managed it on a sun.  I am just looking for
  48. an idea as I have no other pc compilers and would like it on the pc.
  49.  
  50. DISCLAIMER:
  51. ***********
  52. All comments, jokes, asides, rubbish, cabbages etc are of my own
  53. making and in no way represent the policy of the University of Kent,
  54. or any other member of the University, nor any cat, dog, goldfish,
  55. insect, bacteria, mineral, etc, on campus.  All flames to rjg2@ukc.ac.uk.
  56.