summaryrefslogtreecommitdiff
path: root/libgphoto2/gphoto2-camera.c
diff options
context:
space:
mode:
authorArnaud Launay <asl@launay.org>2002-12-22 11:17:00 +0000
committerArnaud Launay <asl@launay.org>2002-12-22 11:17:00 +0000
commit88c893af19eda856a67936e507b76c655c4001d1 (patch)
treeeb8858e13a65f911401d5e14db588270b0b3f7bb /libgphoto2/gphoto2-camera.c
parentb9d58ca88b4f20b1541b8d47d17107734072053e (diff)
downloadlibgphoto2-88c893af19eda856a67936e507b76c655c4001d1.tar.gz
Seems I've been too violent with �
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5978 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'libgphoto2/gphoto2-camera.c')
-rw-r--r--libgphoto2/gphoto2-camera.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/libgphoto2/gphoto2-camera.c b/libgphoto2/gphoto2-camera.c
index 0030c0c23..7f1b8f7a4 100644
--- a/libgphoto2/gphoto2-camera.c
+++ b/libgphoto2/gphoto2-camera.c
@@ -61,12 +61,12 @@
#define CAMERA_UNUSED(c,ctx) \
{ \
- ©->pc->used--; \
- if (!©->pc->used) { \
- if (©->pc->exit_requested) \
- gp_camera_exit (©, (ctx)); \
- if (!©->pc->ref_count) \
- gp_camera_free ©; \
+ (c)->pc->used--; \
+ if (!(c)->pc->used) { \
+ if ((c)->pc->exit_requested) \
+ gp_camera_exit ((c), (ctx)); \
+ if (!(c)->pc->ref_count) \
+ gp_camera_free (c); \
} \
}
@@ -81,11 +81,11 @@
gp_context_error ((ctx), _("An error occurred " \
"in the io-library ('%s'): %s"), \
gp_port_result_as_string (r), \
- © ? gp_port_get_error (©->port) : \
+ (c) ? gp_port_get_error ((c)->port) : \
_("No additional information " \
"available.")); \
- if © \
- CAMERA_UNUSED(©,(ctx)); \
+ if (c) \
+ CAMERA_UNUSED((c),(ctx)); \
return (r); \
} \
}
@@ -123,15 +123,15 @@
{ \
int r; \
\
- if (strcmp (©->pc->a.model,"Directory Browse")) { \
- r = gp_port_open (©->port); \
+ if (strcmp ((c)->pc->a.model,"Directory Browse")) { \
+ r = gp_port_open ((c)->port); \
if (r < 0) { \
CAMERA_UNUSED (c,ctx); \
return (r); \
} \
} \
- if (©->functions->pre_func) { \
- r = ©->functions->pre_func (c,ctx); \
+ if ((c)->functions->pre_func) { \
+ r = (c)->functions->pre_func (c,ctx); \
if (r < 0) { \
CAMERA_UNUSED (c,ctx); \
return (r); \
@@ -143,8 +143,8 @@
{ \
int r; \
\
- if (©->functions->pre_func) { \
- r = ©->functions->pre_func (c,ctx); \
+ if ((c)->functions->pre_func) { \
+ r = (c)->functions->pre_func (c,ctx); \
if (r < 0) { \
CAMERA_UNUSED (c,ctx); \
return (r); \
@@ -158,10 +158,10 @@
{ \
int r; \
\
- if (strcmp (©->pc->a.model,"Directory Browse")) \
- gp_port_close (©->port); \
- if (©->functions->post_func) { \
- r = ©->functions->post_func (c,ctx); \
+ if (strcmp ((c)->pc->a.model,"Directory Browse")) \
+ gp_port_close ((c)->port); \
+ if ((c)->functions->post_func) { \
+ r = (c)->functions->post_func (c,ctx); \
if (r < 0) { \
CAMERA_UNUSED (c,ctx); \
return (r); \
@@ -173,8 +173,8 @@
{ \
int r; \
\
- if (©->functions->post_func) { \
- r = ©->functions->post_func (c,ctx); \
+ if ((c)->functions->post_func) { \
+ r = (c)->functions->post_func (c,ctx); \
if (r < 0) { \
CAMERA_UNUSED (c,ctx); \
return (r); \
@@ -210,9 +210,9 @@
#define CHECK_INIT(c,ctx) \
{ \
- ©->pc->used++; \
- if (!©->pc->lh) \
- CR(©, gp_camera_init (c, ctx), ctx); \
+ (c)->pc->used++; \
+ if (!(c)->pc->lh) \
+ CR((c), gp_camera_init (c, ctx), ctx); \
}
struct _CameraPrivateCore {