Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
46308629
Commit
46308629
authored
Jan 09, 2015
by
vvaltman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fixes
parent
d74db187
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
7 deletions
+10
-7
Makefile.in
Makefile.in
+4
-3
Makefile.tgl
Makefile.tgl
+2
-2
interface.c
interface.c
+3
-1
tgl
tgl
+1
-1
No files found.
Makefile.in
View file @
46308629
...
...
@@ -21,9 +21,6 @@ EXE_LIST=${EXE}/telegram-cli
TG_OBJECTS
=
${
OBJ
}
/main.o
${
OBJ
}
/loop.o
${
OBJ
}
/interface.o
${
OBJ
}
/lua-tg.o
DEPENDENCE
=
$
(
subst
${
OBJ
}
/,
${
DEP
}
/,
$
(
patsubst %.o,%.d,
${
OBJ_LIST
}
))
DEPENDENCE_LIST
=
${
DEPENDENCE
}
INCLUDE
=
-I
.
-I
${
srcdir
}
CC
=
@CC@
...
...
@@ -42,6 +39,10 @@ include ${srcdir}/Makefile.tgl
${DIR_LIST}
:
@
test
-d
$@
||
mkdir
-p
$@
OBJ_LIST
=
${
TG_OBJECTS
}
${
TGL_OBJECTS
}
${
TGL_COMMON_OBJECTS
}
${
GENERATE_OBJECTS
}
${
TL_PARSER_OBJECTS
}
DEPENDENCE
=
$
(
subst
${
OBJ
}
/,
${
DEP
}
/,
$
(
patsubst %.o,%.d,
${
OBJ_LIST
}
))
DEPENDENCE_LIST
=
${
DEPENDENCE
}
-include
${DEPENDENCE_LIST}
${TG_OBJECTS}
:
${OBJ}/%.o: ${srcdir}/%.c | create_dirs_and_headers
...
...
Makefile.tgl
View file @
46308629
TGL_OBJECTS
=
${
OBJ
}
/mtproto-common.o
${
OBJ
}
/mtproto-client.o
${
OBJ
}
/queries.o
${
OBJ
}
/structures.o
${
OBJ
}
/binlog.o
${
OBJ
}
/tgl.o
${
OBJ
}
/updates.o
${
OBJ
}
/tgl-net.o
${
OBJ
}
/tgl-timers.o
${
OBJ
}
/tg-mime-types.o
TGL_OBJECTS
=
${
OBJ
}
/mtproto-common.o
${
OBJ
}
/mtproto-client.o
${
OBJ
}
/queries.o
${
OBJ
}
/structures.o
${
OBJ
}
/binlog.o
${
OBJ
}
/tgl.o
${
OBJ
}
/updates.o
${
OBJ
}
/tgl-net.o
${
OBJ
}
/tgl-timers.o
${
OBJ
}
/tg-mime-types.o
${
OBJ
}
/mtproto-utils.o
TLD_OBJECTS
=
${
OBJ
}
/dump-tl-file.o
GENERATE_OBJECTS
=
${
OBJ
}
/generate.o
TGL_COMMON_OBJECTS
=
${
OBJ
}
/tools.o
...
...
@@ -27,7 +27,7 @@ ${EXE}/generate: ${GENERATE_OBJECTS} ${TGL_COMMON_OBJECTS}
${AUTO}/scheme.tlo
:
${AUTO}/scheme.tl ${EXE}/tl-parser
${
EXE
}
/tl-parser
-e
$@
${
AUTO
}
/scheme.tl
${AUTO}/scheme.tl
:
${srcdir}/tgl/scheme.tl ${srcdir}/tgl/encrypted_scheme.tl ${srcdir}/tgl/binlog.tl ${srcdir}/tgl/append.tl | ${AUTO}
${AUTO}/scheme.tl
:
${srcdir}/tgl/scheme.tl ${srcdir}/tgl/encrypted_scheme.tl ${srcdir}/tgl/binlog.tl ${srcdir}/tgl/append.tl
${srcdir}/tgl/mtproto.tl
| ${AUTO}
cat
$^
>
$@
${AUTO}/scheme2.tl
:
${AUTO}/scheme.tl ${EXE}/tl-parser
...
...
interface.c
View file @
46308629
...
...
@@ -1603,7 +1603,9 @@ void print_chat_info_gw (struct tgl_state *TLSR, void *extra, int success, struc
void
print_user_status
(
struct
tgl_user_status
*
S
,
struct
in_ev
*
ev
)
{
if
(
S
->
online
>
0
)
{
mprintf
(
ev
,
"online"
);
mprintf
(
ev
,
"online (was online "
);
print_date_full
(
ev
,
S
->
when
);
mprintf
(
ev
,
")"
);
}
else
{
if
(
S
->
online
==
0
)
{
mprintf
(
ev
,
"offline"
);
...
...
tgl
@
0205b668
Subproject commit
be0fb0335bf68c07202f6dd24825db65a4ea1e5
9
Subproject commit
0205b668d3abcf35a348556776d1180439d115d
9
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment