Jump to content


Photo

can make a patch to a file .h or just cpp?


  • Please log in to reply
3 replies to this topic

#1 blinkosm

  • Senior Member
  • 144 posts

+1
Neutral

Posted 21 January 2018 - 20:53

i wonder if i can make a patch to just  a file .h (header) or not , or i must make a patch to exemple.h and exemple.ccp ???

 



Re: can make a patch to a file .h or just cpp? #2 blinkosm

  • Senior Member
  • 144 posts

+1
Neutral

Posted 21 January 2018 - 21:14

an exemple:

 

--- epg.h    2018-01-21 19:54:26.000000000 +0000
+++ epg1.h    2018-01-21 19:55:32.000000000 +0000
@@ -43,7 +43,7 @@
 #include <lib/python/python.h>
 
 #define CLEAN_INTERVAL 60000    //  1 min
-#define UPDATE_INTERVAL 3600000  // 60 min
+#define UPDATE_INTERVAL 30000  // 1 min
 #define ZAP_DELAY 2000          // 2 sek
 
 #define HILO(x) (x##_hi << 8 | x##_lo)
 

 is that ok ???



Re: can make a patch to a file .h or just cpp? #3 Persian Prince

  • Senior Member
  • 1,982 posts

+247
Excellent

Posted 22 January 2018 - 07:10

The answer to your question is a big YES, You can patch any source file but I didn't check your code and I don't know what you want to do exactly ;)

Open Vision sources: https://github.com/OpenVisionE2


Re: can make a patch to a file .h or just cpp? #4 blinkosm

  • Senior Member
  • 144 posts

+1
Neutral

Posted 22 January 2018 - 07:44

here is the code , and i wanna make change in :

 

44 #define UPDATE_INTERVAL 3600000  // 60 min

 

#define UPDATE_INTERVAL 600000  // 1 min

Attached Files




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users