diff options
author | Pierre Fenoll <[email protected]> | 2013-09-10 15:48:29 +0100 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2013-09-12 15:09:35 +0200 |
commit | 21095e6830f37676dd29c33a590851ba2c76499b (patch) | |
tree | af67365890562885620703842def67331c1346fd /erts/emulator/drivers | |
parent | b15d3c7cc568abfb2c7cf48cd76f1d8d503b2736 (diff) | |
download | otp-21095e6830f37676dd29c33a590851ba2c76499b.tar.gz otp-21095e6830f37676dd29c33a590851ba2c76499b.tar.bz2 otp-21095e6830f37676dd29c33a590851ba2c76499b.zip |
Remove ^L characters hidden randomly in the code. Not those used in text files as delimiters.
While working on a tool that processes Erlang code and testing it against this repo,
I found out about those little sneaky 0xff. I thought it may be of help to other
people build such tools to remove non-conforming-to-standard characters.
Diffstat (limited to 'erts/emulator/drivers')
-rw-r--r-- | erts/emulator/drivers/unix/ttsl_drv.c | 8 | ||||
-rw-r--r-- | erts/emulator/drivers/win32/win_efile.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/erts/emulator/drivers/unix/ttsl_drv.c b/erts/emulator/drivers/unix/ttsl_drv.c index 1e436830e7..491e0a090e 100644 --- a/erts/emulator/drivers/unix/ttsl_drv.c +++ b/erts/emulator/drivers/unix/ttsl_drv.c @@ -745,7 +745,7 @@ static Sint16 get_sint16(char *s) { return ((*s << 8) | ((byte*)s)[1]); } - + static int start_lbuf(void) { if (!lbuf && !(lbuf = ( Uint32*) driver_alloc(lbuf_size * sizeof(Uint32)))) @@ -1091,7 +1091,7 @@ static int move_cursor(int from, int to) move_left(-dc); return TRUE; } - + static int start_termcap(void) { int eres; @@ -1187,7 +1187,7 @@ static int move_down(int n) tputs(down, 1, outc); return TRUE; } - + /* * Updates cols if terminal has resized (SIGWINCH). Should be called @@ -1209,7 +1209,7 @@ static void update_cols(void) cols = width; } } - + /* * Put a terminal device into non-canonical mode with ECHO off. diff --git a/erts/emulator/drivers/win32/win_efile.c b/erts/emulator/drivers/win32/win_efile.c index b36a103f8e..319065f57b 100644 --- a/erts/emulator/drivers/win32/win_efile.c +++ b/erts/emulator/drivers/win32/win_efile.c @@ -1216,7 +1216,7 @@ int flags; return 1; } - + /* * is_root_unc_name - returns TRUE if the argument is a UNC name specifying * a root share. That is, if it is of the form \\server\share\. |