"SfR Fresh" - the SfR Freeware/Shareware Archive

Member "gtkfind-1.1/flags.h" of archive gtkfind-1.1.tar.gz:


As a special service "SfR Fresh" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
    1 /* flags.h */
    2 /*
    3   gtkfind - a graphical "find" program
    4   Copyright (C) 1999  Matthew Grossman <mattg@oz.net>
    5 
    6   This program is free software; you can redistribute it and/or modify
    7   it under the terms of the GNU General Public License as published by
    8   the Free Software Foundation; either version 2 of the License, or
    9   (at your option) any later version.
   10 
   11   This program is distributed in the hope that it will be useful,
   12   but WITHOUT ANY WARRANTY; without even the implied warranty of
   13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   14   GNU General Public License for more details.
   15 
   16   You should have received a copy of the GNU General Public License
   17   along with this program; if not, write to the Free Software
   18   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   19 */
   20 
   21 /* the enum flag_t stuff, used to set flags instead of a bunch of global
   22    variables */
   23 
   24 #ifndef FLAG_H
   25 #define FLAG_H
   26 
   27 enum flag_t { REGEXP_P = 0, SEARCH_SUBDIRS_P, SHELL_COMMAND_P,
   28 	      PRINT_TO_STDOUT_P, PRINT_TO_WINDOW_P, PRINT_FILENAME_ANYWAY_P,
   29 	      OWNER_READ_P, GROUP_READ_P, WORLD_READ_P, OWNER_WRITE_P,
   30 	      GROUP_WRITE_P, WORLD_WRITE_P, OWNER_EXEC_P, GROUP_EXEC_P,
   31 	      WORLD_EXEC_P, SETUID_P, SETGID_P, STICKY_P, DIRECTORY_P,
   32 	      REGULAR_P, RAW_DEVICE_P, BLOCK_DEVICE_P, SYMLINK_P, SOCKET_P,
   33 	      FIFO_P, UID_NOT_LOGIN_P, GID_NOT_GROUP_P, ATIME_ET_P,
   34 	      ATIME_EQ_P, ATIME_LT_P, MTIME_ET_P, MTIME_EQ_P, MTIME_LT_P,
   35 	      CTIME_ET_P, CTIME_EQ_P, CTIME_LT_P, WARNING_WINDOW_P,
   36 	      LONG_OUTPUT_P, WILDCARD_CONTENTS_SEARCH_P,
   37 	      WILDCARD_FILENAME_MATCH_P, NOUSER_P, NOGROUP_P };
   38 
   39 
   40 
   41 int set_flag(enum flag_t f, int value);
   42 int get_flag(enum flag_t f);
   43 int reset_flags();
   44 
   45 
   46 #endif /* !FLAG_H */