lexi.c (ea1e967cbf9a3e1bbf964b01859c4d37965548d4) lexi.c (a3abcad0b7ada3ebabbab2f5074608caf0689802)
1/*-
2 * Copyright (c) 1985 Sun Microsystems, Inc.
3 * Copyright (c) 1980, 1993
4 * The Regents of the University of California. All rights reserved.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 339 unchanged lines hidden (view full) ---

348 case 10: /* storage class specifier */
349 return (storage);
350
351 default: /* all others are treated like any other
352 * identifier */
353 return (ident);
354 } /* end of switch */
355 } /* end of if (found_it) */
1/*-
2 * Copyright (c) 1985 Sun Microsystems, Inc.
3 * Copyright (c) 1980, 1993
4 * The Regents of the University of California. All rights reserved.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 339 unchanged lines hidden (view full) ---

348 case 10: /* storage class specifier */
349 return (storage);
350
351 default: /* all others are treated like any other
352 * identifier */
353 return (ident);
354 } /* end of switch */
355 } /* end of if (found_it) */
356 if (*buf_ptr == '(' && ps.tos <= 1 && ps.ind_level == 0) {
356 if (*buf_ptr == '(' && ps.tos <= 1 && ps.ind_level == 0 &&
357 ps.in_parameter_declaration == 0 && ps.block_init == 0) {
357 char *tp = buf_ptr;
358 while (tp < buf_end)
359 if (*tp++ == ')' && (*tp == ';' || *tp == ','))
360 goto not_proc;
361 strncpy(ps.procname, token, sizeof ps.procname - 1);
362 if (ps.in_decl)
363 ps.in_parameter_declaration = 1;
358 char *tp = buf_ptr;
359 while (tp < buf_end)
360 if (*tp++ == ')' && (*tp == ';' || *tp == ','))
361 goto not_proc;
362 strncpy(ps.procname, token, sizeof ps.procname - 1);
363 if (ps.in_decl)
364 ps.in_parameter_declaration = 1;
364 rparen_count = 1;
365 return (last_code = funcname);
365 not_proc:;
366 }
367 /*
368 * The following hack attempts to guess whether or not the current
369 * token is in fact a declaration keyword -- one that has been
370 * typedefd
371 */
372 if (((*buf_ptr == '*' && buf_ptr[1] != '=') || isalpha(*buf_ptr) || *buf_ptr == '_')

--- 297 unchanged lines hidden ---
366 not_proc:;
367 }
368 /*
369 * The following hack attempts to guess whether or not the current
370 * token is in fact a declaration keyword -- one that has been
371 * typedefd
372 */
373 if (((*buf_ptr == '*' && buf_ptr[1] != '=') || isalpha(*buf_ptr) || *buf_ptr == '_')

--- 297 unchanged lines hidden ---