After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 791843 - Replace #ifdef with #pragma once
Replace #ifdef with #pragma once
Status: RESOLVED FIXED
Product: bijiben
Classification: Applications
Component: general
3.27.x
Other Linux
: Normal normal
: ---
Assigned To: Bijiben maintainer(s)
Bijiben maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-12-21 13:38 UTC by Isaque Galdino
Modified: 2017-12-27 03:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
h-files: Adopt #pragma once (27.73 KB, patch)
2017-12-27 03:00 UTC, Isaque Galdino
none Details | Review
h-files: Adopt #pragma once (27.79 KB, patch)
2017-12-27 03:13 UTC, Isaque Galdino
committed Details | Review

Description Isaque Galdino 2017-12-21 13:38:49 UTC
In order to modernize code, we need to replace all instances of:

#ifndef _FOO_H
#define _FOO_H
...
#endif /*_FOO_H*/

by

#pragma once
Comment 1 Isaque Galdino 2017-12-27 03:00:22 UTC
Created attachment 365997 [details] [review]
h-files: Adopt #pragma once

In order to modernize code, we have to change all *.h files to use:

instead of:

...

It will so make code easier to read. This patch does that.
Comment 2 Isaque Galdino 2017-12-27 03:13:05 UTC
Created attachment 365998 [details] [review]
h-files: Adopt #pragma once

In order to modernize code, we have to change all *.h files to use:
#pragma once

instead of:
#ifndef _FOO_H
#define _FOO_H
...
#endif /*_FOO_H*/

It will also make code easier to read. This patch does that.
Comment 3 Mohammed Sadiq 2017-12-27 03:22:33 UTC
Review of attachment 365998 [details] [review]:

lgtm
Comment 4 Isaque Galdino 2017-12-27 03:27:42 UTC
Review of attachment 365998 [details] [review]:

Commited, thx.