search for: get_word

Displaying 9 results from an estimated 9 matches for "get_word".

2011 May 19
2
Scheduling NUT 2.6.1
Fellows, time has come for a new NUT release: I'm planning on 2.6.1 next week (max Friday 27), and I'm currently processing remaining patches. If you have some more on your side, please send in. cheers, Arnaud -- Linux / Unix Expert R&D - Eaton - http://powerquality.eaton.com Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer -
2019 May 24
3
[PATCH] (vesa)menu.c32: Add support for BLS
...gt;devicetree); + bd->devicetree = refstrdup(skipspace(p + 10)); + } else if (looking_at(p, "architecture")) { + refstr_put(bd->architecture); + bd->architecture = refstrdup(skipspace(p + 12)); + } + } + + fclose(f); + + p = get_word(bls_sort_by, &sort_field); + while (sort_field && *sort_field != '\0') { + const char *sf = NULL; + + if (looking_at(sort_field, "title")) { + sf = bd->title; + } else if (looking_at(sort_field, "version")) { +...
2019 May 25
2
[PATCH] (vesa)menu.c32: Add support for BLS
...} else if (looking_at(p, "architecture")) { > > + refstr_put(bd->architecture); > > + bd->architecture = refstrdup(skipspace(p + 12)); > > + } > > + } > > + > > + fclose(f); > > + > > + p = get_word(bls_sort_by, &sort_field); > > + while (sort_field && *sort_field != '\0') { > > + const char *sf = NULL; > > + > > + if (looking_at(sort_field, "title")) { > > + sf = bd->title; > > + } else if...
2006 Apr 06
1
Rendering partials with pagination
I currently have a call to this action, which I''d like to paginate: def get_words @catid = params[:category] @words = Category.find(@catid).words render :partial => "word_display", :collection => @words end As you can see, a word_display partial is rendered for each word. If I add the pagination call (getting the links object), how can I th...
2012 Feb 19
0
[nut-commits] svn commit r3448 - trunk/drivers (extern variables)
...> > +/* allocate storage for shared variables (extern in bcmxcp.h) */ > +BCMXCP_METER_MAP_ENTRY_t > + bcmxcp_meter_map[BCMXCP_METER_MAP_MAX]; > +BCMXCP_ALARM_MAP_ENTRY_t > + bcmxcp_alarm_map[BCMXCP_ALARM_MAP_MAX]; > +BCMXCP_STATUS_t > + bcmxcp_status; > + > + > /* get_word function from nut driver metasys.c */ > int get_word(const unsigned char *buffer) /* return an integer reading a word in the supplied buffer */ > { > > Modified: trunk/drivers/bcmxcp.h > ============================================================================== > --- trunk/dr...
2019 May 25
0
[PATCH] (vesa)menu.c32: Add support for BLS
...e = refstrdup(skipspace(p + 10)); > + } else if (looking_at(p, "architecture")) { > + refstr_put(bd->architecture); > + bd->architecture = refstrdup(skipspace(p + 12)); > + } > + } > + > + fclose(f); > + > + p = get_word(bls_sort_by, &sort_field); > + while (sort_field && *sort_field != '\0') { > + const char *sf = NULL; > + > + if (looking_at(sort_field, "title")) { > + sf = bd->title; > + } else if (looking_at(sort_field, "...
2019 May 27
0
[PATCH] (vesa)menu.c32: Add support for BLS
...rchitecture")) { > > > + refstr_put(bd->architecture); > > > + bd->architecture = refstrdup(skipspace(p + 12)); > > > + } > > > + } > > > + > > > + fclose(f); > > > + > > > + p = get_word(bls_sort_by, &sort_field); > > > + while (sort_field && *sort_field != '\0') { > > > + const char *sf = NULL; > > > + > > > + if (looking_at(sort_field, "title")) { > > > + sf = bd->title; >...
2013 Jul 01
1
bcmxcp: Patch for cosmetic code changes
...dstate_setinfo(outlet_name, "%d", auto_dly_off); - dstate_setflags(outlet_name, ST_FLAG_RW | ST_FLAG_STRING); - dstate_setaux(outlet_name, 5); + dstate_setflags(outlet_name, ST_FLAG_RW | ST_FLAG_STRING); + dstate_setaux(outlet_name, 5); auto_dly_on = get_word(answer+iIndex); iIndex += 2; upsdebugx(2, "Auto delay on: %d\n", auto_dly_on); snprintf(outlet_name, sizeof(outlet_name)-1, "outlet.%d.delay.start", num); dstate_setinfo(outlet_name, "%d", auto_dly_on); - dstate_setflags(...
2009 Dec 15
2
drivers/bcmxcp.c portability issue
I ran into a portability issue with drivers/bcmxcp.c in nut-2.4.1 on my UnixWare 7.1.4 machine. The error I get is ..... UX:acomp: ERROR: "/opt/src/utils/nut-2.4.1/drivers/bcmxcp.c", line 835: integral constant expression expected ..... Looking at the code we see ..... int init_outlet(unsigned char len) { unsigned char answer[len]; ..... Although gcc can handle it, it's not