home *** CD-ROM | disk | FTP | other *** search
- Q34168 C1059 Error with typedef and Function Definition
- C Compiler
- 5.10 | 5.10
- MS-DOS | OS/2
-
- Summary:
- The following code fragment produces error C1059 "out of near heap
- space" under C Version 5.10:
-
- #include <stdio.h>
-
- typedef void FTYPE (int f);
-
- FTYPE foo_function
- { printf ("f=%u",f);
- }
-
- This code causes a protection violation when compiled under
- OS/2.
- Microsoft has confirmed this to be a problem in Version 5.10
- of the C compiler. We are researching this problem and will post
- new information as it becomes available.
- Note that the code is incorrect; typedef cannot be used for
- function definitions. You can use typedef to declare functions but not
- to define them; therefore, to correct this problem, you should use the
- standard-function definition syntax.
-
- Keywords: buglist5.10 qfbv
- Updated 88/10/13 06:10
-