[BACK]Return to indent_globs.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / indent

Diff for /src/usr.bin/indent/indent_globs.h between version 1.4 and 1.5

version 1.4, 1999/09/14 18:38:28 version 1.5, 2001/01/08 07:14:42
Line 1 
Line 1 
 /* *    $OpenBSD$*/  /* *    $OpenBSD$*/
 /*  /*
  * Copyright (c) 1985 Sun Microsystems, Inc.   * Copyright (c) 1985 Sun Microsystems, Inc.
  * Copyright (c) 1980 The Regents of the University of California.   * Copyright (c) 1980, 1993
    *      The Regents of the University of California.
  * Copyright (c) 1976 Board of Trustees of the University of Illinois.   * Copyright (c) 1976 Board of Trustees of the University of Illinois.
  * All rights reserved.   * All rights reserved.
  *   *
Line 33 
Line 34 
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF   * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.   * SUCH DAMAGE.
  *   *
  *      from: @(#)indent_globs.h        5.11 (Berkeley) 2/26/91   *      from: @(#)indent_globs.h        8.1 (Berkeley) 6/6/93
  */   */
   
 #define BACKSLASH '\\'  #define BACKSLASH '\\'
Line 58 
Line 59 
         if (e_code >= l_code) { \          if (e_code >= l_code) { \
             register int nsize = l_code-s_code+400; \              register int nsize = l_code-s_code+400; \
             codebuf = (char *) realloc(codebuf, nsize); \              codebuf = (char *) realloc(codebuf, nsize); \
               if (codebuf == NULL) \
                       errx(1, "out of memory"); \
             e_code = codebuf + (e_code-s_code) + 1; \              e_code = codebuf + (e_code-s_code) + 1; \
             l_code = codebuf + nsize - 5; \              l_code = codebuf + nsize - 5; \
             s_code = codebuf + 1; \              s_code = codebuf + 1; \
Line 66 
Line 69 
         if (e_com >= l_com) { \          if (e_com >= l_com) { \
             register int nsize = l_com-s_com+400; \              register int nsize = l_com-s_com+400; \
             combuf = (char *) realloc(combuf, nsize); \              combuf = (char *) realloc(combuf, nsize); \
               if (combuf == NULL) \
                       errx(1, "out of memory"); \
             e_com = combuf + (e_com-s_com) + 1; \              e_com = combuf + (e_com-s_com) + 1; \
             l_com = combuf + nsize - 5; \              l_com = combuf + nsize - 5; \
             s_com = combuf + 1; \              s_com = combuf + 1; \
Line 74 
Line 79 
         if (e_lab >= l_lab) { \          if (e_lab >= l_lab) { \
             register int nsize = l_lab-s_lab+400; \              register int nsize = l_lab-s_lab+400; \
             labbuf = (char *) realloc(labbuf, nsize); \              labbuf = (char *) realloc(labbuf, nsize); \
               if (labbuf == NULL) \
                       errx(1, "out of memory"); \
             e_lab = labbuf + (e_lab-s_lab) + 1; \              e_lab = labbuf + (e_lab-s_lab) + 1; \
             l_lab = labbuf + nsize - 5; \              l_lab = labbuf + nsize - 5; \
             s_lab = labbuf + 1; \              s_lab = labbuf + 1; \
Line 82 
Line 89 
         if (e_token >= l_token) { \          if (e_token >= l_token) { \
             register int nsize = l_token-s_token+400; \              register int nsize = l_token-s_token+400; \
             tokenbuf = (char *) realloc(tokenbuf, nsize); \              tokenbuf = (char *) realloc(tokenbuf, nsize); \
               if (tokenbuf == NULL) \
                       errx(1, "out of memory"); \
             e_token = tokenbuf + (e_token-s_token) + 1; \              e_token = tokenbuf + (e_token-s_token) + 1; \
             l_token = tokenbuf + nsize - 5; \              l_token = tokenbuf + nsize - 5; \
             s_token = tokenbuf + 1; \              s_token = tokenbuf + 1; \
Line 309 
Line 318 
 int         rparen_count;  int         rparen_count;
 struct parser_state state_stack[5];  struct parser_state state_stack[5];
 struct parser_state match_state[5];  struct parser_state match_state[5];
   
   int compute_code_target __P((void));
   int compute_label_target __P((void));
   int count_spaces __P((int, char *));
   void diag __P((int, char *, ...));
   void dump_line __P((void));
   int eqin __P((char *, char *));
   void fill_buffer __P((void));
   int pad_output __P((int, int));
   void scan_profile __P((FILE *));
   void set_defaults __P((void));
   void set_option __P((char *));
   void addkey __P((char *, int));
   void set_profile __P((void));
   char   *chfont __P((struct fstate *, struct fstate *, char *));
   void parsefont __P((struct fstate *, char *));
   void writefdef __P((struct fstate *, int));
   int lexi __P((void));
   void reduce __P((void));
   void parse __P((int));
   void pr_comment __P((void));
   void bakcopy __P((void));

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5