/[tinycc]/tinycc/tcc.c
ViewVC logotype

Diff of /tinycc/tcc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.139 by bellard, Mon Jun 2 20:32:30 2003 UTC revision 1.140 by bellard, Sun Jul 20 12:40:53 2003 UTC
# Line 8507  static void decl(int l) Line 8507  static void decl(int l)
8507                      error("cannot use local functions");                      error("cannot use local functions");
8508                  if (!(type.t & VT_FUNC))                  if (!(type.t & VT_FUNC))
8509                      expect("function definition");                      expect("function definition");
8510    
8511                    /* reject abstract declarators in function definition */
8512                    sym = type.ref;
8513                    while ((sym = sym->next) != NULL)
8514                        if (!(sym->v & ~SYM_FIELD))
8515                           expect("identifier");
8516                    
8517                  /* XXX: cannot do better now: convert extern line to static inline */                  /* XXX: cannot do better now: convert extern line to static inline */
8518                  if ((type.t & (VT_EXTERN | VT_INLINE)) == (VT_EXTERN | VT_INLINE))                  if ((type.t & (VT_EXTERN | VT_INLINE)) == (VT_EXTERN | VT_INLINE))
8519                      type.t = (type.t & ~VT_EXTERN) | VT_STATIC;                      type.t = (type.t & ~VT_EXTERN) | VT_STATIC;

Legend:
Removed from v.1.139  
changed lines
  Added in v.1.140

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26