Re: Problem with vdr-1.4.4-1 and extrecmenu

Message ID 4572E433.3060706@gmx.de
State New
Headers

Commit Message

Udo Richter Dec. 3, 2006, 2:50 p.m. UTC
  Klaus Schmidinger wrote:
> Add the line
> 
> #define uint64 uint64_t
> 
> to VDR/tools.h.
> 
> I'll add this in the next maintenance patch, too.
> In the long run all plugins should change this to uint64_t, though.

better, re-add it as typedef as it was before. Attached.

Cheers,

Udo
  

Comments

Klaus Schmidinger Dec. 3, 2006, 2:53 p.m. UTC | #1
Udo Richter wrote:
> Klaus Schmidinger wrote:
>> Add the line
>>
>> #define uint64 uint64_t
>>
>> to VDR/tools.h.
>>
>> I'll add this in the next maintenance patch, too.
>> In the long run all plugins should change this to uint64_t, though.
> 
> better, re-add it as typedef as it was before. Attached.

I want to get rid of this completely, so it will be a #define
that, if possible, causes a compile time warning. And at some later
point I'll remove that #define.

Klaus
  
Matthias Schwarzott Dec. 3, 2006, 3:02 p.m. UTC | #2
On Sunday 03 December 2006 15:53, Klaus Schmidinger wrote:
> Udo Richter wrote:
> > Klaus Schmidinger wrote:
> >> Add the line
> >>
> >> #define uint64 uint64_t
> >>
> >> to VDR/tools.h.
> >>
> >> I'll add this in the next maintenance patch, too.
> >> In the long run all plugins should change this to uint64_t, though.
> >
> > better, re-add it as typedef as it was before. Attached.
>
> I want to get rid of this completely, so it will be a #define
> that, if possible, causes a compile time warning. And at some later
> point I'll remove that #define.
>
> Klaus
>

Why not just keep it away. I think it is not too hard to replace that in the 
plugins.

Matthias
  
Klaus Schmidinger Dec. 3, 2006, 3:04 p.m. UTC | #3
Matthias Schwarzott wrote:
> On Sunday 03 December 2006 15:53, Klaus Schmidinger wrote:
>> Udo Richter wrote:
>>> Klaus Schmidinger wrote:
>>>> Add the line
>>>>
>>>> #define uint64 uint64_t
>>>>
>>>> to VDR/tools.h.
>>>>
>>>> I'll add this in the next maintenance patch, too.
>>>> In the long run all plugins should change this to uint64_t, though.
>>> better, re-add it as typedef as it was before. Attached.
>> I want to get rid of this completely, so it will be a #define
>> that, if possible, causes a compile time warning. And at some later
>> point I'll remove that #define.
>>
>> Klaus
>>
> 
> Why not just keep it away. I think it is not too hard to replace that in the 
> plugins.
> 
> Matthias

You're probably right.
By the time I'll release the next maintenance patch I guess
all plugins will have been updated, anyway.

Klaus
  
Udo Richter Dec. 3, 2006, 3:17 p.m. UTC | #4
Klaus Schmidinger wrote:
> Matthias Schwarzott wrote:
>> Why not just keep it away. I think it is not too hard to replace that 
>> in the plugins.
> 
> You're probably right.
> By the time I'll release the next maintenance patch I guess
> all plugins will have been updated, anyway.

This strikes on the control plugin and the streamdev plugin, both rather 
un-maintained. Plus, plugin maintainers may need to make sure / test, 
that adapted plugins also compile on 1.4.4 and earlier, as this may need 
an additional #include <stdint.h> here and there.

What about keeping it for the 1.4.x cycle and dropping it in the first 
1.5.x version?

Cheers,

Udo
  
Klaus Schmidinger Dec. 3, 2006, 3:25 p.m. UTC | #5
Udo Richter wrote:
> Klaus Schmidinger wrote:
>> Matthias Schwarzott wrote:
>>> Why not just keep it away. I think it is not too hard to replace that 
>>> in the plugins.
>>
>> You're probably right.
>> By the time I'll release the next maintenance patch I guess
>> all plugins will have been updated, anyway.
> 
> This strikes on the control plugin and the streamdev plugin, both rather 
> un-maintained. Plus, plugin maintainers may need to make sure / test, 
> that adapted plugins also compile on 1.4.4 and earlier, as this may need 
> an additional #include <stdint.h> here and there.
> 
> What about keeping it for the 1.4.x cycle and dropping it in the first 
> 1.5.x version?

That's what I was heading at with the #define...

Klaus
  

Patch

--- tools.h.orig	2006-12-03 15:42:47.000000000 +0100
+++ tools.h	2006-12-03 15:42:49.756970280 +0100
@@ -23,6 +23,7 @@ 
 #include <sys/types.h>
 
 typedef unsigned char uchar;
+typedef uint64_t uint64;
 
 extern int SysLogLevel;