diff options
author | Vern Paxson <vern@ee.lbl.gov> | 1994-12-03 13:43:17 +0000 |
---|---|---|
committer | Vern Paxson <vern@ee.lbl.gov> | 1994-12-03 13:43:17 +0000 |
commit | c4511aac3fd8292048bda43b91281bab7cf7204b (patch) | |
tree | e0e1b4d1fb4c1c1ac1ce41573ce216902b22e95c /misc.c | |
parent | f1c073a74cb18742279f42fd3863886ac3456895 (diff) |
\n -> '\012'
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -537,10 +537,17 @@ Char array[]; { case 'b': return '\b'; case 'f': return '\f'; - case 'n': return '\n'; case 'r': return '\r'; case 't': return '\t'; + case 'n': + /* Special case. flex.skl takes care to map + * incoming '\n's to '\012', even on systems that + * don't use that value. We need to be consistent + * with that choice. + */ + return '\012'; + #if __STDC__ case 'a': return '\a'; case 'v': return '\v'; |