Mercurial > pidgin
annotate plugins/Makefile.am @ 7667:30593bf56e71
[gaim-migrate @ 8311]
(23:56:25) shx: LSchiere: there's something wrong in my patch
(23:56:34) Luke: okay
(23:56:38) Luke: what's that
(23:57:45) shx: I forgot to add a '0' a the end of a string
(23:57:56) shx: in the gaim_mime_decode_field funcition
(23:59:35) Luke: where in that?
(00:00:16) shx: at the end, just before this
(00:00:18) shx: if (*unencoded_start)
(00:00:19) shx: n = strcpy(n, unencoded_start);
(00:00:27) shx: whould be this
(00:00:28) shx: *n = '\0';
(00:01:05) Luke: so you are just setting it to NULL
(00:01:53) Luke: i don't understand why you need that n set at all inside
that if, since you just return new on the next line down
(00:03:35) shx: I doing some test right now, but I remember I added that
because I had of some errors
(00:05:04) Luke: i think what you may be hitting is a functional work
around for not properly initializing variables, something that shouldn't
work but does. because you shouldn't need to set something just before you
return unless you are returning IT (or unless you are using staticly
declared memory, in which case you might concievably be using that variable
again when you next enter the function
(00:05:55) shx: no
(00:06:18) shx: n is a pointer to the end of the string, and changes as the
while goes on
(00:06:37) Luke: ah
(00:06:42) shx: n doesn't matter
(00:07:01) Luke: so should the *n = '\0' be inside the if or outside it?
(00:07:30) shx: before the if
(00:07:44) shx: *n = '\0';
(00:07:45) shx: if (*unencoded_start)
(00:07:45) shx: n = strcpy(n, unencoded_start);
(00:08:07) shx: in the case there is no *unencoded_start
committer: Tailor Script <tailor@pidgin.im>
| author | Luke Schierer <lschiere@pidgin.im> |
|---|---|
| date | Sun, 30 Nov 2003 05:10:24 +0000 |
| parents | 6373f8060d90 |
| children | 3eab6ac5e4a7 |
| rev | line source |
|---|---|
|
7016
aa619031193b
[gaim-migrate @ 7579]
Christian Hammond <chipx86@chipx86.com>
parents:
6997
diff
changeset
|
1 DIST_SUBDIRS = docklet gaim-remote gestures perl ssl tcl ticker |
|
5205
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
4687
diff
changeset
|
2 |
|
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
4687
diff
changeset
|
3 if USE_PERL |
|
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
4687
diff
changeset
|
4 PERL_DIR = perl |
|
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
4687
diff
changeset
|
5 endif |
|
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
4687
diff
changeset
|
6 |
| 6694 | 7 if USE_TCL |
| 8 TCL_DIR = tcl | |
| 9 endif | |
| 10 | |
|
7027
47cedda1518d
[gaim-migrate @ 7590]
Christian Hammond <chipx86@chipx86.com>
parents:
7016
diff
changeset
|
11 SUBDIRS = docklet gaim-remote gestures $(PERL_DIR) $(TCL_DIR) ssl ticker |
| 3391 | 12 |
|
4202
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
13 plugindir = $(libdir)/gaim |
|
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
14 |
|
5267
3cd24f012091
[gaim-migrate @ 5639]
Christian Hammond <chipx86@chipx86.com>
parents:
5239
diff
changeset
|
15 autorecon_la_LDFLAGS = -module -avoid-version |
| 6302 | 16 history_la_LDFLAGS = -module -avoid-version |
|
5267
3cd24f012091
[gaim-migrate @ 5639]
Christian Hammond <chipx86@chipx86.com>
parents:
5239
diff
changeset
|
17 iconaway_la_LDFLAGS = -module -avoid-version |
| 6302 | 18 idle_la_LDFLAGS = -module -avoid-version |
| 19 notify_la_LDFLAGS = -module -avoid-version | |
| 7543 | 20 relnot_la_LDFLAGS = -module -avoid-version |
|
5267
3cd24f012091
[gaim-migrate @ 5639]
Christian Hammond <chipx86@chipx86.com>
parents:
5239
diff
changeset
|
21 spellchk_la_LDFLAGS = -module -avoid-version |
| 6302 | 22 statenotify_la_LDFLAGS = -module -avoid-version |
|
5267
3cd24f012091
[gaim-migrate @ 5639]
Christian Hammond <chipx86@chipx86.com>
parents:
5239
diff
changeset
|
23 timestamp_la_LDFLAGS = -module -avoid-version |
|
4202
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
24 |
|
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
25 if PLUGINS |
|
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
26 |
|
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
27 plugin_LTLIBRARIES = \ |
|
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
28 autorecon.la \ |
| 6302 | 29 history.la \ |
|
4202
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
30 iconaway.la \ |
| 6302 | 31 idle.la \ |
| 32 notify.la \ | |
| 7543 | 33 relnot.la \ |
|
4202
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
34 spellchk.la \ |
| 6302 | 35 statenotify.la \ |
| 36 timestamp.la | |
|
5587
1c55b1540e18
[gaim-migrate @ 5991]
Christian Hammond <chipx86@chipx86.com>
parents:
5267
diff
changeset
|
37 |
|
5267
3cd24f012091
[gaim-migrate @ 5639]
Christian Hammond <chipx86@chipx86.com>
parents:
5239
diff
changeset
|
38 autorecon_la_SOURCES = autorecon.c |
| 6302 | 39 history_la_SOURCES = history.c |
|
5267
3cd24f012091
[gaim-migrate @ 5639]
Christian Hammond <chipx86@chipx86.com>
parents:
5239
diff
changeset
|
40 iconaway_la_SOURCES = iconaway.c |
| 6302 | 41 idle_la_SOURCES = idle.c |
| 42 notify_la_SOURCES = notify.c | |
| 7543 | 43 relnot_la_SOURCES = relnot.c |
|
5267
3cd24f012091
[gaim-migrate @ 5639]
Christian Hammond <chipx86@chipx86.com>
parents:
5239
diff
changeset
|
44 spellchk_la_SOURCES = spellchk.c |
| 6302 | 45 statenotify_la_SOURCES = statenotify.c |
|
5267
3cd24f012091
[gaim-migrate @ 5639]
Christian Hammond <chipx86@chipx86.com>
parents:
5239
diff
changeset
|
46 timestamp_la_SOURCES = timestamp.c |
|
4202
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
47 |
|
5205
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
4687
diff
changeset
|
48 endif # PLUGINS |
|
4202
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
49 |
|
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
50 EXTRA_DIST = \ |
|
6993
4e78ef5587e4
[gaim-migrate @ 7549]
Christian Hammond <chipx86@chipx86.com>
parents:
6694
diff
changeset
|
51 ChangeLog HOWTO \ |
| 6302 | 52 filectl.c \ |
| 53 mailchk.c \ | |
| 54 gtik.c \ | |
| 55 raw.c \ | |
|
6485
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6386
diff
changeset
|
56 signals-test.c \ |
| 6302 | 57 simple.c \ |
| 58 gaim.pl \ | |
|
7231
79e33c8ecf16
[gaim-migrate @ 7803]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7027
diff
changeset
|
59 fortuneprofile.pl \ |
|
79e33c8ecf16
[gaim-migrate @ 7803]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
7027
diff
changeset
|
60 Makefile.mingw |
|
4202
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
61 |
|
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
62 AM_CPPFLAGS = \ |
|
6360
2e23ccbccdec
[gaim-migrate @ 6864]
Christian Hammond <chipx86@chipx86.com>
parents:
6353
diff
changeset
|
63 -DDATADIR=\"$(datadir)\" \ |
|
4202
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
64 -DVERSION=\"$(VERSION)\" \ |
|
6360
2e23ccbccdec
[gaim-migrate @ 6864]
Christian Hammond <chipx86@chipx86.com>
parents:
6353
diff
changeset
|
65 -I$(top_srcdir)/src \ |
|
4202
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
66 $(DEBUG_CFLAGS) \ |
|
6360
2e23ccbccdec
[gaim-migrate @ 6864]
Christian Hammond <chipx86@chipx86.com>
parents:
6353
diff
changeset
|
67 $(GTK_CFLAGS) \ |
|
4202
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
68 $(PLUGIN_CFLAGS) |
|
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
69 |
|
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
70 # |
|
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
71 # This part allows people to build their own plugins in here. |
|
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
72 # Yes, it's a mess. |
|
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
73 # |
|
392
df5127560034
[gaim-migrate @ 402]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
391
diff
changeset
|
74 SUFFIXES = .c .so |
| 172 | 75 .c.so: |
|
6386
417f35ff8b3e
[gaim-migrate @ 6891]
Christian Hammond <chipx86@chipx86.com>
parents:
6371
diff
changeset
|
76 $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I$(top_srcdir) $(AM_CPPFLAGS) $(CFLAGS) -c $< -o tmp$@.lo $(PLUGIN_CFLAGS) |
|
2893
abf9303fb328
[gaim-migrate @ 2906]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2867
diff
changeset
|
77 $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o libtmp$@.la -rpath $(plugindir) tmp$@.lo $(LIBS) $(LDFLAGS) -module -avoid-version $(PLUGIN_LIBS) |
|
2342
b1050f14b429
[gaim-migrate @ 2355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2327
diff
changeset
|
78 @rm -f tmp$@.lo tmp$@.o libtmp$@.la |
|
2476
ec21ec04cdeb
[gaim-migrate @ 2489]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2473
diff
changeset
|
79 @cp .libs/libtmp$@.so* $@ |
|
2342
b1050f14b429
[gaim-migrate @ 2355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2327
diff
changeset
|
80 @rm -f .libs/libtmp$@.* |
