mirror of https://github.com/neutrinolabs/xrdp
commit
4f8301f38a
|
@ -194,8 +194,8 @@ jobs:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
# This is required to use a version of astyle other than that
|
# This is required to use a version of astyle other than that
|
||||||
# supplied with the operating system
|
# supplied with the operating system
|
||||||
ASTYLE_VER: 3.1
|
ASTYLE_VER: 3.4.12
|
||||||
ASTYLE_REPO: https://svn.code.sf.net/p/astyle/code/tags
|
ASTYLE_REPO: https://gitlab.com/saalen/astyle.git
|
||||||
steps:
|
steps:
|
||||||
# Set steps.os.outputs.image to the specific OS (e.g. 'ubuntu20')
|
# Set steps.os.outputs.image to the specific OS (e.g. 'ubuntu20')
|
||||||
- name: Get operating system name and version.
|
- name: Get operating system name and version.
|
||||||
|
|
|
@ -19,13 +19,13 @@
|
||||||
--convert-tabs
|
--convert-tabs
|
||||||
|
|
||||||
# requires --convert-tabs to work properly
|
# requires --convert-tabs to work properly
|
||||||
--indent-preprocessor
|
--indent-preproc-define
|
||||||
|
|
||||||
--indent-col1-comments
|
--indent-col1-comments
|
||||||
|
|
||||||
--min-conditional-indent=2
|
--min-conditional-indent=2
|
||||||
|
|
||||||
--max-instatement-indent=40
|
--max-continuation-indent=40
|
||||||
|
|
||||||
# Insert space padding around operators.
|
# Insert space padding around operators.
|
||||||
--pad-oper
|
--pad-oper
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
|
|
||||||
|
|
||||||
# Add brackets to unbracketed one line conditional statements (e.g. 'if', 'for', 'while'...).
|
# Add brackets to unbracketed one line conditional statements (e.g. 'if', 'for', 'while'...).
|
||||||
--add-brackets
|
--add-braces
|
||||||
|
|
||||||
--align-pointer=name
|
--align-pointer=name
|
||||||
|
|
||||||
|
|
|
@ -613,14 +613,14 @@ in_utf16_le_terminated_as_utf8_length(struct stream *s);
|
||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
_v = \
|
_v = \
|
||||||
(tui64)(*((unsigned char *)_s->p)) | \
|
(tui64)(*((unsigned char *)_s->p)) | \
|
||||||
(((tui64) (*(((unsigned char *)_s->p) + 1))) << 8) | \
|
(((tui64) (*(((unsigned char *)_s->p) + 1))) << 8) | \
|
||||||
(((tui64) (*(((unsigned char *)_s->p) + 2))) << 16) | \
|
(((tui64) (*(((unsigned char *)_s->p) + 2))) << 16) | \
|
||||||
(((tui64) (*(((unsigned char *)_s->p) + 3))) << 24) | \
|
(((tui64) (*(((unsigned char *)_s->p) + 3))) << 24) | \
|
||||||
(((tui64) (*(((unsigned char *)_s->p) + 4))) << 32) | \
|
(((tui64) (*(((unsigned char *)_s->p) + 4))) << 32) | \
|
||||||
(((tui64) (*(((unsigned char *)_s->p) + 5))) << 40) | \
|
(((tui64) (*(((unsigned char *)_s->p) + 5))) << 40) | \
|
||||||
(((tui64) (*(((unsigned char *)_s->p) + 6))) << 48) | \
|
(((tui64) (*(((unsigned char *)_s->p) + 6))) << 48) | \
|
||||||
(((tui64) (*(((unsigned char *)_s->p) + 7))) << 56); \
|
(((tui64) (*(((unsigned char *)_s->p) + 7))) << 56); \
|
||||||
_s->p += 8; \
|
_s->p += 8; \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
|
|
@ -2655,7 +2655,7 @@ PREFIX (_selfcheck) (region_type_t *reg)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
box_type_t *pbox_p, * pbox_n;
|
box_type_t *pbox_p, *pbox_n;
|
||||||
box_type_t box;
|
box_type_t box;
|
||||||
|
|
||||||
pbox_p = PIXREGION_RECTS (reg);
|
pbox_p = PIXREGION_RECTS (reg);
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
#define CRC_INIT 0xFFFF
|
#define CRC_INIT 0xFFFF
|
||||||
#define CRC(_crcval, _newchar) _crcval = \
|
#define CRC(_crcval, _newchar) _crcval = \
|
||||||
((_crcval) >> 8) ^ g_crc_table[((_crcval) ^ (_newchar)) & 0x00ff]
|
((_crcval) >> 8) ^ g_crc_table[((_crcval) ^ (_newchar)) & 0x00ff]
|
||||||
|
|
||||||
/* CRC16 defs */
|
/* CRC16 defs */
|
||||||
static const tui16 g_crc_table[256] =
|
static const tui16 g_crc_table[256] =
|
||||||
|
|
|
@ -1945,7 +1945,7 @@ lfreerdp_pre_connect(freerdp *instance)
|
||||||
(mod->client_info.rail_support_level > 0))
|
(mod->client_info.rail_support_level > 0))
|
||||||
{
|
{
|
||||||
instance->settings->performance_flags |= (PERF_DISABLE_WALLPAPER |
|
instance->settings->performance_flags |= (PERF_DISABLE_WALLPAPER |
|
||||||
PERF_DISABLE_FULLWINDOWDRAG);
|
PERF_DISABLE_FULLWINDOWDRAG);
|
||||||
LOG(LOG_LEVEL_DEBUG, "Add in performance setting for Railsupport:"
|
LOG(LOG_LEVEL_DEBUG, "Add in performance setting for Railsupport:"
|
||||||
"[0x%08x]", PERF_DISABLE_WALLPAPER |
|
"[0x%08x]", PERF_DISABLE_WALLPAPER |
|
||||||
PERF_DISABLE_FULLWINDOWDRAG);
|
PERF_DISABLE_FULLWINDOWDRAG);
|
||||||
|
|
|
@ -15,8 +15,8 @@ INSTALL_ROOT=~/astyle.local
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
echo "** Usage: $0 <svn-tags-url> <tag-name>"
|
echo "** Usage: $0 <git-repo> <version-tag>"
|
||||||
echo " e.g. $0 https://svn.code.sf.net/p/astyle/code/tags 3.1"
|
echo " e.g. $0 https://gitlab.com/saalen/astyle.git 3.4.12"
|
||||||
} >&2
|
} >&2
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
|
@ -80,9 +80,8 @@ fi
|
||||||
# Put everything in this directory
|
# Put everything in this directory
|
||||||
FILESDIR=$INSTALL_ROOT/$ASTYLE_VER
|
FILESDIR=$INSTALL_ROOT/$ASTYLE_VER
|
||||||
|
|
||||||
svn checkout ${REPO_URL}/${ASTYLE_VER}/AStyle "$workdir"
|
git clone -b "${ASTYLE_VER}" --depth 1 ${REPO_URL} "$workdir"
|
||||||
|
cd "$workdir"/AStyle
|
||||||
cd "$workdir"
|
|
||||||
|
|
||||||
make_args="DESTDIR=$FILESDIR"
|
make_args="DESTDIR=$FILESDIR"
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# Note: the script must be run from the root directory of the xrdp repository
|
# Note: the script must be run from the root directory of the xrdp repository
|
||||||
|
|
||||||
INSTALL_ROOT=~/astyle.local
|
INSTALL_ROOT=~/astyle.local
|
||||||
ASTYLE_FROM_XRDP=$INSTALL_ROOT/3.1/usr/bin/astyle
|
ASTYLE_FROM_XRDP=$INSTALL_ROOT/3.4.12/usr/bin/astyle
|
||||||
MIN_ASTYLE_VER="3.1"
|
MIN_ASTYLE_VER="3.1"
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
|
|
|
@ -1390,9 +1390,9 @@ devredir_get_dir_listing(struct state_dirscan *fusep, tui32 device_id,
|
||||||
CreateDisposition = CD_FILE_OPEN;
|
CreateDisposition = CD_FILE_OPEN;
|
||||||
|
|
||||||
rval = devredir_send_drive_create_request(device_id, irp->pathname,
|
rval = devredir_send_drive_create_request(device_id, irp->pathname,
|
||||||
DesiredAccess, CreateOptions,
|
DesiredAccess, CreateOptions,
|
||||||
0, CreateDisposition,
|
0, CreateDisposition,
|
||||||
irp->CompletionId);
|
irp->CompletionId);
|
||||||
|
|
||||||
LOG_DEVEL(LOG_LEVEL_DEBUG, "looking for device_id=%d path=%s", device_id, irp->pathname);
|
LOG_DEVEL(LOG_LEVEL_DEBUG, "looking for device_id=%d path=%s", device_id, irp->pathname);
|
||||||
|
|
||||||
|
@ -1457,10 +1457,10 @@ devredir_lookup_entry(struct state_lookup *fusep, tui32 device_id,
|
||||||
device_id, irp->pathname, irp->CompletionId);
|
device_id, irp->pathname, irp->CompletionId);
|
||||||
|
|
||||||
rval = devredir_send_drive_create_request(device_id,
|
rval = devredir_send_drive_create_request(device_id,
|
||||||
irp->pathname,
|
irp->pathname,
|
||||||
DesiredAccess, CreateOptions,
|
DesiredAccess, CreateOptions,
|
||||||
0, CreateDisposition,
|
0, CreateDisposition,
|
||||||
irp->CompletionId);
|
irp->CompletionId);
|
||||||
}
|
}
|
||||||
|
|
||||||
return rval;
|
return rval;
|
||||||
|
@ -1526,10 +1526,10 @@ devredir_setattr_for_entry(struct state_setattr *fusep, tui32 device_id,
|
||||||
device_id, irp->pathname);
|
device_id, irp->pathname);
|
||||||
|
|
||||||
rval = devredir_send_drive_create_request(device_id,
|
rval = devredir_send_drive_create_request(device_id,
|
||||||
irp->pathname,
|
irp->pathname,
|
||||||
DesiredAccess, CreateOptions,
|
DesiredAccess, CreateOptions,
|
||||||
0, CreateDisposition,
|
0, CreateDisposition,
|
||||||
irp->CompletionId);
|
irp->CompletionId);
|
||||||
}
|
}
|
||||||
|
|
||||||
return rval;
|
return rval;
|
||||||
|
@ -1578,10 +1578,10 @@ devredir_file_create(struct state_create *fusep, tui32 device_id,
|
||||||
CreateDisposition = 0x02; /* got this value from windows */
|
CreateDisposition = 0x02; /* got this value from windows */
|
||||||
|
|
||||||
rval = devredir_send_drive_create_request(device_id, path,
|
rval = devredir_send_drive_create_request(device_id, path,
|
||||||
DesiredAccess, CreateOptions,
|
DesiredAccess, CreateOptions,
|
||||||
FileAttributes,
|
FileAttributes,
|
||||||
CreateDisposition,
|
CreateDisposition,
|
||||||
irp->CompletionId);
|
irp->CompletionId);
|
||||||
}
|
}
|
||||||
|
|
||||||
return rval;
|
return rval;
|
||||||
|
@ -1640,10 +1640,10 @@ devredir_file_open(struct state_open *fusep, tui32 device_id,
|
||||||
CreateDisposition = CD_FILE_OPEN; // WAS 1
|
CreateDisposition = CD_FILE_OPEN; // WAS 1
|
||||||
|
|
||||||
rval = devredir_send_drive_create_request(device_id, path,
|
rval = devredir_send_drive_create_request(device_id, path,
|
||||||
DesiredAccess, CreateOptions,
|
DesiredAccess, CreateOptions,
|
||||||
FileAttributes,
|
FileAttributes,
|
||||||
CreateDisposition,
|
CreateDisposition,
|
||||||
irp->CompletionId);
|
irp->CompletionId);
|
||||||
}
|
}
|
||||||
|
|
||||||
return rval;
|
return rval;
|
||||||
|
@ -1720,9 +1720,9 @@ devredir_rmdir_or_file(struct state_remove *fusep, tui32 device_id,
|
||||||
CreateDisposition = 0x01; /* got this value from windows */
|
CreateDisposition = 0x01; /* got this value from windows */
|
||||||
|
|
||||||
rval = devredir_send_drive_create_request(device_id, path,
|
rval = devredir_send_drive_create_request(device_id, path,
|
||||||
DesiredAccess, CreateOptions,
|
DesiredAccess, CreateOptions,
|
||||||
0, CreateDisposition,
|
0, CreateDisposition,
|
||||||
irp->CompletionId);
|
irp->CompletionId);
|
||||||
}
|
}
|
||||||
|
|
||||||
return rval;
|
return rval;
|
||||||
|
@ -1898,10 +1898,10 @@ int devredir_file_rename(struct state_rename *fusep, tui32 device_id,
|
||||||
CreateDisposition = CD_FILE_OPEN; // WAS 1
|
CreateDisposition = CD_FILE_OPEN; // WAS 1
|
||||||
|
|
||||||
rval = devredir_send_drive_create_request(device_id, old_name,
|
rval = devredir_send_drive_create_request(device_id, old_name,
|
||||||
DesiredAccess, CreateOptions,
|
DesiredAccess, CreateOptions,
|
||||||
FileAttributes,
|
FileAttributes,
|
||||||
CreateDisposition,
|
CreateDisposition,
|
||||||
irp->CompletionId);
|
irp->CompletionId);
|
||||||
}
|
}
|
||||||
|
|
||||||
return rval;
|
return rval;
|
||||||
|
|
Loading…
Reference in New Issue