All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cocci] hi all, how to match the args in function
@ 2014-01-02  8:27 林嘉(程二 福州)
       [not found] ` <alpine.DEB.2.02.1401020939060.2182@localhost6.localdomain6>
  0 siblings, 1 reply; 53+ messages in thread
From: 林嘉(程二 福州) @ 2014-01-02  8:27 UTC (permalink / raw)
  To: cocci

I just began to learn cocci recently.
How to write a patch match the following?

Void func1(int s, bri_vlan_set_t t, char x)  yes
Void func2(int s,  char x)  no
Void func3(int s, bri_vlan_set_t t) yes

bri_vlan_set_t is defined type

I wrote:

@@
identifier fn, vp;
typedef bri_vlan_set_t;
@@
-fn(...bri_vlan_set_t vp...)

But it reports

Fatal error: exception Failure("minus: parse error:
 = File "r.cocci", line 5, column 7,  charpos = 60
    around = 'bri_vlan_set_t', whole content = -fn(...bri_vlan_set_t vp...)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://systeme.lip6.fr/pipermail/cocci/attachments/20140102/cfded7ef/attachment.html>

^ permalink raw reply	[flat|nested] 53+ messages in thread

end of thread, other threads:[~2014-02-18  9:00 UTC | newest]

Thread overview: 53+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-02  8:27 [Cocci] hi all, how to match the args in function 林嘉(程二 福州)
     [not found] ` <alpine.DEB.2.02.1401020939060.2182@localhost6.localdomain6>
     [not found]   ` <041CF35939B5534D851F16C30DD0B8CF727F485B@fzex.ruijie.com.cn>
2014-01-02  9:16     ` [Cocci] 答复: " Julia Lawall
     [not found]       ` <041CF35939B5534D851F16C30DD0B8CF727F488A@fzex.ruijie.com.cn>
2014-01-02  9:33         ` [Cocci] 答复: " Julia Lawall
2014-01-02 10:04           ` [Cocci] 答复: " 林嘉(程二 福州)
2014-01-02 10:18             ` Julia Lawall
2014-01-02 12:57               ` [Cocci] 答复: " 林嘉(程二 福州)
2014-01-02 13:20                 ` Julia Lawall
2014-01-03  0:41                   ` [Cocci] 答复: " 林嘉(程二 福州)
2014-01-03  6:09                     ` Julia Lawall
2014-01-21  3:24                       ` [Cocci] how to match this case? 林嘉(程二 福州)
2014-01-21  3:34                         ` Julia Lawall
2014-01-21  3:46                           ` [Cocci] 答复: " 林嘉(程二 福州)
2014-01-21  5:52                           ` 林嘉(程二 福州)
2014-01-21  6:32                             ` Julia Lawall
2014-01-21  6:43                               ` [Cocci] 答复: " 林嘉(程二 福州)
2014-01-21  7:04                                 ` [Cocci] 答复: " 林嘉(程二 福州)
2014-01-21  7:48                                   ` Julia Lawall
2014-01-21  9:11                                     ` [Cocci] infinitly loop in spatch? 林嘉(程二 福州)
2014-01-21  9:22                                       ` Julia Lawall
2014-01-26  7:10                                         ` [Cocci] how to write such matching case? 林嘉(程二 福州)
2014-01-26 11:19                                           ` Julia Lawall
2014-01-27  0:40                                             ` [Cocci] 答复: " 林嘉(程二 福州)
2014-01-27 12:34                                               ` Julia Lawall
2014-01-27  1:34                                             ` 林嘉(程二 福州)
2014-01-27 12:33                                               ` Julia Lawall
2014-01-27 13:55                                                 ` [Cocci] 答复: " 林嘉(程二 福州)
2014-01-27 14:11                                                   ` Peter Senna Tschudin
2014-01-27 16:07                                                     ` Julia Lawall
2014-01-28  2:22                                                     ` [Cocci] 答复: " 林嘉(程二 福州)
2014-01-28  7:24                                                       ` Julia Lawall
2014-02-12  2:34                                                         ` [Cocci] 答复: " 林嘉(程二 福州)
2014-02-12  6:22                                                           ` Julia Lawall
2014-02-14  7:57                                                             ` [Cocci] Fatal error: exception Failure("no python") 林嘉(程二 福州)
2014-02-14  8:56                                                               ` Julia Lawall
2014-02-14 12:39                                                                 ` [Cocci] 答复: " 林嘉(程二 福州)
2014-02-14  9:51                                                               ` [Cocci] " Nicolas Palix
2014-02-14 12:43                                                                 ` [Cocci] 答复: " 林嘉(程二 福州)
2014-02-14 12:58                                                                   ` Julia Lawall
2014-02-15  2:30                                                                     ` [Cocci] 答复: " 林嘉(程二 福州)
2014-02-15  6:18                                                                       ` Julia Lawall
2014-02-17  1:27                                                                         ` [Cocci] 答复: " 林嘉(程二 福州)
2014-02-17  9:38                                                                           ` Julia Lawall
2014-02-17 12:49                                                                           ` Arie Middelkoop
2014-02-17 12:51                                                                             ` Julia Lawall
2014-02-17  5:45                                                                         ` [Cocci] what is the function of 'position' in SMPL 林嘉(程二 福州)
2014-02-17 13:34                                                                           ` Peter Senna Tschudin
2014-02-18  7:26                                                                             ` [Cocci] 答复: " 林嘉(程二 福州)
2014-02-18  7:33                                                                               ` Julia Lawall
2014-02-18  7:34                                                                               ` Julia Lawall
2014-02-18  7:56                                                                                 ` [Cocci] 答复: " 林嘉(程二 福州)
2014-02-18  9:00                                                                                   ` Julia Lawall
2014-01-21  7:48                                 ` [Cocci] 答复: 答复: how to match this case? Julia Lawall
2014-01-21 16:42                         ` [Cocci] " Julia Lawall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.