comparison lib-src/etags.c @ 27658:5980f19581dc

(pfnote, new_pfnote, C_entries, prolog_pred, erlang_func): Add `static' to definitions to keep pcc happy.
author Dave Love <fx@gnu.org>
date Thu, 10 Feb 2000 20:00:05 +0000
parents 25ed45af9355
children c8b3e7e83e09
comparison
equal deleted inserted replaced
27657:1b0072274ea3 27658:5980f19581dc
1574 } 1574 }
1575 return; 1575 return;
1576 } 1576 }
1577 1577
1578 /* Record a tag. */ 1578 /* Record a tag. */
1579 void 1579 static void
1580 pfnote (name, is_func, linestart, linelen, lno, cno) 1580 pfnote (name, is_func, linestart, linelen, lno, cno)
1581 char *name; /* tag name, or NULL if unnamed */ 1581 char *name; /* tag name, or NULL if unnamed */
1582 bool is_func; /* tag is a function */ 1582 bool is_func; /* tag is a function */
1583 char *linestart; /* start of the line where tag is */ 1583 char *linestart; /* start of the line where tag is */
1584 int linelen; /* length of the line where tag is */ 1584 int linelen; /* length of the line where tag is */
1644 * The real implementation uses the notinname() macro, which recognises 1644 * The real implementation uses the notinname() macro, which recognises
1645 * characters slightly different form " \t\r\n(),;". See the variable 1645 * characters slightly different form " \t\r\n(),;". See the variable
1646 * `nonam'. 1646 * `nonam'.
1647 */ 1647 */
1648 #define traditional_tag_style TRUE 1648 #define traditional_tag_style TRUE
1649 void 1649 static void
1650 new_pfnote (name, namelen, is_func, linestart, linelen, lno, cno) 1650 new_pfnote (name, namelen, is_func, linestart, linelen, lno, cno)
1651 char *name; /* tag name, or NULL if unnamed */ 1651 char *name; /* tag name, or NULL if unnamed */
1652 int namelen; /* tag length */ 1652 int namelen; /* tag length */
1653 bool is_func; /* tag is a function */ 1653 bool is_func; /* tag is a function */
1654 char *linestart; /* start of the line where tag is */ 1654 char *linestart; /* start of the line where tag is */
2604 else if (DEBUG) 2604 else if (DEBUG)
2605 abort (); 2605 abort ();
2606 } 2606 }
2607 2607
2608 2608
2609 void 2609 static void
2610 C_entries (c_ext, inf) 2610 C_entries (c_ext, inf)
2611 int c_ext; /* extension of C */ 2611 int c_ext; /* extension of C */
2612 FILE *inf; /* input file */ 2612 FILE *inf; /* input file */
2613 { 2613 {
2614 register char c; /* latest char read; '\0' for end of line */ 2614 register char c; /* latest char read; '\0' for end of line */
4427 * name of the previous clause header. 4427 * name of the previous clause header.
4428 * 4428 *
4429 * Return the size of the name of the predicate, or 0 if no header 4429 * Return the size of the name of the predicate, or 0 if no header
4430 * was found. 4430 * was found.
4431 */ 4431 */
4432 int 4432 static int
4433 prolog_pred (s, last) 4433 prolog_pred (s, last)
4434 char *s; 4434 char *s;
4435 char *last; /* Name of last clause. */ 4435 char *last; /* Name of last clause. */
4436 { 4436 {
4437 int pos; 4437 int pos;
4584 * name of the previous clause header. 4584 * name of the previous clause header.
4585 * 4585 *
4586 * Return the size of the name of the function, or 0 if no function 4586 * Return the size of the name of the function, or 0 if no function
4587 * was found. 4587 * was found.
4588 */ 4588 */
4589 int 4589 static int
4590 erlang_func (s, last) 4590 erlang_func (s, last)
4591 char *s; 4591 char *s;
4592 char *last; /* Name of last clause. */ 4592 char *last; /* Name of last clause. */
4593 { 4593 {
4594 int pos; 4594 int pos;