* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
-#include <stdio.h>
-#include <fcntl.h>
#include "libbb.h"
-
/* try to open up the specified device */
int device_open(const char *device, int mode)
{
}
/* Grab a character from input without requiring the return key. If the
- character is ASCII \033, get more characters and assign certain sequences
- special return codes. Note that this function works best with raw input. */
+ * character is ASCII \033, get more characters and assign certain sequences
+ * special return codes. Note that this function works best with raw input. */
static int less_getch(void)
{
char *input;
/* This function changes the file currently being paged. direction can be one of the following:
* -1: go back one file
* 0: go to the first file
- * 1: go forward one file
-*/
+ * 1: go forward one file */
static void change_file(int direction)
{
if (current_file != ((direction > 0) ? num_files : 1)) {
}
#endif
-
#if ENABLE_FEATURE_LESS_BRACKETS
-
static char opp_bracket(char bracket)
{
switch (bracket) {
print_statusline("No matching bracket found");
buffer_line(bracket_line);
}
-
#endif /* FEATURE_LESS_BRACKETS */
static void keypress_process(int keypress)