summaryrefslogtreecommitdiff
path: root/src/helper/jim.h
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:49:06 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:49:06 +0000
commitc493543fc93cb693abab3146e08314b63d137470 (patch)
treeb6cf56fb5a2cc0d0f7460bae8bd3acec8ceca6f8 /src/helper/jim.h
parentdc575dc5bf8cb597a0e9a47794744ae6b1928087 (diff)
downloadopenocd+libswd-c493543fc93cb693abab3146e08314b63d137470.tar.gz
openocd+libswd-c493543fc93cb693abab3146e08314b63d137470.tar.bz2
openocd+libswd-c493543fc93cb693abab3146e08314b63d137470.tar.xz
openocd+libswd-c493543fc93cb693abab3146e08314b63d137470.zip
- Replace '){' with ') {'.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2378 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper/jim.h')
-rw-r--r--src/helper/jim.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/helper/jim.h b/src/helper/jim.h
index 57c1e4d7..2b96c981 100644
--- a/src/helper/jim.h
+++ b/src/helper/jim.h
@@ -985,19 +985,19 @@ typedef struct jim_getopt {
*
* Jim_GetOpt_Setup(&goi, interp, argc, argv);
*
- * while (goi.argc){
+ * while (goi.argc) {
* e = Jim_GetOpt_Nvp(&goi, nvp_options, &n);
- * if (e != JIM_OK){
+ * if (e != JIM_OK) {
* Jim_GetOpt_NvpUnknown(&goi, nvp_options, 0);
* return e;
* }
*
- * switch (n->value){
+ * switch (n->value) {
* case ALIVE:
* printf("Option ALIVE specified\n");
* break;
* case FIRST:
- * if (goi.argc < 1){
+ * if (goi.argc < 1) {
* .. not enough args error ..
* }
* Jim_GetOpt_String(&goi, &cp, NULL);
@@ -1008,7 +1008,7 @@ typedef struct jim_getopt {
* break;
* case POLITICS:
* e = Jim_GetOpt_Nvp(&goi, nvp_politics, &n);
- * if (e != JIM_OK){
+ * if (e != JIM_OK) {
* Jim_GetOpt_NvpUnknown(&goi, nvp_politics, 1);
* return e;
* }
@@ -1102,21 +1102,21 @@ JIM_STATIC int JIM_API(Jim_GetOpt_Nvp)(Jim_GetOptInfo *goi, const Jim_Nvp *looku
* Example:
* \code
*
- * while (goi.argc){
+ * while (goi.argc) {
* // Get the next option
* e = Jim_GetOpt_Nvp(&goi, cmd_options, &n);
- * if (e != JIM_OK){
+ * if (e != JIM_OK) {
* // option was not recognized
* // pass 'hadprefix = 0' because there is no prefix
* Jim_GetOpt_NvpUnknown(&goi, cmd_options, 0);
* return e;
* }
*
- * switch (n->value){
+ * switch (n->value) {
* case OPT_SEX:
* // handle: --sex male | female | lots | needmore
* e = Jim_GetOpt_Nvp(&goi, &nvp_sex, &n);
- * if (e != JIM_OK){
+ * if (e != JIM_OK) {
* Jim_GetOpt_NvpUnknown(&ogi, nvp_sex, 1);
* return e;
* }