/[m4]/m4/modules/changeword.c
ViewVC logotype

Diff of /m4/modules/changeword.c

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

revision 1.4 by akim, Tue Aug 7 10:41:11 2001 UTC revision 1.5 by gary, Sun Aug 19 10:53:56 2001 UTC
# Line 64  m4_macro m4_macro_table[] = Line 64  m4_macro m4_macro_table[] =
64  };  };
65    
66    
 /*-----------------------------------------------------------------------.  
 | Change the regular expression used for breaking the input into words.  |  
 | The function set_word_regexp () lives in input.c.                      |  
 `-----------------------------------------------------------------------*/  
67    
68  /* Change the regular expression used to recognise words in the input.  */  /* Change the regular expression used for breaking the input into words.
69       The function set_word_regexp () lives in input.c.  */
70    
71    /**
72     * changeword(REGEXP)
73     **/
74  M4BUILTIN_HANDLER (changeword)  M4BUILTIN_HANDLER (changeword)
75  {  {
76    if (m4_bad_argc (argv[0], argc, 2, 2))    if (m4_bad_argc (argv[0], argc, 2, 2))
77      return;      return;
78    
79      /* Change the regular expression used to recognise words in the input.  */
80    m4_set_word_regexp (M4ARG (1));    m4_set_word_regexp (M4ARG (1));
81  }  }
82    
83  #else  #else
84    
85    /**
86     * changeword(REGEXP)
87     **/
88  M4BUILTIN_HANDLER (changeword)  M4BUILTIN_HANDLER (changeword)
89  {  {
90    M4ERROR ((EXIT_FAILURE, 0,    M4ERROR ((EXIT_FAILURE, 0,

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

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