{
ChangeDirData * change_dir_data;
Arg args[8];
- register int n;
+ int n;
XmStringTable history_list;
XmString string_path;
FreeValues(
ChangeDirData *change_dir_data )
{
- register int i;
+ int i;
for (i = 0; i < change_dir_data->list_count; i++)
XmStringFree (change_dir_data->history_list[i]);
FileViewData *file_view_data;
DesktopRec *desktopWindow;
Widget child;
- register int i, menu_offset;
- register int action_count;
+ int i, menu_offset;
+ int action_count;
int count, del_count;
int num_children;
char ** command_list;
WorkspaceRec *workspaceData)
{
int selection_count;
- register int i;
+ int i;
selection_count = workspaceData->files_selected;
DesktopRec *desktopWindow)
{
int selection_count;
- register int i;
- register int j;
+ int i;
+ int j;
selection_count = workspaceData->files_selected;
Dialog * dialog;
DialogData * new_data;
CorePart * core;
- register int i;
+ int i;
/* Find the dialog and then hide it. */
XtIntervalId *id )
{
- register int i;
+ int i;
Dialog * dialog;
Dialog * prev_dialog;
int count;
static void RedisplayUsingStackingOrder (
FileMgrData * file_mgr_data,
Widget w,
- register XEvent *event,
+ XEvent *event,
Region region) ;
static void ReorderChildrenList (
XmManagerWidget file_window,
Boolean turn_off_hourglass);
static XmGadget InputInGadget (
Widget w,
- register int x,
- register int y);
+ int x,
+ int y);
static XmGadget InputForGadget (
Widget cw,
int x,
FileViewData ** order_list;
int * sort;
int * sub_sort;
- register int i;
- register int start;
+ int i;
+ int start;
file_view_data = directory_set->file_view_data;
file_count = directory_set->file_count;
{
FileViewData **file_view_data;
FilterData * filter_data;
- register int i, j, k;
+ int i, j, k;
Boolean show_hidden;
String filter;
Boolean mustMatch, matches;
XmManagerWidget mw = (XmManagerWidget) XtParent(w);
Widget screen_object = (Widget) XmGetXmScreen(XtScreenOfObject(w));
Arg args[11];
- register int n;
+ int n;
unsigned int wid, hei, d, junk;
Widget dragIcon;
Pixmap dragPixmap;
XRectangle pRect, lRect;
unsigned char flags;
int stringSize;
- register int i;
+ int i;
Arg args[10];
Boolean allowDropInInitiatingWindow;
int rectCount;
static XmGadget
InputInGadget (
Widget w,
- register int x,
- register int y)
+ int x,
+ int y)
{
CompositeWidget cw = (CompositeWidget)w;
static Region r = NULL;
FileMgrData * file_mgr_data;
Boolean simpleCheck = False;
- register int i;
+ int i;
unsigned char flags;
XRectangle pRect, lRect;
- register Widget widget;
+ Widget widget;
file_mgr_data = ReturnDesktopPtr((Widget)cw);
Boolean valid)
{
int selection_count;
- register int i;
- register int j;
+ int i;
+ int j;
selection_count = file_mgr_data->selected_file_count;
FileMgrData *file_mgr_data )
{
FileViewData * file_view_data;
- register int i, j, k;
+ int i, j, k;
ObjectPtr bottom;
FileViewData ** repaint_list;
FileViewData ** order_list;
int directory_count;
int selection_count;
- register int i;
- register int j;
+ int i;
+ int j;
ObjectPtr top;
FileViewData ** selection_list;
RedisplayUsingStackingOrder (
FileMgrData * file_mgr_data,
Widget w,
- register XEvent *event,
+ XEvent *event,
Region region)
{
- register Widget child;
+ Widget child;
FileViewData * file_view_data;
ObjectPosition * bottom;
ObjectPosition * top;
{
Widget * children = file_window->composite.children;
- register int i, j;
+ int i, j;
for (i = 0; i < manageCount; i++)
children[i] = manage[i];
static Boolean
InMultipleObjectRegion (FileMgrData * file_mgr_data, FileViewData * fileViewData)
{
- register int i;
+ int i;
for( i = 0; i < file_mgr_data->selected_file_count; ++i )
if( strcmp( file_mgr_data->selection_list[i]->file_data->file_name, fileViewData->file_data->file_name ) == 0 )
return True;
************************************************************************/
char *
DName(
- register char *name )
+ char *name )
{
char * p;
char * q;
static int
Check(
Widget w,
- register char *spth,
- register ino_t dinode,
+ char *spth,
+ ino_t dinode,
int mode,
void (*errorHandler)() )
{
static Boolean
MoveDir(
Widget w,
- register char *source,
- register char *target,
+ char *source,
+ char *target,
struct stat *sourceStatInfo,
void (*errorHandler)(),
char ** targetRtn ,
int type )
{
static char *pname = "MoveDir";
- register char *p;
+ char *p;
char * targetDir; /* original target dir path */
char *link_path;
CopyDir(
Widget w,
int mode,
- register char *from,
- register char *to,
+ char *from,
+ char *to,
Boolean isContainer,
struct stat *s1,
void (*errorHandler)(),
FileManip(
Widget w,
int mode,
- register char *from,
- register char *to,
+ char *from,
+ char *to,
Boolean isContainer, /* described in function CopyDir */
void (*errorHandler)(),
Boolean checkForBusyDir,
int type )
{
- register int fold;
- register int fnew;
- register int n;
+ int fold;
+ int fnew;
+ int n;
Boolean copy_dir_return;
Boolean move_dir_return;
void (*oldInt)();
ModAttrData *attr_data;
Boolean loadOk;
- register int i;
- register int j;
- register int k;
+ int i;
+ int j;
+ int k;
DirectorySet ** directory_set;
FileViewData ** order_list;
int directory_count;
DirectorySet ** directory_data)
{
int directory_count;
- register int i, j;
+ int i, j;
FileViewData * file_view_data;
DirectorySet * dir_data;
ObjectPtr top;
int new_dir_count;
int new_file_count;
ObjectPtr position_info;
- register int i;
- register int j;
- register int k;
+ int i;
+ int j;
+ int k;
Boolean match;
DirectorySet ** directory_set,
int directory_count)
{
- register int i, j;
+ int i, j;
if (!directory_set)
return;
int file_count;
char **file_set;
char **host_set;
- register int i, j;
+ int i, j;
char *file, *next, *end;
char directory[MAX_PATH];
Boolean result = True;
{
static char *pname = "findpopen";
int fd[2];
- register int parentside, childside;
+ int parentside, childside;
if(pipe(fd) < 0)
return(NULL);
DialogData * dialog_data;
FileMgrData * file_mgr_data;
XmDrawingAreaCallbackStruct * da_cbs;
- register int i;
+ int i;
file_mgr_rec = (FileMgrRec *) client_data;
dialog_data = _DtGetInstanceData ((XtPointer)file_mgr_rec);
XRectangle widget_rect;
DirectorySet ** directory_set;
int directory_count;
- register int i, j;
+ int i, j;
Region region;
Region widget_region;
Region intersect_region;
CloseView(
DialogData *dialog_data )
{
- register int i;
- register int j;
+ int i;
+ int j;
FileMgrData * file_mgr_data;
DialogData * tmpDialog_data;
FileMgrRec * file_mgr_rec;
ViewHomeDirectoryHandler(
Tt_message msg)
{
- register int i, j, k;
+ int i, j, k;
struct passwd * pwInfo;
char * homeDir;
char * tmp_path;
ViewToolsDirectoryHandler(
Tt_message msg)
{
- register int i;
+ int i;
char * tmp_path = NULL;
char * tool_dir = NULL;
char * msgFile = NULL;
unsigned char **ppchNext)
{
unsigned char *pchR = pchIn;
- register int i;
- register int chlen;
+ int i;
+ int chlen;
for (i = 0; ((chlen = mblen ((char *)pchIn, MB_CUR_MAX)) > 0); i++)
/* find end of word: requires singlebyte whitespace terminator */
char * host_name,
char * directory_name)
{
- register int i;
- register int j;
- register int k;
+ int i;
+ int j;
+ int k;
Arg args[1];
FileViewData * file_view_data = NULL;
DialogData *dialog_data;
/* prototype from MakeDir.c */
extern int RunFileCommand(
- register char *command_path,
- register char *argument1,
- register char *argument2,
- register char *argument3) ;
+ char *command_path,
+ char *argument1,
+ char *argument2,
+ char *argument3) ;
/* prototypes from Directory.h */
extern Boolean FileManip(
Widget w,
int mode,
- register char *from,
- register char *to,
+ char *from,
+ char *to,
Boolean isContainer,
void (*errorHandler)(),
Boolean checkForBusyDir,
int what);
extern char * DName(
- register char *name) ;
+ char *name) ;
/* prototypes from FileMgr.h */
UnmanageAllActionItems(
FileMgrRec *file_mgr_rec )
{
- register int i, children;
+ int i, children;
XmManagerWidget action_pane;
action_pane = (XmManagerWidget) file_mgr_rec->action_pane;
Widget mbar;
DtActionArg * action_args;
int arg_count;
- register int i;
+ int i;
if (!TrashIsInitialized())
{
int
RunFileCommand(
- register char *command_path,
- register char *argument1,
- register char *argument2,
- register char *argument3)
+ char *command_path,
+ char *argument1,
+ char *argument2,
+ char *argument3)
{
static char *pname = "RunFileCommand";
- register int child; /* process id of command process */
- register int wait_return; /* return value from wait */
+ int child; /* process id of command process */
+ int wait_return; /* return value from wait */
int exit_value; /* command exit value */
- register char *command_name; /* pointer to the command name */
- register int i;
+ char *command_name; /* pointer to the command name */
+ int i;
void (*oldSig)();
/* prepare to catch the command termination */
char *
_DtPName(
- register char *name )
+ char *name )
{
- register char * q;
+ char * q;
static char pnam[MAXPATHLEN];
static char dot[] = ".";
Boolean
_DtStringsAreEquivalent(
- register char *in_str,
- register char *test_str )
+ char *in_str,
+ char *test_str )
{
#ifdef NLS16
wchar_t c1;
wchar_t c2;
int c1size, c2size;
#endif
- register int i;
- register int j;
+ int i;
+ int j;
#ifdef NLS16
if (is_multibyte)
static void
RenameCollisions( char ** list, int count )
{
- register int i, j, k, l;
+ int i, j, k, l;
char flg = 0, flg2 = 0;
for( i = 0; i < count; ++i )
String string) ;
extern char * _DtPName(
- register char *name) ;
+ char *name) ;
extern char * _DtFollowLink(
char * path) ;
extern Boolean _DtStringsAreEquivalent(
- register char *in_str,
- register char *test_str) ;
+ char *in_str,
+ char *test_str) ;
extern void _DtDuplicateDialogNameList (
char ** nameList,
char ** newNameList,
static int RestoreObject(
Widget w,
int mode,
- register char *source,
- register char *target,
+ char *source,
+ char *target,
Boolean isContainer,
void (*errorHandler)(),
Boolean checkForBusyDir,
RestoreObject(
Widget w,
int mode,
- register char *source,
- register char *target,
+ char *source,
+ char *target,
Boolean isContainer,
void (*errorHandler)(),
Boolean checkForBusyDir,
/* Cannot put into sharedFuncs.h due to conflict with FileManip.c */
extern int Check(
- register char *spth,
- register char *dpth,
+ char *spth,
+ char *dpth,
int mode);
/*--------------------------------------------------------------------