Lines Matching +full:1 +full:c
2 * Copyright (C) 1984-2025 Mark Nudelman
17 #define MSOFTC 1 /* Microsoft C */
18 #define BORLANDC 2 /* Borland C */
19 #define WIN32C 3 /* Windows (Borland C or Microsoft C) */
20 #define DJGPPC 4 /* DJGPP C */
81 #define signed_expr(e) ((TRUE ? 0 : e) - 1 < 0)
127 #define ASCII_IS_UPPER(c) ((c) >= 'A' && (c) <= 'Z') argument
128 #define ASCII_IS_LOWER(c) ((c) >= 'a' && (c) <= 'z') argument
129 #define ASCII_TO_UPPER(c) ((c) - 'a' + 'A') argument
130 #define ASCII_TO_LOWER(c) ((c) - 'A' + 'a') argument
140 #define IS_UPPER(c) iswupper((wint_t) (c)) argument
141 #define IS_LOWER(c) iswlower((wint_t) (c)) argument
142 #define TO_UPPER(c) towupper((wint_t) (c)) argument
143 #define TO_LOWER(c) towlower((wint_t) (c)) argument
146 #define IS_UPPER(c) (is_ascii_char(c) && isupper((unsigned char) (c))) argument
147 #define IS_LOWER(c) (is_ascii_char(c) && islower((unsigned char) (c))) argument
148 #define TO_UPPER(c) (is_ascii_char(c) ? toupper((unsigned char) (c)) : (c)) argument
149 #define TO_LOWER(c) (is_ascii_char(c) ? tolower((unsigned char) (c)) : (c)) argument
151 #define IS_UPPER(c) (is_ascii_char(c) && ASCII_IS_UPPER(c)) argument
152 #define IS_LOWER(c) (is_ascii_char(c) && ASCII_IS_LOWER(c)) argument
153 #define TO_UPPER(c) (is_ascii_char(c) ? ASCII_TO_UPPER(c) : (c)) argument
154 #define TO_LOWER(c) (is_ascii_char(c) ? ASCII_TO_LOWER(c) : (c)) argument
159 #define IS_SPACE(c) isspace((unsigned char)(c)) argument
161 #define IS_SPACE(c) ((c) == ' ' || (c) == '\t' || (c) == '\n' || (c) == '\r' || (c) == '\f') argument
165 #define IS_DIGIT(c) isdigit((unsigned char)(c)) argument
167 #define IS_DIGIT(c) ((c) >= '0' && (c) <= '9') argument
170 #define IS_CSI_START(c) (control_char(c) && (((LWCHAR)(c)) == ESC || (((LWCHAR)(c)) == CSI))) argument
173 #define OPT_ON 1
195 #define BAD_LSEEK ((off_t)-1)
210 * 302 / 1000 is ceil (log10 (2.0)). Subtract 1 for the sign bit;
211 * add 1 for integer division truncation; add 1 more for a minus sign.
213 #define INT_STRLEN_BOUND(t) ((sizeof(t) * CHAR_BIT - 1) * 302 / 1000 + 1 + 1)
240 #define NULL_POSITION ((POSITION)(-1))
265 #define OPEN_APPEND (1)
291 #define SPACES_IN_FILENAMES 1
343 #define EOI (-1)
345 #define READ_ERR (-1)
366 #define LITTLE_QUIET 1 /* Ring bell only for errors */
371 #define PR_MEDIUM 1 /* Prompt with message */
376 #define BS_NORMAL 1 /* \b treated as normal char; actually output */
380 #define SRCH_FORW (1 << 0) /* Search forward from current position */
381 #define SRCH_BACK (1 << 1) /* Search backward from current position */
382 #define SRCH_NO_MOVE (1 << 2) /* Highlight, but don't move */
383 #define SRCH_INCR (1 << 3) /* Incremental search */
384 #define SRCH_FIND_ALL (1 << 4) /* Find and highlight all matches */
385 #define SRCH_NO_MATCH (1 << 8) /* Search for non-matching lines */
386 #define SRCH_PAST_EOF (1 << 9) /* Search past end-of-file, into next file */
387 #define SRCH_FIRST_FILE (1 << 10) /* Search starting at the first file */
388 #define SRCH_NO_REGEX (1 << 12) /* Don't use regular expressions */
389 #define SRCH_FILTER (1 << 13) /* Search is for '&' (filter) command */
390 #define SRCH_AFTER_TARGET (1 << 14) /* Start search after the target line */
391 #define SRCH_WRAP (1 << 15) /* Wrap-around search (continue at BOF/EOF) */
393 #define SRCH_OSC8 (1 << 16) /* */
395 #define SRCH_SUBSEARCH(i) (1 << (17+(i))) /* Search for subpattern */
397 #define SRCH_SUBSEARCH_ALL (SRCH_SUBSEARCH(1)|SRCH_SUBSEARCH(2)|SRCH_SUBSEARCH(3)|SRCH_SUBSEARCH(4)…
418 #define MCA_DONE 1
422 #define CC_QUIT 1 /* Char was a request to abort current cmd */
426 #define CF_QUIT_ON_ERASE (1<<0) /* Abort cmd if its entirely erased */
427 #define CF_OPTION (1<<1) /* A_OPT_TOGGLE */
431 #define AT_UNDERLINE (1 << 0)
432 #define AT_BOLD (1 << 1)
433 #define AT_BLINK (1 << 2)
434 #define AT_STANDOUT (1 << 3)
435 #define AT_ANSI (1 << 4) /* Content-supplied "ANSI" escape sequence */
436 #define AT_BINARY (1 << 5) /* LESS*BINFMT representation */
437 #define AT_HILITE (1 << 6) /* Internal highlights (e.g., for search) */
441 #define AT_COLOR ((AT_NUM_COLORS-1) << AT_COLOR_SHIFT)
442 #define AT_COLOR_ATTN (1 << AT_COLOR_SHIFT)
453 #define NUM_SEARCH_COLORS (AT_NUM_COLORS-10-1)
458 CV_BLUE = 1,
463 CV_ERROR = -1
468 CATTR_STANDOUT = (1 << 0),
469 CATTR_BOLD = (1 << 1),
470 CATTR_UNDERLINE = (1 << 2),
471 CATTR_BLINK = (1 << 3),
483 #define IS_EBCDIC_HOST 1
492 #define CONTROL(c) ( \ argument
493 (c)=='[' ? '\047' : \
494 (c)=='a' ? '\001' : \
495 (c)=='b' ? '\002' : \
496 (c)=='c' ? '\003' : \
497 (c)=='d' ? '\067' : \
498 (c)=='e' ? '\055' : \
499 (c)=='f' ? '\056' : \
500 (c)=='g' ? '\057' : \
501 (c)=='h' ? '\026' : \
502 (c)=='i' ? '\005' : \
503 (c)=='j' ? '\025' : \
504 (c)=='k' ? '\013' : \
505 (c)=='l' ? '\014' : \
506 (c)=='m' ? '\015' : \
507 (c)=='n' ? '\016' : \
508 (c)=='o' ? '\017' : \
509 (c)=='p' ? '\020' : \
510 (c)=='q' ? '\021' : \
511 (c)=='r' ? '\022' : \
512 (c)=='s' ? '\023' : \
513 (c)=='t' ? '\074' : \
514 (c)=='u' ? '\075' : \
515 (c)=='v' ? '\062' : \
516 (c)=='w' ? '\046' : \
517 (c)=='x' ? '\030' : \
518 (c)=='y' ? '\031' : \
519 (c)=='z' ? '\077' : \
520 (c)=='A' ? '\001' : \
521 (c)=='B' ? '\002' : \
522 (c)=='C' ? '\003' : \
523 (c)=='D' ? '\067' : \
524 (c)=='E' ? '\055' : \
525 (c)=='F' ? '\056' : \
526 (c)=='G' ? '\057' : \
527 (c)=='H' ? '\026' : \
528 (c)=='I' ? '\005' : \
529 (c)=='J' ? '\025' : \
530 (c)=='K' ? '\013' : \
531 (c)=='L' ? '\014' : \
532 (c)=='M' ? '\015' : \
533 (c)=='N' ? '\016' : \
534 (c)=='O' ? '\017' : \
535 (c)=='P' ? '\020' : \
536 (c)=='Q' ? '\021' : \
537 (c)=='R' ? '\022' : \
538 (c)=='S' ? '\023' : \
539 (c)=='T' ? '\074' : \
540 (c)=='U' ? '\075' : \
541 (c)=='V' ? '\062' : \
542 (c)=='W' ? '\046' : \
543 (c)=='X' ? '\030' : \
544 (c)=='Y' ? '\031' : \
545 (c)=='Z' ? '\077' : \
546 (c)=='|' ? '\031' : \
547 (c)=='\\' ? '\034' : \
548 (c)=='^' ? '\036' : \
549 (c)&077)
551 #define CONTROL(c) ((c)&037) argument
590 #define QUIT_INTERRUPT (EXIT_FAILURE+1)
592 #define QUIT_ERROR 1
595 #define QUIT_SAVED_STATUS (-1)
598 #define FOLLOW_NAME 1
627 #define X11MOUSE_BUTTON2 1 /* Middle button press */
636 #define SF_EDIT (1<<1) /* Edit file (v) */
637 #define SF_EXAMINE (1<<2) /* Examine file (:e) */
638 #define SF_GLOB (1<<3) /* Expand file pattern */
639 #define SF_HISTORY (1<<4) /* History file */
640 #define SF_LESSKEY (1<<5) /* Lesskey files */
641 #define SF_LESSOPEN (1<<6) /* LESSOPEN */
642 #define SF_LOGFILE (1<<7) /* Log file (s, -o) */
643 #define SF_PIPE (1<<8) /* Pipe (|) */
644 #define SF_SHELL (1<<9) /* Shell command (!) */
645 #define SF_STOP (1<<10) /* Stop signal */
646 #define SF_TAGS (1<<11) /* Tags */
647 #define SF_OSC8_OPEN (1<<12) /* OSC8 open */